From 10e35d9a06db43911f37340d89a815c2fcd87c19 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Wed, 1 Nov 2023 13:45:04 +0530 Subject: [PATCH] chore: delete unused files (#2585) --- web/components/web-view/activity-message.tsx | 512 ----------------- web/components/web-view/add-comment.tsx | 107 ---- web/components/web-view/comment-card.tsx | 188 ------ web/components/web-view/confirm-delete.tsx | 30 - .../web-view/create-update-link-form.tsx | 175 ------ web/components/web-view/date-selector.tsx | 188 ------ web/components/web-view/index.ts | 27 - web/components/web-view/issue-activity.tsx | 206 ------- web/components/web-view/issue-attachments.tsx | 208 ------- web/components/web-view/issue-link-list.tsx | 138 ----- .../web-view/issue-properties-detail.tsx | 536 ------------------ .../web-view/issue-web-view-form.tsx | 153 ----- .../web-view/issues-select-bottom-sheet.tsx | 170 ------ web/components/web-view/label.tsx | 7 - web/components/web-view/select-assignee.tsx | 86 --- web/components/web-view/select-blocked-by.tsx | 112 ---- web/components/web-view/select-blocker-to.tsx | 122 ---- web/components/web-view/select-cycle.tsx | 142 ----- web/components/web-view/select-duplicate.tsx | 101 ---- web/components/web-view/select-estimate.tsx | 83 --- web/components/web-view/select-module.tsx | 127 ----- web/components/web-view/select-parent.tsx | 101 ---- web/components/web-view/select-priority.tsx | 83 --- web/components/web-view/select-relates-to.tsx | 101 ---- web/components/web-view/select-state.tsx | 81 --- web/components/web-view/spinner.tsx | 5 - web/components/web-view/sub-issues.tsx | 154 ----- web/components/web-view/web-view-modal.tsx | 116 ---- web/layouts/setting-layout/index.ts | 2 - web/layouts/settings-layout/index.ts | 2 + .../project}/index.tsx | 0 .../project}/layout.tsx | 0 .../project}/sidebar.tsx | 0 .../workspace}/index.tsx | 0 .../workspace}/layout.tsx | 0 .../workspace}/sidebar.tsx | 0 web/layouts/web-view-layout/index.tsx | 62 -- .../[workspaceSlug]/me/profile/activity.tsx | 2 +- .../[workspaceSlug]/me/profile/index.tsx | 2 +- .../me/profile/preferences.tsx | 2 +- .../[projectId]/settings/automations.tsx | 2 +- .../[projectId]/settings/estimates.tsx | 2 +- .../[projectId]/settings/features.tsx | 2 +- .../projects/[projectId]/settings/index.tsx | 2 +- .../[projectId]/settings/integrations.tsx | 2 +- .../projects/[projectId]/settings/labels.tsx | 2 +- .../projects/[projectId]/settings/members.tsx | 2 +- .../projects/[projectId]/settings/states.tsx | 2 +- .../[workspaceSlug]/settings/billing.tsx | 2 +- .../[workspaceSlug]/settings/exports.tsx | 2 +- .../[workspaceSlug]/settings/imports.tsx | 2 +- web/pages/[workspaceSlug]/settings/index.tsx | 2 +- .../[workspaceSlug]/settings/integrations.tsx | 2 +- .../[workspaceSlug]/settings/members.tsx | 2 +- web/pages/m/[workspaceSlug]/editor.tsx | 99 ---- .../projects/[projectId]/issues/[issueId].tsx | 176 ------ 56 files changed, 19 insertions(+), 4415 deletions(-) delete mode 100644 web/components/web-view/activity-message.tsx delete mode 100644 web/components/web-view/add-comment.tsx delete mode 100644 web/components/web-view/comment-card.tsx delete mode 100644 web/components/web-view/confirm-delete.tsx delete mode 100644 web/components/web-view/create-update-link-form.tsx delete mode 100644 web/components/web-view/date-selector.tsx delete mode 100644 web/components/web-view/index.ts delete mode 100644 web/components/web-view/issue-activity.tsx delete mode 100644 web/components/web-view/issue-attachments.tsx delete mode 100644 web/components/web-view/issue-link-list.tsx delete mode 100644 web/components/web-view/issue-properties-detail.tsx delete mode 100644 web/components/web-view/issue-web-view-form.tsx delete mode 100644 web/components/web-view/issues-select-bottom-sheet.tsx delete mode 100644 web/components/web-view/label.tsx delete mode 100644 web/components/web-view/select-assignee.tsx delete mode 100644 web/components/web-view/select-blocked-by.tsx delete mode 100644 web/components/web-view/select-blocker-to.tsx delete mode 100644 web/components/web-view/select-cycle.tsx delete mode 100644 web/components/web-view/select-duplicate.tsx delete mode 100644 web/components/web-view/select-estimate.tsx delete mode 100644 web/components/web-view/select-module.tsx delete mode 100644 web/components/web-view/select-parent.tsx delete mode 100644 web/components/web-view/select-priority.tsx delete mode 100644 web/components/web-view/select-relates-to.tsx delete mode 100644 web/components/web-view/select-state.tsx delete mode 100644 web/components/web-view/spinner.tsx delete mode 100644 web/components/web-view/sub-issues.tsx delete mode 100644 web/components/web-view/web-view-modal.tsx delete mode 100644 web/layouts/setting-layout/index.ts create mode 100644 web/layouts/settings-layout/index.ts rename web/layouts/{setting-layout/project-setting-layout => settings-layout/project}/index.tsx (100%) rename web/layouts/{setting-layout/project-setting-layout => settings-layout/project}/layout.tsx (100%) rename web/layouts/{setting-layout/project-setting-layout => settings-layout/project}/sidebar.tsx (100%) rename web/layouts/{setting-layout/workspace-setting-layout => settings-layout/workspace}/index.tsx (100%) rename web/layouts/{setting-layout/workspace-setting-layout => settings-layout/workspace}/layout.tsx (100%) rename web/layouts/{setting-layout/workspace-setting-layout => settings-layout/workspace}/sidebar.tsx (100%) delete mode 100644 web/layouts/web-view-layout/index.tsx delete mode 100644 web/pages/m/[workspaceSlug]/editor.tsx delete mode 100644 web/pages/m/[workspaceSlug]/projects/[projectId]/issues/[issueId].tsx diff --git a/web/components/web-view/activity-message.tsx b/web/components/web-view/activity-message.tsx deleted file mode 100644 index 613cce08c..000000000 --- a/web/components/web-view/activity-message.tsx +++ /dev/null @@ -1,512 +0,0 @@ -import { useRouter } from "next/router"; - -// icons -import { - CalendarDays, - CopyPlus, - History, - LinkIcon, - MessageSquare, - Paperclip, - Rocket, - Signal, - Tag, - Users2, -} from "lucide-react"; -import { - DoubleCircleIcon, - Tooltip, - BlockedIcon, - BlockerIcon, - RelatedIcon, - UserGroupIcon, - ArchiveIcon, - ContrastIcon, - LayersIcon, - DiceIcon, -} from "@plane/ui"; -// helpers -import { renderShortDateWithYearFormat } from "helpers/date-time.helper"; -import { capitalizeFirstLetter } from "helpers/string.helper"; -// types -import { IIssueActivity } from "types"; - -const IssueLink = ({ activity }: { activity: IIssueActivity }) => ( - - - -); - -const UserLink = ({ activity }: { activity: IIssueActivity }) => ( - -); - -const activityDetails: { - [key: string]: { - message: (activity: IIssueActivity, showIssue: boolean, workspaceSlug: string) => React.ReactNode; - icon: React.ReactNode; - }; -} = { - assignees: { - message: (activity, showIssue) => ( - <> - {activity.old_value === "" ? "added a new assignee " : "removed the assignee "} - - {showIssue && ( - <> - {" "} - to - - )} - . - - ), - icon: , - }, - - archived_at: { - message: (activity) => { - if (activity.new_value === "restore") return "restored the issue."; - else return "archived the issue."; - }, - icon: , - }, - - attachment: { - message: (activity, showIssue) => ( - <> - {activity.verb === "created" ? "uploaded a new " : "removed an "} - {activity.new_value && activity.new_value !== "" ? ( - - ) : ( - "attachment" - )} - {showIssue && activity.verb === "created" ? " to " : " from "} - {showIssue && } - - ), - icon: