From 621fcfc041aeab609b38ed935089703c5346f2c5 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Fri, 21 Apr 2023 19:37:13 -0400 Subject: [PATCH] removing trubo --- .eslintrc.js | 4 +- apps/app/.env.example | 11 - apps/app/.eslintrc.js | 4 - apps/app/.prettierrc | 5 - apps/app/Dockerfile.dev | 12 - apps/app/Dockerfile.web | 51 - .../components/account/email-code-form.tsx | 199 -- .../account/email-password-form.tsx | 113 - .../components/account/email-signin-form.tsx | 24 - .../account/github-login-button.tsx | 47 - apps/app/components/account/google-login.tsx | 53 - apps/app/components/account/index.ts | 5 - apps/app/components/auth-screens/index.ts | 3 - .../auth-screens/not-authorized-view.tsx | 67 - .../components/auth-screens/project/index.ts | 1 - .../auth-screens/project/join-project.tsx | 68 - .../auth-screens/workspace/index.ts | 1 - .../auth-screens/workspace/not-a-member.tsx | 44 - apps/app/components/breadcrumbs/index.tsx | 60 - .../change-interface-theme.tsx | 45 - .../command-palette/change-issue-assignee.tsx | 108 - .../command-palette/change-issue-priority.tsx | 74 - .../command-palette/change-issue-state.tsx | 95 - .../command-palette/command-pallette.tsx | 879 ------ apps/app/components/command-palette/index.ts | 6 - .../command-palette/shortcuts-modal.tsx | 198 -- .../components/core/board-view/all-boards.tsx | 106 - .../core/board-view/board-header.tsx | 181 -- apps/app/components/core/board-view/index.ts | 4 - .../core/board-view/single-board.tsx | 190 -- .../core/board-view/single-issue.tsx | 416 --- .../core/bulk-delete-issues-modal.tsx | 221 -- .../core/calendar-view/calendar.tsx | 511 ---- .../components/core/calendar-view/index.ts | 1 - .../app/components/core/custom-theme-form.tsx | 267 -- .../components/core/custom-theme-modal.tsx | 65 - .../core/existing-issues-list-modal.tsx | 224 -- apps/app/components/core/feeds.tsx | 316 --- apps/app/components/core/filter-list.tsx | 350 --- .../components/core/gpt-assistant-modal.tsx | 204 -- .../components/core/image-picker-popover.tsx | 156 -- .../components/core/image-upload-modal.tsx | 190 -- apps/app/components/core/index.ts | 14 - .../components/core/issues-view-filter.tsx | 282 -- apps/app/components/core/issues-view.tsx | 546 ---- apps/app/components/core/link-modal.tsx | 128 - .../components/core/list-view/all-lists.tsx | 69 - apps/app/components/core/list-view/index.ts | 3 - .../core/list-view/single-issue.tsx | 365 --- .../components/core/list-view/single-list.tsx | 227 -- apps/app/components/core/sidebar/index.ts | 3 - .../components/core/sidebar/links-list.tsx | 72 - .../core/sidebar/progress-chart.tsx | 94 - .../core/sidebar/sidebar-progress-stats.tsx | 251 -- .../core/sidebar/single-progress-stats.tsx | 38 - apps/app/components/core/theme-switch.tsx | 60 - .../cycles/completed-cycles-list.tsx | 101 - apps/app/components/cycles/cycles-list.tsx | 88 - .../components/cycles/delete-cycle-modal.tsx | 192 -- apps/app/components/cycles/empty-cycle.tsx | 78 - apps/app/components/cycles/form.tsx | 223 -- apps/app/components/cycles/index.ts | 11 - apps/app/components/cycles/modal.tsx | 181 -- apps/app/components/cycles/select.tsx | 127 - apps/app/components/cycles/sidebar.tsx | 495 ---- .../components/cycles/single-cycle-card.tsx | 417 --- .../cycles/transfer-issues-modal.tsx | 170 -- .../app/components/cycles/transfer-issues.tsx | 56 - .../components/dnd/StrictModeDroppable.tsx | 23 - .../components/emoji-icon-picker/emojis.json | 1090 -------- .../components/emoji-icon-picker/helpers.ts | 26 - .../components/emoji-icon-picker/icons.json | 607 ---- .../components/emoji-icon-picker/index.tsx | 214 -- .../components/emoji-icon-picker/types.d.ts | 7 - .../create-update-estimate-modal.tsx | 407 --- .../estimates/delete-estimate-modal.tsx | 104 - apps/app/components/estimates/index.tsx | 3 - .../components/estimates/single-estimate.tsx | 145 - apps/app/components/icons/arrow-right.tsx | 24 - .../icons/assignment-clipboard-icon.tsx | 21 - apps/app/components/icons/attachment-icon.tsx | 59 - apps/app/components/icons/audio-file-icon.tsx | 9 - .../components/icons/backlog-state-icon.tsx | 21 - apps/app/components/icons/blocked-icon.tsx | 25 - apps/app/components/icons/blocker-icon.tsx | 25 - apps/app/components/icons/bolt-icon.tsx | 16 - .../components/icons/calendar-month-icon.tsx | 19 - apps/app/components/icons/cancel-icon.tsx | 16 - .../components/icons/cancelled-state-icon.tsx | 78 - apps/app/components/icons/check.tsx | 24 - apps/app/components/icons/clipboard-icon.tsx | 19 - apps/app/components/icons/cloud-upload.tsx | 24 - apps/app/components/icons/cmd-icon.tsx | 11 - apps/app/components/icons/cog.tsx | 24 - .../components/icons/color-pallette-icon.tsx | 24 - apps/app/components/icons/comment-icon.tsx | 16 - .../components/icons/completed-cycle-icon.tsx | 17 - .../components/icons/completed-state-icon.tsx | 69 - apps/app/components/icons/contrast-icon.tsx | 25 - apps/app/components/icons/css-file-icon.tsx | 9 - apps/app/components/icons/csv-file-icon.tsx | 9 - .../components/icons/current-cycle-icon.tsx | 17 - apps/app/components/icons/cycle-icon.tsx | 34 - .../components/icons/default-file-icon.tsx | 9 - apps/app/components/icons/discord-icon.tsx | 26 - apps/app/components/icons/doc-file-icon.tsx | 9 - apps/app/components/icons/document-icon.tsx | 18 - apps/app/components/icons/edit-icon.tsx | 19 - .../icons/ellipsis-horizontal-icon.tsx | 19 - .../app/components/icons/exclamation-icon.tsx | 16 - .../components/icons/external-link-icon.tsx | 38 - apps/app/components/icons/figma-file-icon.tsx | 9 - apps/app/components/icons/github-icon.tsx | 28 - apps/app/components/icons/grid-view-icons.tsx | 24 - apps/app/components/icons/heartbeat-icon.tsx | 27 - apps/app/components/icons/html-file-icon.tsx | 9 - apps/app/components/icons/img-file-icon.tsx | 9 - apps/app/components/icons/import-layers.tsx | 26 - apps/app/components/icons/index.ts | 75 - apps/app/components/icons/jpg-file-icon.tsx | 9 - apps/app/components/icons/js-file-icon.tsx | 9 - .../components/icons/layer-diagonal-icon.tsx | 26 - apps/app/components/icons/lock-icon.tsx | 16 - apps/app/components/icons/menu-icon.tsx | 19 - apps/app/components/icons/pdf-file-icon.tsx | 9 - .../components/icons/pencil-scribble-icon.tsx | 23 - .../components/icons/people-group-icon.tsx | 24 - apps/app/components/icons/plus-icon.tsx | 19 - apps/app/components/icons/png-file-icon.tsx | 9 - apps/app/components/icons/priority-icon.tsx | 20 - .../icons/question-mark-circle-icon.tsx | 20 - apps/app/components/icons/setting-icon.tsx | 24 - apps/app/components/icons/sheet-file-icon.tsx | 9 - .../components/icons/signal-cellular-icon.tsx | 19 - .../components/icons/stacked-layers-icon.tsx | 24 - .../components/icons/started-state-icon.tsx | 77 - .../app/components/icons/state-group-icon.tsx | 29 - apps/app/components/icons/svg-file-icon.tsx | 9 - apps/app/components/icons/tag-icon.tsx | 24 - apps/app/components/icons/target-icon.tsx | 20 - apps/app/components/icons/tick-mark-icon.tsx | 24 - apps/app/components/icons/transfer-icon.tsx | 16 - apps/app/components/icons/tune-icon.tsx | 19 - apps/app/components/icons/txt-file-icon.tsx | 9 - apps/app/components/icons/types.d.ts | 6 - .../components/icons/unstarted-state-icon.tsx | 59 - .../components/icons/upcoming-cycle-icon.tsx | 17 - apps/app/components/icons/user-group-icon.tsx | 24 - .../app/components/icons/user-icon-circle.tsx | 16 - apps/app/components/icons/user-icon.tsx | 19 - apps/app/components/icons/users.tsx | 24 - apps/app/components/icons/video-file-icon.tsx | 9 - apps/app/components/icons/view-list-icon.tsx | 24 - apps/app/components/icons/water-drop-icon.tsx | 24 - .../integration/delete-import-modal.tsx | 144 - .../components/integration/github/auth.tsx | 27 - .../integration/github/import-configure.tsx | 56 - .../integration/github/import-confirm.tsx | 27 - .../integration/github/import-data.tsx | 127 - .../integration/github/import-users.tsx | 55 - .../components/integration/github/index.ts | 9 - .../integration/github/repo-details.tsx | 105 - .../components/integration/github/root.tsx | 271 -- .../integration/github/select-repository.tsx | 95 - .../integration/github/single-user-select.tsx | 133 - apps/app/components/integration/guide.tsx | 157 -- apps/app/components/integration/index.ts | 10 - .../integration/jira/confirm-import.tsx | 49 - .../integration/jira/give-details.tsx | 178 -- .../integration/jira/import-users.tsx | 145 - apps/app/components/integration/jira/index.ts | 39 - .../integration/jira/jira-project-detail.tsx | 168 -- apps/app/components/integration/jira/root.tsx | 224 -- .../components/integration/single-import.tsx | 61 - .../integration/single-integration-card.tsx | 153 - apps/app/components/issues/activity.tsx | 372 --- .../components/issues/attachment-upload.tsx | 106 - apps/app/components/issues/attachments.tsx | 111 - .../components/issues/comment/add-comment.tsx | 98 - .../issues/comment/comment-card.tsx | 139 - apps/app/components/issues/comment/index.ts | 2 - .../issues/delete-attachment-modal.tsx | 138 - .../components/issues/delete-issue-modal.tsx | 142 - .../components/issues/description-form.tsx | 169 -- apps/app/components/issues/form.tsx | 486 ---- apps/app/components/issues/index.ts | 15 - apps/app/components/issues/modal.tsx | 255 -- .../components/issues/my-issues-list-item.tsx | 205 -- .../issues/parent-issues-list-modal.tsx | 225 -- .../app/components/issues/select/assignee.tsx | 74 - apps/app/components/issues/select/date.tsx | 70 - .../app/components/issues/select/estimate.tsx | 57 - apps/app/components/issues/select/index.ts | 8 - apps/app/components/issues/select/label.tsx | 217 -- apps/app/components/issues/select/parent.tsx | 28 - .../app/components/issues/select/priority.tsx | 42 - apps/app/components/issues/select/project.tsx | 66 - apps/app/components/issues/select/state.tsx | 83 - .../issues/sidebar-select/assignee.tsx | 87 - .../issues/sidebar-select/blocked.tsx | 301 -- .../issues/sidebar-select/blocker.tsx | 298 -- .../issues/sidebar-select/cycle.tsx | 114 - .../issues/sidebar-select/estimate.tsx | 74 - .../components/issues/sidebar-select/index.ts | 9 - .../issues/sidebar-select/module.tsx | 120 - .../issues/sidebar-select/parent.tsx | 95 - .../issues/sidebar-select/priority.tsx | 58 - .../issues/sidebar-select/state.tsx | 89 - apps/app/components/issues/sidebar.tsx | 654 ----- .../app/components/issues/sub-issues-list.tsx | 270 -- .../issues/view-select/assignee.tsx | 128 - .../issues/view-select/due-date.tsx | 60 - .../issues/view-select/estimate.tsx | 92 - .../components/issues/view-select/index.ts | 5 - .../issues/view-select/priority.tsx | 94 - .../components/issues/view-select/state.tsx | 112 - .../components/labels/create-label-modal.tsx | 189 -- .../labels/create-update-label-inline.tsx | 190 -- apps/app/components/labels/index.ts | 5 - .../components/labels/labels-list-modal.tsx | 177 -- .../components/labels/single-label-group.tsx | 166 -- apps/app/components/labels/single-label.tsx | 56 - .../modules/delete-module-modal.tsx | 130 - apps/app/components/modules/form.tsx | 187 -- apps/app/components/modules/index.ts | 7 - apps/app/components/modules/modal.tsx | 156 -- apps/app/components/modules/select/index.ts | 3 - .../components/modules/select/select-lead.tsx | 78 - .../modules/select/select-members.tsx | 75 - .../modules/select/select-status.tsx | 64 - .../modules/sidebar-select/index.ts | 3 - .../modules/sidebar-select/select-lead.tsx | 94 - .../modules/sidebar-select/select-members.tsx | 81 - .../modules/sidebar-select/select-status.tsx | 69 - apps/app/components/modules/sidebar.tsx | 562 ---- .../components/modules/single-module-card.tsx | 219 -- apps/app/components/onboarding/index.ts | 4 - .../components/onboarding/invite-members.tsx | 86 - .../components/onboarding/onboarding-card.tsx | 29 - .../components/onboarding/user-details.tsx | 139 - apps/app/components/onboarding/workspace.tsx | 189 -- .../pages/create-update-block-inline.tsx | 316 --- .../pages/create-update-page-modal.tsx | 182 -- .../components/pages/delete-page-modal.tsx | 155 -- apps/app/components/pages/index.ts | 9 - apps/app/components/pages/page-form.tsx | 117 - .../pages/pages-list/all-pages-list.tsx | 30 - .../pages/pages-list/favorite-pages-list.tsx | 30 - apps/app/components/pages/pages-list/index.ts | 6 - .../pages/pages-list/my-pages-list.tsx | 30 - .../pages/pages-list/other-pages-list.tsx | 30 - .../pages/pages-list/recent-pages-list.tsx | 78 - apps/app/components/pages/pages-list/types.ts | 5 - apps/app/components/pages/pages-view.tsx | 278 -- .../components/pages/single-page-block.tsx | 454 --- .../pages/single-page-detailed-item.tsx | 217 -- .../pages/single-page-list-item.tsx | 214 -- .../project/confirm-project-member-remove.tsx | 95 - .../project/create-project-modal.tsx | 326 --- .../project/delete-project-modal.tsx | 182 -- apps/app/components/project/index.ts | 6 - .../components/project/join-project-modal.tsx | 86 - .../project/send-project-invitation-modal.tsx | 236 -- .../project/settings/single-label.tsx | 148 - apps/app/components/project/sidebar-list.tsx | 218 -- .../project/single-integration-card.tsx | 113 - .../project/single-project-card.tsx | 262 -- .../project/single-sidebar-project.tsx | 201 -- .../app/components/rich-text-editor/index.tsx | 242 -- .../rich-text-editor/mention-autocomplete.tsx | 64 - .../components/rich-text-editor/sample.tsx | 145 - .../toolbar/float-tool-tip.tsx | 68 - .../toolbar/heading-controls.tsx | 57 - .../rich-text-editor/toolbar/index.tsx | 35 - .../rich-text-editor/toolbar/link.tsx | 212 -- .../toolbar/table-controls.tsx | 55 - apps/app/components/search-listbox/index.tsx | 168 -- apps/app/components/search-listbox/types.d.ts | 15 - .../components/states/create-state-modal.tsx | 241 -- .../states/create-update-state-inline.tsx | 240 -- .../components/states/delete-state-modal.tsx | 158 -- apps/app/components/states/index.ts | 4 - apps/app/components/states/single-state.tsx | 205 -- apps/app/components/toast-alert/index.tsx | 67 - apps/app/components/ui/avatar.tsx | 128 - .../components/ui/buttons/danger-button.tsx | 36 - apps/app/components/ui/buttons/index.ts | 3 - .../components/ui/buttons/primary-button.tsx | 36 - .../ui/buttons/secondary-button.tsx | 36 - apps/app/components/ui/buttons/type.d.ts | 10 - apps/app/components/ui/context-menu.tsx | 103 - apps/app/components/ui/custom-menu.tsx | 175 -- .../components/ui/custom-search-select.tsx | 174 -- apps/app/components/ui/custom-select.tsx | 129 - apps/app/components/ui/date.tsx | 71 - apps/app/components/ui/datepicker.tsx | 52 - apps/app/components/ui/empty-space.tsx | 79 - apps/app/components/ui/empty-state.tsx | 77 - apps/app/components/ui/index.ts | 23 - apps/app/components/ui/input/index.tsx | 52 - apps/app/components/ui/input/types.d.ts | 15 - apps/app/components/ui/labels-list.tsx | 32 - .../ui/linear-progress-indicator.tsx | 32 - apps/app/components/ui/loader.tsx | 25 - apps/app/components/ui/multi-input.tsx | 74 - .../components/ui/multi-level-dropdown.tsx | 146 - apps/app/components/ui/multi-level-select.tsx | 155 -- apps/app/components/ui/outline-button.tsx | 60 - apps/app/components/ui/progress-bar.tsx | 69 - apps/app/components/ui/spinner.tsx | 23 - apps/app/components/ui/text-area/index.tsx | 82 - apps/app/components/ui/text-area/types.d.ts | 12 - apps/app/components/ui/toggle-switch.tsx | 32 - apps/app/components/ui/tooltip.tsx | 56 - .../components/views/delete-view-modal.tsx | 135 - apps/app/components/views/form.tsx | 152 - apps/app/components/views/index.ts | 5 - apps/app/components/views/modal.tsx | 146 - apps/app/components/views/select-filters.tsx | 182 -- .../app/components/views/single-view-item.tsx | 178 -- .../components/workspace/activity-graph.tsx | 141 - .../workspace/completed-issues-graph.tsx | 81 - .../confirm-workspace-member-remove.tsx | 95 - .../workspace/create-workspace-form.tsx | 201 -- .../workspace/delete-workspace-modal.tsx | 179 -- .../app/components/workspace/help-section.tsx | 158 -- apps/app/components/workspace/index.ts | 10 - apps/app/components/workspace/issues-list.tsx | 105 - .../components/workspace/issues-pie-chart.tsx | 123 - .../app/components/workspace/issues-stats.tsx | 74 - .../send-workspace-invitation-modal.tsx | 170 -- .../components/workspace/sidebar-dropdown.tsx | 235 -- .../app/components/workspace/sidebar-menu.tsx | 68 - .../workspace/single-invitation.tsx | 77 - apps/app/constants/calendar.ts | 22 - apps/app/constants/crisp.tsx | 44 - apps/app/constants/fetch-keys.ts | 165 -- apps/app/constants/issue.ts | 115 - apps/app/constants/module.ts | 8 - apps/app/constants/project.ts | 28 - apps/app/constants/seo-variables.ts | 8 - apps/app/constants/state.ts | 9 - apps/app/constants/themes.ts | 35 - apps/app/constants/workspace.ts | 85 - apps/app/contexts/issue-view.context.tsx | 593 ---- apps/app/contexts/project-member.context.tsx | 73 - apps/app/contexts/theme.context.tsx | 99 - apps/app/contexts/toast.context.tsx | 101 - apps/app/contexts/user.context.tsx | 41 - apps/app/contexts/workspace.context.tsx | 51 - apps/app/google.d.ts | 91 - apps/app/helpers/array.helper.ts | 35 - apps/app/helpers/attachment.helper.ts | 22 - apps/app/helpers/calendar.helper.ts | 161 -- apps/app/helpers/common.helper.ts | 38 - apps/app/helpers/date-time.helper.ts | 212 -- apps/app/helpers/state.helper.ts | 18 - apps/app/helpers/string.helper.ts | 89 - apps/app/helpers/theme.helper.ts | 35 - apps/app/hooks/use-debounce.tsx | 19 - apps/app/hooks/use-estimate-option.tsx | 44 - apps/app/hooks/use-integration-popup.tsx | 52 - apps/app/hooks/use-issue-properties.tsx | 104 - apps/app/hooks/use-issues-view.tsx | 161 -- apps/app/hooks/use-issues.tsx | 22 - apps/app/hooks/use-local-storage.tsx | 49 - apps/app/hooks/use-my-issues-filter.tsx | 127 - apps/app/hooks/use-outside-click-detector.tsx | 19 - apps/app/hooks/use-project-details.tsx | 32 - apps/app/hooks/use-project-members.tsx | 37 - apps/app/hooks/use-projects.tsx | 29 - apps/app/hooks/use-theme.tsx | 9 - apps/app/hooks/use-timer.tsx | 19 - apps/app/hooks/use-toast.tsx | 9 - apps/app/hooks/use-user.tsx | 13 - apps/app/hooks/use-workspace-details.tsx | 37 - apps/app/hooks/use-workspace-members.tsx | 43 - apps/app/hooks/use-workspaces.tsx | 31 - apps/app/layouts/app-layout/app-header.tsx | 30 - apps/app/layouts/app-layout/app-sidebar.tsx | 40 - apps/app/layouts/app-layout/index.tsx | 166 -- apps/app/layouts/auth-layout/index.ts | 2 - .../project-authorization-wrapper.tsx | 148 - .../user-authorization-wrapper.tsx | 40 - .../workspace-authorization-wrapper.tsx | 163 -- apps/app/layouts/container.tsx | 69 - apps/app/layouts/default-layout/index.tsx | 30 - apps/app/layouts/settings-navbar.tsx | 111 - apps/app/lib/auth.ts | 203 -- apps/app/lib/cookie.ts | 16 - apps/app/lib/redirect.ts | 16 - apps/app/manifest.json | 32 - apps/app/next-env.d.ts | 5 - apps/app/next.config.js | 29 - apps/app/package.json | 67 - apps/app/pages/404.tsx | 44 - apps/app/pages/[workspaceSlug]/index.tsx | 82 - .../pages/[workspaceSlug]/me/my-issues.tsx | 206 -- .../[workspaceSlug]/me/profile/activity.tsx | 46 - .../[workspaceSlug]/me/profile/index.tsx | 295 -- .../projects/[projectId]/cycles/[cycleId].tsx | 181 -- .../projects/[projectId]/cycles/index.tsx | 230 -- .../projects/[projectId]/issues/[issueId].tsx | 238 -- .../projects/[projectId]/issues/index.tsx | 66 - .../[projectId]/modules/[moduleId].tsx | 219 -- .../projects/[projectId]/modules/index.tsx | 129 - .../projects/[projectId]/pages/[pageId].tsx | 552 ---- .../projects/[projectId]/pages/index.tsx | 311 --- .../projects/[projectId]/settings/control.tsx | 239 -- .../[projectId]/settings/estimates.tsx | 166 -- .../[projectId]/settings/features.tsx | 272 -- .../projects/[projectId]/settings/index.tsx | 369 --- .../[projectId]/settings/integrations.tsx | 98 - .../projects/[projectId]/settings/labels.tsx | 181 -- .../projects/[projectId]/settings/members.tsx | 277 -- .../projects/[projectId]/settings/states.tsx | 150 - .../projects/[projectId]/views/[viewId].tsx | 110 - .../projects/[projectId]/views/index.tsx | 132 - .../pages/[workspaceSlug]/projects/index.tsx | 121 - .../[workspaceSlug]/settings/billing.tsx | 70 - .../settings/import-export.tsx | 30 - .../pages/[workspaceSlug]/settings/index.tsx | 343 --- .../[workspaceSlug]/settings/integrations.tsx | 66 - .../[workspaceSlug]/settings/members.tsx | 257 -- apps/app/pages/_app.tsx | 50 - apps/app/pages/_document.tsx | 38 - apps/app/pages/_error.js | 106 - apps/app/pages/api/track-event.ts | 53 - apps/app/pages/api/unsplash.ts | 23 - apps/app/pages/create-workspace.tsx | 44 - apps/app/pages/error.tsx | 21 - apps/app/pages/index.tsx | 66 - .../pages/installations/[provider]/index.tsx | 51 - apps/app/pages/invitations.tsx | 174 -- apps/app/pages/magic-sign-in.tsx | 105 - apps/app/pages/onboarding.tsx | 115 - apps/app/pages/signin.tsx | 140 - .../[invitationId].tsx | 148 - apps/app/postcss.config.js | 6 - apps/app/public/404.svg | 17 - apps/app/public/animated-icons/uploading.json | 1 - apps/app/public/attachment/audio-icon.png | Bin 10369 -> 0 bytes apps/app/public/attachment/css-icon.png | Bin 12703 -> 0 bytes apps/app/public/attachment/csv-icon.png | Bin 9681 -> 0 bytes apps/app/public/attachment/default-icon.png | Bin 6134 -> 0 bytes apps/app/public/attachment/doc-icon.png | Bin 15175 -> 0 bytes apps/app/public/attachment/excel-icon.png | Bin 6708 -> 0 bytes apps/app/public/attachment/figma-icon.png | Bin 15614 -> 0 bytes apps/app/public/attachment/html-icon.png | Bin 6665 -> 0 bytes apps/app/public/attachment/img-icon.png | Bin 10447 -> 0 bytes apps/app/public/attachment/jpg-icon.png | Bin 12088 -> 0 bytes apps/app/public/attachment/js-icon.png | Bin 10992 -> 0 bytes apps/app/public/attachment/pdf-icon.png | Bin 13038 -> 0 bytes apps/app/public/attachment/png-icon.png | Bin 12486 -> 0 bytes apps/app/public/attachment/svg-icon.png | Bin 12899 -> 0 bytes apps/app/public/attachment/txt-icon.png | Bin 11142 -> 0 bytes apps/app/public/attachment/video-icon.png | Bin 11673 -> 0 bytes apps/app/public/auth/join-project.svg | 52 - .../public/auth/project-not-authorized.svg | 44 - .../public/auth/workspace-not-authorized.svg | 44 - apps/app/public/empty-state/empty-cycle.svg | 50 - apps/app/public/empty-state/empty-issue.svg | 62 - apps/app/public/empty-state/empty-module.svg | 50 - apps/app/public/empty-state/empty-page.svg | 40 - apps/app/public/empty-state/empty-project.svg | 56 - apps/app/public/empty-state/empty-view.svg | 147 - .../public/favicon/android-chrome-192x192.png | Bin 2222 -> 0 bytes .../public/favicon/android-chrome-512x512.png | Bin 3832 -> 0 bytes apps/app/public/favicon/apple-touch-icon.png | Bin 2176 -> 0 bytes apps/app/public/favicon/favicon-16x16.png | Bin 1625 -> 0 bytes apps/app/public/favicon/favicon-32x32.png | Bin 1617 -> 0 bytes apps/app/public/favicon/favicon.ico | Bin 919 -> 0 bytes apps/app/public/favicon/site.webmanifest | 1 - apps/app/public/logo-with-text.png | Bin 46527 -> 0 bytes apps/app/public/logo.png | Bin 2460 -> 0 bytes apps/app/public/logos/github-black.png | Bin 14032 -> 0 bytes apps/app/public/logos/github-square.png | Bin 2352 -> 0 bytes apps/app/public/logos/github.png | Bin 16559 -> 0 bytes apps/app/public/mac-command.svg | 2 - apps/app/public/onboarding/command-menu.svg | 7 - apps/app/public/onboarding/cycle.svg | 43 - apps/app/public/onboarding/issue.svg | 43 - apps/app/public/onboarding/logo.svg | 6 - apps/app/public/onboarding/module.svg | 48 - apps/app/public/onboarding/welcome.svg | 5 - apps/app/public/services/github.png | Bin 2352 -> 0 bytes apps/app/public/services/jira.png | Bin 231268 -> 0 bytes apps/app/public/services/slack.png | Bin 19970 -> 0 bytes apps/app/public/sign-in-bg.png | Bin 201792 -> 0 bytes apps/app/public/sign-up-sideimg.svg | 57 - apps/app/public/site-image.png | Bin 8682 -> 0 bytes apps/app/public/site.webmanifest.json | 13 - apps/app/public/sw.js | 101 - apps/app/public/sw.js.map | 1 - apps/app/public/user.png | Bin 99267 -> 0 bytes apps/app/public/vercel.svg | 4 - apps/app/public/workbox-7805bd61.js | 2458 ----------------- apps/app/public/workbox-7805bd61.js.map | 1 - apps/app/sentry.client.config.js | 18 - apps/app/sentry.edge.config.js | 18 - apps/app/sentry.properties | 3 - apps/app/sentry.server.config.js | 18 - apps/app/services/ai.service.ts | 34 - apps/app/services/api.service.ts | 117 - .../app/services/app-installations.service.ts | 20 - apps/app/services/authentication.service.ts | 67 - apps/app/services/cycles.service.ts | 246 -- apps/app/services/estimates.service.ts | 74 - apps/app/services/file.service.ts | 86 - .../services/integration/github.service.ts | 51 - apps/app/services/integration/index.ts | 59 - apps/app/services/integration/jira.service.ts | 34 - apps/app/services/issues.service.ts | 490 ---- apps/app/services/modules.service.ts | 248 -- apps/app/services/pages.service.ts | 242 -- apps/app/services/project.service.ts | 312 --- apps/app/services/state.service.ts | 104 - apps/app/services/track-event.service.ts | 556 ---- apps/app/services/user.service.ts | 94 - apps/app/services/views.service.ts | 133 - apps/app/services/workspace.service.ts | 211 -- apps/app/styles/command-pallette.css | 39 - apps/app/styles/editor.css | 446 --- apps/app/styles/globals.css | 214 -- apps/app/styles/nprogress.css | 39 - apps/app/tailwind.config.js | 60 - apps/app/tsconfig.json | 9 - apps/app/types/ai.d.ts | 9 - apps/app/types/cycles.d.ts | 70 - apps/app/types/estimate.d.ts | 37 - apps/app/types/importer/github-importer.d.ts | 33 - apps/app/types/importer/index.ts | 34 - apps/app/types/importer/jira-importer.d.ts | 58 - apps/app/types/index.d.ts | 22 - apps/app/types/integration.d.ts | 35 - apps/app/types/issues.d.ts | 280 -- apps/app/types/modules.d.ts | 80 - apps/app/types/pages.d.ts | 54 - apps/app/types/projects.d.ts | 106 - apps/app/types/state.d.ts | 24 - apps/app/types/users.d.ts | 109 - apps/app/types/views.d.ts | 40 - apps/app/types/workspace.d.ts | 84 - docker-compose.yml | 35 +- nginx/nginx.conf | 29 +- package.json | 16 +- packages/eslint-config-custom/index.js | 20 - packages/eslint-config-custom/package.json | 19 - packages/tsconfig/base.json | 20 - packages/tsconfig/nextjs.json | 22 - packages/tsconfig/package.json | 10 - packages/tsconfig/react-library.json | 11 - packages/ui/button/index.tsx | 3 - packages/ui/index.tsx | 17 - packages/ui/package.json | 22 - packages/ui/tsconfig.json | 9 - turbo.json | 43 - 557 files changed, 38 insertions(+), 55220 deletions(-) delete mode 100644 apps/app/.env.example delete mode 100644 apps/app/.eslintrc.js delete mode 100644 apps/app/.prettierrc delete mode 100644 apps/app/Dockerfile.dev delete mode 100644 apps/app/Dockerfile.web delete mode 100644 apps/app/components/account/email-code-form.tsx delete mode 100644 apps/app/components/account/email-password-form.tsx delete mode 100644 apps/app/components/account/email-signin-form.tsx delete mode 100644 apps/app/components/account/github-login-button.tsx delete mode 100644 apps/app/components/account/google-login.tsx delete mode 100644 apps/app/components/account/index.ts delete mode 100644 apps/app/components/auth-screens/index.ts delete mode 100644 apps/app/components/auth-screens/not-authorized-view.tsx delete mode 100644 apps/app/components/auth-screens/project/index.ts delete mode 100644 apps/app/components/auth-screens/project/join-project.tsx delete mode 100644 apps/app/components/auth-screens/workspace/index.ts delete mode 100644 apps/app/components/auth-screens/workspace/not-a-member.tsx delete mode 100644 apps/app/components/breadcrumbs/index.tsx delete mode 100644 apps/app/components/command-palette/change-interface-theme.tsx delete mode 100644 apps/app/components/command-palette/change-issue-assignee.tsx delete mode 100644 apps/app/components/command-palette/change-issue-priority.tsx delete mode 100644 apps/app/components/command-palette/change-issue-state.tsx delete mode 100644 apps/app/components/command-palette/command-pallette.tsx delete mode 100644 apps/app/components/command-palette/index.ts delete mode 100644 apps/app/components/command-palette/shortcuts-modal.tsx delete mode 100644 apps/app/components/core/board-view/all-boards.tsx delete mode 100644 apps/app/components/core/board-view/board-header.tsx delete mode 100644 apps/app/components/core/board-view/index.ts delete mode 100644 apps/app/components/core/board-view/single-board.tsx delete mode 100644 apps/app/components/core/board-view/single-issue.tsx delete mode 100644 apps/app/components/core/bulk-delete-issues-modal.tsx delete mode 100644 apps/app/components/core/calendar-view/calendar.tsx delete mode 100644 apps/app/components/core/calendar-view/index.ts delete mode 100644 apps/app/components/core/custom-theme-form.tsx delete mode 100644 apps/app/components/core/custom-theme-modal.tsx delete mode 100644 apps/app/components/core/existing-issues-list-modal.tsx delete mode 100644 apps/app/components/core/feeds.tsx delete mode 100644 apps/app/components/core/filter-list.tsx delete mode 100644 apps/app/components/core/gpt-assistant-modal.tsx delete mode 100644 apps/app/components/core/image-picker-popover.tsx delete mode 100644 apps/app/components/core/image-upload-modal.tsx delete mode 100644 apps/app/components/core/index.ts delete mode 100644 apps/app/components/core/issues-view-filter.tsx delete mode 100644 apps/app/components/core/issues-view.tsx delete mode 100644 apps/app/components/core/link-modal.tsx delete mode 100644 apps/app/components/core/list-view/all-lists.tsx delete mode 100644 apps/app/components/core/list-view/index.ts delete mode 100644 apps/app/components/core/list-view/single-issue.tsx delete mode 100644 apps/app/components/core/list-view/single-list.tsx delete mode 100644 apps/app/components/core/sidebar/index.ts delete mode 100644 apps/app/components/core/sidebar/links-list.tsx delete mode 100644 apps/app/components/core/sidebar/progress-chart.tsx delete mode 100644 apps/app/components/core/sidebar/sidebar-progress-stats.tsx delete mode 100644 apps/app/components/core/sidebar/single-progress-stats.tsx delete mode 100644 apps/app/components/core/theme-switch.tsx delete mode 100644 apps/app/components/cycles/completed-cycles-list.tsx delete mode 100644 apps/app/components/cycles/cycles-list.tsx delete mode 100644 apps/app/components/cycles/delete-cycle-modal.tsx delete mode 100644 apps/app/components/cycles/empty-cycle.tsx delete mode 100644 apps/app/components/cycles/form.tsx delete mode 100644 apps/app/components/cycles/index.ts delete mode 100644 apps/app/components/cycles/modal.tsx delete mode 100644 apps/app/components/cycles/select.tsx delete mode 100644 apps/app/components/cycles/sidebar.tsx delete mode 100644 apps/app/components/cycles/single-cycle-card.tsx delete mode 100644 apps/app/components/cycles/transfer-issues-modal.tsx delete mode 100644 apps/app/components/cycles/transfer-issues.tsx delete mode 100644 apps/app/components/dnd/StrictModeDroppable.tsx delete mode 100644 apps/app/components/emoji-icon-picker/emojis.json delete mode 100644 apps/app/components/emoji-icon-picker/helpers.ts delete mode 100644 apps/app/components/emoji-icon-picker/icons.json delete mode 100644 apps/app/components/emoji-icon-picker/index.tsx delete mode 100644 apps/app/components/emoji-icon-picker/types.d.ts delete mode 100644 apps/app/components/estimates/create-update-estimate-modal.tsx delete mode 100644 apps/app/components/estimates/delete-estimate-modal.tsx delete mode 100644 apps/app/components/estimates/index.tsx delete mode 100644 apps/app/components/estimates/single-estimate.tsx delete mode 100644 apps/app/components/icons/arrow-right.tsx delete mode 100644 apps/app/components/icons/assignment-clipboard-icon.tsx delete mode 100644 apps/app/components/icons/attachment-icon.tsx delete mode 100644 apps/app/components/icons/audio-file-icon.tsx delete mode 100644 apps/app/components/icons/backlog-state-icon.tsx delete mode 100644 apps/app/components/icons/blocked-icon.tsx delete mode 100644 apps/app/components/icons/blocker-icon.tsx delete mode 100644 apps/app/components/icons/bolt-icon.tsx delete mode 100644 apps/app/components/icons/calendar-month-icon.tsx delete mode 100644 apps/app/components/icons/cancel-icon.tsx delete mode 100644 apps/app/components/icons/cancelled-state-icon.tsx delete mode 100644 apps/app/components/icons/check.tsx delete mode 100644 apps/app/components/icons/clipboard-icon.tsx delete mode 100644 apps/app/components/icons/cloud-upload.tsx delete mode 100644 apps/app/components/icons/cmd-icon.tsx delete mode 100644 apps/app/components/icons/cog.tsx delete mode 100644 apps/app/components/icons/color-pallette-icon.tsx delete mode 100644 apps/app/components/icons/comment-icon.tsx delete mode 100644 apps/app/components/icons/completed-cycle-icon.tsx delete mode 100644 apps/app/components/icons/completed-state-icon.tsx delete mode 100644 apps/app/components/icons/contrast-icon.tsx delete mode 100644 apps/app/components/icons/css-file-icon.tsx delete mode 100644 apps/app/components/icons/csv-file-icon.tsx delete mode 100644 apps/app/components/icons/current-cycle-icon.tsx delete mode 100644 apps/app/components/icons/cycle-icon.tsx delete mode 100644 apps/app/components/icons/default-file-icon.tsx delete mode 100644 apps/app/components/icons/discord-icon.tsx delete mode 100644 apps/app/components/icons/doc-file-icon.tsx delete mode 100644 apps/app/components/icons/document-icon.tsx delete mode 100644 apps/app/components/icons/edit-icon.tsx delete mode 100644 apps/app/components/icons/ellipsis-horizontal-icon.tsx delete mode 100644 apps/app/components/icons/exclamation-icon.tsx delete mode 100644 apps/app/components/icons/external-link-icon.tsx delete mode 100644 apps/app/components/icons/figma-file-icon.tsx delete mode 100644 apps/app/components/icons/github-icon.tsx delete mode 100644 apps/app/components/icons/grid-view-icons.tsx delete mode 100644 apps/app/components/icons/heartbeat-icon.tsx delete mode 100644 apps/app/components/icons/html-file-icon.tsx delete mode 100644 apps/app/components/icons/img-file-icon.tsx delete mode 100644 apps/app/components/icons/import-layers.tsx delete mode 100644 apps/app/components/icons/index.ts delete mode 100644 apps/app/components/icons/jpg-file-icon.tsx delete mode 100644 apps/app/components/icons/js-file-icon.tsx delete mode 100644 apps/app/components/icons/layer-diagonal-icon.tsx delete mode 100644 apps/app/components/icons/lock-icon.tsx delete mode 100644 apps/app/components/icons/menu-icon.tsx delete mode 100644 apps/app/components/icons/pdf-file-icon.tsx delete mode 100644 apps/app/components/icons/pencil-scribble-icon.tsx delete mode 100644 apps/app/components/icons/people-group-icon.tsx delete mode 100644 apps/app/components/icons/plus-icon.tsx delete mode 100644 apps/app/components/icons/png-file-icon.tsx delete mode 100644 apps/app/components/icons/priority-icon.tsx delete mode 100644 apps/app/components/icons/question-mark-circle-icon.tsx delete mode 100644 apps/app/components/icons/setting-icon.tsx delete mode 100644 apps/app/components/icons/sheet-file-icon.tsx delete mode 100644 apps/app/components/icons/signal-cellular-icon.tsx delete mode 100644 apps/app/components/icons/stacked-layers-icon.tsx delete mode 100644 apps/app/components/icons/started-state-icon.tsx delete mode 100644 apps/app/components/icons/state-group-icon.tsx delete mode 100644 apps/app/components/icons/svg-file-icon.tsx delete mode 100644 apps/app/components/icons/tag-icon.tsx delete mode 100644 apps/app/components/icons/target-icon.tsx delete mode 100644 apps/app/components/icons/tick-mark-icon.tsx delete mode 100644 apps/app/components/icons/transfer-icon.tsx delete mode 100644 apps/app/components/icons/tune-icon.tsx delete mode 100644 apps/app/components/icons/txt-file-icon.tsx delete mode 100644 apps/app/components/icons/types.d.ts delete mode 100644 apps/app/components/icons/unstarted-state-icon.tsx delete mode 100644 apps/app/components/icons/upcoming-cycle-icon.tsx delete mode 100644 apps/app/components/icons/user-group-icon.tsx delete mode 100644 apps/app/components/icons/user-icon-circle.tsx delete mode 100644 apps/app/components/icons/user-icon.tsx delete mode 100644 apps/app/components/icons/users.tsx delete mode 100644 apps/app/components/icons/video-file-icon.tsx delete mode 100644 apps/app/components/icons/view-list-icon.tsx delete mode 100644 apps/app/components/icons/water-drop-icon.tsx delete mode 100644 apps/app/components/integration/delete-import-modal.tsx delete mode 100644 apps/app/components/integration/github/auth.tsx delete mode 100644 apps/app/components/integration/github/import-configure.tsx delete mode 100644 apps/app/components/integration/github/import-confirm.tsx delete mode 100644 apps/app/components/integration/github/import-data.tsx delete mode 100644 apps/app/components/integration/github/import-users.tsx delete mode 100644 apps/app/components/integration/github/index.ts delete mode 100644 apps/app/components/integration/github/repo-details.tsx delete mode 100644 apps/app/components/integration/github/root.tsx delete mode 100644 apps/app/components/integration/github/select-repository.tsx delete mode 100644 apps/app/components/integration/github/single-user-select.tsx delete mode 100644 apps/app/components/integration/guide.tsx delete mode 100644 apps/app/components/integration/index.ts delete mode 100644 apps/app/components/integration/jira/confirm-import.tsx delete mode 100644 apps/app/components/integration/jira/give-details.tsx delete mode 100644 apps/app/components/integration/jira/import-users.tsx delete mode 100644 apps/app/components/integration/jira/index.ts delete mode 100644 apps/app/components/integration/jira/jira-project-detail.tsx delete mode 100644 apps/app/components/integration/jira/root.tsx delete mode 100644 apps/app/components/integration/single-import.tsx delete mode 100644 apps/app/components/integration/single-integration-card.tsx delete mode 100644 apps/app/components/issues/activity.tsx delete mode 100644 apps/app/components/issues/attachment-upload.tsx delete mode 100644 apps/app/components/issues/attachments.tsx delete mode 100644 apps/app/components/issues/comment/add-comment.tsx delete mode 100644 apps/app/components/issues/comment/comment-card.tsx delete mode 100644 apps/app/components/issues/comment/index.ts delete mode 100644 apps/app/components/issues/delete-attachment-modal.tsx delete mode 100644 apps/app/components/issues/delete-issue-modal.tsx delete mode 100644 apps/app/components/issues/description-form.tsx delete mode 100644 apps/app/components/issues/form.tsx delete mode 100644 apps/app/components/issues/index.ts delete mode 100644 apps/app/components/issues/modal.tsx delete mode 100644 apps/app/components/issues/my-issues-list-item.tsx delete mode 100644 apps/app/components/issues/parent-issues-list-modal.tsx delete mode 100644 apps/app/components/issues/select/assignee.tsx delete mode 100644 apps/app/components/issues/select/date.tsx delete mode 100644 apps/app/components/issues/select/estimate.tsx delete mode 100644 apps/app/components/issues/select/index.ts delete mode 100644 apps/app/components/issues/select/label.tsx delete mode 100644 apps/app/components/issues/select/parent.tsx delete mode 100644 apps/app/components/issues/select/priority.tsx delete mode 100644 apps/app/components/issues/select/project.tsx delete mode 100644 apps/app/components/issues/select/state.tsx delete mode 100644 apps/app/components/issues/sidebar-select/assignee.tsx delete mode 100644 apps/app/components/issues/sidebar-select/blocked.tsx delete mode 100644 apps/app/components/issues/sidebar-select/blocker.tsx delete mode 100644 apps/app/components/issues/sidebar-select/cycle.tsx delete mode 100644 apps/app/components/issues/sidebar-select/estimate.tsx delete mode 100644 apps/app/components/issues/sidebar-select/index.ts delete mode 100644 apps/app/components/issues/sidebar-select/module.tsx delete mode 100644 apps/app/components/issues/sidebar-select/parent.tsx delete mode 100644 apps/app/components/issues/sidebar-select/priority.tsx delete mode 100644 apps/app/components/issues/sidebar-select/state.tsx delete mode 100644 apps/app/components/issues/sidebar.tsx delete mode 100644 apps/app/components/issues/sub-issues-list.tsx delete mode 100644 apps/app/components/issues/view-select/assignee.tsx delete mode 100644 apps/app/components/issues/view-select/due-date.tsx delete mode 100644 apps/app/components/issues/view-select/estimate.tsx delete mode 100644 apps/app/components/issues/view-select/index.ts delete mode 100644 apps/app/components/issues/view-select/priority.tsx delete mode 100644 apps/app/components/issues/view-select/state.tsx delete mode 100644 apps/app/components/labels/create-label-modal.tsx delete mode 100644 apps/app/components/labels/create-update-label-inline.tsx delete mode 100644 apps/app/components/labels/index.ts delete mode 100644 apps/app/components/labels/labels-list-modal.tsx delete mode 100644 apps/app/components/labels/single-label-group.tsx delete mode 100644 apps/app/components/labels/single-label.tsx delete mode 100644 apps/app/components/modules/delete-module-modal.tsx delete mode 100644 apps/app/components/modules/form.tsx delete mode 100644 apps/app/components/modules/index.ts delete mode 100644 apps/app/components/modules/modal.tsx delete mode 100644 apps/app/components/modules/select/index.ts delete mode 100644 apps/app/components/modules/select/select-lead.tsx delete mode 100644 apps/app/components/modules/select/select-members.tsx delete mode 100644 apps/app/components/modules/select/select-status.tsx delete mode 100644 apps/app/components/modules/sidebar-select/index.ts delete mode 100644 apps/app/components/modules/sidebar-select/select-lead.tsx delete mode 100644 apps/app/components/modules/sidebar-select/select-members.tsx delete mode 100644 apps/app/components/modules/sidebar-select/select-status.tsx delete mode 100644 apps/app/components/modules/sidebar.tsx delete mode 100644 apps/app/components/modules/single-module-card.tsx delete mode 100644 apps/app/components/onboarding/index.ts delete mode 100644 apps/app/components/onboarding/invite-members.tsx delete mode 100644 apps/app/components/onboarding/onboarding-card.tsx delete mode 100644 apps/app/components/onboarding/user-details.tsx delete mode 100644 apps/app/components/onboarding/workspace.tsx delete mode 100644 apps/app/components/pages/create-update-block-inline.tsx delete mode 100644 apps/app/components/pages/create-update-page-modal.tsx delete mode 100644 apps/app/components/pages/delete-page-modal.tsx delete mode 100644 apps/app/components/pages/index.ts delete mode 100644 apps/app/components/pages/page-form.tsx delete mode 100644 apps/app/components/pages/pages-list/all-pages-list.tsx delete mode 100644 apps/app/components/pages/pages-list/favorite-pages-list.tsx delete mode 100644 apps/app/components/pages/pages-list/index.ts delete mode 100644 apps/app/components/pages/pages-list/my-pages-list.tsx delete mode 100644 apps/app/components/pages/pages-list/other-pages-list.tsx delete mode 100644 apps/app/components/pages/pages-list/recent-pages-list.tsx delete mode 100644 apps/app/components/pages/pages-list/types.ts delete mode 100644 apps/app/components/pages/pages-view.tsx delete mode 100644 apps/app/components/pages/single-page-block.tsx delete mode 100644 apps/app/components/pages/single-page-detailed-item.tsx delete mode 100644 apps/app/components/pages/single-page-list-item.tsx delete mode 100644 apps/app/components/project/confirm-project-member-remove.tsx delete mode 100644 apps/app/components/project/create-project-modal.tsx delete mode 100644 apps/app/components/project/delete-project-modal.tsx delete mode 100644 apps/app/components/project/index.ts delete mode 100644 apps/app/components/project/join-project-modal.tsx delete mode 100644 apps/app/components/project/send-project-invitation-modal.tsx delete mode 100644 apps/app/components/project/settings/single-label.tsx delete mode 100644 apps/app/components/project/sidebar-list.tsx delete mode 100644 apps/app/components/project/single-integration-card.tsx delete mode 100644 apps/app/components/project/single-project-card.tsx delete mode 100644 apps/app/components/project/single-sidebar-project.tsx delete mode 100644 apps/app/components/rich-text-editor/index.tsx delete mode 100644 apps/app/components/rich-text-editor/mention-autocomplete.tsx delete mode 100644 apps/app/components/rich-text-editor/sample.tsx delete mode 100644 apps/app/components/rich-text-editor/toolbar/float-tool-tip.tsx delete mode 100644 apps/app/components/rich-text-editor/toolbar/heading-controls.tsx delete mode 100644 apps/app/components/rich-text-editor/toolbar/index.tsx delete mode 100644 apps/app/components/rich-text-editor/toolbar/link.tsx delete mode 100644 apps/app/components/rich-text-editor/toolbar/table-controls.tsx delete mode 100644 apps/app/components/search-listbox/index.tsx delete mode 100644 apps/app/components/search-listbox/types.d.ts delete mode 100644 apps/app/components/states/create-state-modal.tsx delete mode 100644 apps/app/components/states/create-update-state-inline.tsx delete mode 100644 apps/app/components/states/delete-state-modal.tsx delete mode 100644 apps/app/components/states/index.ts delete mode 100644 apps/app/components/states/single-state.tsx delete mode 100644 apps/app/components/toast-alert/index.tsx delete mode 100644 apps/app/components/ui/avatar.tsx delete mode 100644 apps/app/components/ui/buttons/danger-button.tsx delete mode 100644 apps/app/components/ui/buttons/index.ts delete mode 100644 apps/app/components/ui/buttons/primary-button.tsx delete mode 100644 apps/app/components/ui/buttons/secondary-button.tsx delete mode 100644 apps/app/components/ui/buttons/type.d.ts delete mode 100644 apps/app/components/ui/context-menu.tsx delete mode 100644 apps/app/components/ui/custom-menu.tsx delete mode 100644 apps/app/components/ui/custom-search-select.tsx delete mode 100644 apps/app/components/ui/custom-select.tsx delete mode 100644 apps/app/components/ui/date.tsx delete mode 100644 apps/app/components/ui/datepicker.tsx delete mode 100644 apps/app/components/ui/empty-space.tsx delete mode 100644 apps/app/components/ui/empty-state.tsx delete mode 100644 apps/app/components/ui/index.ts delete mode 100644 apps/app/components/ui/input/index.tsx delete mode 100644 apps/app/components/ui/input/types.d.ts delete mode 100644 apps/app/components/ui/labels-list.tsx delete mode 100644 apps/app/components/ui/linear-progress-indicator.tsx delete mode 100644 apps/app/components/ui/loader.tsx delete mode 100644 apps/app/components/ui/multi-input.tsx delete mode 100644 apps/app/components/ui/multi-level-dropdown.tsx delete mode 100644 apps/app/components/ui/multi-level-select.tsx delete mode 100644 apps/app/components/ui/outline-button.tsx delete mode 100644 apps/app/components/ui/progress-bar.tsx delete mode 100644 apps/app/components/ui/spinner.tsx delete mode 100644 apps/app/components/ui/text-area/index.tsx delete mode 100644 apps/app/components/ui/text-area/types.d.ts delete mode 100644 apps/app/components/ui/toggle-switch.tsx delete mode 100644 apps/app/components/ui/tooltip.tsx delete mode 100644 apps/app/components/views/delete-view-modal.tsx delete mode 100644 apps/app/components/views/form.tsx delete mode 100644 apps/app/components/views/index.ts delete mode 100644 apps/app/components/views/modal.tsx delete mode 100644 apps/app/components/views/select-filters.tsx delete mode 100644 apps/app/components/views/single-view-item.tsx delete mode 100644 apps/app/components/workspace/activity-graph.tsx delete mode 100644 apps/app/components/workspace/completed-issues-graph.tsx delete mode 100644 apps/app/components/workspace/confirm-workspace-member-remove.tsx delete mode 100644 apps/app/components/workspace/create-workspace-form.tsx delete mode 100644 apps/app/components/workspace/delete-workspace-modal.tsx delete mode 100644 apps/app/components/workspace/help-section.tsx delete mode 100644 apps/app/components/workspace/index.ts delete mode 100644 apps/app/components/workspace/issues-list.tsx delete mode 100644 apps/app/components/workspace/issues-pie-chart.tsx delete mode 100644 apps/app/components/workspace/issues-stats.tsx delete mode 100644 apps/app/components/workspace/send-workspace-invitation-modal.tsx delete mode 100644 apps/app/components/workspace/sidebar-dropdown.tsx delete mode 100644 apps/app/components/workspace/sidebar-menu.tsx delete mode 100644 apps/app/components/workspace/single-invitation.tsx delete mode 100644 apps/app/constants/calendar.ts delete mode 100644 apps/app/constants/crisp.tsx delete mode 100644 apps/app/constants/fetch-keys.ts delete mode 100644 apps/app/constants/issue.ts delete mode 100644 apps/app/constants/module.ts delete mode 100644 apps/app/constants/project.ts delete mode 100644 apps/app/constants/seo-variables.ts delete mode 100644 apps/app/constants/state.ts delete mode 100644 apps/app/constants/themes.ts delete mode 100644 apps/app/constants/workspace.ts delete mode 100644 apps/app/contexts/issue-view.context.tsx delete mode 100644 apps/app/contexts/project-member.context.tsx delete mode 100644 apps/app/contexts/theme.context.tsx delete mode 100644 apps/app/contexts/toast.context.tsx delete mode 100644 apps/app/contexts/user.context.tsx delete mode 100644 apps/app/contexts/workspace.context.tsx delete mode 100644 apps/app/google.d.ts delete mode 100644 apps/app/helpers/array.helper.ts delete mode 100644 apps/app/helpers/attachment.helper.ts delete mode 100644 apps/app/helpers/calendar.helper.ts delete mode 100644 apps/app/helpers/common.helper.ts delete mode 100644 apps/app/helpers/date-time.helper.ts delete mode 100644 apps/app/helpers/state.helper.ts delete mode 100644 apps/app/helpers/string.helper.ts delete mode 100644 apps/app/helpers/theme.helper.ts delete mode 100644 apps/app/hooks/use-debounce.tsx delete mode 100644 apps/app/hooks/use-estimate-option.tsx delete mode 100644 apps/app/hooks/use-integration-popup.tsx delete mode 100644 apps/app/hooks/use-issue-properties.tsx delete mode 100644 apps/app/hooks/use-issues-view.tsx delete mode 100644 apps/app/hooks/use-issues.tsx delete mode 100644 apps/app/hooks/use-local-storage.tsx delete mode 100644 apps/app/hooks/use-my-issues-filter.tsx delete mode 100644 apps/app/hooks/use-outside-click-detector.tsx delete mode 100644 apps/app/hooks/use-project-details.tsx delete mode 100644 apps/app/hooks/use-project-members.tsx delete mode 100644 apps/app/hooks/use-projects.tsx delete mode 100644 apps/app/hooks/use-theme.tsx delete mode 100644 apps/app/hooks/use-timer.tsx delete mode 100644 apps/app/hooks/use-toast.tsx delete mode 100644 apps/app/hooks/use-user.tsx delete mode 100644 apps/app/hooks/use-workspace-details.tsx delete mode 100644 apps/app/hooks/use-workspace-members.tsx delete mode 100644 apps/app/hooks/use-workspaces.tsx delete mode 100644 apps/app/layouts/app-layout/app-header.tsx delete mode 100644 apps/app/layouts/app-layout/app-sidebar.tsx delete mode 100644 apps/app/layouts/app-layout/index.tsx delete mode 100644 apps/app/layouts/auth-layout/index.ts delete mode 100644 apps/app/layouts/auth-layout/project-authorization-wrapper.tsx delete mode 100644 apps/app/layouts/auth-layout/user-authorization-wrapper.tsx delete mode 100644 apps/app/layouts/auth-layout/workspace-authorization-wrapper.tsx delete mode 100644 apps/app/layouts/container.tsx delete mode 100644 apps/app/layouts/default-layout/index.tsx delete mode 100644 apps/app/layouts/settings-navbar.tsx delete mode 100644 apps/app/lib/auth.ts delete mode 100644 apps/app/lib/cookie.ts delete mode 100644 apps/app/lib/redirect.ts delete mode 100644 apps/app/manifest.json delete mode 100644 apps/app/next-env.d.ts delete mode 100644 apps/app/next.config.js delete mode 100644 apps/app/package.json delete mode 100644 apps/app/pages/404.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/me/my-issues.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/me/profile/activity.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/me/profile/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/cycles/[cycleId].tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/cycles/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/issues/[issueId].tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/issues/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/[moduleId].tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/control.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/estimates.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/features.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/integrations.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/labels.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/members.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/states.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/views/[viewId].tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/[projectId]/views/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/projects/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/settings/billing.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/settings/import-export.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/settings/index.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/settings/integrations.tsx delete mode 100644 apps/app/pages/[workspaceSlug]/settings/members.tsx delete mode 100644 apps/app/pages/_app.tsx delete mode 100644 apps/app/pages/_document.tsx delete mode 100644 apps/app/pages/_error.js delete mode 100644 apps/app/pages/api/track-event.ts delete mode 100644 apps/app/pages/api/unsplash.ts delete mode 100644 apps/app/pages/create-workspace.tsx delete mode 100644 apps/app/pages/error.tsx delete mode 100644 apps/app/pages/index.tsx delete mode 100644 apps/app/pages/installations/[provider]/index.tsx delete mode 100644 apps/app/pages/invitations.tsx delete mode 100644 apps/app/pages/magic-sign-in.tsx delete mode 100644 apps/app/pages/onboarding.tsx delete mode 100644 apps/app/pages/signin.tsx delete mode 100644 apps/app/pages/workspace-member-invitation/[invitationId].tsx delete mode 100644 apps/app/postcss.config.js delete mode 100644 apps/app/public/404.svg delete mode 100644 apps/app/public/animated-icons/uploading.json delete mode 100644 apps/app/public/attachment/audio-icon.png delete mode 100644 apps/app/public/attachment/css-icon.png delete mode 100644 apps/app/public/attachment/csv-icon.png delete mode 100644 apps/app/public/attachment/default-icon.png delete mode 100644 apps/app/public/attachment/doc-icon.png delete mode 100644 apps/app/public/attachment/excel-icon.png delete mode 100644 apps/app/public/attachment/figma-icon.png delete mode 100644 apps/app/public/attachment/html-icon.png delete mode 100644 apps/app/public/attachment/img-icon.png delete mode 100644 apps/app/public/attachment/jpg-icon.png delete mode 100644 apps/app/public/attachment/js-icon.png delete mode 100644 apps/app/public/attachment/pdf-icon.png delete mode 100644 apps/app/public/attachment/png-icon.png delete mode 100644 apps/app/public/attachment/svg-icon.png delete mode 100644 apps/app/public/attachment/txt-icon.png delete mode 100644 apps/app/public/attachment/video-icon.png delete mode 100644 apps/app/public/auth/join-project.svg delete mode 100644 apps/app/public/auth/project-not-authorized.svg delete mode 100644 apps/app/public/auth/workspace-not-authorized.svg delete mode 100644 apps/app/public/empty-state/empty-cycle.svg delete mode 100644 apps/app/public/empty-state/empty-issue.svg delete mode 100644 apps/app/public/empty-state/empty-module.svg delete mode 100644 apps/app/public/empty-state/empty-page.svg delete mode 100644 apps/app/public/empty-state/empty-project.svg delete mode 100644 apps/app/public/empty-state/empty-view.svg delete mode 100644 apps/app/public/favicon/android-chrome-192x192.png delete mode 100644 apps/app/public/favicon/android-chrome-512x512.png delete mode 100644 apps/app/public/favicon/apple-touch-icon.png delete mode 100644 apps/app/public/favicon/favicon-16x16.png delete mode 100644 apps/app/public/favicon/favicon-32x32.png delete mode 100644 apps/app/public/favicon/favicon.ico delete mode 100644 apps/app/public/favicon/site.webmanifest delete mode 100644 apps/app/public/logo-with-text.png delete mode 100644 apps/app/public/logo.png delete mode 100644 apps/app/public/logos/github-black.png delete mode 100644 apps/app/public/logos/github-square.png delete mode 100644 apps/app/public/logos/github.png delete mode 100644 apps/app/public/mac-command.svg delete mode 100644 apps/app/public/onboarding/command-menu.svg delete mode 100644 apps/app/public/onboarding/cycle.svg delete mode 100644 apps/app/public/onboarding/issue.svg delete mode 100644 apps/app/public/onboarding/logo.svg delete mode 100644 apps/app/public/onboarding/module.svg delete mode 100644 apps/app/public/onboarding/welcome.svg delete mode 100644 apps/app/public/services/github.png delete mode 100644 apps/app/public/services/jira.png delete mode 100644 apps/app/public/services/slack.png delete mode 100644 apps/app/public/sign-in-bg.png delete mode 100644 apps/app/public/sign-up-sideimg.svg delete mode 100644 apps/app/public/site-image.png delete mode 100644 apps/app/public/site.webmanifest.json delete mode 100644 apps/app/public/sw.js delete mode 100644 apps/app/public/sw.js.map delete mode 100644 apps/app/public/user.png delete mode 100644 apps/app/public/vercel.svg delete mode 100644 apps/app/public/workbox-7805bd61.js delete mode 100644 apps/app/public/workbox-7805bd61.js.map delete mode 100644 apps/app/sentry.client.config.js delete mode 100644 apps/app/sentry.edge.config.js delete mode 100644 apps/app/sentry.properties delete mode 100644 apps/app/sentry.server.config.js delete mode 100644 apps/app/services/ai.service.ts delete mode 100644 apps/app/services/api.service.ts delete mode 100644 apps/app/services/app-installations.service.ts delete mode 100644 apps/app/services/authentication.service.ts delete mode 100644 apps/app/services/cycles.service.ts delete mode 100644 apps/app/services/estimates.service.ts delete mode 100644 apps/app/services/file.service.ts delete mode 100644 apps/app/services/integration/github.service.ts delete mode 100644 apps/app/services/integration/index.ts delete mode 100644 apps/app/services/integration/jira.service.ts delete mode 100644 apps/app/services/issues.service.ts delete mode 100644 apps/app/services/modules.service.ts delete mode 100644 apps/app/services/pages.service.ts delete mode 100644 apps/app/services/project.service.ts delete mode 100644 apps/app/services/state.service.ts delete mode 100644 apps/app/services/track-event.service.ts delete mode 100644 apps/app/services/user.service.ts delete mode 100644 apps/app/services/views.service.ts delete mode 100644 apps/app/services/workspace.service.ts delete mode 100644 apps/app/styles/command-pallette.css delete mode 100644 apps/app/styles/editor.css delete mode 100644 apps/app/styles/globals.css delete mode 100644 apps/app/styles/nprogress.css delete mode 100644 apps/app/tailwind.config.js delete mode 100644 apps/app/tsconfig.json delete mode 100644 apps/app/types/ai.d.ts delete mode 100644 apps/app/types/cycles.d.ts delete mode 100644 apps/app/types/estimate.d.ts delete mode 100644 apps/app/types/importer/github-importer.d.ts delete mode 100644 apps/app/types/importer/index.ts delete mode 100644 apps/app/types/importer/jira-importer.d.ts delete mode 100644 apps/app/types/index.d.ts delete mode 100644 apps/app/types/integration.d.ts delete mode 100644 apps/app/types/issues.d.ts delete mode 100644 apps/app/types/modules.d.ts delete mode 100644 apps/app/types/pages.d.ts delete mode 100644 apps/app/types/projects.d.ts delete mode 100644 apps/app/types/state.d.ts delete mode 100644 apps/app/types/users.d.ts delete mode 100644 apps/app/types/views.d.ts delete mode 100644 apps/app/types/workspace.d.ts delete mode 100644 packages/eslint-config-custom/index.js delete mode 100644 packages/eslint-config-custom/package.json delete mode 100644 packages/tsconfig/base.json delete mode 100644 packages/tsconfig/nextjs.json delete mode 100644 packages/tsconfig/package.json delete mode 100644 packages/tsconfig/react-library.json delete mode 100644 packages/ui/button/index.tsx delete mode 100644 packages/ui/index.tsx delete mode 100644 packages/ui/package.json delete mode 100644 packages/ui/tsconfig.json delete mode 100644 turbo.json diff --git a/.eslintrc.js b/.eslintrc.js index 463c86901..b44b7f7a4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,10 +1,8 @@ module.exports = { root: true, - // This tells ESLint to load the config from the package `eslint-config-custom` - extends: ["custom"], settings: { next: { - rootDir: ["apps/*"], + rootDir: ["app/"], }, }, }; diff --git a/apps/app/.env.example b/apps/app/.env.example deleted file mode 100644 index cdf30fc72..000000000 --- a/apps/app/.env.example +++ /dev/null @@ -1,11 +0,0 @@ -# Replace with your instance Public IP -# NEXT_PUBLIC_API_BASE_URL = "http://localhost" -NEXT_PUBLIC_EXTRA_IMAGE_DOMAINS= -NEXT_PUBLIC_GOOGLE_CLIENTID="" -NEXT_PUBLIC_GITHUB_APP_NAME="" -NEXT_PUBLIC_GITHUB_ID="" -NEXT_PUBLIC_SENTRY_DSN="" -NEXT_PUBLIC_ENABLE_OAUTH=0 -NEXT_PUBLIC_ENABLE_SENTRY=0 -NEXT_PUBLIC_ENABLE_SESSION_RECORDER=0 -NEXT_PUBLIC_TRACK_EVENTS=0 diff --git a/apps/app/.eslintrc.js b/apps/app/.eslintrc.js deleted file mode 100644 index c8df60750..000000000 --- a/apps/app/.eslintrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - root: true, - extends: ["custom"], -}; diff --git a/apps/app/.prettierrc b/apps/app/.prettierrc deleted file mode 100644 index d5cb26e54..000000000 --- a/apps/app/.prettierrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "printWidth": 100, - "tabWidth": 2, - "trailingComma": "es5" -} diff --git a/apps/app/Dockerfile.dev b/apps/app/Dockerfile.dev deleted file mode 100644 index 7b802634c..000000000 --- a/apps/app/Dockerfile.dev +++ /dev/null @@ -1,12 +0,0 @@ -FROM node:18-alpine -RUN apk add --no-cache libc6-compat -RUN apk update -# Set working directory -WORKDIR /app - - -COPY . . -RUN yarn global add turbo -RUN yarn install -EXPOSE 3000 -CMD ["yarn","dev"] diff --git a/apps/app/Dockerfile.web b/apps/app/Dockerfile.web deleted file mode 100644 index 11bf98bd4..000000000 --- a/apps/app/Dockerfile.web +++ /dev/null @@ -1,51 +0,0 @@ -FROM node:18-alpine AS builder -RUN apk add --no-cache libc6-compat -RUN apk update -# Set working directory -WORKDIR /app - -RUN yarn global add turbo -COPY . . - -RUN turbo prune --scope=app --docker - -# Add lockfile and package.json's of isolated subworkspace -FROM node:18-alpine AS installer - - -RUN apk add --no-cache libc6-compat -RUN apk update -WORKDIR /app - -# First install the dependencies (as they change less often) -COPY .gitignore .gitignore -COPY --from=builder /app/out/json/ . -COPY --from=builder /app/out/yarn.lock ./yarn.lock -RUN yarn install - -# Build the project -COPY --from=builder /app/out/full/ . -COPY turbo.json turbo.json - -RUN yarn turbo run build --filter=app - -FROM node:18-alpine AS runner -WORKDIR /app - -# Don't run production as root -RUN addgroup --system --gid 1001 plane -RUN adduser --system --uid 1001 captain -USER captain - -COPY --from=installer /app/apps/app/next.config.js . -COPY --from=installer /app/apps/app/package.json . - -# Automatically leverage output traces to reduce image size -# https://nextjs.org/docs/advanced-features/output-file-tracing -COPY --from=installer --chown=captain:plane /app/apps/app/.next/standalone ./ -# COPY --from=installer --chown=captain:plane /app/apps/app/.next/standalone/node_modules ./apps/app/node_modules -COPY --from=installer --chown=captain:plane /app/apps/app/.next/static ./apps/app/.next/static - -ENV NEXT_TELEMETRY_DISABLED 1 - -EXPOSE 3000 diff --git a/apps/app/components/account/email-code-form.tsx b/apps/app/components/account/email-code-form.tsx deleted file mode 100644 index 389153d60..000000000 --- a/apps/app/components/account/email-code-form.tsx +++ /dev/null @@ -1,199 +0,0 @@ -import React, { useEffect, useState } from "react"; -import { useForm } from "react-hook-form"; -// ui -import { CheckCircleIcon } from "@heroicons/react/20/solid"; -import { Input, PrimaryButton, SecondaryButton } from "components/ui"; -// services -import authenticationService from "services/authentication.service"; -import useToast from "hooks/use-toast"; -import useTimer from "hooks/use-timer"; -// icons - -// types -type EmailCodeFormValues = { - email: string; - key?: string; - token?: string; -}; - -export const EmailCodeForm = ({ onSuccess }: any) => { - const [codeSent, setCodeSent] = useState(false); - const [codeResent, setCodeResent] = useState(false); - const [isCodeResending, setIsCodeResending] = useState(false); - const [errorResendingCode, setErrorResendingCode] = useState(false); - - const { setToastAlert } = useToast(); - const { timer: resendCodeTimer, setTimer: setResendCodeTimer } = useTimer(); - - const { - register, - handleSubmit, - setError, - setValue, - getValues, - formState: { errors, isSubmitting, isValid, isDirty }, - } = useForm({ - defaultValues: { - email: "", - key: "", - token: "", - }, - mode: "onChange", - reValidateMode: "onChange", - }); - - const isResendDisabled = - resendCodeTimer > 0 || isCodeResending || isSubmitting || errorResendingCode; - - const onSubmit = async ({ email }: EmailCodeFormValues) => { - setErrorResendingCode(false); - await authenticationService - .emailCode({ email }) - .then((res) => { - setValue("key", res.key); - setCodeSent(true); - }) - .catch((err) => { - setErrorResendingCode(true); - setToastAlert({ - title: "Oops!", - type: "error", - message: err?.error, - }); - }); - }; - - const handleSignin = async (formData: EmailCodeFormValues) => { - await authenticationService - .magicSignIn(formData) - .then((response) => { - onSuccess(response); - }) - .catch((error) => { - setToastAlert({ - title: "Oops!", - type: "error", - message: error?.response?.data?.error ?? "Enter the correct code to sign in", - }); - setError("token" as keyof EmailCodeFormValues, { - type: "manual", - message: error.error, - }); - }); - }; - - const emailOld = getValues("email"); - - useEffect(() => { - setErrorResendingCode(false); - }, [emailOld]); - - return ( - <> -
- {(codeSent || codeResent) && ( -
-
-
-
-
-

- {codeResent - ? "Please check your mail for new code." - : "Please check your mail for code."} -

-
-
-
- )} -
- - /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test( - value - ) || "Email ID is not valid", - }} - error={errors.email} - placeholder="Enter your Email ID" - /> -
- - {codeSent && ( -
- - -
- )} -
- {codeSent ? ( - - {isSubmitting ? "Signing in..." : "Sign in"} - - ) : ( - { - handleSubmit(onSubmit)().then(() => { - setResendCodeTimer(30); - }); - }} - loading={isSubmitting || (!isValid && isDirty)} - > - {isSubmitting ? "Sending code..." : "Send code"} - - )} -
-
- - ); -}; diff --git a/apps/app/components/account/email-password-form.tsx b/apps/app/components/account/email-password-form.tsx deleted file mode 100644 index d35abdfe8..000000000 --- a/apps/app/components/account/email-password-form.tsx +++ /dev/null @@ -1,113 +0,0 @@ -import React from "react"; - -import Link from "next/link"; - -// react hook form -import { useForm } from "react-hook-form"; -// services -import authenticationService from "services/authentication.service"; -// hooks -import useToast from "hooks/use-toast"; -// ui -import { Input, SecondaryButton } from "components/ui"; -// types -type EmailPasswordFormValues = { - email: string; - password?: string; - medium?: string; -}; - -export const EmailPasswordForm = ({ onSuccess }: any) => { - const { setToastAlert } = useToast(); - const { - register, - handleSubmit, - setError, - formState: { errors, isSubmitting, isValid, isDirty }, - } = useForm({ - defaultValues: { - email: "", - password: "", - medium: "email", - }, - mode: "onChange", - reValidateMode: "onChange", - }); - - const onSubmit = (formData: EmailPasswordFormValues) => { - authenticationService - .emailLogin(formData) - .then((response) => { - onSuccess(response); - }) - .catch((error) => { - console.log(error); - setToastAlert({ - title: "Oops!", - type: "error", - message: "Enter the correct email address and password to sign in", - }); - if (!error?.response?.data) return; - Object.keys(error.response.data).forEach((key) => { - const err = error.response.data[key]; - console.log(err); - setError(key as keyof EmailPasswordFormValues, { - type: "manual", - message: Array.isArray(err) ? err.join(", ") : err, - }); - }); - }); - }; - return ( - <> -
-
- - /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test( - value - ) || "Email ID is not valid", - }} - error={errors.email} - placeholder="Enter your Email ID" - /> -
-
- -
-
- -
-
- - {isSubmitting ? "Signing in..." : "Sign In"} - -
-
- - ); -}; diff --git a/apps/app/components/account/email-signin-form.tsx b/apps/app/components/account/email-signin-form.tsx deleted file mode 100644 index e2f81d50c..000000000 --- a/apps/app/components/account/email-signin-form.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import { useState, FC } from "react"; -import { KeyIcon } from "@heroicons/react/24/outline"; -// components -import { EmailCodeForm, EmailPasswordForm } from "components/account"; - -export interface EmailSignInFormProps { - handleSuccess: () => void; -} - -export const EmailSignInForm: FC = (props) => { - const { handleSuccess } = props; - // states - const [useCode, setUseCode] = useState(true); - - return ( - <> - {useCode ? ( - - ) : ( - - )} - - ); -}; diff --git a/apps/app/components/account/github-login-button.tsx b/apps/app/components/account/github-login-button.tsx deleted file mode 100644 index 5b49208bb..000000000 --- a/apps/app/components/account/github-login-button.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import { useEffect, useState, FC } from "react"; -import Link from "next/link"; -import Image from "next/image"; -import { useRouter } from "next/router"; -// images -import githubImage from "/public/logos/github-black.png"; - -const { NEXT_PUBLIC_GITHUB_ID } = process.env; - -export interface GithubLoginButtonProps { - handleSignIn: React.Dispatch; -} - -export const GithubLoginButton: FC = (props) => { - const { handleSignIn } = props; - // router - const { - query: { code }, - } = useRouter(); - // states - const [loginCallBackURL, setLoginCallBackURL] = useState(undefined); - - useEffect(() => { - if (code) { - handleSignIn(code.toString()); - } - }, [code, handleSignIn]); - - useEffect(() => { - const origin = - typeof window !== "undefined" && window.location.origin ? window.location.origin : ""; - setLoginCallBackURL(`${origin}/signin` as any); - }, []); - - return ( -
- - - -
- ); -}; diff --git a/apps/app/components/account/google-login.tsx b/apps/app/components/account/google-login.tsx deleted file mode 100644 index 478ffc67e..000000000 --- a/apps/app/components/account/google-login.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import { FC, CSSProperties, useEffect, useRef, useCallback, useState } from "react"; -// next -import Script from "next/script"; - -export interface IGoogleLoginButton { - text?: string; - handleSignIn: React.Dispatch; - styles?: CSSProperties; -} - -export const GoogleLoginButton: FC = (props) => { - const { handleSignIn } = props; - - const googleSignInButton = useRef(null); - const [gsiScriptLoaded, setGsiScriptLoaded] = useState(false); - - const loadScript = useCallback(() => { - if (!googleSignInButton.current || gsiScriptLoaded) return; - window?.google?.accounts.id.initialize({ - client_id: process.env.NEXT_PUBLIC_GOOGLE_CLIENTID || "", - callback: handleSignIn, - }); - window?.google?.accounts.id.renderButton( - googleSignInButton.current, - { - type: "standard", - theme: "outline", - size: "large", - logo_alignment: "center", - width: "410", - text: "continue_with", - } as GsiButtonConfiguration // customization attributes - ); - window?.google?.accounts.id.prompt(); // also display the One Tap dialog - setGsiScriptLoaded(true); - }, [handleSignIn, gsiScriptLoaded]); - - useEffect(() => { - if (window?.google?.accounts?.id) { - loadScript(); - } - return () => { - window?.google?.accounts.id.cancel(); - }; - }, [loadScript]); - - return ( - <> -