diff --git a/apps/plane/.prettierrc b/apps/app/.prettierrc similarity index 100% rename from apps/plane/.prettierrc rename to apps/app/.prettierrc diff --git a/apps/app/Dockerfile b/apps/app/Dockerfile new file mode 100644 index 000000000..967096ba3 --- /dev/null +++ b/apps/app/Dockerfile @@ -0,0 +1,66 @@ +FROM node:alpine AS builder +RUN apk add --no-cache libc6-compat +RUN apk update +# Set working directory +WORKDIR /app + +RUN apk add curl + +RUN curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" -o /bin/pnpm; chmod +x /bin/pnpm; + +ENV PNPM_HOME="pnpm" +ENV PATH="${PATH}:./pnpm" + +COPY ./apps ./apps +COPY ./package.json ./package.json +COPY ./.eslintrc.json ./.eslintrc.json +COPY ./turbo.json ./turbo.json +COPY ./yarn.lock ./yarn.lock +COPY ./pnpm-workspace.yaml ./pnpm-workspace.yaml +COPY ./pnpm-lock.yaml ./pnpm-lock.yaml + +RUN pnpm add -g turbo +RUN turbo prune --scope=app --docker + +# Add lockfile and package.json's of isolated subworkspace +FROM node:alpine AS installer + +RUN apk add curl + +RUN curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" -o /bin/pnpm; chmod +x /bin/pnpm; + +ENV PNPM_HOME="pnpm" +ENV PATH="${PATH}:./pnpm" + +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/pnpm-lock.yaml ./pnpm-lock.yaml +RUN pnpm install + +# Build the project +COPY --from=builder /app/out/full/ . +COPY turbo.json turbo.json +RUN pnpm turbo run build --filter=app... + +FROM node: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/static ./apps/app/.next/static + +CMD node apps/app/server.js \ No newline at end of file diff --git a/apps/plane/components/command-palette/index.tsx b/apps/app/components/command-palette/index.tsx similarity index 100% rename from apps/plane/components/command-palette/index.tsx rename to apps/app/components/command-palette/index.tsx diff --git a/apps/plane/components/command-palette/shortcuts.tsx b/apps/app/components/command-palette/shortcuts.tsx similarity index 100% rename from apps/plane/components/command-palette/shortcuts.tsx rename to apps/app/components/command-palette/shortcuts.tsx diff --git a/apps/plane/components/dnd/StrictModeDroppable.tsx b/apps/app/components/dnd/StrictModeDroppable.tsx similarity index 100% rename from apps/plane/components/dnd/StrictModeDroppable.tsx rename to apps/app/components/dnd/StrictModeDroppable.tsx diff --git a/apps/plane/components/forms/EmailCodeForm.tsx b/apps/app/components/forms/EmailCodeForm.tsx similarity index 100% rename from apps/plane/components/forms/EmailCodeForm.tsx rename to apps/app/components/forms/EmailCodeForm.tsx diff --git a/apps/plane/components/forms/EmailPasswordForm.tsx b/apps/app/components/forms/EmailPasswordForm.tsx similarity index 100% rename from apps/plane/components/forms/EmailPasswordForm.tsx rename to apps/app/components/forms/EmailPasswordForm.tsx diff --git a/apps/plane/components/lexical/config.ts b/apps/app/components/lexical/config.ts similarity index 100% rename from apps/plane/components/lexical/config.ts rename to apps/app/components/lexical/config.ts diff --git a/apps/plane/components/lexical/editor.tsx b/apps/app/components/lexical/editor.tsx similarity index 100% rename from apps/plane/components/lexical/editor.tsx rename to apps/app/components/lexical/editor.tsx diff --git a/apps/plane/components/lexical/helpers/editor.ts b/apps/app/components/lexical/helpers/editor.ts similarity index 100% rename from apps/plane/components/lexical/helpers/editor.ts rename to apps/app/components/lexical/helpers/editor.ts diff --git a/apps/plane/components/lexical/helpers/node.ts b/apps/app/components/lexical/helpers/node.ts similarity index 100% rename from apps/plane/components/lexical/helpers/node.ts rename to apps/app/components/lexical/helpers/node.ts diff --git a/apps/plane/components/lexical/plugins/code-highlight.tsx b/apps/app/components/lexical/plugins/code-highlight.tsx similarity index 100% rename from apps/plane/components/lexical/plugins/code-highlight.tsx rename to apps/app/components/lexical/plugins/code-highlight.tsx diff --git a/apps/plane/components/lexical/plugins/read-only.tsx b/apps/app/components/lexical/plugins/read-only.tsx similarity index 100% rename from apps/plane/components/lexical/plugins/read-only.tsx rename to apps/app/components/lexical/plugins/read-only.tsx diff --git a/apps/plane/components/lexical/theme.ts b/apps/app/components/lexical/theme.ts similarity index 100% rename from apps/plane/components/lexical/theme.ts rename to apps/app/components/lexical/theme.ts diff --git a/apps/plane/components/lexical/toolbar/block-type-select.tsx b/apps/app/components/lexical/toolbar/block-type-select.tsx similarity index 100% rename from apps/plane/components/lexical/toolbar/block-type-select.tsx rename to apps/app/components/lexical/toolbar/block-type-select.tsx diff --git a/apps/plane/components/lexical/toolbar/floating-link-editor.tsx b/apps/app/components/lexical/toolbar/floating-link-editor.tsx similarity index 100% rename from apps/plane/components/lexical/toolbar/floating-link-editor.tsx rename to apps/app/components/lexical/toolbar/floating-link-editor.tsx diff --git a/apps/plane/components/lexical/toolbar/index.tsx b/apps/app/components/lexical/toolbar/index.tsx similarity index 100% rename from apps/plane/components/lexical/toolbar/index.tsx rename to apps/app/components/lexical/toolbar/index.tsx diff --git a/apps/plane/components/lexical/viewer.tsx b/apps/app/components/lexical/viewer.tsx similarity index 100% rename from apps/plane/components/lexical/viewer.tsx rename to apps/app/components/lexical/viewer.tsx diff --git a/apps/plane/components/project/ConfirmProjectDeletion.tsx b/apps/app/components/project/ConfirmProjectDeletion.tsx similarity index 100% rename from apps/plane/components/project/ConfirmProjectDeletion.tsx rename to apps/app/components/project/ConfirmProjectDeletion.tsx diff --git a/apps/plane/components/project/CreateProjectModal.tsx b/apps/app/components/project/CreateProjectModal.tsx similarity index 100% rename from apps/plane/components/project/CreateProjectModal.tsx rename to apps/app/components/project/CreateProjectModal.tsx diff --git a/apps/plane/components/project/SendProjectInvitationModal.tsx b/apps/app/components/project/SendProjectInvitationModal.tsx similarity index 100% rename from apps/plane/components/project/SendProjectInvitationModal.tsx rename to apps/app/components/project/SendProjectInvitationModal.tsx diff --git a/apps/plane/components/project/cycles/ConfirmCycleDeletion.tsx b/apps/app/components/project/cycles/ConfirmCycleDeletion.tsx similarity index 100% rename from apps/plane/components/project/cycles/ConfirmCycleDeletion.tsx rename to apps/app/components/project/cycles/ConfirmCycleDeletion.tsx diff --git a/apps/plane/components/project/cycles/CreateUpdateCyclesModal.tsx b/apps/app/components/project/cycles/CreateUpdateCyclesModal.tsx similarity index 100% rename from apps/plane/components/project/cycles/CreateUpdateCyclesModal.tsx rename to apps/app/components/project/cycles/CreateUpdateCyclesModal.tsx diff --git a/apps/plane/components/project/cycles/CycleView.tsx b/apps/app/components/project/cycles/CycleView.tsx similarity index 100% rename from apps/plane/components/project/cycles/CycleView.tsx rename to apps/app/components/project/cycles/CycleView.tsx diff --git a/apps/plane/components/project/issues/BoardView/SingleBoard.tsx b/apps/app/components/project/issues/BoardView/SingleBoard.tsx similarity index 100% rename from apps/plane/components/project/issues/BoardView/SingleBoard.tsx rename to apps/app/components/project/issues/BoardView/SingleBoard.tsx diff --git a/apps/plane/components/project/issues/BoardView/index.tsx b/apps/app/components/project/issues/BoardView/index.tsx similarity index 100% rename from apps/plane/components/project/issues/BoardView/index.tsx rename to apps/app/components/project/issues/BoardView/index.tsx diff --git a/apps/plane/components/project/issues/BoardView/state/ConfirmStateDeletion.tsx b/apps/app/components/project/issues/BoardView/state/ConfirmStateDeletion.tsx similarity index 100% rename from apps/plane/components/project/issues/BoardView/state/ConfirmStateDeletion.tsx rename to apps/app/components/project/issues/BoardView/state/ConfirmStateDeletion.tsx diff --git a/apps/plane/components/project/issues/BoardView/state/CreateUpdateStateModal.tsx b/apps/app/components/project/issues/BoardView/state/CreateUpdateStateModal.tsx similarity index 100% rename from apps/plane/components/project/issues/BoardView/state/CreateUpdateStateModal.tsx rename to apps/app/components/project/issues/BoardView/state/CreateUpdateStateModal.tsx diff --git a/apps/plane/components/project/issues/ConfirmIssueDeletion.tsx b/apps/app/components/project/issues/ConfirmIssueDeletion.tsx similarity index 100% rename from apps/plane/components/project/issues/ConfirmIssueDeletion.tsx rename to apps/app/components/project/issues/ConfirmIssueDeletion.tsx diff --git a/apps/plane/components/project/issues/CreateUpdateIssueModal/SelectAssignee.tsx b/apps/app/components/project/issues/CreateUpdateIssueModal/SelectAssignee.tsx similarity index 100% rename from apps/plane/components/project/issues/CreateUpdateIssueModal/SelectAssignee.tsx rename to apps/app/components/project/issues/CreateUpdateIssueModal/SelectAssignee.tsx diff --git a/apps/plane/components/project/issues/CreateUpdateIssueModal/SelectCycles.tsx b/apps/app/components/project/issues/CreateUpdateIssueModal/SelectCycles.tsx similarity index 100% rename from apps/plane/components/project/issues/CreateUpdateIssueModal/SelectCycles.tsx rename to apps/app/components/project/issues/CreateUpdateIssueModal/SelectCycles.tsx diff --git a/apps/plane/components/project/issues/CreateUpdateIssueModal/SelectLabels.tsx b/apps/app/components/project/issues/CreateUpdateIssueModal/SelectLabels.tsx similarity index 100% rename from apps/plane/components/project/issues/CreateUpdateIssueModal/SelectLabels.tsx rename to apps/app/components/project/issues/CreateUpdateIssueModal/SelectLabels.tsx diff --git a/apps/plane/components/project/issues/CreateUpdateIssueModal/SelectParentIssues.tsx b/apps/app/components/project/issues/CreateUpdateIssueModal/SelectParentIssues.tsx similarity index 100% rename from apps/plane/components/project/issues/CreateUpdateIssueModal/SelectParentIssues.tsx rename to apps/app/components/project/issues/CreateUpdateIssueModal/SelectParentIssues.tsx diff --git a/apps/plane/components/project/issues/CreateUpdateIssueModal/SelectPriority.tsx b/apps/app/components/project/issues/CreateUpdateIssueModal/SelectPriority.tsx similarity index 100% rename from apps/plane/components/project/issues/CreateUpdateIssueModal/SelectPriority.tsx rename to apps/app/components/project/issues/CreateUpdateIssueModal/SelectPriority.tsx diff --git a/apps/plane/components/project/issues/CreateUpdateIssueModal/SelectProject.tsx b/apps/app/components/project/issues/CreateUpdateIssueModal/SelectProject.tsx similarity index 100% rename from apps/plane/components/project/issues/CreateUpdateIssueModal/SelectProject.tsx rename to apps/app/components/project/issues/CreateUpdateIssueModal/SelectProject.tsx diff --git a/apps/plane/components/project/issues/CreateUpdateIssueModal/SelectState.tsx b/apps/app/components/project/issues/CreateUpdateIssueModal/SelectState.tsx similarity index 100% rename from apps/plane/components/project/issues/CreateUpdateIssueModal/SelectState.tsx rename to apps/app/components/project/issues/CreateUpdateIssueModal/SelectState.tsx diff --git a/apps/plane/components/project/issues/CreateUpdateIssueModal/index.tsx b/apps/app/components/project/issues/CreateUpdateIssueModal/index.tsx similarity index 100% rename from apps/plane/components/project/issues/CreateUpdateIssueModal/index.tsx rename to apps/app/components/project/issues/CreateUpdateIssueModal/index.tsx diff --git a/apps/plane/components/project/issues/ListView/index.tsx b/apps/app/components/project/issues/ListView/index.tsx similarity index 100% rename from apps/plane/components/project/issues/ListView/index.tsx rename to apps/app/components/project/issues/ListView/index.tsx diff --git a/apps/plane/components/project/issues/PreviewModal/index.tsx b/apps/app/components/project/issues/PreviewModal/index.tsx similarity index 100% rename from apps/plane/components/project/issues/PreviewModal/index.tsx rename to apps/app/components/project/issues/PreviewModal/index.tsx diff --git a/apps/plane/components/project/issues/issue-detail/IssueDetailSidebar.tsx b/apps/app/components/project/issues/issue-detail/IssueDetailSidebar.tsx similarity index 100% rename from apps/plane/components/project/issues/issue-detail/IssueDetailSidebar.tsx rename to apps/app/components/project/issues/issue-detail/IssueDetailSidebar.tsx diff --git a/apps/plane/components/project/issues/issue-detail/activity/index.tsx b/apps/app/components/project/issues/issue-detail/activity/index.tsx similarity index 100% rename from apps/plane/components/project/issues/issue-detail/activity/index.tsx rename to apps/app/components/project/issues/issue-detail/activity/index.tsx diff --git a/apps/plane/components/project/issues/issue-detail/comment/IssueCommentCard.tsx b/apps/app/components/project/issues/issue-detail/comment/IssueCommentCard.tsx similarity index 100% rename from apps/plane/components/project/issues/issue-detail/comment/IssueCommentCard.tsx rename to apps/app/components/project/issues/issue-detail/comment/IssueCommentCard.tsx diff --git a/apps/plane/components/project/issues/issue-detail/comment/IssueCommentSection.tsx b/apps/app/components/project/issues/issue-detail/comment/IssueCommentSection.tsx similarity index 100% rename from apps/plane/components/project/issues/issue-detail/comment/IssueCommentSection.tsx rename to apps/app/components/project/issues/issue-detail/comment/IssueCommentSection.tsx diff --git a/apps/plane/components/project/issues/my-issues/ChangeStateDropdown.tsx b/apps/app/components/project/issues/my-issues/ChangeStateDropdown.tsx similarity index 100% rename from apps/plane/components/project/issues/my-issues/ChangeStateDropdown.tsx rename to apps/app/components/project/issues/my-issues/ChangeStateDropdown.tsx diff --git a/apps/plane/components/project/memberInvitations.tsx b/apps/app/components/project/memberInvitations.tsx similarity index 100% rename from apps/plane/components/project/memberInvitations.tsx rename to apps/app/components/project/memberInvitations.tsx diff --git a/apps/plane/components/socialbuttons/google-login.tsx b/apps/app/components/socialbuttons/google-login.tsx similarity index 100% rename from apps/plane/components/socialbuttons/google-login.tsx rename to apps/app/components/socialbuttons/google-login.tsx diff --git a/apps/plane/components/toast-alert/index.tsx b/apps/app/components/toast-alert/index.tsx similarity index 100% rename from apps/plane/components/toast-alert/index.tsx rename to apps/app/components/toast-alert/index.tsx diff --git a/apps/plane/components/workspace/ConfirmWorkspaceDeletion.tsx b/apps/app/components/workspace/ConfirmWorkspaceDeletion.tsx similarity index 100% rename from apps/plane/components/workspace/ConfirmWorkspaceDeletion.tsx rename to apps/app/components/workspace/ConfirmWorkspaceDeletion.tsx diff --git a/apps/plane/components/workspace/SendWorkspaceInvitationModal.tsx b/apps/app/components/workspace/SendWorkspaceInvitationModal.tsx similarity index 100% rename from apps/plane/components/workspace/SendWorkspaceInvitationModal.tsx rename to apps/app/components/workspace/SendWorkspaceInvitationModal.tsx diff --git a/apps/plane/components/workspace/SingleInvitation.tsx b/apps/app/components/workspace/SingleInvitation.tsx similarity index 100% rename from apps/plane/components/workspace/SingleInvitation.tsx rename to apps/app/components/workspace/SingleInvitation.tsx diff --git a/apps/plane/configuration/axios-configuration.ts b/apps/app/configuration/axios-configuration.ts similarity index 100% rename from apps/plane/configuration/axios-configuration.ts rename to apps/app/configuration/axios-configuration.ts diff --git a/apps/plane/constants/api-routes.ts b/apps/app/constants/api-routes.ts similarity index 100% rename from apps/plane/constants/api-routes.ts rename to apps/app/constants/api-routes.ts diff --git a/apps/plane/constants/common.ts b/apps/app/constants/common.ts similarity index 100% rename from apps/plane/constants/common.ts rename to apps/app/constants/common.ts diff --git a/apps/plane/constants/fetch-keys.ts b/apps/app/constants/fetch-keys.ts similarity index 100% rename from apps/plane/constants/fetch-keys.ts rename to apps/app/constants/fetch-keys.ts diff --git a/apps/plane/constants/seo/seo-variables.ts b/apps/app/constants/seo/seo-variables.ts similarity index 100% rename from apps/plane/constants/seo/seo-variables.ts rename to apps/app/constants/seo/seo-variables.ts diff --git a/apps/plane/constants/theme.context.constants.ts b/apps/app/constants/theme.context.constants.ts similarity index 100% rename from apps/plane/constants/theme.context.constants.ts rename to apps/app/constants/theme.context.constants.ts diff --git a/apps/plane/constants/toast.context.constants.ts b/apps/app/constants/toast.context.constants.ts similarity index 100% rename from apps/plane/constants/toast.context.constants.ts rename to apps/app/constants/toast.context.constants.ts diff --git a/apps/plane/contexts/globalContextProvider.tsx b/apps/app/contexts/globalContextProvider.tsx similarity index 100% rename from apps/plane/contexts/globalContextProvider.tsx rename to apps/app/contexts/globalContextProvider.tsx diff --git a/apps/plane/contexts/theme.context.tsx b/apps/app/contexts/theme.context.tsx similarity index 100% rename from apps/plane/contexts/theme.context.tsx rename to apps/app/contexts/theme.context.tsx diff --git a/apps/plane/contexts/toast.context.tsx b/apps/app/contexts/toast.context.tsx similarity index 100% rename from apps/plane/contexts/toast.context.tsx rename to apps/app/contexts/toast.context.tsx diff --git a/apps/plane/contexts/user.context.tsx b/apps/app/contexts/user.context.tsx similarity index 100% rename from apps/plane/contexts/user.context.tsx rename to apps/app/contexts/user.context.tsx diff --git a/apps/plane/google.d.ts b/apps/app/google.d.ts similarity index 100% rename from apps/plane/google.d.ts rename to apps/app/google.d.ts diff --git a/apps/plane/layouts/AdminLayout.tsx b/apps/app/layouts/AdminLayout.tsx similarity index 100% rename from apps/plane/layouts/AdminLayout.tsx rename to apps/app/layouts/AdminLayout.tsx diff --git a/apps/plane/layouts/Container.tsx b/apps/app/layouts/Container.tsx similarity index 100% rename from apps/plane/layouts/Container.tsx rename to apps/app/layouts/Container.tsx diff --git a/apps/plane/layouts/DefaultLayout.tsx b/apps/app/layouts/DefaultLayout.tsx similarity index 100% rename from apps/plane/layouts/DefaultLayout.tsx rename to apps/app/layouts/DefaultLayout.tsx diff --git a/apps/plane/layouts/Navbar/DefaultTopBar.tsx b/apps/app/layouts/Navbar/DefaultTopBar.tsx similarity index 100% rename from apps/plane/layouts/Navbar/DefaultTopBar.tsx rename to apps/app/layouts/Navbar/DefaultTopBar.tsx diff --git a/apps/plane/layouts/Navbar/Sidebar.tsx b/apps/app/layouts/Navbar/Sidebar.tsx similarity index 100% rename from apps/plane/layouts/Navbar/Sidebar.tsx rename to apps/app/layouts/Navbar/Sidebar.tsx diff --git a/apps/plane/layouts/types.d.ts b/apps/app/layouts/types.d.ts similarity index 100% rename from apps/plane/layouts/types.d.ts rename to apps/app/layouts/types.d.ts diff --git a/apps/plane/lib/cookie.ts b/apps/app/lib/cookie.ts similarity index 100% rename from apps/plane/lib/cookie.ts rename to apps/app/lib/cookie.ts diff --git a/apps/plane/lib/hoc/withAuthWrapper.tsx b/apps/app/lib/hoc/withAuthWrapper.tsx similarity index 100% rename from apps/plane/lib/hoc/withAuthWrapper.tsx rename to apps/app/lib/hoc/withAuthWrapper.tsx diff --git a/apps/plane/lib/hooks/useAutosizeTextArea.tsx b/apps/app/lib/hooks/useAutosizeTextArea.tsx similarity index 100% rename from apps/plane/lib/hooks/useAutosizeTextArea.tsx rename to apps/app/lib/hooks/useAutosizeTextArea.tsx diff --git a/apps/plane/lib/hooks/useIssuesProperties.tsx b/apps/app/lib/hooks/useIssuesProperties.tsx similarity index 100% rename from apps/plane/lib/hooks/useIssuesProperties.tsx rename to apps/app/lib/hooks/useIssuesProperties.tsx diff --git a/apps/plane/lib/hooks/useLocalStorage.tsx b/apps/app/lib/hooks/useLocalStorage.tsx similarity index 100% rename from apps/plane/lib/hooks/useLocalStorage.tsx rename to apps/app/lib/hooks/useLocalStorage.tsx diff --git a/apps/plane/lib/hooks/useTheme.tsx b/apps/app/lib/hooks/useTheme.tsx similarity index 100% rename from apps/plane/lib/hooks/useTheme.tsx rename to apps/app/lib/hooks/useTheme.tsx diff --git a/apps/plane/lib/hooks/useToast.tsx b/apps/app/lib/hooks/useToast.tsx similarity index 100% rename from apps/plane/lib/hooks/useToast.tsx rename to apps/app/lib/hooks/useToast.tsx diff --git a/apps/plane/lib/hooks/useUser.tsx b/apps/app/lib/hooks/useUser.tsx similarity index 100% rename from apps/plane/lib/hooks/useUser.tsx rename to apps/app/lib/hooks/useUser.tsx diff --git a/apps/plane/lib/redirect.ts b/apps/app/lib/redirect.ts similarity index 100% rename from apps/plane/lib/redirect.ts rename to apps/app/lib/redirect.ts diff --git a/apps/plane/lib/services/api.service.ts b/apps/app/lib/services/api.service.ts similarity index 100% rename from apps/plane/lib/services/api.service.ts rename to apps/app/lib/services/api.service.ts diff --git a/apps/plane/lib/services/authentication.service.ts b/apps/app/lib/services/authentication.service.ts similarity index 100% rename from apps/plane/lib/services/authentication.service.ts rename to apps/app/lib/services/authentication.service.ts diff --git a/apps/plane/lib/services/cycles.services.ts b/apps/app/lib/services/cycles.services.ts similarity index 100% rename from apps/plane/lib/services/cycles.services.ts rename to apps/app/lib/services/cycles.services.ts diff --git a/apps/plane/lib/services/file.services.ts b/apps/app/lib/services/file.services.ts similarity index 100% rename from apps/plane/lib/services/file.services.ts rename to apps/app/lib/services/file.services.ts diff --git a/apps/plane/lib/services/issues.services.ts b/apps/app/lib/services/issues.services.ts similarity index 100% rename from apps/plane/lib/services/issues.services.ts rename to apps/app/lib/services/issues.services.ts diff --git a/apps/plane/lib/services/project.service.ts b/apps/app/lib/services/project.service.ts similarity index 100% rename from apps/plane/lib/services/project.service.ts rename to apps/app/lib/services/project.service.ts diff --git a/apps/plane/lib/services/state.services.ts b/apps/app/lib/services/state.services.ts similarity index 100% rename from apps/plane/lib/services/state.services.ts rename to apps/app/lib/services/state.services.ts diff --git a/apps/plane/lib/services/user.service.ts b/apps/app/lib/services/user.service.ts similarity index 100% rename from apps/plane/lib/services/user.service.ts rename to apps/app/lib/services/user.service.ts diff --git a/apps/plane/lib/services/workspace.service.ts b/apps/app/lib/services/workspace.service.ts similarity index 100% rename from apps/plane/lib/services/workspace.service.ts rename to apps/app/lib/services/workspace.service.ts diff --git a/apps/plane/next-env.d.ts b/apps/app/next-env.d.ts similarity index 100% rename from apps/plane/next-env.d.ts rename to apps/app/next-env.d.ts diff --git a/apps/plane/next.config.js b/apps/app/next.config.js similarity index 100% rename from apps/plane/next.config.js rename to apps/app/next.config.js diff --git a/apps/plane/package.json b/apps/app/package.json similarity index 100% rename from apps/plane/package.json rename to apps/app/package.json diff --git a/apps/plane/pages/_app.tsx b/apps/app/pages/_app.tsx similarity index 100% rename from apps/plane/pages/_app.tsx rename to apps/app/pages/_app.tsx diff --git a/apps/plane/pages/api/hello.ts b/apps/app/pages/api/hello.ts similarity index 100% rename from apps/plane/pages/api/hello.ts rename to apps/app/pages/api/hello.ts diff --git a/apps/plane/pages/create-workspace.tsx b/apps/app/pages/create-workspace.tsx similarity index 100% rename from apps/plane/pages/create-workspace.tsx rename to apps/app/pages/create-workspace.tsx diff --git a/apps/plane/pages/editor.tsx b/apps/app/pages/editor.tsx similarity index 100% rename from apps/plane/pages/editor.tsx rename to apps/app/pages/editor.tsx diff --git a/apps/plane/pages/index.tsx b/apps/app/pages/index.tsx similarity index 100% rename from apps/plane/pages/index.tsx rename to apps/app/pages/index.tsx diff --git a/apps/plane/pages/invitations.tsx b/apps/app/pages/invitations.tsx similarity index 100% rename from apps/plane/pages/invitations.tsx rename to apps/app/pages/invitations.tsx diff --git a/apps/plane/pages/magic-sign-in.tsx b/apps/app/pages/magic-sign-in.tsx similarity index 100% rename from apps/plane/pages/magic-sign-in.tsx rename to apps/app/pages/magic-sign-in.tsx diff --git a/apps/plane/pages/me/my-issues.tsx b/apps/app/pages/me/my-issues.tsx similarity index 100% rename from apps/plane/pages/me/my-issues.tsx rename to apps/app/pages/me/my-issues.tsx diff --git a/apps/plane/pages/me/profile.tsx b/apps/app/pages/me/profile.tsx similarity index 100% rename from apps/plane/pages/me/profile.tsx rename to apps/app/pages/me/profile.tsx diff --git a/apps/plane/pages/me/workspace-invites.tsx b/apps/app/pages/me/workspace-invites.tsx similarity index 100% rename from apps/plane/pages/me/workspace-invites.tsx rename to apps/app/pages/me/workspace-invites.tsx diff --git a/apps/plane/pages/projects/[projectId]/cycles.tsx b/apps/app/pages/projects/[projectId]/cycles.tsx similarity index 100% rename from apps/plane/pages/projects/[projectId]/cycles.tsx rename to apps/app/pages/projects/[projectId]/cycles.tsx diff --git a/apps/plane/pages/projects/[projectId]/issues/[issueId].tsx b/apps/app/pages/projects/[projectId]/issues/[issueId].tsx similarity index 100% rename from apps/plane/pages/projects/[projectId]/issues/[issueId].tsx rename to apps/app/pages/projects/[projectId]/issues/[issueId].tsx diff --git a/apps/plane/pages/projects/[projectId]/issues/index.tsx b/apps/app/pages/projects/[projectId]/issues/index.tsx similarity index 100% rename from apps/plane/pages/projects/[projectId]/issues/index.tsx rename to apps/app/pages/projects/[projectId]/issues/index.tsx diff --git a/apps/plane/pages/projects/[projectId]/members.tsx b/apps/app/pages/projects/[projectId]/members.tsx similarity index 100% rename from apps/plane/pages/projects/[projectId]/members.tsx rename to apps/app/pages/projects/[projectId]/members.tsx diff --git a/apps/plane/pages/projects/[projectId]/settings.tsx b/apps/app/pages/projects/[projectId]/settings.tsx similarity index 100% rename from apps/plane/pages/projects/[projectId]/settings.tsx rename to apps/app/pages/projects/[projectId]/settings.tsx diff --git a/apps/plane/pages/projects/index.tsx b/apps/app/pages/projects/index.tsx similarity index 100% rename from apps/plane/pages/projects/index.tsx rename to apps/app/pages/projects/index.tsx diff --git a/apps/plane/pages/signin.tsx b/apps/app/pages/signin.tsx similarity index 100% rename from apps/plane/pages/signin.tsx rename to apps/app/pages/signin.tsx diff --git a/apps/plane/pages/workspace-member-invitation/[invitationId].tsx b/apps/app/pages/workspace-member-invitation/[invitationId].tsx similarity index 100% rename from apps/plane/pages/workspace-member-invitation/[invitationId].tsx rename to apps/app/pages/workspace-member-invitation/[invitationId].tsx diff --git a/apps/plane/pages/workspace/index.tsx b/apps/app/pages/workspace/index.tsx similarity index 100% rename from apps/plane/pages/workspace/index.tsx rename to apps/app/pages/workspace/index.tsx diff --git a/apps/plane/pages/workspace/members.tsx b/apps/app/pages/workspace/members.tsx similarity index 100% rename from apps/plane/pages/workspace/members.tsx rename to apps/app/pages/workspace/members.tsx diff --git a/apps/plane/pages/workspace/settings.tsx b/apps/app/pages/workspace/settings.tsx similarity index 100% rename from apps/plane/pages/workspace/settings.tsx rename to apps/app/pages/workspace/settings.tsx diff --git a/apps/plane/postcss.config.js b/apps/app/postcss.config.js similarity index 100% rename from apps/plane/postcss.config.js rename to apps/app/postcss.config.js diff --git a/apps/plane/public/animated-icons/uploading.json b/apps/app/public/animated-icons/uploading.json similarity index 100% rename from apps/plane/public/animated-icons/uploading.json rename to apps/app/public/animated-icons/uploading.json diff --git a/apps/plane/public/favicon.ico b/apps/app/public/favicon.ico similarity index 100% rename from apps/plane/public/favicon.ico rename to apps/app/public/favicon.ico diff --git a/apps/plane/public/favicon/android-chrome-192x192.png b/apps/app/public/favicon/android-chrome-192x192.png similarity index 100% rename from apps/plane/public/favicon/android-chrome-192x192.png rename to apps/app/public/favicon/android-chrome-192x192.png diff --git a/apps/plane/public/favicon/android-chrome-512x512.png b/apps/app/public/favicon/android-chrome-512x512.png similarity index 100% rename from apps/plane/public/favicon/android-chrome-512x512.png rename to apps/app/public/favicon/android-chrome-512x512.png diff --git a/apps/plane/public/favicon/apple-touch-icon.png b/apps/app/public/favicon/apple-touch-icon.png similarity index 100% rename from apps/plane/public/favicon/apple-touch-icon.png rename to apps/app/public/favicon/apple-touch-icon.png diff --git a/apps/plane/public/favicon/favicon-16x16.png b/apps/app/public/favicon/favicon-16x16.png similarity index 100% rename from apps/plane/public/favicon/favicon-16x16.png rename to apps/app/public/favicon/favicon-16x16.png diff --git a/apps/plane/public/favicon/favicon-32x32.png b/apps/app/public/favicon/favicon-32x32.png similarity index 100% rename from apps/plane/public/favicon/favicon-32x32.png rename to apps/app/public/favicon/favicon-32x32.png diff --git a/apps/plane/public/favicon/favicon.ico b/apps/app/public/favicon/favicon.ico similarity index 100% rename from apps/plane/public/favicon/favicon.ico rename to apps/app/public/favicon/favicon.ico diff --git a/apps/plane/public/favicon/site.webmanifest b/apps/app/public/favicon/site.webmanifest similarity index 100% rename from apps/plane/public/favicon/site.webmanifest rename to apps/app/public/favicon/site.webmanifest diff --git a/apps/plane/public/logo.png b/apps/app/public/logo.png similarity index 100% rename from apps/plane/public/logo.png rename to apps/app/public/logo.png diff --git a/apps/plane/public/logos/github.png b/apps/app/public/logos/github.png similarity index 100% rename from apps/plane/public/logos/github.png rename to apps/app/public/logos/github.png diff --git a/apps/plane/public/sign-in-bg.png b/apps/app/public/sign-in-bg.png similarity index 100% rename from apps/plane/public/sign-in-bg.png rename to apps/app/public/sign-in-bg.png diff --git a/apps/plane/public/sign-up-sideimg.svg b/apps/app/public/sign-up-sideimg.svg similarity index 100% rename from apps/plane/public/sign-up-sideimg.svg rename to apps/app/public/sign-up-sideimg.svg diff --git a/apps/plane/public/site-image.png b/apps/app/public/site-image.png similarity index 100% rename from apps/plane/public/site-image.png rename to apps/app/public/site-image.png diff --git a/apps/plane/public/site.webmanifest.json b/apps/app/public/site.webmanifest.json similarity index 100% rename from apps/plane/public/site.webmanifest.json rename to apps/app/public/site.webmanifest.json diff --git a/apps/plane/public/vercel.svg b/apps/app/public/vercel.svg similarity index 100% rename from apps/plane/public/vercel.svg rename to apps/app/public/vercel.svg diff --git a/apps/plane/styles/editor.css b/apps/app/styles/editor.css similarity index 100% rename from apps/plane/styles/editor.css rename to apps/app/styles/editor.css diff --git a/apps/plane/styles/globals.css b/apps/app/styles/globals.css similarity index 100% rename from apps/plane/styles/globals.css rename to apps/app/styles/globals.css diff --git a/apps/plane/tailwind.config.js b/apps/app/tailwind.config.js similarity index 100% rename from apps/plane/tailwind.config.js rename to apps/app/tailwind.config.js diff --git a/apps/plane/tsconfig.json b/apps/app/tsconfig.json similarity index 100% rename from apps/plane/tsconfig.json rename to apps/app/tsconfig.json diff --git a/apps/plane/types/index.d.ts b/apps/app/types/index.d.ts similarity index 100% rename from apps/plane/types/index.d.ts rename to apps/app/types/index.d.ts diff --git a/apps/plane/types/invitation.d.ts b/apps/app/types/invitation.d.ts similarity index 100% rename from apps/plane/types/invitation.d.ts rename to apps/app/types/invitation.d.ts diff --git a/apps/plane/types/issues.d.ts b/apps/app/types/issues.d.ts similarity index 100% rename from apps/plane/types/issues.d.ts rename to apps/app/types/issues.d.ts diff --git a/apps/plane/types/projects.d.ts b/apps/app/types/projects.d.ts similarity index 100% rename from apps/plane/types/projects.d.ts rename to apps/app/types/projects.d.ts diff --git a/apps/plane/types/sprints.d.ts b/apps/app/types/sprints.d.ts similarity index 100% rename from apps/plane/types/sprints.d.ts rename to apps/app/types/sprints.d.ts diff --git a/apps/plane/types/state.d.ts b/apps/app/types/state.d.ts similarity index 100% rename from apps/plane/types/state.d.ts rename to apps/app/types/state.d.ts diff --git a/apps/plane/types/users.d.ts b/apps/app/types/users.d.ts similarity index 100% rename from apps/plane/types/users.d.ts rename to apps/app/types/users.d.ts diff --git a/apps/plane/types/workspace.d.ts b/apps/app/types/workspace.d.ts similarity index 100% rename from apps/plane/types/workspace.d.ts rename to apps/app/types/workspace.d.ts diff --git a/apps/plane/ui/Breadcrumbs/index.tsx b/apps/app/ui/Breadcrumbs/index.tsx similarity index 100% rename from apps/plane/ui/Breadcrumbs/index.tsx rename to apps/app/ui/Breadcrumbs/index.tsx diff --git a/apps/plane/ui/Button/index.tsx b/apps/app/ui/Button/index.tsx similarity index 100% rename from apps/plane/ui/Button/index.tsx rename to apps/app/ui/Button/index.tsx diff --git a/apps/plane/ui/CustomListbox/index.tsx b/apps/app/ui/CustomListbox/index.tsx similarity index 100% rename from apps/plane/ui/CustomListbox/index.tsx rename to apps/app/ui/CustomListbox/index.tsx diff --git a/apps/plane/ui/CustomListbox/types.d.ts b/apps/app/ui/CustomListbox/types.d.ts similarity index 100% rename from apps/plane/ui/CustomListbox/types.d.ts rename to apps/app/ui/CustomListbox/types.d.ts diff --git a/apps/plane/ui/EmptySpace/index.tsx b/apps/app/ui/EmptySpace/index.tsx similarity index 100% rename from apps/plane/ui/EmptySpace/index.tsx rename to apps/app/ui/EmptySpace/index.tsx diff --git a/apps/plane/ui/HeaderButton/index.tsx b/apps/app/ui/HeaderButton/index.tsx similarity index 100% rename from apps/plane/ui/HeaderButton/index.tsx rename to apps/app/ui/HeaderButton/index.tsx diff --git a/apps/plane/ui/Input/index.tsx b/apps/app/ui/Input/index.tsx similarity index 100% rename from apps/plane/ui/Input/index.tsx rename to apps/app/ui/Input/index.tsx diff --git a/apps/plane/ui/Input/types.d.ts b/apps/app/ui/Input/types.d.ts similarity index 100% rename from apps/plane/ui/Input/types.d.ts rename to apps/app/ui/Input/types.d.ts diff --git a/apps/plane/ui/Modal/index.tsx b/apps/app/ui/Modal/index.tsx similarity index 100% rename from apps/plane/ui/Modal/index.tsx rename to apps/app/ui/Modal/index.tsx diff --git a/apps/plane/ui/SearchListbox/index.tsx b/apps/app/ui/SearchListbox/index.tsx similarity index 100% rename from apps/plane/ui/SearchListbox/index.tsx rename to apps/app/ui/SearchListbox/index.tsx diff --git a/apps/plane/ui/SearchListbox/types.d.ts b/apps/app/ui/SearchListbox/types.d.ts similarity index 100% rename from apps/plane/ui/SearchListbox/types.d.ts rename to apps/app/ui/SearchListbox/types.d.ts diff --git a/apps/plane/ui/Select/index.tsx b/apps/app/ui/Select/index.tsx similarity index 100% rename from apps/plane/ui/Select/index.tsx rename to apps/app/ui/Select/index.tsx diff --git a/apps/plane/ui/Select/types.d.ts b/apps/app/ui/Select/types.d.ts similarity index 100% rename from apps/plane/ui/Select/types.d.ts rename to apps/app/ui/Select/types.d.ts diff --git a/apps/plane/ui/Spinner/index.tsx b/apps/app/ui/Spinner/index.tsx similarity index 100% rename from apps/plane/ui/Spinner/index.tsx rename to apps/app/ui/Spinner/index.tsx diff --git a/apps/plane/ui/TextArea/index.tsx b/apps/app/ui/TextArea/index.tsx similarity index 100% rename from apps/plane/ui/TextArea/index.tsx rename to apps/app/ui/TextArea/index.tsx diff --git a/apps/plane/ui/TextArea/types.d.ts b/apps/app/ui/TextArea/types.d.ts similarity index 100% rename from apps/plane/ui/TextArea/types.d.ts rename to apps/app/ui/TextArea/types.d.ts diff --git a/apps/plane/ui/Tooltip/index.tsx b/apps/app/ui/Tooltip/index.tsx similarity index 100% rename from apps/plane/ui/Tooltip/index.tsx rename to apps/app/ui/Tooltip/index.tsx diff --git a/apps/plane/ui/index.ts b/apps/app/ui/index.ts similarity index 100% rename from apps/plane/ui/index.ts rename to apps/app/ui/index.ts diff --git a/apps/plane/yarn.lock b/apps/app/yarn.lock similarity index 100% rename from apps/plane/yarn.lock rename to apps/app/yarn.lock diff --git a/apps/plane/Dockerfile b/apps/plane/Dockerfile deleted file mode 100644 index 978b60ef4..000000000 --- a/apps/plane/Dockerfile +++ /dev/null @@ -1,47 +0,0 @@ -FROM node:alpine AS builder -RUN apk add --no-cache libc6-compat -RUN apk update -# Set working directory -WORKDIR /app -RUN yarn global add turbo -COPY ./apps ./apps -COPY ./package.json ./package.json -COPY ./.eslintrc.json ./.eslintrc.json -COPY ./turbo.json ./turbo.json -COPY ./yarn.lock ./yarn.lock -RUN turbo prune --scope=plane --docker - -# Add lockfile and package.json's of isolated subworkspace -FROM node: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=plane... - -FROM node:alpine AS runner -WORKDIR /app - -# Don't run production as root -RUN addgroup --system --gid 1001 nodejs -RUN adduser --system --uid 1001 nextjs -USER nextjs - -COPY --from=installer /app/apps/plane/next.config.js . -COPY --from=installer /app/apps/plane/package.json . - -# Automatically leverage output traces to reduce image size -# https://nextjs.org/docs/advanced-features/output-file-tracing -COPY --from=installer --chown=nextjs:nodejs /app/apps/plane/.next/standalone ./ -COPY --from=installer --chown=nextjs:nodejs /app/apps/plane/.next/static ./apps/plane/.next/static - -CMD node apps/plane/server.js \ No newline at end of file diff --git a/apiserver/bin/takeoff b/bin/takeoff similarity index 100% rename from apiserver/bin/takeoff rename to bin/takeoff diff --git a/docker-compose.yml b/docker-compose.yml index d4267c4f3..9b85b0481 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: container_name: plane_web build: context: . - dockerfile: ./apps/plane/Dockerfile + dockerfile: ./apps/app/Dockerfile restart: always ports: - 3000:3000