{"version":3,"sources":["mixins/chartjs.js","utils/mock.js","mock/accountMock.js","mock/searchMock.js","mock/notificationsMock.js","mock/reportsMock.js","mock/managementMock.js","mock/calendarMock.js","mock/chatMock.js","mock/kanbanMock.js","mock/mailMock.js","mock/projectMock.js","mock/socialMock.js","serviceWorker.js","constants/index.js","utils/settings.js","context/SettingsContext.js","reducers/accountReducer.js","reducers/notificationsReducer.js","actions/notificationsActions.js","utils/objFromArray.js","reducers/chatReducer.js","actions/chatActions.js","reducers/mailReducer.js","actions/mailActions.js","reducers/kanbanReducer.js","actions/kanbanActions.js","reducers/index.js","store/index.js","components/SplashScreen.js","components/Auth.js","components/ScrollReset.js","theme/shadows.js","theme/index.js","theme/typography.js","components/AuthGuard.js","components/GuestGuard.js","components/LoadingScreen.js","layouts/DashboardLayout/NavBar/NavItem.js","layouts/DashboardLayout/NavBar/index.js","layouts/DashboardLayout/TopBar/Scope.js","layouts/DashboardLayout/TopBar/Account.js","layouts/DashboardLayout/TopBar/Notifications.js","layouts/DashboardLayout/TopBar/Search.js","layouts/DashboardLayout/TopBar/index.js","layouts/DashboardLayout/index.js","Routes.js","services/interceptor.ts","App.js","hooks/useSettings.js","index.js","config/ENV.ts","components/Logo.js","utils/axios.js","enums/CatalogType.ts","api/api-base.ts","api/catalog-api.ts","utils/notifyManager.ts","services/authService.ts","api/user-notification-api.ts","actions/accountActions.js"],"names":["Chart","helpers","extend","elements","Rectangle","prototype","draw","left","right","top","bottom","signX","signY","borderSkipped","radius","ctx","this","_chart","vm","_view","borderWidth","cornerRadius","config","options","horizontal","base","x","y","height","width","barSize","Math","min","abs","halfStroke","borderLeft","borderRight","borderTop","borderBottom","beginPath","fillStyle","backgroundColor","strokeStyle","borderColor","lineWidth","corners","startCorner","indexOf","cornerAt","index","corner","moveTo","i","nextCornerId","floor","xTl","xTr","yTl","yTr","xBl","xBr","yBl","yBr","lineTo","quadraticCurveTo","fill","stroke","instance","AxiosMockAdapter","axios","delayResponse","db","user","id","avatar","bio","canHire","country","email","username","password","firstName","isPublic","lastName","phone","role","state","timezone","mock","onPost","reply","JSON","parse","data","message","accessToken","jwt","sign","expiresIn","onGet","Authorization","headers","split","verify","error","request","update","_","assign","settings","subscription","name","price","currency","proposalsLeft","templatesLeft","invitesLeft","adsLeft","hasAnalytics","hasEmailAlerts","Promise","resolve","setTimeout","results","title","description","notifications","type","createdAt","moment","subtract","toDate","getTime","referrals","color","colors","blueGrey","initials","value","cyan","indigo","red","orange","blue","products","uuidv4","image","subscriptions","progress","activities","customer","earnings","datasets","labels","orders","ref","items","status","projects","author","technologies","tasks","deadline","add","members","customers","spent","isProspect","isReturning","acceptsMarketing","updatedAt","location","fullName","zipCode","address1","address2","creditCard","autoCC","verified","vat","balance","emails","invoices","date","paymentMethod","logs","method","route","desc","IP","isAvailable","isShippable","inventoryType","quantity","variants","category","attributes","payment","total","order","promoCode","address","city","cuantity","billing","amount","invoice","dueDate","issueDate","company","taxId","subtotal","taxes","draft","events","allDay","green","end","hours","minutes","start","startOf","endOf","contacts","isActive","lastActivity","threads","key","messages","body","contentType","senderId","participantIds","unreadCount","threadKey","params","thread","find","_thread","userId","otherUser","contact","otherUserId","board","lists","cardIds","cards","attachments","checklists","checkItems","comments","cardId","memberId","cover","due","isSubscribed","listId","memberIds","list","_list","map","filter","card","reject","_card","position","sourceList","pull","destinationList","splice","_cardId","comment","checklist","checklistId","_checklist","checkItem","checkItemId","_checkItem","totalCount","mails","folder","isUnread","isStarred","isImportant","labelIds","subject","from","to","systemLabel","customLabel","label","_label","mail","includes","filterMails","mailId","_mail","statistics","payout","visitors","watching","media","technology","isLiked","likes","rating","subscribers","todos","done","project","active","endDate","brief","tags","files","url","mimeType","size","commonContacts","connectedStatus","profileProgress","quote","currentJob","previousJob","currentCity","originCity","posts","liked","reviews","reviewer","pricePerHour","connections","common","Boolean","window","hostname","match","THEMES","storeSettings","localStorage","setItem","stringify","SettingsContext","createContext","defaultSettings","direction","responsiveFontSizes","theme","SettingsProvider","children","useState","currentSettings","setCurrentSettings","useEffect","document","dir","Provider","saveSettings","updatedSettings","mergedSettings","merge","Consumer","initialState","globalScope","accountReducer","action","LOGIN_REQUEST","produce","SWITCH_MODE","LOGIN_SUCCESS","payload","LOGIN_FAILURE","LOGOUT","SILENT_LOGIN","UPDATE_PROFILE","notificationsReducer","objFromArray","arr","reduce","accumulator","current","byId","allIds","byKey","allKeys","sidebarOpen","chatReducer","Object","keys","push","newMessageOpen","mailReducer","isLoaded","kanbanReducer","omit","sourceListId","rootReducer","combineReducers","account","chat","kanban","form","formReducer","createLogger","useStyles","makeStyles","root","alignItems","palette","background","default","display","flexDirection","justifyContent","padding","spacing","zIndex","logo","maxWidth","SlashScreen","classes","className","Box","mb","Logo","CircularProgress","Auth","dispatch","useDispatch","isLoading","setLoading","a","authService","setAxiosInterceptors","onLogout","logout","handleAuthentication","isAuthenticated","getUserProfile","setUserData","initAuth","SplashScreen","ScrollReset","useLocation","scrollTo","pathname","strongShadows","baseConfig","typography","h1","fontWeight","fontSize","letterSpacing","h2","h3","h4","h5","h6","overline","overrides","MuiLinearProgress","borderRadius","overflow","MuiListItemIcon","minWidth","MuiChip","themeConfigs","MuiInputBase","input","opacity","white","dark","paper","primary","main","secondary","text","shadows","hover","selected","disabled","disabledBackground","focus","createTheme","themeConfig","console","warn","Error","createMuiTheme","AuthGuard","GuestGuard","propTypes","PropTypes","any","minHeight","LoadingScreen","NProgress","LinearProgress","item","paddingTop","paddingBottom","itemLeaf","button","textTransform","buttonLeaf","fontWeightRegular","fontWeightMedium","icon","marginRight","NavItem","href","depth","Icon","openProp","open","Info","info","rest","setOpen","paddingLeft","style","ListItem","clsx","disableGutters","Button","onClick","prevOpen","Collapse","in","activeClassName","component","RouterLink","defaultProps","mobileDrawer","desktopDrawer","cursor","NavBar","openMobile","onMobileClose","profile","setProfile","folders","setFolders","useSelector","DocumentFolderCatalogApi","searches","then","response","Data","content","suppressScrollX","Hidden","lgUp","p","List","disablePadding","HomeIcon","IS_DEPARTMENT_CONTENT_ADMIN","IS_DEPARTMENT_APPROVE_ADMIN","IS_GLOBAL_APPROVE_ADMIN","IS_PUBLISH_ADMIN","IS_GLOBAL_CONTENT_ADMIN","subheader","ListSubheader","disableSticky","DescriptionIcon","UserHasMultiScopePermission","IsSuperUser","LibraryBooksIcon","length","FolderIcon","Id","Name","SubjectIcon","SyncIcon","SchoolIcon","HelpOutlineIcon","OndemandVideoIcon","IS_DEPARTMENT_ADMIN","IS_GLOBAL_ADMIN","SettingsIcon","DashboardOutlined","Drawer","anchor","onClose","variant","mdDown","drawer","Scope","setValue","userProfile","setUserProfile","history","useHistory","DepartmentId","handleToggle","toggleMode","notifyManager","showSuccess","handleClose","ModalProps","BackdropProps","invisible","Typography","IconButton","SvgIcon","mt","FormControl","fullWidth","InputLabel","Select","labelId","onChange","event","target","MenuItem","DepartmentName","Grid","container","xs","md","FormControlLabel","control","Checkbox","inputProps","readOnly","checked","popover","Account","useRef","enqueueSnackbar","useSnackbar","isOpen","isOpenDepartmentSelector","setIsOpenDepartmentSelector","handleDepartmentSelector","handleLogout","ButtonBase","Avatar","alt","smDown","UserName","Menu","anchorOrigin","vertical","keepMounted","PaperProps","getContentAnchorEl","anchorEl","PackageIcon","MessageIcon","TruckIcon","contrastText","Notifications","count","setCount","setNotifications","fetchData","api","UserNotificationApi","scan","Status","interval","setInterval","clearInterval","Tooltip","Badge","badgeContent","Popover","notification","listItem","divider","ListItemAvatar","ListItemText","primaryTypographyProps","ShortContent","dense","Search","boxShadow","toolbar","TopBar","onMobileNavOpen","log","AppBar","Toolbar","menuButton","float","ml","flexGrow","wrapper","flex","breakpoints","up","contentContainer","DashboardLayout","isMobileNavOpen","setMobileNavOpen","routesConfig","exact","path","lazy","guard","layout","routes","Routes","renderRoutes","fallback","Guard","Fragment","Layout","Component","render","props","Interceptor","initialize","store","interceptors","use","createBrowserHistory","basename","jss","create","plugins","jssPreset","rtl","createStyles","boxSizing","margin","html","App","useContext","loadProgressBar","ThemeProvider","StylesProvider","utils","MomentUtils","maxSnack","enableES5","middlewares","thunkMiddleware","enhancers","composeWithDevTools","applyMiddleware","composedEnhancers","compose","persistedStore","serializedState","getItem","err","loadState","createStore","subscribe","saveState","getState","configureStore","storedData","restoreSettings","ReactDOM","getElementById","navigator","serviceWorker","ready","registration","unregister","ENV","baseDmsUrl","basePortalUrl","baseApiEndpoint","clientId","src","CatalogType","ApiBase","baseApiUrl","get","query","PageSize","PageNumber","CategoryId","Keyword","post","save","put","delete","deleteBatch","ids","CatalogApi","catalogType","createCatalog","getAll","getAcl","DOCUMENT_FIELD_CATALOG","DOCUMENT_ISSUER_CATALOG","DOCUMENT_CONTENT_CATALOG","DOCUMENT_TYPE_CATALOG","DOCUMENT_SIGNER_CATALOG","DOCUMENT_SUBJECT_CATALOG","SIGNER_POSITION_CATALOG","DOCUMENT_GROUP_CATALOG","NEWS_CATALOG","CONTENT_TYPE","SERVICE_CATALOG","GOVERNMENT_AGENCY_CATALOG","BUSINESS_LINE_CATALOG","REGION_CATALOG","QUESTION_CATALOG","DocumentContentGroupCatalog","DocumentFolderCatalog","DocumentStatusCatalog","UserGroupCatalog","MarketCatalog","DocumentFieldCatalogApi","DocumentTypeCatalogApi","DocumentSubjectCatalogApi","DocumentIssuerCatalogApi","DocumentSignerCatalogApi","SignerPositionCatalogApi","ServiceCatalogApi","QuestionCatalogApi","UserGroupCatalogApi","MarketCatalogApi","DocumentContentGroupCatalogApi","DocumentStatusCatalogApi","addNotification","insert","animationIn","animationOut","dismiss","duration","showError","showInfo","showSuccessUpdate","showSuccessDelete","setSession","login","userName","isAD","toString","loginWithEmailAndPassword","cookies","Cookies","defaults","set","removeItem","getAccessToken","isValidToken","decoded","jwtDecode","currentTime","Date","now","exp","read"],"mappings":"0PA6LAA,IAAMC,QAAQC,OAAOF,IAAMG,SAASC,UAAUC,UAAW,CACvDC,KAzLF,WAAiB,IAKXC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAXIC,EAAQC,KAAKC,OAAbF,I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,kBAAM,0DAExB,CACEF,OAAO,EACPC,KAAM,qBACNzK,UAAW0K,gBAAK,kBAAM,0DAExB,CACED,KAAM,OACNE,MAAOpN,GACPqN,OAAQR,GACRS,OAAQ,CACN,CACEL,OAAO,EACPC,KAAM,OACNzK,UAAW,kBAAM,kBAAC,KAAD,CAAUnP,GAAG,6BAEhC,CACE2Z,OAAO,EACPC,KAAM,qBACNzK,UAAW0K,gBAAK,kBAAM,+EAExB,CACEF,OAAO,EACPC,KAAM,yBACNzK,UAAW0K,gBAAK,kBAAM,0DAExB,CACED,KAAM,qCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,2BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,wEAExB,CACED,KAAM,kCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,kCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,kCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,sBACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,qBACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,0DAExB,CACED,KAAM,qBACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,0DAExB,CACED,KAAM,iCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,yCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBACd,+EAGJ,CACED,KAAM,yCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBACd,+EAGJ,CACED,KAAM,wCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBACd,+EAGJ,CACED,KAAM,wCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBACd,+EAGJ,CACED,KAAM,gCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,4BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAGxB,CACED,KAAM,6BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAGxB,CACED,KAAM,qBACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,wEAGxB,CACED,KAAM,2BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,wEAGxB,CACED,KAAM,qBACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,mCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,wBACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,6BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAExB,CACED,KAAM,6BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAGxB,CACED,KAAM,8BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAGxB,CACED,KAAM,8BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAGxB,CACED,KAAM,2BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,wEAGxB,CACED,KAAM,6BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAGxB,CACED,KAAM,4BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,8EAGxB,CACED,KAAM,6BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAGxB,CACED,KAAM,8BACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,+EAGxB,CACED,KAAM,gCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBACd,0DAIJ,CACED,KAAM,yCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBACd,kEAIJ,CACED,KAAM,gCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBACd,kEAIJ,CACED,KAAM,yCACND,OAAO,EACPxK,UAAW0K,gBAAK,kBACd,yEAIJ,CACED,KAAM,mBACND,OAAO,EACPxK,UAAW0K,gBAAK,kBAAM,wEAGxB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E,EAAY/W,GAC1B,OAAO,SAACmW,GAAD,OAAcA,EAAS,CAC5B5S,KAAMsP,EACNH,QAAS,CACP1S,WAKC,SAAS2W,IACd,8CAAO,WAAOR,GAAP,SAAAI,EAAA,sDACLC,IAAYG,SAEZR,EAAS,CACP5S,KAAMqP,IAJH,2CAAP,mDAAM,K","file":"static/js/main.34d9245f.chunk.js","sourcesContent":["/* eslint-disable */\r\nimport { Chart } from 'react-chartjs-2';\r\n\r\n// ChartJS extension rounded bar chart\r\n// https://codepen.io/jedtrow/full/ygRYgo\r\nfunction draw() {\r\n const { ctx } = this._chart;\r\n const vm = this._view;\r\n let { borderWidth } = vm;\r\n\r\n let left;\r\n let right;\r\n let top;\r\n let bottom;\r\n let signX;\r\n let signY;\r\n let borderSkipped;\r\n let radius;\r\n\r\n // If radius is less than 0 or is large enough to cause drawing errors a max\r\n // radius is imposed. If cornerRadius is not defined set it to 0.\r\n let { cornerRadius } = this._chart.config.options;\r\n if (cornerRadius < 0) {\r\n cornerRadius = 0;\r\n }\r\n\r\n if (typeof cornerRadius === 'undefined') {\r\n cornerRadius = 0;\r\n }\r\n\r\n if (!vm.horizontal) {\r\n // bar\r\n left = vm.x - vm.width / 2;\r\n right = vm.x + vm.width / 2;\r\n top = vm.y;\r\n bottom = vm.base;\r\n signX = 1;\r\n signY = bottom > top ? 1 : -1;\r\n borderSkipped = vm.borderSkipped || 'bottom';\r\n } else {\r\n // horizontal bar\r\n left = vm.base;\r\n right = vm.x;\r\n top = vm.y - vm.height / 2;\r\n bottom = vm.y + vm.height / 2;\r\n signX = right > left ? 1 : -1;\r\n signY = 1;\r\n borderSkipped = vm.borderSkipped || 'left';\r\n }\r\n\r\n // Canvas doesn't allow us to stroke inside the width so we can\r\n // adjust the sizes to fit if we're setting a stroke on the line\r\n if (borderWidth) {\r\n // borderWidth shold be less than bar width and bar height.\r\n const barSize = Math.min(Math.abs(left - right), Math.abs(top - bottom));\r\n borderWidth = borderWidth > barSize ? barSize : borderWidth;\r\n const halfStroke = borderWidth / 2;\r\n // Adjust borderWidth when bar top position is near vm.base(zero).\r\n const borderLeft = left + (borderSkipped !== 'left' ? halfStroke * signX : 0);\r\n const borderRight = right + (borderSkipped !== 'right' ? -halfStroke * signX : 0);\r\n const borderTop = top + (borderSkipped !== 'top' ? halfStroke * signY : 0);\r\n const borderBottom = bottom + (borderSkipped !== 'bottom' ? -halfStroke * signY : 0);\r\n // not become a vertical line?\r\n if (borderLeft !== borderRight) {\r\n top = borderTop;\r\n bottom = borderBottom;\r\n }\r\n // not become a horizontal line?\r\n if (borderTop !== borderBottom) {\r\n left = borderLeft;\r\n right = borderRight;\r\n }\r\n }\r\n\r\n ctx.beginPath();\r\n ctx.fillStyle = vm.backgroundColor;\r\n ctx.strokeStyle = vm.borderColor;\r\n ctx.lineWidth = borderWidth;\r\n\r\n // Corner points, from bottom-left to bottom-right clockwise\r\n // | 1 2 |\r\n // | 0 3 |\r\n const corners = [[left, bottom], [left, top], [right, top], [right, bottom]];\r\n\r\n // Find first (starting) corner with fallback to 'bottom'\r\n const borders = ['bottom', 'left', 'top', 'right'];\r\n let startCorner = borders.indexOf(borderSkipped, 0);\r\n if (startCorner === -1) {\r\n startCorner = 0;\r\n }\r\n\r\n function cornerAt(index) {\r\n return corners[(startCorner + index) % 4];\r\n }\r\n\r\n // Draw rectangle from 'startCorner'\r\n let corner = cornerAt(0);\r\n ctx.moveTo(corner[0], corner[1]);\r\n\r\n for (let i = 1; i < 4; i += 1) {\r\n corner = cornerAt(i);\r\n let nextCornerId = i + 1;\r\n if (nextCornerId === 4) {\r\n nextCornerId = 0;\r\n }\r\n\r\n const width = corners[2][0] - corners[1][0];\r\n const height = corners[0][1] - corners[1][1];\r\n const x = corners[1][0];\r\n const y = corners[1][1];\r\n\r\n radius = cornerRadius;\r\n // Fix radius being too large\r\n if (radius > Math.abs(height) / 2) {\r\n radius = Math.floor(Math.abs(height) / 2);\r\n }\r\n if (radius > Math.abs(width) / 2) {\r\n radius = Math.floor(Math.abs(width) / 2);\r\n }\r\n\r\n if (height < 0) {\r\n // Negative values in a standard bar chart\r\n const xTl = x;\r\n const xTr = x + width;\r\n const yTl = y + height;\r\n const yTr = y + height;\r\n\r\n const xBl = x;\r\n const xBr = x + width;\r\n const yBl = y;\r\n const yBr = y;\r\n\r\n // Draw\r\n ctx.moveTo(xBl + radius, yBl);\r\n ctx.lineTo(xBr - radius, yBr);\r\n ctx.quadraticCurveTo(xBr, yBr, xBr, yBr - radius);\r\n ctx.lineTo(xTr, yTr + radius);\r\n ctx.quadraticCurveTo(xTr, yTr, xTr - radius, yTr);\r\n ctx.lineTo(xTl + radius, yTl);\r\n ctx.quadraticCurveTo(xTl, yTl, xTl, yTl + radius);\r\n ctx.lineTo(xBl, yBl - radius);\r\n ctx.quadraticCurveTo(xBl, yBl, xBl + radius, yBl);\r\n } else if (width < 0) {\r\n // Negative values in a horizontal bar chart\r\n const xTl = x + width;\r\n const xTr = x;\r\n const yTl = y;\r\n const yTr = y;\r\n\r\n const xBl = x + width;\r\n const xBr = x;\r\n const yBl = y + height;\r\n const yBr = y + height;\r\n\r\n // Draw\r\n ctx.moveTo(xBl + radius, yBl);\r\n ctx.lineTo(xBr - radius, yBr);\r\n ctx.quadraticCurveTo(xBr, yBr, xBr, yBr - radius);\r\n ctx.lineTo(xTr, yTr + radius);\r\n ctx.quadraticCurveTo(xTr, yTr, xTr - radius, yTr);\r\n ctx.lineTo(xTl + radius, yTl);\r\n ctx.quadraticCurveTo(xTl, yTl, xTl, yTl + radius);\r\n ctx.lineTo(xBl, yBl - radius);\r\n ctx.quadraticCurveTo(xBl, yBl, xBl + radius, yBl);\r\n } else {\r\n // Positive Value\r\n ctx.moveTo(x + radius, y);\r\n ctx.lineTo(x + width - radius, y);\r\n ctx.quadraticCurveTo(x + width, y, x + width, y + radius);\r\n ctx.lineTo(x + width, y + height - radius);\r\n ctx.quadraticCurveTo(\r\n x + width,\r\n y + height,\r\n x + width - radius,\r\n y + height\r\n );\r\n ctx.lineTo(x + radius, y + height);\r\n ctx.quadraticCurveTo(x, y + height, x, y + height - radius);\r\n ctx.lineTo(x, y + radius);\r\n ctx.quadraticCurveTo(x, y, x + radius, y);\r\n }\r\n }\r\n\r\n ctx.fill();\r\n if (borderWidth) {\r\n ctx.stroke();\r\n }\r\n}\r\n\r\nChart.helpers.extend(Chart.elements.Rectangle.prototype, {\r\n draw\r\n});\r\n","import AxiosMockAdapter from 'axios-mock-adapter';\r\nimport axios from './axios';\r\n\r\nconst instance = new AxiosMockAdapter(axios, { delayResponse: 0 });\r\n\r\nexport default instance;\r\n","import _ from 'lodash';\r\nimport jwt from 'jsonwebtoken';\r\nimport mock from 'src/utils/mock';\r\n\r\nconst JWT_SECRET = 'devias-top-secret-key';\r\nconst JWT_EXPIRES_IN = '2 days';\r\n\r\nconst db = {\r\n user: {\r\n id: '5e86809283e28b96d2d38537',\r\n avatar: '/static/images/avatars/avatar_6.png',\r\n bio: 'Sales Manager',\r\n canHire: false,\r\n country: 'USA',\r\n email: 'katarina.smith@devias.io',\r\n username: 'admin',\r\n password: 'admin',\r\n firstName: 'Katarina',\r\n isPublic: true,\r\n lastName: 'Smith',\r\n phone: '+40 777666555',\r\n role: 'admin',\r\n state: 'New York',\r\n timezone: '4:32PM (GMT-4)'\r\n }\r\n};\r\n\r\nmock.onPost('/api/account/login').reply((config) => {\r\n const { email, password } = JSON.parse(config.data);\r\n\r\n if (email !== 'admin@devias.io' || password !== 'admin') {\r\n return [400, { message: 'Please check your email and password' }];\r\n }\r\n\r\n const { user } = db;\r\n\r\n const accessToken = jwt.sign(\r\n { id: user.id },\r\n JWT_SECRET,\r\n { expiresIn: JWT_EXPIRES_IN }\r\n );\r\n\r\n return [200, { user, accessToken }];\r\n});\r\n\r\nmock.onGet('/api/account/me').reply((config) => {\r\n const { Authorization } = config.headers;\r\n\r\n if (!Authorization) {\r\n return [401, { message: 'Authorization token missing' }];\r\n }\r\n\r\n try {\r\n const accessToken = Authorization.split(' ')[1];\r\n\r\n const { id } = jwt.verify(accessToken, JWT_SECRET);\r\n\r\n if (id !== db.user.id) {\r\n return [401, { message: 'Invalid authorization token' }];\r\n }\r\n\r\n return [200, { user: db.user }];\r\n } catch (error) {\r\n return [401, { message: 'Invalid authorization token' }];\r\n }\r\n});\r\n\r\nmock.onPost('/api/account/profile').reply((request) => {\r\n const { update } = JSON.parse(request.data);\r\n\r\n _.assign(db.user, update);\r\n\r\n return [200, { user: db.user }];\r\n});\r\n\r\nmock.onGet('/api/account/settings').reply(200, {\r\n settings: {}\r\n});\r\n\r\nmock.onGet('/api/account/subscription').reply(200, {\r\n subscription: {\r\n name: 'Freelancer',\r\n price: '5',\r\n currency: '$',\r\n proposalsLeft: 12,\r\n templatesLeft: 5,\r\n invitesLeft: 24,\r\n adsLeft: 10,\r\n hasAnalytics: true,\r\n hasEmailAlerts: true\r\n }\r\n});\r\n","import mock from 'src/utils/mock';\r\n\r\nmock.onGet('/api/search').reply(() => new Promise(((resolve) => {\r\n setTimeout(() => {\r\n resolve([200, {\r\n results: [\r\n {\r\n title: 'What does Algolia do?',\r\n description: 'Algolia broadly consists of two parts: search implementation and search analytics. We provide tools that make it easy for your developers...'\r\n },\r\n {\r\n title: 'Search as a feedback loop',\r\n description: 'To be clear, search doesn’t know the direction that your business should take. However, it can help you gather information on what your customers want...'\r\n },\r\n {\r\n title: 'What can Algolia do for my users?',\r\n description: 'Algolia provides your users with a fast and rich search experience. Your Algolia search interface can contain a search bar, filters, infinite scrolling...'\r\n }\r\n ]\r\n }]);\r\n }, 1500);\r\n})));\r\n","import moment from 'moment';\r\nimport mock from 'src/utils/mock';\r\n\r\nmock.onGet('/api/notifications').reply(200, {\r\n notifications: [\r\n {\r\n id: '5e8883f1b51cc1956a5a1ec0',\r\n title: 'Your order is placed',\r\n description: 'Dummy text',\r\n type: 'order_placed',\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8883f7ed1486d665d8be1e',\r\n title: 'New message received',\r\n description: 'You have 32 unread messages',\r\n type: 'new_message',\r\n createdAt: moment()\r\n .subtract(1, 'day')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8883fca0e8612044248ecf',\r\n title: 'Your item is shipped',\r\n description: 'Dummy text',\r\n type: 'item_shipped',\r\n createdAt: moment()\r\n .subtract(3, 'days')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e88840187f6b09b431bae68',\r\n title: 'New message received',\r\n description: 'You have 32 unread messages',\r\n type: 'new_message',\r\n createdAt: moment()\r\n .subtract(7, 'days')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n","import { v4 as uuidv4 } from 'uuid';\r\nimport moment from 'moment';\r\nimport { colors } from '@material-ui/core';\r\nimport mock from 'src/utils/mock';\r\n\r\nmock.onGet('/api/reports/top-referrals').reply(200, {\r\n referrals: [\r\n {\r\n color: colors.blueGrey['700'],\r\n name: 'GitHub',\r\n initials: 'GT',\r\n value: '53,032'\r\n },\r\n {\r\n color: colors.cyan['500'],\r\n name: 'Twitter',\r\n initials: 'TW',\r\n value: '39,551'\r\n },\r\n {\r\n color: colors.indigo[600],\r\n name: 'Hacker News',\r\n initials: 'HN',\r\n value: '23,150'\r\n },\r\n {\r\n color: colors.red['500'],\r\n name: 'Stack Overflow',\r\n initials: 'SO',\r\n value: '14,093'\r\n },\r\n {\r\n color: colors.orange['900'],\r\n name: 'Reddit.com',\r\n initials: 'RD',\r\n value: '7,251'\r\n },\r\n {\r\n color: colors.blueGrey['900'],\r\n name: 'Dev.to',\r\n initials: 'DE',\r\n value: '5,694'\r\n },\r\n {\r\n color: colors.blue['900'],\r\n name: 'Facebook',\r\n initials: 'FB',\r\n value: '3,643'\r\n },\r\n {\r\n color: colors.blueGrey['900'],\r\n name: 'Medium',\r\n initials: 'MD',\r\n value: '1,654'\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/reports/profitable-products').reply(200, {\r\n products: [\r\n {\r\n id: uuidv4(),\r\n type: 'freelancer_basic',\r\n name: 'Freelancer Basic Subscription',\r\n image: '/static/images/products/product_freelancer.svg',\r\n subscriptions: '13,153',\r\n currency: '$',\r\n price: '5.00',\r\n progress: 93\r\n },\r\n {\r\n id: uuidv4(),\r\n type: 'freelancer_extra',\r\n name: 'Freelancer Extra Subscription',\r\n image: '/static/images/products/product_freelancer.svg',\r\n subscriptions: '10,300',\r\n currency: '$',\r\n price: '15.00',\r\n progress: 76\r\n },\r\n {\r\n id: uuidv4(),\r\n type: 'agency_basic',\r\n name: 'Agency Basic Subscription',\r\n image: '/static/images/products/product_agency.svg',\r\n subscriptions: '5,300',\r\n currency: '$',\r\n price: '25.00',\r\n progress: 60\r\n },\r\n {\r\n id: uuidv4(),\r\n type: 'enterprise_basic',\r\n name: 'Enterprise Basic Subscription',\r\n image: '/static/images/products/product_enterprise.svg',\r\n subscriptions: '1,203',\r\n currency: '$',\r\n price: '205.00',\r\n progress: 46\r\n },\r\n {\r\n id: uuidv4(),\r\n type: 'enterprise_extra',\r\n name: 'Enterprise Extra Subscription',\r\n image: '/static/images/products/product_enterprise.svg',\r\n subscriptions: '254',\r\n currency: '$',\r\n price: '500.00',\r\n progress: 41\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/reports/customer-activity').reply(200, {\r\n activities: [\r\n {\r\n id: '5e89140bcc768199d1e0dc49',\r\n type: 'register',\r\n description: 'Created account',\r\n customer: {\r\n id: '5e887a62195cc5aef7e8ca5d',\r\n name: 'Ekaterina Tankova',\r\n avatar: '/static/images/avatars/avatar_2.png'\r\n },\r\n createdAt: moment()\r\n .subtract(23, 'minutes')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e891411b0290b175166cd32',\r\n type: 'payment',\r\n description: 'Subscription Purchase',\r\n customer: {\r\n id: '5e887ac47eed253091be10cb',\r\n name: 'Cao Yu',\r\n avatar: '/static/images/avatars/avatar_3.png'\r\n },\r\n createdAt: moment()\r\n .subtract(56, 'minutes')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e89141633dc5e52c923ef27',\r\n type: 'ticket_create',\r\n description: 'Submitted a ticket',\r\n customer: {\r\n id: '5e887b209c28ac3dd97f6db5',\r\n name: 'Alex Richardson',\r\n avatar: '/static/images/avatars/avatar_4.png'\r\n },\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e89141bd975c7f33aee9f4b',\r\n type: 'payment',\r\n description: 'Subscription Purchase',\r\n customer: {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n avatar: '/static/images/avatars/avatar_5.png'\r\n },\r\n createdAt: moment()\r\n .subtract(5, 'minutes')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e891421d7945778863cf9ca',\r\n type: 'payment',\r\n description: 'Subscription Purchase',\r\n customer: {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Smith',\r\n avatar: '/static/images/avatars/avatar_6.png'\r\n },\r\n createdAt: moment()\r\n .subtract(5, 'minutes')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/reports/earnings').reply(200, {\r\n earnings: {\r\n datasets: [\r\n {\r\n data: [56, 24, 20],\r\n backgroundColor: ['#3d72eb', '#4b9e86', '#b658f5']\r\n }\r\n ],\r\n labels: ['Subscriptions', 'Affiliate', 'Sales'],\r\n }\r\n});\r\n\r\nmock.onGet('/api/reports/latest-orders').reply(200, {\r\n orders: [\r\n {\r\n id: uuidv4(),\r\n ref: 'DEV1042',\r\n items: 7,\r\n value: '524.00',\r\n currency: '$',\r\n customer: {\r\n name: 'Ekaterina Tankova',\r\n email: 'ekaterina@devias.io'\r\n },\r\n status: 'pending',\r\n createdAt: moment()\r\n .subtract(7, 'minutes')\r\n .subtract(10, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n ref: 'DEV1041',\r\n items: 8,\r\n value: '693.00',\r\n currency: '$',\r\n customer: {\r\n name: 'Cao Yu',\r\n email: 'cao.yu@devias.io'\r\n },\r\n status: 'complete',\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .subtract(12, 'minutes')\r\n .subtract(50, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n ref: 'DEV1040',\r\n items: 4,\r\n value: '215.00',\r\n currency: '$',\r\n customer: {\r\n name: 'Alex Richardson',\r\n email: 'alex.richardson@devias.io'\r\n },\r\n status: 'rejected',\r\n createdAt: moment()\r\n .subtract(5, 'hours')\r\n .subtract(39, 'minutes')\r\n .subtract(12, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n ref: 'DEV1039',\r\n items: 1,\r\n value: '25.00',\r\n currency: '$',\r\n customer: {\r\n name: 'Anje Keizer',\r\n email: 'anje.keiser@devias.io'\r\n },\r\n status: 'pending',\r\n createdAt: moment()\r\n .subtract(5, 'hours')\r\n .subtract(46, 'minutes')\r\n .subtract(21, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n ref: 'DEV1038',\r\n items: 5,\r\n value: '535.00',\r\n currency: '$',\r\n customer: {\r\n name: 'Clarke Gillebert',\r\n email: 'clarke.gillebert@devias.io'\r\n },\r\n status: 'complete',\r\n createdAt: moment()\r\n .subtract(8, 'hours')\r\n .subtract(19, 'minutes')\r\n .subtract(54, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n ref: 'DEV1037',\r\n items: 2,\r\n value: '56.00',\r\n currency: '$',\r\n customer: {\r\n name: 'Merrile Burgett',\r\n email: 'merrile.burgett@devias.io'\r\n },\r\n status: 'complete',\r\n createdAt: moment()\r\n .subtract(1, 'days')\r\n .subtract(45, 'minutes')\r\n .subtract(12, 'seconds')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/reports/latest-projects').reply(200, {\r\n projects: [\r\n {\r\n id: uuidv4(),\r\n title: 'Mella Full Screen Slider',\r\n price: '12,500',\r\n currency: '$',\r\n author: {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n avatar: '/static/images/avatars/avatar_5.png'\r\n },\r\n technologies: ['angular'],\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .subtract(34, 'minutes')\r\n .subtract(10, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n title: 'Dashboard Design',\r\n price: '15,750',\r\n currency: '$',\r\n author: {\r\n id: '5e887d0b3d090c1b8f162003',\r\n name: 'Emilee Simchenko',\r\n avatar: '/static/images/avatars/avatar_9.png'\r\n },\r\n technologies: ['sketch', 'html-css'],\r\n createdAt: moment()\r\n .subtract(10, 'hours')\r\n .subtract(56, 'minutes')\r\n .subtract(25, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n title: 'Ten80 Web Design',\r\n price: '15,750',\r\n currency: '$',\r\n author: {\r\n id: '5e88792be2d4cfb4bf0971d9',\r\n name: 'Elliott Stone',\r\n avatar: '/static/images/avatars/avatar_10.png'\r\n },\r\n technologies: ['react-js'],\r\n createdAt: moment()\r\n .subtract(1, 'days')\r\n .subtract(30, 'minutes')\r\n .subtract(50, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n title: 'Neura e-commerce UI Kit',\r\n price: '12,500',\r\n currency: '$',\r\n author: {\r\n id: '5e8877da9a65442b11551975',\r\n name: 'Shen Zhi',\r\n avatar: '/static/images/avatars/avatar_11.png'\r\n },\r\n technologies: ['vue-js'],\r\n createdAt: moment()\r\n .subtract(1, 'days')\r\n .subtract(4, 'minutes')\r\n .subtract(30, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n title: 'Administrator Dashboard',\r\n price: '15,750',\r\n currency: '$',\r\n author: {\r\n id: '5e887ac47eed253091be10cb',\r\n name: 'Cao Yu',\r\n avatar: '/static/images/avatars/avatar_3.png'\r\n },\r\n technologies: ['angular', 'figma'],\r\n createdAt: moment()\r\n .subtract(1, 'days')\r\n .subtract(11, 'minutes')\r\n .subtract(6, 'seconds')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/reports/tasks').reply(200, {\r\n tasks: [\r\n {\r\n id: uuidv4(),\r\n title: 'Update the API for the project',\r\n deadline: moment()\r\n .add(1, 'days')\r\n .add(1, 'hour')\r\n .toDate()\r\n .getTime(),\r\n members: [\r\n '/static/images/avatars/avatar_2.png',\r\n '/static/images/avatars/avatar_3.png',\r\n ]\r\n },\r\n {\r\n id: uuidv4(),\r\n title: 'Redesign the landing page',\r\n deadline: moment()\r\n .add(2, 'day')\r\n .add(1, 'hour')\r\n .toDate()\r\n .getTime(),\r\n members: [\r\n '/static/images/avatars/avatar_8.png',\r\n '/static/images/avatars/avatar_10.png',\r\n '/static/images/avatars/avatar_12.png'\r\n ]\r\n },\r\n {\r\n id: uuidv4(),\r\n title: 'Solve the bug for the showState',\r\n deadline: moment()\r\n .toDate()\r\n .getTime(),\r\n members: ['/static/images/avatars/avatar_7.png']\r\n },\r\n {\r\n id: uuidv4(),\r\n title: 'Release v1.0 Beta',\r\n deadline: null,\r\n members: [\r\n '/static/images/avatars/avatar_2.png',\r\n '/static/images/avatars/avatar_10.png']\r\n },\r\n {\r\n id: uuidv4(),\r\n title: 'GDPR Compliance',\r\n deadline: null,\r\n members: [\r\n '/static/images/avatars/avatar_5.png',\r\n '/static/images/avatars/avatar_2.png',\r\n '/static/images/avatars/avatar_6.png'\r\n ]\r\n },\r\n {\r\n id: uuidv4(),\r\n title: 'Redesign Landing Page',\r\n deadline: null,\r\n members: ['/static/images/avatars/avatar_8.png']\r\n }\r\n ]\r\n});\r\n","import { v4 as uuidv4 } from 'uuid';\r\nimport moment from 'moment';\r\nimport mock from 'src/utils/mock';\r\n\r\nmock.onGet('/api/management/customers').reply(200, {\r\n customers: [\r\n {\r\n id: '5e887a62195cc5aef7e8ca5d',\r\n name: 'Ekaterina Tankova',\r\n email: 'ekaterina.tankova@devias.io',\r\n avatar: '/static/images/avatars/avatar_2.png',\r\n spent: '500.00',\r\n currency: '$',\r\n orders: 1,\r\n isProspect: false,\r\n isReturning: false,\r\n acceptsMarketing: false,\r\n updatedAt: moment()\r\n .subtract(1, 'days')\r\n .toDate()\r\n .getTime(),\r\n location: 'West Virginia, USA'\r\n },\r\n {\r\n id: '5e887ac47eed253091be10cb',\r\n name: 'Cao Yu',\r\n email: 'cao.yu@devias.io',\r\n avatar: '/static/images/avatars/avatar_3.png',\r\n spent: '300.00',\r\n currency: '$',\r\n orders: 3,\r\n isProspect: false,\r\n isReturning: true,\r\n acceptsMarketing: true,\r\n updatedAt: moment()\r\n .subtract(1, 'days')\r\n .subtract(7, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'Bristow'\r\n },\r\n {\r\n id: '5e887b209c28ac3dd97f6db5',\r\n name: 'Alex Richardson',\r\n email: 'alex.richardson@devias.io',\r\n avatar: '/static/images/avatars/avatar_4.png',\r\n spent: '0.00',\r\n currency: '$',\r\n orders: 0,\r\n isProspect: true,\r\n isReturning: false,\r\n acceptsMarketing: true,\r\n updatedAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(1, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'Georgia, USA'\r\n },\r\n {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n email: 'anje.keizer@devias.io',\r\n avatar: '/static/images/avatars/avatar_5.png',\r\n spent: '5,600.00',\r\n currency: '$',\r\n orders: 6,\r\n isProspect: false,\r\n isReturning: false,\r\n acceptsMarketing: false,\r\n updatedAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(4, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'Ohio, USA'\r\n },\r\n {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Smith',\r\n email: 'katarina.smith@devias.io',\r\n avatar: '/static/images/avatars/avatar_6.png',\r\n spent: '500.00',\r\n currency: '$',\r\n orders: 1,\r\n isProspect: false,\r\n isReturning: true,\r\n acceptsMarketing: true,\r\n updatedAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(11, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'Texas, USA'\r\n },\r\n {\r\n id: '5e86805e2bafd54f66cc95c3',\r\n name: 'Adam Denisov',\r\n email: 'adam.denisov@devias.io',\r\n avatar: '/static/images/avatars/avatar_7.png',\r\n spent: '0.00',\r\n currency: '$',\r\n orders: 0,\r\n isProspect: true,\r\n isReturning: false,\r\n acceptsMarketing: true,\r\n updatedAt: moment()\r\n .subtract(3, 'days')\r\n .subtract(7, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'California, USA'\r\n },\r\n {\r\n id: '5e887a1fbefd7938eea9c981',\r\n name: 'Miller Edwards',\r\n email: 'miller.edwards@devias.io',\r\n avatar: '/static/images/avatars/avatar_8.png',\r\n spent: '0.00',\r\n currency: '$',\r\n orders: 0,\r\n isProspect: true,\r\n isReturning: false,\r\n acceptsMarketing: false,\r\n updatedAt: moment()\r\n .subtract(4, 'days')\r\n .subtract(5, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'California, USA'\r\n },\r\n {\r\n id: '5e887d0b3d090c1b8f162003',\r\n name: 'Emilee Simchenko',\r\n email: 'emilee.simchenko@devias.io',\r\n avatar: '/static/images/avatars/avatar_9.png',\r\n spent: '100.00',\r\n currency: '$',\r\n orders: 4,\r\n isProspect: false,\r\n isReturning: false,\r\n acceptsMarketing: true,\r\n updatedAt: moment()\r\n .subtract(4, 'days')\r\n .subtract(15, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'Nevada, USA'\r\n },\r\n {\r\n id: '5e88792be2d4cfb4bf0971d9',\r\n name: 'Elliott Stone',\r\n email: 'elliott.stone@devias.io',\r\n avatar: '/static/images/avatars/avatar_10.png',\r\n spent: '1,000.00',\r\n currency: '$',\r\n orders: 2,\r\n isProspect: false,\r\n isReturning: true,\r\n acceptsMarketing: true,\r\n updatedAt: moment()\r\n .subtract(5, 'days')\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'Michigan, USA'\r\n },\r\n {\r\n id: '5e8877da9a65442b11551975',\r\n name: 'Shen Zhi',\r\n email: 'shen.zhi@devias.io',\r\n avatar: '/static/images/avatars/avatar_11.png',\r\n spent: '0.00',\r\n orders: 0,\r\n isProspect: true,\r\n isReturning: false,\r\n acceptsMarketing: true,\r\n updatedAt: moment()\r\n .subtract(6, 'days')\r\n .subtract(8, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'Utah, USA'\r\n },\r\n {\r\n id: '5e8680e60cba5019c5ca6fda',\r\n name: 'Merrile Burgett',\r\n email: 'merrile.burgett@devias.io',\r\n avatar: '/static/images/avatars/avatar_12.png',\r\n spent: '200.00',\r\n currency: '$',\r\n orders: 7,\r\n isProspect: false,\r\n isReturning: true,\r\n acceptsMarketing: false,\r\n updatedAt: moment()\r\n .subtract(9, 'days')\r\n .subtract(1, 'hours')\r\n .toDate()\r\n .getTime(),\r\n location: 'Utah, USA'\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/management/customers/1').reply(200, {\r\n customer: {\r\n fullName: 'Ekaterina Tankova',\r\n email: 'ekaterina@devias.io',\r\n phone: '+55 748 327 439',\r\n state: 'Alabama',\r\n country: 'United States',\r\n zipCode: '240355',\r\n address1: 'Street John Wick, no. 7',\r\n address2: 'House #25',\r\n creditCard: '4142 **** **** **** ****',\r\n autoCC: false,\r\n verified: true,\r\n currency: '$',\r\n vat: 19,\r\n balance: 0\r\n }\r\n});\r\n\r\nmock.onGet('/api/management/customers/1/emails').reply(200, {\r\n emails: [\r\n {\r\n id: uuidv4(),\r\n description: 'Order confirmation',\r\n createdAt: moment()\r\n .subtract(3, 'days')\r\n .subtract(5, 'hours')\r\n .subtract(34, 'minutes')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n description: 'Order confirmation',\r\n createdAt: moment()\r\n .subtract(4, 'days')\r\n .subtract(11, 'hours')\r\n .subtract(49, 'minutes')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/management/customers/1/invoices').reply(200, {\r\n invoices: [\r\n {\r\n id: uuidv4(),\r\n date: moment()\r\n .toDate()\r\n .getTime(),\r\n description: 'Freelancer Subscription (12/05/2019 - 11/06/2019)',\r\n paymentMethod: 'Credit Card',\r\n value: '5.25',\r\n currency: '$',\r\n status: 'paid'\r\n },\r\n {\r\n id: uuidv4(),\r\n date: moment()\r\n .toDate()\r\n .getTime(),\r\n description: 'Freelancer Subscription (12/05/2019 - 11/06/2019)',\r\n paymentMethod: 'Credit Card',\r\n value: '5.25',\r\n currency: '$',\r\n status: 'paid'\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/management/customers/1/logs').reply(200, {\r\n logs: [\r\n {\r\n id: uuidv4(),\r\n status: 200,\r\n method: 'POST',\r\n route: '/api/purchase',\r\n desc: 'Purchase',\r\n IP: '84.234.243.42',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(2, 'minutes')\r\n .subtract(56, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n status: 522,\r\n error: 'Invalid credit card',\r\n method: 'POST',\r\n route: '/api/purchase',\r\n desc: 'Purchase',\r\n IP: '84.234.243.42',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(2, 'minutes')\r\n .subtract(56, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n status: 200,\r\n method: 'DELETE',\r\n route: '/api/products/d65654e/remove',\r\n desc: 'Cart remove',\r\n IP: '84.234.243.42',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(8, 'minutes')\r\n .subtract(23, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n status: 200,\r\n method: 'GET',\r\n route: '/api/products/d65654e/add',\r\n desc: 'Cart add',\r\n IP: '84.234.243.42',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(20, 'minutes')\r\n .subtract(54, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n status: 200,\r\n method: 'GET',\r\n route: '/api/products/c85727f/add',\r\n desc: 'Cart add',\r\n IP: '84.234.243.42',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(34, 'minutes')\r\n .subtract(16, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n status: 200,\r\n method: 'GET',\r\n route: '/api/products/c85727f',\r\n desc: 'View product',\r\n IP: '84.234.243.42',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(54, 'minutes')\r\n .subtract(30, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n status: 200,\r\n method: 'GET',\r\n route: '/api/products',\r\n desc: 'Get products',\r\n IP: '84.234.243.42',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(56, 'minutes')\r\n .subtract(40, 'seconds')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n status: 200,\r\n method: 'POST',\r\n route: '/api/login',\r\n desc: 'Login',\r\n IP: '84.234.243.42',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(57, 'minutes')\r\n .subtract(5, 'seconds')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/management/products').reply(200, {\r\n products: [\r\n {\r\n id: uuidv4(),\r\n name: 'Charlie Tulip Dress',\r\n image: '',\r\n isAvailable: true,\r\n isShippable: false,\r\n inventoryType: 'in_stock',\r\n quantity: 85,\r\n variants: 2,\r\n category: 'dress',\r\n attributes: ['Cotton'],\r\n price: 23.99,\r\n currency: '$',\r\n createdAt: moment()\r\n .subtract(1, 'days')\r\n .toDate()\r\n .getTime(),\r\n updatedAt: moment()\r\n .subtract(6, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n name: 'Kate Leopard Dress',\r\n image: '',\r\n isAvailable: false,\r\n isShippable: true,\r\n inventoryType: 'out_of_stock',\r\n quantity: 0,\r\n variants: 1,\r\n category: 'dress',\r\n attributes: ['Cotton'],\r\n price: 95.00,\r\n currency: '$',\r\n createdAt: moment()\r\n .subtract(3, 'days')\r\n .toDate()\r\n .getTime(),\r\n updatedAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(8, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n name: 'Layering Bracelets Collection',\r\n image: '',\r\n isAvailable: true,\r\n isShippable: false,\r\n inventoryType: 'in_stock',\r\n quantity: 48,\r\n variants: 5,\r\n category: 'jewelry',\r\n attributes: ['Variety of styles'],\r\n price: 155.00,\r\n currency: '$',\r\n createdAt: moment()\r\n .subtract(6, 'days')\r\n .toDate()\r\n .getTime(),\r\n updatedAt: moment()\r\n .subtract(1, 'days')\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: uuidv4(),\r\n name: 'Flared Sleeve Floral Blouse',\r\n image: '',\r\n isAvailable: false,\r\n isShippable: true,\r\n inventoryType: 'limited',\r\n quantity: 5,\r\n variants: 1,\r\n category: 'blouse',\r\n attributes: ['Polyester and Spandex'],\r\n price: 17.99,\r\n currency: '$',\r\n createdAt: moment()\r\n .subtract(12, 'days')\r\n .toDate()\r\n .getTime(),\r\n updatedAt: moment()\r\n .subtract(1, 'days')\r\n .subtract(7, 'hours')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/management/orders').reply(200, {\r\n orders: [\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(10, 'minutes')\r\n .toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Ekaterina Tankova'\r\n },\r\n payment: {\r\n ref: 'FAD103',\r\n method: 'CreditCard',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'pending'\r\n },\r\n status: 'inactive'\r\n },\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(32, 'minutes')\r\n .subtract(23, 'seconds').toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Cao Yu'\r\n },\r\n payment: {\r\n ref: 'FAD102',\r\n method: 'CreditCard',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'pending'\r\n },\r\n status: 'inactive'\r\n },\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(36, 'minutes')\r\n .subtract(51, 'seconds').toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Alex Richardson'\r\n },\r\n payment: {\r\n ref: 'FAD101',\r\n method: 'PayPal',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'completed'\r\n },\r\n status: 'active'\r\n },\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(38, 'minutes')\r\n .subtract(55, 'seconds').toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Anje Keizer'\r\n },\r\n payment: {\r\n ref: 'FAD100',\r\n method: 'CreditCard',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'pending'\r\n },\r\n status: 'inactive'\r\n },\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(40, 'minutes')\r\n .subtract(3, 'seconds').toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Clarke Gillebert'\r\n },\r\n payment: {\r\n ref: 'FAD99',\r\n method: 'PayPal',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'completed'\r\n },\r\n status: 'active'\r\n },\r\n {\r\n id: '5e86805e2bafd54f66cc95c3',\r\n createdAt: moment()\r\n .subtract(45, 'minutes')\r\n .subtract(32, 'seconds').toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Adam Denisov'\r\n },\r\n payment: {\r\n ref: 'FAD98',\r\n method: 'PayPal',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'completed'\r\n },\r\n status: 'active'\r\n },\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(48, 'minutes')\r\n .subtract(57, 'seconds').toDate()\r\n .getTime(),\r\n customer: {\r\n id: '5e887a1fbefd7938eea9c981',\r\n name: 'Miller Edwards',\r\n avatar: '/static/images/avatars/avatar_8.png'\r\n },\r\n payment: {\r\n ref: 'FAD97',\r\n method: 'CreditCard',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'pending'\r\n },\r\n status: 'inactive'\r\n },\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(49, 'minutes')\r\n .subtract(4, 'seconds').toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Emilee Simchenko'\r\n },\r\n payment: {\r\n ref: 'FAD96',\r\n method: 'CreditCard',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'completed'\r\n },\r\n status: 'active'\r\n },\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(57, 'minutes')\r\n .subtract(43, 'seconds').toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Elliott Stone'\r\n },\r\n payment: {\r\n ref: 'FAD95',\r\n method: 'PayPal',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'rejected'\r\n },\r\n status: 'inactive'\r\n },\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(59, 'minutes')\r\n .subtract(6, 'seconds').toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Shen Zhi'\r\n },\r\n payment: {\r\n ref: 'FAD94',\r\n method: 'CreditCard',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'canceled'\r\n },\r\n status: 'inactive'\r\n },\r\n {\r\n id: uuidv4(),\r\n createdAt: moment()\r\n .subtract(1, 'hour')\r\n .subtract(15, 'minutes')\r\n .subtract(43, 'seconds')\r\n .toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Merrile Burgett'\r\n },\r\n payment: {\r\n ref: 'FAD93',\r\n method: 'PayPal',\r\n total: '500.00',\r\n currency: '$',\r\n status: 'canceled'\r\n },\r\n status: 'inactive'\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/management/orders/1').reply(200, {\r\n order: {\r\n id: uuidv4(),\r\n ref: 'FAD107',\r\n promoCode: null,\r\n value: '55.25',\r\n currency: '$',\r\n status: 'canceled',\r\n customer: {\r\n name: 'Ekaterina Tankova',\r\n address: 'Street King William, 42456',\r\n city: 'Montgomery',\r\n country: 'United States'\r\n },\r\n items: [\r\n {\r\n id: uuidv4(),\r\n name: 'Project Points',\r\n cuantity: 25,\r\n billing: 'monthly',\r\n status: 'completed',\r\n value: '50.25',\r\n currency: '$'\r\n },\r\n {\r\n id: uuidv4(),\r\n name: 'Freelancer Subscription',\r\n cuantity: 1,\r\n billing: 'monthly',\r\n status: 'completed',\r\n value: '5.00',\r\n currency: '$'\r\n }\r\n ],\r\n createdAt: moment()\r\n .toDate()\r\n .getTime()\r\n }\r\n});\r\n\r\nmock.onGet('/api/management/invoices').reply(200, {\r\n invoices: [\r\n {\r\n id: '28382843',\r\n currency: '$',\r\n amount: 65.28,\r\n status: 'paid',\r\n createdAt: moment()\r\n .subtract(1, 'hours')\r\n .toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Ana Henisky',\r\n email: 'contact@anahenisky.io'\r\n }\r\n },\r\n {\r\n id: '28382845',\r\n currency: '$',\r\n amount: 253.76,\r\n status: 'pending',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .subtract(5, 'hours')\r\n .toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Matt Jason',\r\n email: 'sales@matt-jason.com'\r\n }\r\n },\r\n {\r\n id: '28382345',\r\n currency: '$',\r\n amount: 781.50,\r\n status: 'canceled',\r\n createdAt: moment()\r\n .subtract(6, 'days')\r\n .subtract(4, 'hours')\r\n .toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Terry Thomas',\r\n email: 'support@terrythomas.io'\r\n }\r\n },\r\n {\r\n id: '283823653',\r\n currency: '$',\r\n amount: 96.64,\r\n status: 'paid',\r\n createdAt: moment()\r\n .subtract(15, 'days')\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime(),\r\n customer: {\r\n name: 'Triv Shopper',\r\n email: 'contact@triv-shopper.co.uk'\r\n }\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/management/invoices/1').reply(200, {\r\n invoice: {\r\n id: '765ed153',\r\n dueDate: moment()\r\n .toDate()\r\n .getTime(),\r\n issueDate: moment()\r\n .add(15, 'days')\r\n .toDate()\r\n .getTime(),\r\n ref: 'DEV-9483',\r\n customer: {\r\n name: 'Tracey Herman',\r\n company: 'Countdown Grey Lynn',\r\n taxId: '6934656584231',\r\n address: '271 Richmond Rd, Grey Lynn, Auckland 1022, New Zealand'\r\n },\r\n products: [\r\n {\r\n id: uuidv4(),\r\n desc: 'Freelancer Subscription (12/05/2019 - 11/06/2019)',\r\n value: '55.50'\r\n }\r\n ],\r\n subtotal: '50.00',\r\n taxes: '5.50',\r\n total: '55.50',\r\n currency: '$',\r\n createdAt: moment()\r\n .toDate()\r\n .getTime()\r\n }\r\n});\r\n","import moment from 'moment';\r\nimport { colors } from '@material-ui/core';\r\nimport mock from 'src/utils/mock';\r\n\r\nmock.onGet('/api/calendar').reply(200, {\r\n draft: [],\r\n events: [\r\n {\r\n id: '5e8882e440f6322fa399eeb8',\r\n allDay: false,\r\n color: colors.green['700'],\r\n description: 'Inform about new contract',\r\n end: moment()\r\n .subtract(6, 'days')\r\n .hours(19)\r\n .minutes(0)\r\n .toDate()\r\n .getTime(),\r\n start: moment()\r\n .subtract(6, 'days')\r\n .hours(17)\r\n .minutes(30)\r\n .toDate()\r\n .getTime(),\r\n title: 'Call Samantha'\r\n },\r\n {\r\n id: '5e8882eb5f8ec686220ff131',\r\n allDay: false,\r\n color: null,\r\n description: 'Discuss about new partnership',\r\n end: moment()\r\n .add(2, 'days')\r\n .hours(15)\r\n .minutes(30)\r\n .toDate()\r\n .getTime(),\r\n start: moment()\r\n .add(2, 'days')\r\n .hours(12)\r\n .minutes(0)\r\n .toDate()\r\n .getTime(),\r\n title: 'Meet with IBM'\r\n },\r\n {\r\n id: '5e8882f1f0c9216396e05a9b',\r\n allDay: false,\r\n color: null,\r\n description: 'Prepare docs',\r\n end: moment()\r\n .add(5, 'days')\r\n .hours(12)\r\n .minutes(0)\r\n .toDate()\r\n .getTime(),\r\n start: moment()\r\n .add(5, 'days')\r\n .hours(8)\r\n .minutes(0)\r\n .toDate()\r\n .getTime(),\r\n title: 'SCRUM Planning'\r\n },\r\n {\r\n id: '5e8882f6daf81eccfa40dee2',\r\n allDay: true,\r\n color: null,\r\n description: 'Meet with team to discuss',\r\n end: moment()\r\n .subtract(11, 'days')\r\n .startOf('day')\r\n .toDate()\r\n .getTime(),\r\n start: moment()\r\n .subtract(12, 'days')\r\n .endOf('day')\r\n .toDate()\r\n .getTime(),\r\n title: 'Beign SEM'\r\n },\r\n {\r\n id: '5e8882fcd525e076b3c1542c',\r\n allDay: false,\r\n color: colors.green['700'],\r\n description: 'Sorry, John!',\r\n end: moment()\r\n .add(3, 'days')\r\n .hours(7)\r\n .minutes(31)\r\n .toDate()\r\n .getTime(),\r\n start: moment()\r\n .add(3, 'days')\r\n .hours(7)\r\n .minutes(30)\r\n .toDate()\r\n .getTime(),\r\n title: 'Fire John'\r\n },\r\n {\r\n id: '5e888302e62149e4b49aa609',\r\n allDay: false,\r\n color: null,\r\n description: 'Discuss about the new project',\r\n end: moment()\r\n .subtract(6, 'days')\r\n .hours(9)\r\n .minutes(30)\r\n .toDate()\r\n .getTime(),\r\n start: moment()\r\n .subtract(6, 'days')\r\n .hours(9)\r\n .minutes(0)\r\n .toDate()\r\n .getTime(),\r\n title: 'Call Alex'\r\n },\r\n {\r\n id: '5e88830672d089c53c46ece3',\r\n allDay: false,\r\n color: colors.green['700'],\r\n description: 'Get a new quote for the payment processor',\r\n end: moment()\r\n .hours(17)\r\n .minutes(30)\r\n .toDate()\r\n .getTime(),\r\n start: moment()\r\n .hours(15)\r\n .minutes(30)\r\n .toDate()\r\n .getTime(),\r\n title: 'Visit Samantha'\r\n }\r\n ]\r\n});\r\n","import moment from 'moment';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport mock from 'src/utils/mock';\r\nimport _ from 'lodash';\r\n\r\nconst db = {\r\n contacts: [\r\n {\r\n id: '5e8891ab188cd2855e6029b7',\r\n avatar: '/static/images/avatars/avatar_1.png',\r\n isActive: true,\r\n lastActivity: moment()\r\n .toDate()\r\n .getTime(),\r\n name: 'Cooper Murray',\r\n username: 'cooper.murray'\r\n },\r\n {\r\n id: '5e887a62195cc5aef7e8ca5d',\r\n avatar: '/static/images/avatars/avatar_2.png',\r\n isActive: false,\r\n lastActivity: moment()\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime(),\r\n name: 'Ekaterina Tankova',\r\n username: 'ekaterina.tankova'\r\n },\r\n {\r\n id: '5e887ac47eed253091be10cb',\r\n avatar: '/static/images/avatars/avatar_3.png',\r\n isActive: false,\r\n lastActivity: moment()\r\n .subtract(15, 'minutes')\r\n .toDate()\r\n .getTime(),\r\n name: 'Cao Yu',\r\n username: 'cao.yu'\r\n },\r\n {\r\n id: '5e887b209c28ac3dd97f6db5',\r\n avatar: '/static/images/avatars/avatar_4.png',\r\n isActive: true,\r\n lastActivity: moment()\r\n .toDate()\r\n .getTime(),\r\n name: 'Alex Richardson',\r\n username: 'alex.richardson'\r\n },\r\n {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n avatar: '/static/images/avatars/avatar_5.png',\r\n isActive: true,\r\n lastActivity: moment()\r\n .toDate()\r\n .getTime(),\r\n name: 'Anje Keizer',\r\n username: 'anje.keizer'\r\n },\r\n {\r\n id: '5e86805e2bafd54f66cc95c3',\r\n avatar: '/static/images/avatars/avatar_7.png',\r\n isActive: false,\r\n lastActivity: moment()\r\n .subtract(2, 'days')\r\n .toDate()\r\n .getTime(),\r\n name: 'Adam Denisov',\r\n username: 'adam.denisov'\r\n },\r\n {\r\n id: '5e887a1fbefd7938eea9c981',\r\n avatar: '/static/images/avatars/avatar_8.png',\r\n isActive: false,\r\n lastActivity: moment()\r\n .subtract(6, 'hours')\r\n .toDate()\r\n .getTime(),\r\n name: 'Miller Edwards',\r\n username: 'miller.edwards'\r\n },\r\n {\r\n id: '5e887d0b3d090c1b8f162003',\r\n avatar: '/static/images/avatars/avatar_9.png',\r\n isActive: true,\r\n lastActivity: moment()\r\n .toDate()\r\n .getTime(),\r\n name: 'Emilee Simchenko',\r\n username: 'emilee.simchenko',\r\n },\r\n {\r\n id: '5e88792be2d4cfb4bf0971d9',\r\n avatar: '/static/images/avatars/avatar_10.png',\r\n isActive: true,\r\n lastActivity: moment()\r\n .toDate()\r\n .getTime(),\r\n name: 'Elliott Stone',\r\n username: 'elliott.stone'\r\n },\r\n {\r\n id: '5e8877da9a65442b11551975',\r\n avatar: '/static/images/avatars/avatar_11.png',\r\n isActive: true,\r\n lastActivity: moment()\r\n .toDate()\r\n .getTime(),\r\n name: 'Shen Zhi',\r\n username: 'shen.zhi'\r\n },\r\n {\r\n id: '5e8680e60cba5019c5ca6fda',\r\n avatar: '/static/images/avatars/avatar_12.png',\r\n isActive: true,\r\n lastActivity: moment()\r\n .toDate()\r\n .getTime(),\r\n name: 'Merrile Burgett',\r\n username: 'merrile.burgett'\r\n }\r\n ],\r\n threads: [\r\n {\r\n id: '5e867eb9de721aecaccf4f7b',\r\n key: 'adam.denisov',\r\n type: 'ONE_TO_ONE',\r\n messages: [\r\n {\r\n id: '5e867f0a5bc0ff2bfa07bfa6',\r\n body: 'Hey, nice projects! I really liked the one in react. What\\'s your quote on kinda similar project?',\r\n contentType: 'text',\r\n createdAt: moment()\r\n .subtract(10, 'hours')\r\n .toDate()\r\n .getTime(),\r\n senderId: '5e86805e2bafd54f66cc95c3'\r\n },\r\n {\r\n id: '5e867f167d5f78109ae9f2a4',\r\n body: 'I would need to know more details, but my hourly rate stats at $35/hour. Thanks!',\r\n contentType: 'text',\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime(),\r\n senderId: '5e86809283e28b96d2d38537'\r\n },\r\n {\r\n id: '5e867f1c9ca72084693528f4',\r\n body: 'Well it\\'s a really easy one, I\\'m sure we can make it half of the price.',\r\n contentType: 'text',\r\n createdAt: moment()\r\n .subtract(5, 'minutes')\r\n .toDate()\r\n .getTime(),\r\n senderId: '5e86809283e28b96d2d38537'\r\n },\r\n {\r\n id: '5e867f22fd2e27a09849b4db',\r\n body: 'Then why don\\'t you make it if it\\'s that easy? Sorry I\\'m not interetes, have fantastic day Adam!',\r\n contentType: 'text',\r\n createdAt: moment()\r\n .subtract(3, 'minutes')\r\n .toDate()\r\n .getTime(),\r\n senderId: '5e86805e2bafd54f66cc95c3'\r\n },\r\n {\r\n id: '5e867f28a34d45ac6eb5c41f',\r\n body: 'Last offer, $25 per hour',\r\n contentType: 'text',\r\n createdAt: moment()\r\n .subtract(1, 'minute')\r\n .toDate()\r\n .getTime(),\r\n senderId: '5e86805e2bafd54f66cc95c3'\r\n },\r\n {\r\n id: '5e867f2dba984a3f78b33526',\r\n body: '/static/images/projects/project_4.png',\r\n contentType: 'image',\r\n createdAt: moment()\r\n .subtract(1, 'minute')\r\n .toDate()\r\n .getTime(),\r\n senderId: '5e86805e2bafd54f66cc95c3'\r\n },\r\n ],\r\n participantIds: [\r\n '5e86805e2bafd54f66cc95c3',\r\n '5e86809283e28b96d2d38537'\r\n ],\r\n unreadCount: 2\r\n },\r\n {\r\n id: '5e867fa7082c3c5921403a26',\r\n key: 'merrile.burgett',\r\n type: 'ONE_TO_ONE',\r\n messages: [\r\n {\r\n id: '5e867fc180837d901bd9bca1',\r\n body: 'Hey, would you like to collaborate?',\r\n contentType: 'text',\r\n createdAt: moment()\r\n .subtract(6, 'minutes')\r\n .toDate()\r\n .getTime(),\r\n senderId: '5e8680e60cba5019c5ca6fda'\r\n },\r\n {\r\n id: '5e8d6fb695df7971237fc173',\r\n body: 'I don\\'t think that\\'s ideal',\r\n contentType: 'text',\r\n createdAt: moment()\r\n .subtract(5, 'minutes')\r\n .toDate()\r\n .getTime(),\r\n senderId: '5e86809283e28b96d2d38537'\r\n }\r\n ],\r\n participantIds: [\r\n '5e8680e60cba5019c5ca6fda',\r\n '5e86809283e28b96d2d38537'\r\n ],\r\n unreadCount: 0\r\n }\r\n ]\r\n};\r\n\r\nmock.onGet('/api/chat/contacts').reply(200, {\r\n contacts: db.contacts\r\n});\r\n\r\nmock.onGet('/api/chat/threads').reply(200, {\r\n threads: db.threads\r\n});\r\n\r\nmock.onGet('/api/chat/thread').reply((config) => {\r\n const { threadKey } = config.params;\r\n const thread = db.threads.find((_thread) => _thread.key === threadKey);\r\n\r\n if (!thread) {\r\n return [200, { thread: null }];\r\n }\r\n\r\n return [200, { thread }];\r\n});\r\n\r\nmock.onGet('/api/chat/thread/mark-as-seen').reply((config) => {\r\n const { threadKey } = config.params;\r\n const thread = db.threads.find((_thread) => _thread.key === threadKey);\r\n\r\n if (thread) {\r\n thread.unreadCount = 0;\r\n }\r\n\r\n return [200, true];\r\n});\r\n\r\nmock.onPost('/api/chat/messages/new').reply((request) => {\r\n const { userId, threadKey, body } = JSON.parse(request.data);\r\n const message = {\r\n id: uuidv4(),\r\n body,\r\n contentType: 'text',\r\n createdAt: moment()\r\n .toDate()\r\n .getTime(),\r\n senderId: userId\r\n };\r\n\r\n let thread = db.threads.find((_thread) => _thread.key === threadKey);\r\n const otherUser = db.contacts.find((contact) => contact.username === threadKey);\r\n\r\n if (!thread) {\r\n thread = {\r\n id: uuidv4(),\r\n key: threadKey,\r\n type: 'ONE_TO_ONE',\r\n messages: [message],\r\n participantIds: [\r\n otherUser.id,\r\n userId\r\n ],\r\n unreadCount: 0\r\n };\r\n\r\n _.assign(db, {\r\n threads: [...db.threads, thread]\r\n });\r\n } else {\r\n _.assign(thread, {\r\n messages: [...thread.messages, message]\r\n });\r\n }\r\n\r\n return [200, {\r\n threadKey,\r\n otherUserId: otherUser.id,\r\n message\r\n }];\r\n});\r\n","import moment from 'moment';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport mock from 'src/utils/mock';\r\nimport _ from 'lodash';\r\n\r\nconst board = {\r\n lists: [\r\n {\r\n id: '5e849c39325dc5ef58e5a5db',\r\n name: 'Incoming',\r\n cardIds: [\r\n '5e849c8708bd72683b454747',\r\n '5e849c90fabe1f1f4b3557f6',\r\n '5e849c977ef6265938bfd90b',\r\n '5e849c9e34ee93bc7255c599'\r\n ]\r\n },\r\n {\r\n id: '5e849c2b38d238c33e516755',\r\n name: 'In progress',\r\n cardIds: [\r\n '5e849ca7d063dc3830d4b49c',\r\n '5e849cb5d0c6e8894451fdfa'\r\n ]\r\n }\r\n ],\r\n cards: [\r\n {\r\n id: '5e849c8708bd72683b454747',\r\n attachments: [],\r\n checklists: [\r\n {\r\n id: '5e84a8175c48d3f5b1d01972',\r\n name: 'Update home page',\r\n checkItems: [\r\n {\r\n id: '5e85af37da584c5e4bd8a06c',\r\n name: 'An item',\r\n state: 'complete'\r\n }\r\n ]\r\n }\r\n ],\r\n comments: [\r\n {\r\n id: '15e849c5a35d4dff4f88ebff6',\r\n cardId: '5e849c8708bd72683b454747',\r\n createdAt: moment()\r\n .subtract(5, 'days')\r\n .toDate()\r\n .getTime(),\r\n memberId: '5e887ac47eed253091be10cb',\r\n message: 'This is a comment'\r\n }\r\n ],\r\n cover: '/static/images/projects/project_3.png',\r\n description: 'Duis condimentum lacus finibus felis pellentesque, ac auctor nibh fermentum. Duis sed dui ante. Phasellus id eros tincidunt, dictum lorem vitae, pellentesque sem. Aenean eu enim sit amet mauris rhoncus mollis. Sed enim turpis, porta a felis et, luctus faucibus nisi. Phasellus et metus fermentum, ultrices arcu aliquam, facilisis justo. Cras nunc nunc, elementum sed euismod ut, maximus eget nibh. Phasellus condimentum lorem neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce sagittis pharetra eleifend. Suspendisse potenti.',\r\n due: moment()\r\n .add(7, 'days')\r\n .toDate()\r\n .getTime(),\r\n isSubscribed: false,\r\n listId: '5e849c39325dc5ef58e5a5db',\r\n memberIds: ['5e86809283e28b96d2d38537'],\r\n name: 'Call with sales of HubSpot'\r\n },\r\n {\r\n id: '5e849c90fabe1f1f4b3557f6',\r\n attachments: [],\r\n checklists: [],\r\n comments: [],\r\n cover: null,\r\n description: 'We are looking for vue experience and of course node js strong knowledge',\r\n due: moment()\r\n .add(6, 'days')\r\n .toDate()\r\n .getTime(),\r\n isSubscribed: true,\r\n listId: '5e849c39325dc5ef58e5a5db',\r\n memberIds: ['5e887b209c28ac3dd97f6db5', '5e887a62195cc5aef7e8ca5d'],\r\n name: 'Interview for the Asis. Sales Manager'\r\n },\r\n {\r\n id: '5e849c977ef6265938bfd90b',\r\n attachments: [],\r\n checklists: [],\r\n comments: [],\r\n cover: null,\r\n description: 'We nede to make it aggresive with pricing because it’s in their interest to acquire us',\r\n due: null,\r\n isSubscribed: false,\r\n listId: '5e849c39325dc5ef58e5a5db',\r\n memberIds: [],\r\n name: 'Change the height of the top bar because it looks too chunky',\r\n },\r\n {\r\n id: '5e849c9e34ee93bc7255c599',\r\n attachments: [],\r\n checklists: [],\r\n comments: [],\r\n cover: null,\r\n description: 'We nede to make it aggresive with pricing because it’s in their interest to acquire us',\r\n due: null,\r\n isSubscribed: false,\r\n listId: '5e849c39325dc5ef58e5a5db',\r\n memberIds: ['5e887ac47eed253091be10cb', '5e86809283e28b96d2d38537'],\r\n name: 'Integrate Stripe API'\r\n },\r\n {\r\n id: '5e849ca7d063dc3830d4b49c',\r\n attachments: [],\r\n checklists: [],\r\n comments: [],\r\n cover: null,\r\n description: 'We need to make it aggresive with pricing because it’s in their interest to acquire us',\r\n due: null,\r\n isSubscribed: true,\r\n listId: '5e849c2b38d238c33e516755',\r\n memberIds: ['5e887a62195cc5aef7e8ca5d'],\r\n name: 'Update the customer API for payments'\r\n },\r\n {\r\n id: '5e849cb5d0c6e8894451fdfa',\r\n attachments: [],\r\n checklists: [],\r\n comments: [],\r\n cover: null,\r\n description: 'We need to make it aggresive with pricing because it’s in their interest to acquire us',\r\n due: null,\r\n isSubscribed: true,\r\n listId: '5e849c2b38d238c33e516755',\r\n memberIds: [],\r\n name: 'Redesign the landing page'\r\n }\r\n ],\r\n members: [\r\n {\r\n id: '5e887a62195cc5aef7e8ca5d',\r\n name: 'Ekaterina Tankova',\r\n avatar: '/static/images/avatars/avatar_2.png'\r\n },\r\n {\r\n id: '5e887ac47eed253091be10cb',\r\n name: 'Cao Yu',\r\n avatar: '/static/images/avatars/avatar_3.png'\r\n },\r\n {\r\n id: '5e887b209c28ac3dd97f6db5',\r\n name: 'Alex Richardson',\r\n avatar: '/static/images/avatars/avatar_4.png'\r\n },\r\n {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n avatar: '/static/images/avatars/avatar_5.png'\r\n },\r\n {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Smith',\r\n avatar: '/static/images/avatars/avatar_6.png'\r\n }\r\n ]\r\n};\r\n\r\nmock.onGet('/api/kanban/board').reply(200, {\r\n board\r\n});\r\n\r\nmock.onPost('/api/kanban/board/lists/new').reply((request) => {\r\n const { name } = JSON.parse(request.data);\r\n const list = {\r\n id: uuidv4(),\r\n name,\r\n cardIds: []\r\n };\r\n\r\n _.assign(board, {\r\n lists: [...board.lists, list]\r\n });\r\n\r\n return [200, { list }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/list/update').reply((request) => {\r\n const { listId, update } = JSON.parse(request.data);\r\n const list = board.lists.find((_list) => _list.id === listId);\r\n\r\n _.assign(list, update);\r\n\r\n return [200, { list }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/lists/clear').reply((request) => {\r\n const { listId } = JSON.parse(request.data);\r\n\r\n _.assign(board, {\r\n lists: _.map(board.lists, (list) => {\r\n if (list.id === listId) {\r\n _.assign(list, {\r\n cardIds: []\r\n });\r\n }\r\n\r\n return list;\r\n }),\r\n cards: board.cards.filter((card) => card.listId !== listId)\r\n });\r\n\r\n return [200, { listId }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/lists/remove').reply((request) => {\r\n const { listId } = JSON.parse(request.data);\r\n\r\n _.assign(board, {\r\n lists: _.reject(board.lists, { id: listId }),\r\n cards: board.cards.filter((card) => card.listId !== listId)\r\n });\r\n\r\n return [200, { listId }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/cards/new').reply((request) => {\r\n const { listId, name } = JSON.parse(request.data);\r\n const card = {\r\n id: uuidv4(),\r\n attachments: [],\r\n checklists: [],\r\n comments: [],\r\n cover: null,\r\n description: null,\r\n due: null,\r\n isSubscribed: false,\r\n listId,\r\n memberIds: [],\r\n name\r\n };\r\n\r\n _.assign(board, {\r\n cards: [...board.cards, card],\r\n lists: _.map(board.lists, (list) => {\r\n if (list.id === listId) {\r\n _.assign(list, {\r\n cardIds: [...list.cardIds, card.id]\r\n });\r\n }\r\n\r\n return list;\r\n })\r\n });\r\n\r\n return [200, { card }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/cards/update').reply((request) => {\r\n const { cardId, update } = JSON.parse(request.data);\r\n const card = board.cards.find((_card) => _card.id === cardId);\r\n\r\n _.assign(card, update);\r\n\r\n return [200, { card }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/cards/move').reply((request) => {\r\n const { cardId, position, listId } = JSON.parse(request.data);\r\n const card = board.cards.find((_card) => _card.id === cardId);\r\n const sourceList = board.lists.find((list) => list.id === card.listId);\r\n\r\n _.pull(sourceList.cardIds, cardId);\r\n\r\n if (listId) {\r\n const destinationList = board.lists.find((list) => list.id === card.listId);\r\n\r\n sourceList.cardIds.splice(destinationList, 0, card.id);\r\n card.listId = destinationList.id;\r\n } else {\r\n sourceList.cardIds.splice(position, 0, card.id);\r\n }\r\n\r\n return [200, true];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/cards/remove').reply((request) => {\r\n const { cardId } = JSON.parse(request.data);\r\n\r\n _.assign(board, {\r\n cards: _.reject(board.cards, { id: cardId }),\r\n lists: _.map(board.lists, (list) => {\r\n _.assign(list, {\r\n cardIds: list.cardIds.filter((_cardId) => _cardId !== cardId)\r\n });\r\n\r\n return list;\r\n })\r\n });\r\n\r\n return [200, { cardId }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/cards/comments').reply((request) => {\r\n const { userId, cardId, message } = JSON.parse(request.data);\r\n const comment = {\r\n id: uuidv4(),\r\n cardId,\r\n createdAt: moment()\r\n .toDate()\r\n .getTime(),\r\n memberId: userId,\r\n message\r\n };\r\n\r\n _.assign(board, {\r\n cards: _.map(board.cards, (card) => {\r\n _.assign(card, {\r\n comments: [...card.comments, comment]\r\n });\r\n\r\n return card;\r\n })\r\n });\r\n\r\n return [200, { comment }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/checklists/new').reply((request) => {\r\n const { cardId, name } = JSON.parse(request.data);\r\n const checklist = {\r\n id: uuidv4(),\r\n name,\r\n checkItems: []\r\n };\r\n\r\n _.assign(board, {\r\n cards: _.map(board.cards, (card) => {\r\n if (card.id === cardId) {\r\n _.assign(card, {\r\n checklists: [...card.checklists, checklist]\r\n });\r\n }\r\n\r\n return card;\r\n })\r\n });\r\n\r\n return [200, { checklist }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/checklists/update').reply((request) => {\r\n const { cardId, checklistId, update } = JSON.parse(request.data);\r\n let checklist = null;\r\n\r\n _.assign(board, {\r\n cards: _.map(board.cards, (card) => {\r\n if (card.id === cardId) {\r\n _.map(card.checklists, (_checklist) => {\r\n if (_checklist.id === checklistId) {\r\n _.assign(_checklist, { ...update });\r\n checklist = _checklist;\r\n }\r\n\r\n return _checklist;\r\n });\r\n }\r\n\r\n return card;\r\n })\r\n });\r\n\r\n return [200, { checklist }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/checklists/remove').reply((request) => {\r\n const { cardId, checklistId } = JSON.parse(request.data);\r\n\r\n _.assign(board, {\r\n cards: _.map(board.cards, (card) => {\r\n if (card.id === cardId) {\r\n _.assign(card, {\r\n checklists: _.reject(card.checklists, { id: checklistId }),\r\n });\r\n }\r\n\r\n return card;\r\n })\r\n });\r\n\r\n return [200, true];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/checkitems/new').reply((request) => {\r\n const { cardId, checklistId, name } = JSON.parse(request.data);\r\n const checkItem = {\r\n id: uuidv4(),\r\n checklistId,\r\n name,\r\n status: 'incomplete'\r\n };\r\n\r\n _.assign(board, {\r\n cards: _.map(board.cards, (card) => {\r\n if (card.id === cardId) {\r\n _.assign(card, {\r\n checklists: card.checklists.map((checklist) => {\r\n if (checklist.id === checklistId) {\r\n _.assign(checklist, {\r\n checkItems: [...checklist.checkItems, checkItem]\r\n });\r\n }\r\n\r\n return checklist;\r\n })\r\n });\r\n }\r\n\r\n return card;\r\n })\r\n });\r\n\r\n return [200, { checkItem }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/checkitems/update').reply((request) => {\r\n const {\r\n cardId,\r\n checklistId,\r\n checkItemId,\r\n update\r\n } = JSON.parse(request.data);\r\n let checkItem = null;\r\n\r\n _.assign(board, {\r\n cards: _.map(board.cards, (card) => {\r\n if (card.id === cardId) {\r\n _.assign(card, {\r\n checklists: _.map(card.checklists, (checklist) => {\r\n if (checklist.id === checklistId) {\r\n _.assign(checklist, {\r\n checkItems: _.map(checklist.checkItems, (_checkItem) => {\r\n if (_checkItem.id === checkItemId) {\r\n _.assign(_checkItem, { ...update });\r\n checkItem = _checkItem;\r\n }\r\n\r\n return _checkItem;\r\n })\r\n });\r\n }\r\n\r\n return checklist;\r\n })\r\n });\r\n }\r\n\r\n return card;\r\n })\r\n });\r\n\r\n return [200, { checkItem }];\r\n});\r\n\r\nmock.onPost('/api/kanban/board/checkitems/remove').reply((request) => {\r\n const { cardId, checklistId, checkItemId } = JSON.parse(request.data);\r\n\r\n _.assign(board, {\r\n cards: _.map(board.cards, (card) => {\r\n if (card.id === cardId) {\r\n _.assign(card, {\r\n checklists: _.map(card.checklists, (checklist) => {\r\n if (checklist.id === checklistId) {\r\n _.assign(checklist, {\r\n checkItems: _.reject(checklist.checkItems, { id: checkItemId })\r\n });\r\n }\r\n\r\n return checklist;\r\n })\r\n });\r\n }\r\n\r\n return card;\r\n })\r\n });\r\n\r\n return [200, true];\r\n});\r\n","import moment from 'moment';\r\nimport { colors } from '@material-ui/core';\r\nimport mock from 'src/utils/mock';\r\n\r\nfunction filterMails(mails, labels, systemLabel, customLabel) {\r\n if (customLabel) {\r\n const label = labels.find((_label) => _label.name === customLabel);\r\n\r\n if (!label) {\r\n return [];\r\n }\r\n\r\n return mails.filter((mail) => mail.labelIds.includes(label.id));\r\n }\r\n\r\n if (systemLabel === 'all') {\r\n return mails;\r\n }\r\n\r\n // \"Starred\" can be both folder and filter\r\n if (['starred', 'important'].includes(systemLabel)) {\r\n if (systemLabel === 'starred') {\r\n return mails.filter((mail) => mail.isStarred);\r\n }\r\n\r\n if (systemLabel === 'important') {\r\n return mails.filter((mail) => mail.isImportant);\r\n }\r\n }\r\n\r\n if (['inbox', 'sent', 'drafts', 'trash', 'spam', 'starred'].includes(systemLabel)) {\r\n return mails.filter((mail) => mail.folder === systemLabel);\r\n }\r\n\r\n return [];\r\n}\r\n\r\nconst db = {\r\n labels: [\r\n {\r\n id: 'all',\r\n type: 'system_label',\r\n name: 'All Mail'\r\n },\r\n {\r\n id: 'inbox',\r\n type: 'system_label',\r\n name: 'Inbox',\r\n unreadCount: 1,\r\n totalCount: 0\r\n },\r\n {\r\n id: 'sent',\r\n type: 'system_label',\r\n name: 'Sent',\r\n unreadCount: 0,\r\n totalCount: 0\r\n },\r\n {\r\n id: 'drafts',\r\n type: 'system_label',\r\n name: 'Drafts',\r\n unreadCount: 0,\r\n totalCount: 0\r\n },\r\n {\r\n id: 'trash',\r\n type: 'system_label',\r\n name: 'Trash',\r\n unreadCount: 0,\r\n totalCount: 1\r\n },\r\n {\r\n id: 'spam',\r\n type: 'system_label',\r\n name: 'Spam',\r\n unreadCount: 1,\r\n totalCount: 1\r\n },\r\n {\r\n id: 'important',\r\n type: 'system_label',\r\n name: 'Important',\r\n unreadCount: 0,\r\n totalCount: 1\r\n },\r\n {\r\n id: 'starred',\r\n type: 'system_label',\r\n name: 'Starred',\r\n unreadCount: 1,\r\n totalCount: 1\r\n },\r\n {\r\n id: '5e892628d4bc60b4514d5d36',\r\n type: 'custom_label',\r\n name: 'Work',\r\n unreadCount: 1,\r\n totalCount: 1,\r\n color: colors.green[600]\r\n },\r\n {\r\n id: '5e8926820cf9ec6c834114ec',\r\n type: 'custom_label',\r\n name: 'Business',\r\n unreadCount: 0,\r\n totalCount: 2,\r\n color: colors.blue[600]\r\n },\r\n {\r\n id: '5e892696db60f561c43c6f81',\r\n type: 'custom_label',\r\n name: 'Personal',\r\n unreadCount: 0,\r\n totalCount: 1,\r\n color: colors.orange[600]\r\n }\r\n ],\r\n mails: [\r\n {\r\n id: '5e86bcc3e1b53b6365d71638',\r\n folder: 'Business',\r\n isUnread: true,\r\n isStarred: false,\r\n isImportant: true,\r\n labelIds: ['5e8926820cf9ec6c834114ec', '5e892696db60f561c43c6f81'],\r\n subject: 'Website redesign. Interested in collaboration',\r\n message: `\r\nHi Matt, I saw your work on instagram and would be interested in getting a quote for Logo and slider\r\n\r\nInteger velit massa, pharetra sed lacus eu, pulvinar faucibus ex. Ut pretium ex id turpis elementum, aliquam accumsan enim sollicitudin. Sed nec consectetur lorem, ac ullamcorper augue. Suspendisse tempus ligula suscipit finibus vehicula. Morbi viverra finibus lectus, egestas dictum mi mollis nec. Proin eget vehicula eros, sit amet molestie ipsum. Morbi feugiat, elit non placerat fringilla, leo risus tristique felis, sollicitudin tristique nibh arcu nec arcu. Maecenas vel turpis nibh. Etiam in lectus quis felis facilisis dictum. Morbi id vehicula lectus, vel imperdiet dolor. Phasellus consequat tempor tellus, quis placerat quam posuere eget. Mauris blandit, nisl eu sollicitudin tincidunt, tellus diam accumsan arcu, vel pharetra lectus est nec nisi. In sem dolor, mollis sed risus eu, mattis dictum lectus. Suspendisse urna est, finibus et urna non, tincidunt placerat eros.\r\n\r\nDonec viverra ipsum id auctor rutrum. Morbi consequat a nunc non interdum. Nulla accumsan eget felis a dictum. Cras rhoncus tortor eget velit fringilla suscipit. Donec quis arcu eu nibh aliquet auctor eget fringilla felis. Sed commodo efficitur massa. Proin maximus elit in suscipit laoreet. Integer pretium arcu ac mauris ullamcorper auctor. Vivamus tincidunt lacus eget purus feugiat tincidunt. Etiam feugiat gravida ullamcorper. Pellentesque cursus vehicula lectus et consectetur. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam ligula risus, congue eu pellentesque id, volutpat aliquam arcu. Donec efficitur ipsum id neque rhoncus viverra. Vestibulum hendrerit et eros eu bibendum.\r\n\r\n\r\nKind regards,\r\n\r\nEkaterina Tankova\r\n `,\r\n from: {\r\n name: 'Ekaterina Tankova',\r\n email: 'ekaterina.tankova@devias.io',\r\n avatar: '/static/images/avatars/avatar_2.png'\r\n },\r\n to: [\r\n {\r\n name: 'Katarina Smith',\r\n email: 'katarina.smith@devias.io',\r\n avatar: null\r\n }\r\n ],\r\n createdAt: moment()\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e86bcbd8406cd3055f2b6c8',\r\n folder: 'spam',\r\n isUnread: false,\r\n isStarred: true,\r\n isImportant: false,\r\n labelIds: [],\r\n subject: 'Amazing work',\r\n message: `\r\nHey, nice projects! I really liked the one in react. What's your quote on kinda similar project?\r\n `,\r\n from: {\r\n name: 'Adam Denisov',\r\n email: 'adam.denisov@devias.io',\r\n avatar: '/static/images/avatars/avatar_7.png'\r\n },\r\n to: [\r\n {\r\n name: 'Katarina Smith',\r\n email: 'katarina.smith@devias.io',\r\n avatar: null\r\n }\r\n ],\r\n createdAt: moment()\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e86bcb9fee1ec12453fa13b',\r\n folder: 'inbox',\r\n isUnread: false,\r\n isStarred: false,\r\n isImportant: false,\r\n subject: 'Flight reminder',\r\n labelIds: ['5e892628d4bc60b4514d5d36'],\r\n message: `\r\nDear Shen, Your flight is coming up soon. Please don’t forget to check in for your scheduled flight.\r\n `,\r\n from: {\r\n name: 'Miller Edwards',\r\n email: 'miller.edwards@devias.io',\r\n avatar: '/static/images/avatars/avatar_8.png'\r\n },\r\n to: [\r\n {\r\n name: 'Katarina Smith',\r\n email: 'katarina.smith@devias.io',\r\n avatar: null\r\n }\r\n ],\r\n createdAt: moment()\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e86bcb5575181a5e527e24f',\r\n folder: 'trash',\r\n isUnread: true,\r\n isStarred: false,\r\n isImportant: false,\r\n labelIds: ['5e8926820cf9ec6c834114ec'],\r\n subject: 'Posible candidates for the position',\r\n message: `\r\nMy market leading client has another fantastic opportunity for an experienced Software Developer to join them on a heavily remote basis\r\n `,\r\n from: {\r\n name: 'Cao Yu',\r\n email: 'cao.yu@devias.io',\r\n avatar: '/static/images/avatars/avatar_3.png'\r\n },\r\n to: [\r\n {\r\n name: 'Katarina Smith',\r\n email: 'katarina.smith@devias.io',\r\n avatar: null\r\n }\r\n ],\r\n createdAt: moment()\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n};\r\n\r\nmock.onGet('/api/mail/labels').reply(200, {\r\n labels: db.labels\r\n});\r\n\r\nmock.onGet('/api/mail/mails').reply((config) => {\r\n const { systemLabel, customLabel } = config.params;\r\n const mails = filterMails(\r\n db.mails,\r\n db.labels,\r\n systemLabel,\r\n customLabel\r\n );\r\n\r\n return [200, { mails }];\r\n});\r\n\r\nmock.onGet('/api/mail/mail').reply((config) => {\r\n const { mailId } = config.params;\r\n const mail = db.mails.find((_mail) => _mail.id === mailId);\r\n\r\n if (!mail) {\r\n return [404, { message: 'Mail not fount' }];\r\n }\r\n\r\n return [200, { mail }];\r\n});\r\n","import moment from 'moment';\r\nimport mock from 'src/utils/mock';\r\n\r\nmock.onGet('/api/projects/account/statistics').reply(200, {\r\n statistics: {\r\n payout: '4,250',\r\n projects: '12,500',\r\n visitors: '230',\r\n watching: '5'\r\n }\r\n});\r\n\r\nmock.onGet('/api/projects/account/projects').reply(200, {\r\n projects: [\r\n {\r\n id: '5e8dcf105a6732b3ed82cf7a',\r\n title: 'Ten80 Web Design',\r\n media: '/static/images/projects/project_3.png',\r\n author: {\r\n id: '5e86809283e28b96d2d38537',\r\n avatar: '/static/images/avatars/avatar_6.png',\r\n name: 'Katarina Smith'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'Angular JS',\r\n isLiked: true,\r\n likes: 57,\r\n rating: 3,\r\n subscribers: 5,\r\n updatedAt: moment()\r\n .subtract(24, 'minutes')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/projects/account/todos').reply(200, {\r\n todos: [\r\n {\r\n id: '5e8dd0b59fb490099917eb29',\r\n title: 'Finish the proposal design and contract for the client ASAP',\r\n deadline: moment()\r\n .subtract(2, 'days')\r\n .toDate()\r\n .getTime(),\r\n done: false\r\n },\r\n {\r\n id: '5e8dd0ba89c3f86059b41383',\r\n title: 'Finish the proposal design and contract for the client ASAP',\r\n deadline: moment()\r\n .toDate()\r\n .getTime(),\r\n done: false\r\n },\r\n {\r\n id: '5e8dd0c028284550358972c7',\r\n title: 'Upload the files for the client @Adrian Stefan with the fonts, assets exported and all the fancy svgs',\r\n deadline: moment()\r\n .add(2, 'days')\r\n .toDate()\r\n .getTime(),\r\n done: false\r\n },\r\n {\r\n id: '5e8dd0c549ceb790f8c41e96',\r\n title: 'Re-write the card component with hooks and context',\r\n deadline: moment()\r\n .add(5, 'days')\r\n .toDate()\r\n .getTime(),\r\n done: false\r\n },\r\n {\r\n id: '5e8dd0cb2fb6bf63b2e7d298',\r\n title: 'Send proposal for the fintech project',\r\n deadline: moment()\r\n .add(5, 'days')\r\n .toDate()\r\n .getTime(),\r\n done: false\r\n },\r\n {\r\n id: '5e8dd0d2ad70962ca35da534',\r\n title: 'Create todo app with react hooks just to get a better understanding of the concept',\r\n deadline: moment()\r\n .add(7, 'days')\r\n .toDate()\r\n .getTime(),\r\n done: true\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/projects/projects').reply(200, {\r\n projects: [\r\n {\r\n id: '5e8dcef8f95685ce21f16f3d',\r\n title: 'Mella Full Screen Slider',\r\n media: '/static/images/projects/project_1.png',\r\n description: `\r\nWe're looking for experienced Developers and Product Designers to\r\ncome aboard and help us build succesful businesses through software.\r\n `,\r\n author: {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n avatar: '/static/images/avatars/avatar_5.png'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'Vue JS',\r\n isLiked: true,\r\n likes: 7,\r\n rating: 5,\r\n subscribers: 2,\r\n updatedAt: moment()\r\n .subtract(24, 'minutes')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8dcf076c50b9d8e756a5a2',\r\n title: 'Dashboard Design',\r\n media: '/static/images/projects/project_2.png',\r\n description: `\r\nWe're looking for experienced Developers and Product Designers to\r\ncome aboard and help us build succesful businesses through software.\r\n `,\r\n author: {\r\n id: '5e887d0b3d090c1b8f162003',\r\n name: 'Emilee Simchenko',\r\n avatar: '/static/images/avatars/avatar_9.png'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'Angular',\r\n isLiked: false,\r\n likes: 12,\r\n rating: 4.5,\r\n subscribers: 3,\r\n updatedAt: moment()\r\n .subtract(1, 'hour')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8dcf105a6732b3ed82cf7a',\r\n title: 'Ten80 Web Design',\r\n media: '/static/images/projects/project_3.png',\r\n description: `\r\nWe're looking for experienced Developers and Product Designers to\r\ncome aboard and help us build succesful businesses through software.\r\n `,\r\n author: {\r\n id: '5e88792be2d4cfb4bf0971d9',\r\n name: 'Elliott Stone',\r\n avatar: '/static/images/avatars/avatar_10.png'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'Ember JS',\r\n isLiked: true,\r\n likes: 18,\r\n rating: 4.7,\r\n subscribers: 8,\r\n updatedAt: moment()\r\n .subtract(16, 'hour')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8dcf1cc7155d0e947dc27f',\r\n title: 'Neura e-commerce UI Kit',\r\n media: '/static/images/projects/project_4.png',\r\n description: `\r\nWe're looking for experienced Developers and Product Designers to\r\ncome aboard and help us build succesful businesses through software.\r\n `,\r\n author: {\r\n id: '5e8877da9a65442b11551975',\r\n name: 'Shen Zhi',\r\n avatar: '/static/images/avatars/avatar_11.png'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'Java Spring',\r\n isLiked: false,\r\n likes: 1,\r\n rating: 2,\r\n subscribers: 10,\r\n updatedAt: moment()\r\n .subtract(3, 'days')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8dcf252313876001e83221',\r\n title: 'Administrator Dashboard',\r\n media: '/static/images/projects/project_5.jpg',\r\n description: `\r\nWe're looking for experienced Developers and Product Designers to\r\ncome aboard and help us build succesful businesses through software.\r\n `,\r\n author: {\r\n id: '5e887ac47eed253091be10cb',\r\n name: 'Cao Yu',\r\n avatar: '/static/images/avatars/avatar_3.png'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'Django',\r\n isLiked: false,\r\n likes: 7,\r\n rating: 5,\r\n subscribers: 2,\r\n updatedAt: moment()\r\n .subtract(7, 'days')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8dcf4250d77c954b04902e',\r\n title: 'Kalli UI Kit',\r\n media: '',\r\n description: `\r\nWe're looking for experienced Developers and Product Designers to\r\ncome aboard and help us build succesful businesses through software.\r\n `,\r\n author: {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n avatar: '/static/images/avatars/avatar_5.png'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'React JS',\r\n isLiked: true,\r\n likes: 4,\r\n rating: 4.2,\r\n subscribers: 12,\r\n updatedAt: moment()\r\n .subtract(8, 'days')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/projects/projects/1').reply(200, {\r\n project: {\r\n active: true,\r\n endDate: moment()\r\n .add(14, 'days')\r\n .toDate()\r\n .getTime(),\r\n title: 'Develop a PDF Export App',\r\n author: {\r\n id: '5e887d0b3d090c1b8f162003',\r\n name: 'Emilee Simchenko',\r\n avatar: '/static/images/avatars/avatar_9.png',\r\n bio: 'We build beautiful functional themes for web professionals'\r\n },\r\n brief: `\r\nDesign files are attached in the files tab.\r\n\r\nDevelop the web app screens for our product called \"PDFace\". Please look at the wireframes, system activity workflow and read the section above to understand what we're trying to archive.\r\n\r\nThere's not many screens we need designed, but there will be modals and various other system triggered events that will need to be considered.\r\n\r\nThe project has been created in Sketch so let me know if there are any problems opening this project and I'll try to convert into a usable file.\r\n `,\r\n price: '12,500',\r\n currency: 'USD',\r\n tags: ['React JS'],\r\n members: [\r\n {\r\n id: '5e887a62195cc5aef7e8ca5d',\r\n name: 'Ekaterina Tankova',\r\n avatar: '/static/images/avatars/avatar_2.png',\r\n bio: 'Front End Developer'\r\n },\r\n {\r\n id: '5e887ac47eed253091be10cb',\r\n name: 'Cao Yu',\r\n avatar: '/static/images/avatars/avatar_3.png',\r\n bio: 'UX Designer'\r\n },\r\n {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n avatar: '/static/images/avatars/avatar_5.png',\r\n bio: 'Copyright'\r\n }\r\n ],\r\n files: [\r\n {\r\n id: '5e8dd0721b9e0fab56d7238b',\r\n name: 'example-project1.jpg',\r\n url: '/static/images/projects/project_4.png',\r\n mimeType: 'image/png',\r\n size: 1024 * 1024 * 3\r\n },\r\n {\r\n id: '5e8dd0784431995a30eb2586',\r\n name: 'docs.zip',\r\n url: '#',\r\n mimeType: 'application/zip',\r\n size: 1024 * 1024 * 25\r\n },\r\n {\r\n id: '5e8dd07cbb62749296ecee1c',\r\n name: 'example-project2.jpg',\r\n url: '/static/images/projects/project_1.png',\r\n mimeType: 'image/png',\r\n size: 1024 * 1024 * 2\r\n }\r\n ],\r\n activities: [\r\n {\r\n id: '5e8dd0828d628e6f40abdfe8',\r\n subject: 'Project owner',\r\n type: 'upload_file',\r\n description: 'has uploaded a new file',\r\n createdAt: moment()\r\n .subtract(23, 'minutes')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8dd0893a6725f2bb603617',\r\n subject: 'Adrian Stefan',\r\n type: 'join_team',\r\n description: 'joined team as a Front-End Developer',\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8dd08f44603e3300b75cf1',\r\n subject: 'Alexndru Robert',\r\n type: 'join_team',\r\n description: 'joined team as a Full Stack Developer',\r\n createdAt: moment()\r\n .subtract(9, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8dd0960f3f0fe04e64d8f4',\r\n subject: 'Project owner',\r\n type: 'price_change',\r\n description: 'raised the project budget',\r\n createdAt: moment()\r\n .subtract(2, 'days')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e8dd09db94421c502c53d13',\r\n subject: 'Contest',\r\n type: 'contest_created',\r\n description: 'created',\r\n createdAt: moment()\r\n .subtract(4, 'days')\r\n .toDate()\r\n .getTime()\r\n }\r\n ],\r\n subscribers: [\r\n {\r\n id: '5e887a62195cc5aef7e8ca5d',\r\n name: 'Ekaterina Tankova',\r\n avatar: '/static/images/avatars/avatar_2.png',\r\n cover: '/static/images/covers/cover_2.jpg',\r\n commonContacts: 12,\r\n labels: [\r\n 'User Experience',\r\n 'FrontEnd development',\r\n 'HTML5',\r\n 'VueJS',\r\n 'ReactJS'\r\n ]\r\n },\r\n {\r\n id: '5e887ac47eed253091be10cb',\r\n name: 'Cao Yu',\r\n avatar: '/static/images/avatars/avatar_3.png',\r\n cover: '/static/images/covers/cover_3.jpg',\r\n commonContacts: 5,\r\n labels: [\r\n 'User Interface',\r\n 'FullStack development',\r\n 'Angular',\r\n 'ExpressJS'\r\n ]\r\n },\r\n {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Smith',\r\n avatar: '/static/images/avatars/avatar_6.png',\r\n cover: '/static/images/covers/cover_1.jpg',\r\n commonContacts: 17,\r\n labels: [\r\n 'BackEnd development',\r\n 'Firebase',\r\n 'MongoDB',\r\n 'ExpressJS'\r\n ]\r\n }\r\n ],\r\n deadline: moment()\r\n .add(7, 'days')\r\n .toDate()\r\n .getTime(),\r\n updatedAt: moment()\r\n .subtract(23, 'minutes')\r\n .toDate()\r\n .getTime()\r\n }\r\n});\r\n","import moment from 'moment';\r\nimport mock from 'src/utils/mock';\r\n\r\nmock.onGet('/api/social/profile').reply(200, {\r\n user: {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Smith',\r\n email: 'katarina.smith@devias.io',\r\n bio: 'Sales Manager',\r\n avatar: '/static/images/avatars/avatar_6.png',\r\n cover: '/static/images/covers/cover_1.jpg',\r\n connectedStatus: 'not_connected',\r\n profileProgress: 50,\r\n quote: 'Everyone thinks of changing the world, but no one thinks of changing himself.',\r\n currentJob: {\r\n title: 'Product Designer',\r\n company: 'Devias IO'\r\n },\r\n previousJob: {\r\n title: 'UX Designer at',\r\n company: 'Focus Aesthetic Dyanmics'\r\n },\r\n currentCity: 'Bucharest',\r\n originCity: 'Rm. Valcea'\r\n }\r\n});\r\n\r\nmock.onGet('/api/social/feed').reply(200, {\r\n posts: [\r\n {\r\n id: '5e887fa38598b6fe61667757',\r\n author: {\r\n id: '5e88792be2d4cfb4bf0971d9',\r\n name: 'Elliott Stone',\r\n avatar: '/static/images/avatars/avatar_10.png'\r\n },\r\n message: 'Hey guys! What\\'s your favorite framework?',\r\n liked: true,\r\n likes: 1,\r\n comments: [\r\n {\r\n id: '5e887fb6c648772b52f860a8',\r\n author: {\r\n id: '5e8680e60cba5019c5ca6fda',\r\n name: 'Merrile Burgett',\r\n avatar: '/static/images/avatars/avatar_12.png'\r\n },\r\n message: 'I\\'ve been using Angular for the past 3 years',\r\n createdAt: moment()\r\n .subtract(3, 'hours')\r\n .toDate()\r\n .getTime()\r\n }\r\n ],\r\n createdAt: moment()\r\n .subtract(16, 'minutes')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e887faca2b7a1ddce01221a',\r\n author: {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Zhi',\r\n avatar: '/static/images/avatars/avatar_6.png'\r\n },\r\n message: 'Just made this home screen for a project, what-cha thinkin?',\r\n media: '/static/images/posts/post_1.png',\r\n liked: true,\r\n likes: 24,\r\n comments: [\r\n {\r\n id: '5e887fc17162ba254da30771',\r\n author: {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n avatar: '/static/images/avatars/avatar_5.png'\r\n },\r\n message: 'Could use some more statistics, but that’s me haha',\r\n createdAt: moment()\r\n .subtract(3, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e887fc759bebe8d5d54a2e5',\r\n author: {\r\n id: '5e887a1fbefd7938eea9c981',\r\n name: 'Miller Edwards',\r\n avatar: '/static/images/avatars/avatar_8.png'\r\n },\r\n message: 'Hmm, honestly this looks nice but I would change the shadow though',\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime()\r\n }\r\n ],\r\n createdAt: moment()\r\n .subtract(4, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e887faf03e78a5359765636',\r\n author: {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Smith',\r\n avatar: '/static/images/avatars/avatar_6.png'\r\n },\r\n message: 'As a human being, you are designed in a way that makes you incapable of experiencing any positive emotion unless you set an aim and progress towards it. What makes you happy is not, in fact, attaining it, but making progress towards it.',\r\n liked: false,\r\n likes: 65,\r\n comments: [\r\n {\r\n id: '5e887fde4992eca63b9e9ef5',\r\n author: {\r\n id: '5e8877da9a65442b11551975',\r\n name: 'Shen Zhi',\r\n avatar: '/static/images/avatars/avatar_11.png'\r\n },\r\n message: 'That’s actually deep. Thanks for the design, would you consider making an interaction?',\r\n createdAt: moment()\r\n .subtract(3, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e887feb11b7add1ebfcca78',\r\n author: {\r\n id: '5e887b209c28ac3dd97f6db5',\r\n name: 'Alex Richardson',\r\n avatar: '/static/images/avatars/avatar_4.png'\r\n },\r\n message: 'Oh... so sentimental',\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime()\r\n }\r\n ],\r\n createdAt: moment()\r\n .subtract(7, 'hours')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/social/users/1/posts').reply(200, {\r\n posts: [\r\n {\r\n id: '5e887faca2b7a1ddce01221a',\r\n author: {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Smith',\r\n avatar: '/static/images/avatars/avatar_6.png'\r\n },\r\n message: 'Just made this home screen for a project, what-cha thinkin?',\r\n media: '/static/images/posts/post_1.png',\r\n liked: true,\r\n likes: 24,\r\n comments: [\r\n {\r\n id: '5e887fc17162ba254da30771',\r\n author: {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n avatar: '/static/images/avatars/avatar_5.png'\r\n },\r\n message: 'Could use some more statistics, but that’s me haha',\r\n createdAt: moment()\r\n .subtract(3, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e887fc759bebe8d5d54a2e5',\r\n author: {\r\n id: '5e887a1fbefd7938eea9c981',\r\n name: 'Miller Edwards',\r\n avatar: '/static/images/avatars/avatar_8.png'\r\n },\r\n message: 'Hmm, honestly this looks nice but I would change the shadow though',\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime()\r\n }\r\n ],\r\n createdAt: moment()\r\n .subtract(4, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e887faf03e78a5359765636',\r\n author: {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Smith',\r\n avatar: '/static/images/avatars/avatar_6.png'\r\n },\r\n message: 'As a human being, you are designed in a way that makes you incapable of experiencing any positive emotion unless you set an aim and progress towards it. What makes you happy is not, in fact, attaining it, but making progress towards it.',\r\n liked: false,\r\n likes: 65,\r\n comments: [\r\n {\r\n id: '5e887fde4992eca63b9e9ef5',\r\n author: {\r\n id: '5e8877da9a65442b11551975',\r\n name: 'Shen Zhi',\r\n avatar: '/static/images/avatars/avatar_11.png'\r\n },\r\n message: 'That’s actually deep. Thanks for the design, would you consider making an interaction?',\r\n createdAt: moment()\r\n .subtract(3, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e887feb11b7add1ebfcca78',\r\n author: {\r\n id: '5e887b209c28ac3dd97f6db5',\r\n name: 'Alex Richardson',\r\n avatar: '/static/images/avatars/avatar_4.png'\r\n },\r\n message: 'Oh... so sentimental',\r\n createdAt: moment()\r\n .subtract(2, 'hours')\r\n .toDate()\r\n .getTime()\r\n }\r\n ],\r\n createdAt: moment()\r\n .subtract(7, 'hours')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/social/users/1/projects').reply(200, {\r\n projects: [\r\n {\r\n id: '5e88832046990a87d32e6caf',\r\n media: '/static/images/projects/project_2.png',\r\n title: 'Mella Full Screen Slider',\r\n author: {\r\n id: '5e887b7602bdbc4dbb234b27',\r\n name: 'Anje Keizer',\r\n avatar: '/static/images/avatars/avatar_5.png'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'Angular JS',\r\n liked: true,\r\n likes: 57,\r\n rating: 3,\r\n subscribers: 5,\r\n updatedAt: moment()\r\n .subtract(24, 'minutes')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e88832b7e1ddc356c94dcc2',\r\n media: '/static/images/projects/project_1.png',\r\n title: 'Dashboard Design',\r\n author: {\r\n id: '5e86809283e28b96d2d38537',\r\n name: 'Katarina Smith',\r\n avatar: '/static/images/avatars/avatar_6.png'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'React JS',\r\n liked: false,\r\n likes: 91,\r\n rating: 4.3,\r\n subscribers: 10,\r\n updatedAt: moment()\r\n .subtract(1, 'hour')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e888331f4107aa4013caada',\r\n media: '',\r\n title: 'Ten80 Web Design',\r\n author: {\r\n id: '5e86805e2bafd54f66cc95c3',\r\n name: 'Adam Denisov',\r\n avatar: '/static/images/avatars/avatar_7.png'\r\n },\r\n type: 'Full-Time',\r\n location: 'Europe',\r\n technology: 'Vue JS',\r\n liked: true,\r\n likes: 6,\r\n rating: 5,\r\n subscribers: 4,\r\n updatedAt: moment()\r\n .subtract(16, 'hour')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/social/users/1/reviews').reply(200, {\r\n reviews: [\r\n {\r\n id: '5e887f7404ed12e9afb71841',\r\n rating: 4,\r\n message: 'Shen was really great during the all time session we created the project',\r\n reviewer: {\r\n id: '5e887a62195cc5aef7e8ca5d',\r\n name: 'Ekaterina Tankova',\r\n avatar: '/static/images/avatars/avatar_2.png'\r\n },\r\n project: {\r\n title: 'Mella Full Screen Slider',\r\n price: '5,240.00'\r\n },\r\n pricePerHour: '43.00',\r\n hours: 31,\r\n currency: '$',\r\n createdAt: moment()\r\n .subtract(4, 'hours')\r\n .toDate()\r\n .getTime()\r\n },\r\n {\r\n id: '5e887f7b91b9b5330c49a318',\r\n rating: 5,\r\n reviewer: {\r\n id: '5e887ac47eed253091be10cb',\r\n name: 'Cao Yu',\r\n avatar: '/static/images/avatars/avatar_3.png'\r\n },\r\n project: {\r\n title: 'Dashboard Design',\r\n price: '3,680.00'\r\n },\r\n pricePerHour: '38.00',\r\n hours: 76,\r\n currency: '$',\r\n message: 'Being the savage\\'s bowsman, that is, the person who pulled the bow-oar in his boat (the second one from forward), it was my cheerful duty to attend upon him while taking that hard-scrabble scramble upon the dead whale\\'s back. You have seen Italian organ-boys holding a dancing-ape by a long cord. Just so, from the ship\\'s steep side, did I hold Queequeg down there in the sea, by what is technically called in the fishery a monkey-rope, attached to a strong strip of canvas belted round his waist.',\r\n createdAt: moment()\r\n .subtract(8, 'days')\r\n .toDate()\r\n .getTime()\r\n }\r\n ]\r\n});\r\n\r\nmock.onGet('/api/social/users/1/connections').reply(200, {\r\n connections: [\r\n {\r\n id: '5e887a62195cc5aef7e8ca5d',\r\n name: 'Ekaterina Tankova',\r\n avatar: '/static/images/avatars/avatar_2.png',\r\n common: 12,\r\n status: 'connected'\r\n },\r\n {\r\n id: '5e887ac47eed253091be10cb',\r\n name: 'Cao Yu',\r\n avatar: '/static/images/avatars/avatar_3.png',\r\n common: 10,\r\n status: 'rejected'\r\n },\r\n {\r\n id: '5e887b209c28ac3dd97f6db5',\r\n name: 'Alex Richardson',\r\n avatar: '/static/images/avatars/avatar_4.png',\r\n common: 8,\r\n status: 'pending'\r\n },\r\n {\r\n id: '5e86805e2bafd54f66cc95c3',\r\n name: 'Adam Denisov',\r\n avatar: '/static/images/avatars/avatar_7.png',\r\n common: 5,\r\n status: 'not_connected'\r\n },\r\n {\r\n id: '5e887a1fbefd7938eea9c981',\r\n name: 'Miller Edwards',\r\n avatar: '/static/images/avatars/avatar_8.png',\r\n common: 1,\r\n status: 'connected'\r\n }\r\n ]\r\n});\r\n","/* eslint-disable */\r\n// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in projection, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read http://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'projection' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit http://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See http://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","/* eslint-disable import/prefer-default-export */\r\nexport const THEMES = {\r\n LIGHT: 'LIGHT',\r\n ONE_DARK: 'ONE_DARK',\r\n UNICORN: 'UNICORN'\r\n};\r\n","export function restoreSettings() {\r\n let settings = null;\r\n\r\n try {\r\n const storedData = localStorage.getItem('settings');\r\n\r\n if (storedData) {\r\n settings = JSON.parse(storedData);\r\n }\r\n } catch (err) {\r\n // If stored data is not a strigified JSON this might fail,\r\n // that's why we catch the error\r\n }\r\n\r\n return settings;\r\n}\r\n\r\nexport function storeSettings(settings) {\r\n localStorage.setItem('settings', JSON.stringify(settings));\r\n}\r\n","import React, {\r\n createContext,\r\n useState,\r\n useEffect\r\n} from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'lodash';\r\nimport { THEMES } from 'src/constants';\r\nimport { storeSettings } from 'src/utils/settings';\r\n\r\nconst SettingsContext = createContext();\r\n\r\nconst defaultSettings = {\r\n direction: 'ltr',\r\n responsiveFontSizes: true,\r\n theme: THEMES.LIGHT\r\n};\r\n\r\nexport function SettingsProvider({ settings, children }) {\r\n const [currentSettings, setCurrentSettings] = useState(settings || defaultSettings);\r\n\r\n const handleSaveSettings = (updatedSettings = {}) => {\r\n const mergedSettings = _.merge({}, currentSettings, updatedSettings);\r\n\r\n setCurrentSettings(mergedSettings);\r\n storeSettings(mergedSettings);\r\n };\r\n\r\n useEffect(() => {\r\n document.dir = currentSettings.direction;\r\n }, [currentSettings]);\r\n\r\n return (\r\n