fix: eslint fixes and file formatting
This commit is contained in:
parent
473dfc7a5b
commit
53ddef1cd5
954 changed files with 3921 additions and 3809 deletions
|
|
@ -1,24 +1,24 @@
|
|||
import { useState, ReactElement } from "react";
|
||||
import { useRouter } from "next/router";
|
||||
import { observer } from "mobx-react";
|
||||
import { useRouter } from "next/router";
|
||||
import useSWR from "swr";
|
||||
// hooks
|
||||
import { useIssueDetail, useIssues, useProject, useUser } from "hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
// components
|
||||
import { IssueDetailRoot } from "components/issues";
|
||||
import { ProjectArchivedIssueDetailsHeader } from "components/headers";
|
||||
import { PageHead } from "components/core";
|
||||
// ui
|
||||
import { ArchiveIcon, Button, Loader, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
// icons
|
||||
import { RotateCcw } from "lucide-react";
|
||||
import { ArchiveIcon, Button, Loader, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectArchivedIssueDetailsHeader } from "@/components/headers";
|
||||
import { IssueDetailRoot } from "@/components/issues";
|
||||
import { EIssuesStoreType } from "@/constants/issue";
|
||||
import { EUserProjectRoles } from "@/constants/project";
|
||||
import { useIssueDetail, useIssues, useProject, useUser } from "@/hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// components
|
||||
// ui
|
||||
// icons
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// constants
|
||||
import { EIssuesStoreType } from "constants/issue";
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
|
||||
const ArchivedIssueDetailsPage: NextPageWithLayout = observer(() => {
|
||||
// router
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@ import { ReactElement } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
import { useRouter } from "next/router";
|
||||
// layouts
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectArchivedIssuesHeader } from "components/headers";
|
||||
import { ArchivedIssueLayoutRoot } from "components/issues";
|
||||
import { useProject } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectArchivedIssuesHeader } from "@/components/headers";
|
||||
import { ArchivedIssueLayoutRoot } from "@/components/issues";
|
||||
import { useProject } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// contexts
|
||||
// components
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// hooks
|
||||
|
||||
const ProjectArchivedIssuesPage: NextPageWithLayout = observer(() => {
|
||||
|
|
|
|||
|
|
@ -3,21 +3,21 @@ import { observer } from "mobx-react";
|
|||
import { useRouter } from "next/router";
|
||||
import useSWR from "swr";
|
||||
// hooks
|
||||
import { EmptyState } from "components/common";
|
||||
import { PageHead } from "components/core";
|
||||
import { CycleDetailsSidebar } from "components/cycles";
|
||||
import { CycleIssuesHeader } from "components/headers";
|
||||
import { CycleLayoutRoot } from "components/issues/issue-layouts";
|
||||
import { useCycle, useProject } from "hooks/store";
|
||||
import useLocalStorage from "hooks/use-local-storage";
|
||||
import { EmptyState } from "@/components/common";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { CycleDetailsSidebar } from "@/components/cycles";
|
||||
import { CycleMobileHeader } from "@/components/cycles/cycle-mobile-header";
|
||||
import { CycleIssuesHeader } from "@/components/headers";
|
||||
import { CycleLayoutRoot } from "@/components/issues/issue-layouts";
|
||||
import { useCycle, useProject } from "@/hooks/store";
|
||||
import useLocalStorage from "@/hooks/use-local-storage";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// components
|
||||
// ui
|
||||
// assets
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
import emptyCycle from "public/empty-state/cycle.svg";
|
||||
import { CycleMobileHeader } from "components/cycles/cycle-mobile-header";
|
||||
// types
|
||||
|
||||
const CycleDetailPage: NextPageWithLayout = observer(() => {
|
||||
|
|
|
|||
|
|
@ -2,32 +2,32 @@ import { Fragment, useState, ReactElement } from "react";
|
|||
import { observer } from "mobx-react-lite";
|
||||
import { useRouter } from "next/router";
|
||||
import { Tab } from "@headlessui/react";
|
||||
import { TCycleFilters } from "@plane/types";
|
||||
// hooks
|
||||
import { useEventTracker, useCycle, useProject, useCycleFilter } from "hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
// components
|
||||
import { PageHead } from "components/core";
|
||||
import { CyclesHeader } from "components/headers";
|
||||
import { PageHead } from "@/components/core";
|
||||
import {
|
||||
CyclesView,
|
||||
CycleCreateUpdateModal,
|
||||
CyclesViewHeader,
|
||||
CycleAppliedFiltersList,
|
||||
ActiveCycleRoot,
|
||||
} from "components/cycles";
|
||||
import { EmptyState } from "components/empty-state";
|
||||
} from "@/components/cycles";
|
||||
import CyclesListMobileHeader from "@/components/cycles/cycles-list-mobile-header";
|
||||
import { EmptyState } from "@/components/empty-state";
|
||||
import { CyclesHeader } from "@/components/headers";
|
||||
import { CycleModuleBoardLayout, CycleModuleListLayout, GanttLayoutLoader } from "@/components/ui";
|
||||
import { CYCLE_TABS_LIST } from "@/constants/cycle";
|
||||
import { EmptyStateType } from "@/constants/empty-state";
|
||||
import { calculateTotalFilters } from "@/helpers/filter.helper";
|
||||
import { useEventTracker, useCycle, useProject, useCycleFilter } from "@/hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// components
|
||||
// ui
|
||||
import { CycleModuleBoardLayout, CycleModuleListLayout, GanttLayoutLoader } from "components/ui";
|
||||
// helpers
|
||||
import { calculateTotalFilters } from "helpers/filter.helper";
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { TCycleFilters } from "@plane/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// constants
|
||||
import { CYCLE_TABS_LIST } from "constants/cycle";
|
||||
import { EmptyStateType } from "constants/empty-state";
|
||||
import CyclesListMobileHeader from "components/cycles/cycles-list-mobile-header";
|
||||
|
||||
const ProjectCyclesPage: NextPageWithLayout = observer(() => {
|
||||
// states
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ import { useRouter } from "next/router";
|
|||
import { X, PenSquare } from "lucide-react";
|
||||
// layouts
|
||||
// components
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectDraftIssueHeader } from "components/headers";
|
||||
import { DraftIssueLayoutRoot } from "components/issues/issue-layouts/roots/draft-issue-layout-root";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectDraftIssueHeader } from "@/components/headers";
|
||||
import { DraftIssueLayoutRoot } from "@/components/issues/issue-layouts/roots/draft-issue-layout-root";
|
||||
// types
|
||||
// hooks
|
||||
import { useProject } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { useProject } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
|
||||
const ProjectDraftIssuesPage: NextPageWithLayout = observer(() => {
|
||||
const router = useRouter();
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@ import { observer } from "mobx-react";
|
|||
import { useRouter } from "next/router";
|
||||
import useSWR from "swr";
|
||||
// hooks
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectInboxHeader } from "components/headers";
|
||||
import { InboxSidebarRoot, InboxContentRoot } from "components/inbox";
|
||||
import { InboxLayoutLoader } from "components/ui";
|
||||
import { useProject, useInboxIssues } from "hooks/store";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectInboxHeader } from "@/components/headers";
|
||||
import { InboxSidebarRoot, InboxContentRoot } from "@/components/inbox";
|
||||
import { InboxLayoutLoader } from "@/components/ui";
|
||||
import { useProject, useInboxIssues } from "@/hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// components
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
|
||||
const ProjectInboxPage: NextPageWithLayout = observer(() => {
|
||||
const router = useRouter();
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@ import { observer } from "mobx-react";
|
|||
import { useRouter } from "next/router";
|
||||
import useSWR from "swr";
|
||||
// hooks
|
||||
import { ProjectInboxHeader } from "components/headers";
|
||||
import { InboxLayoutLoader } from "components/ui";
|
||||
import { useInbox, useProject } from "hooks/store";
|
||||
import { ProjectInboxHeader } from "@/components/headers";
|
||||
import { InboxLayoutLoader } from "@/components/ui";
|
||||
import { useInbox, useProject } from "@/hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// ui
|
||||
// components
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
|
||||
const ProjectInboxPage: NextPageWithLayout = observer(() => {
|
||||
const router = useRouter();
|
||||
|
|
|
|||
|
|
@ -4,16 +4,16 @@ import { useRouter } from "next/router";
|
|||
import useSWR from "swr";
|
||||
// layouts
|
||||
import { Loader } from "@plane/ui";
|
||||
import { PageHead } from "components/core";
|
||||
import { PageHead } from "@/components/core";
|
||||
// components
|
||||
import { ProjectIssueDetailsHeader } from "components/headers";
|
||||
import { IssueDetailRoot } from "components/issues";
|
||||
import { ProjectIssueDetailsHeader } from "@/components/headers";
|
||||
import { IssueDetailRoot } from "@/components/issues";
|
||||
// ui
|
||||
// types
|
||||
// store hooks
|
||||
import { useApplication, useIssueDetail, useProject } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { useApplication, useIssueDetail, useProject } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
|
||||
const IssueDetailsPage: NextPageWithLayout = observer(() => {
|
||||
// router
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ import { observer } from "mobx-react";
|
|||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
// components
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectIssuesHeader } from "components/headers";
|
||||
import { ProjectLayoutRoot } from "components/issues";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectIssuesHeader } from "@/components/headers";
|
||||
import { ProjectLayoutRoot } from "@/components/issues";
|
||||
// types
|
||||
import { useProject } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { IssuesMobileHeader } from "components/issues/issues-mobile-header";
|
||||
import { IssuesMobileHeader } from "@/components/issues/issues-mobile-header";
|
||||
import { useProject } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// layouts
|
||||
// hooks
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ const ProjectIssuesPage: NextPageWithLayout = observer(() => {
|
|||
|
||||
ProjectIssuesPage.getLayout = function getLayout(page: ReactElement) {
|
||||
return (
|
||||
<AppLayout header={<ProjectIssuesHeader />} mobileHeader={<IssuesMobileHeader/>} withProjectWrapper>
|
||||
<AppLayout header={<ProjectIssuesHeader />} mobileHeader={<IssuesMobileHeader />} withProjectWrapper>
|
||||
{page}
|
||||
</AppLayout>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -3,20 +3,20 @@ import { observer } from "mobx-react";
|
|||
import { useRouter } from "next/router";
|
||||
import useSWR from "swr";
|
||||
// hooks
|
||||
import { EmptyState } from "components/common";
|
||||
import { PageHead } from "components/core";
|
||||
import { ModuleIssuesHeader } from "components/headers";
|
||||
import { ModuleLayoutRoot } from "components/issues";
|
||||
import { ModuleDetailsSidebar } from "components/modules";
|
||||
import { useModule, useProject } from "hooks/store";
|
||||
import useLocalStorage from "hooks/use-local-storage";
|
||||
import { EmptyState } from "@/components/common";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ModuleIssuesHeader } from "@/components/headers";
|
||||
import { ModuleLayoutRoot } from "@/components/issues";
|
||||
import { ModuleDetailsSidebar } from "@/components/modules";
|
||||
import { ModuleMobileHeader } from "@/components/modules/module-mobile-header";
|
||||
import { useModule, useProject } from "@/hooks/store";
|
||||
import useLocalStorage from "@/hooks/use-local-storage";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// components
|
||||
// assets
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
import emptyModule from "public/empty-state/module.svg";
|
||||
import { ModuleMobileHeader } from "components/modules/module-mobile-header";
|
||||
// types
|
||||
|
||||
const ModuleIssuesPage: NextPageWithLayout = observer(() => {
|
||||
|
|
@ -84,7 +84,7 @@ const ModuleIssuesPage: NextPageWithLayout = observer(() => {
|
|||
|
||||
ModuleIssuesPage.getLayout = function getLayout(page: ReactElement) {
|
||||
return (
|
||||
<AppLayout header={<ModuleIssuesHeader />} mobileHeader={<ModuleMobileHeader/>} withProjectWrapper>
|
||||
<AppLayout header={<ModuleIssuesHeader />} mobileHeader={<ModuleMobileHeader />} withProjectWrapper>
|
||||
{page}
|
||||
</AppLayout>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
import { ReactElement, useCallback } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { useRouter } from "next/router";
|
||||
import { TModuleFilters } from "@plane/types";
|
||||
// layouts
|
||||
// components
|
||||
import { PageHead } from "components/core";
|
||||
import { ModulesListHeader } from "components/headers";
|
||||
import { ModuleAppliedFiltersList, ModulesListView } from "components/modules";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ModulesListHeader } from "@/components/headers";
|
||||
import { ModuleAppliedFiltersList, ModulesListView } from "@/components/modules";
|
||||
// types
|
||||
// hooks
|
||||
import { useModuleFilter, useProject } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { calculateTotalFilters } from "helpers/filter.helper";
|
||||
import { TModuleFilters } from "@plane/types";
|
||||
import ModulesListMobileHeader from "components/modules/moduels-list-mobile-header";
|
||||
import ModulesListMobileHeader from "@/components/modules/moduels-list-mobile-header";
|
||||
import { calculateTotalFilters } from "@/helpers/filter.helper";
|
||||
import { useModuleFilter, useProject } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
|
||||
const ProjectModulesPage: NextPageWithLayout = observer(() => {
|
||||
const router = useRouter();
|
||||
|
|
@ -60,7 +60,7 @@ const ProjectModulesPage: NextPageWithLayout = observer(() => {
|
|||
|
||||
ProjectModulesPage.getLayout = function getLayout(page: ReactElement) {
|
||||
return (
|
||||
<AppLayout header={<ModulesListHeader />} mobileHeader={<ModulesListMobileHeader/>} withProjectWrapper>
|
||||
<AppLayout header={<ModulesListHeader />} mobileHeader={<ModulesListMobileHeader />} withProjectWrapper>
|
||||
{page}
|
||||
</AppLayout>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,32 +1,32 @@
|
|||
import { ReactElement, useEffect, useRef, useState } from "react";
|
||||
import { DocumentEditorWithRef, DocumentReadOnlyEditorWithRef } from "@plane/document-editor";
|
||||
import { observer } from "mobx-react-lite";
|
||||
import { useRouter } from "next/router";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
import useSWR from "swr";
|
||||
import { Sparkle } from "lucide-react";
|
||||
import { DocumentEditorWithRef, DocumentReadOnlyEditorWithRef } from "@plane/document-editor";
|
||||
import { IPage } from "@plane/types";
|
||||
// hooks
|
||||
|
||||
import { Spinner, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
import { GptAssistantPopover, PageHead } from "components/core";
|
||||
import { PageDetailsHeader } from "components/headers/page-details";
|
||||
import { IssuePeekOverview } from "components/issues";
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { useApplication, usePage, useUser, useWorkspace } from "hooks/store";
|
||||
import { useProjectPages } from "hooks/store/use-project-specific-pages";
|
||||
import useReloadConfirmations from "hooks/use-reload-confirmation";
|
||||
import { GptAssistantPopover, PageHead } from "@/components/core";
|
||||
import { PageDetailsHeader } from "@/components/headers/page-details";
|
||||
import { IssuePeekOverview } from "@/components/issues";
|
||||
import { EUserProjectRoles } from "@/constants/project";
|
||||
import { getDate } from "@/helpers/date-time.helper";
|
||||
import { useApplication, usePage, useUser, useWorkspace } from "@/hooks/store";
|
||||
import { useProjectPages } from "@/hooks/store/use-project-specific-pages";
|
||||
import useReloadConfirmations from "@/hooks/use-reload-confirmation";
|
||||
// services
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { FileService } from "services/file.service";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
import { FileService } from "@/services/file.service";
|
||||
// layouts
|
||||
// components
|
||||
// ui
|
||||
// assets
|
||||
// helpers
|
||||
import { getDate } from "helpers/date-time.helper";
|
||||
// types
|
||||
import { IPage } from "@plane/types";
|
||||
// fetch-keys
|
||||
// constants
|
||||
|
||||
|
|
|
|||
|
|
@ -5,42 +5,42 @@ import { useRouter } from "next/router";
|
|||
import useSWR from "swr";
|
||||
import { Tab } from "@headlessui/react";
|
||||
// hooks
|
||||
import { useApplication, useEventTracker, useUser, useProject } from "hooks/store";
|
||||
import { useProjectPages } from "hooks/store/use-project-page";
|
||||
import useLocalStorage from "hooks/use-local-storage";
|
||||
import useUserAuth from "hooks/use-user-auth";
|
||||
import useSize from "hooks/use-window-size";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { EmptyState } from "@/components/empty-state";
|
||||
import { PagesHeader } from "@/components/headers";
|
||||
import { RecentPagesList, CreateUpdatePageModal } from "@/components/pages";
|
||||
import { PagesLoader } from "@/components/ui";
|
||||
import { EmptyStateType } from "@/constants/empty-state";
|
||||
import { PAGE_TABS_LIST } from "@/constants/page";
|
||||
import { useApplication, useEventTracker, useUser, useProject } from "@/hooks/store";
|
||||
import { useProjectPages } from "@/hooks/store/use-project-page";
|
||||
import useLocalStorage from "@/hooks/use-local-storage";
|
||||
import useUserAuth from "@/hooks/use-user-auth";
|
||||
import useSize from "@/hooks/use-window-size";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// components
|
||||
import { RecentPagesList, CreateUpdatePageModal } from "components/pages";
|
||||
import { EmptyState } from "components/empty-state";
|
||||
import { PagesHeader } from "components/headers";
|
||||
import { PagesLoader } from "components/ui";
|
||||
import { PageHead } from "components/core";
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// constants
|
||||
import { PAGE_TABS_LIST } from "constants/page";
|
||||
import { EmptyStateType } from "constants/empty-state";
|
||||
|
||||
const AllPagesList = dynamic<any>(() => import("components/pages").then((a) => a.AllPagesList), {
|
||||
const AllPagesList = dynamic<any>(() => import("@/components/pages").then((a) => a.AllPagesList), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const FavoritePagesList = dynamic<any>(() => import("components/pages").then((a) => a.FavoritePagesList), {
|
||||
const FavoritePagesList = dynamic<any>(() => import("@/components/pages").then((a) => a.FavoritePagesList), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const PrivatePagesList = dynamic<any>(() => import("components/pages").then((a) => a.PrivatePagesList), {
|
||||
const PrivatePagesList = dynamic<any>(() => import("@/components/pages").then((a) => a.PrivatePagesList), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const ArchivedPagesList = dynamic<any>(() => import("components/pages").then((a) => a.ArchivedPagesList), {
|
||||
const ArchivedPagesList = dynamic<any>(() => import("@/components/pages").then((a) => a.ArchivedPagesList), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const SharedPagesList = dynamic<any>(() => import("components/pages").then((a) => a.SharedPagesList), {
|
||||
const SharedPagesList = dynamic<any>(() => import("@/components/pages").then((a) => a.SharedPagesList), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
import React, { ReactElement } from "react";
|
||||
import { observer } from "mobx-react-lite";
|
||||
import { useRouter } from "next/router";
|
||||
import { IProject } from "@plane/types";
|
||||
// hooks
|
||||
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||
import { AutoArchiveAutomation, AutoCloseAutomation } from "components/automation";
|
||||
import { AutoArchiveAutomation, AutoCloseAutomation } from "@/components/automation";
|
||||
// layouts
|
||||
// ui
|
||||
// components
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectSettingHeader } from "components/headers";
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { useProject, useUser } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectSettingHeader } from "@/components/headers";
|
||||
import { EUserProjectRoles } from "@/constants/project";
|
||||
import { useProject, useUser } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// layouts
|
||||
import { ProjectSettingLayout } from "layouts/settings-layout";
|
||||
import { ProjectSettingLayout } from "@/layouts/settings-layout";
|
||||
// hooks
|
||||
// components
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { IProject } from "@plane/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// constants
|
||||
|
||||
const AutomationSettingsPage: NextPageWithLayout = observer(() => {
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import { ReactElement } from "react";
|
||||
import { observer } from "mobx-react-lite";
|
||||
// hooks
|
||||
import { PageHead } from "components/core";
|
||||
import { EstimatesList } from "components/estimates";
|
||||
import { ProjectSettingHeader } from "components/headers";
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { useUser, useProject } from "hooks/store";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { EstimatesList } from "@/components/estimates";
|
||||
import { ProjectSettingHeader } from "@/components/headers";
|
||||
import { EUserProjectRoles } from "@/constants/project";
|
||||
import { useUser, useProject } from "@/hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "layouts/settings-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "@/layouts/settings-layout";
|
||||
// components
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// constants
|
||||
|
||||
const EstimatesSettingsPage: NextPageWithLayout = observer(() => {
|
||||
|
|
|
|||
|
|
@ -3,18 +3,18 @@ import { observer } from "mobx-react";
|
|||
import { useRouter } from "next/router";
|
||||
import useSWR from "swr";
|
||||
// hooks
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectSettingHeader } from "components/headers";
|
||||
import { ProjectFeaturesList } from "components/project";
|
||||
import { useProject, useUser } from "hooks/store";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectSettingHeader } from "@/components/headers";
|
||||
import { ProjectFeaturesList } from "@/components/project";
|
||||
import { EUserProjectRoles } from "@/constants/project";
|
||||
import { useProject, useUser } from "@/hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "layouts/settings-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "@/layouts/settings-layout";
|
||||
// components
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// constants
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
|
||||
const FeaturesSettingsPage: NextPageWithLayout = observer(() => {
|
||||
const router = useRouter();
|
||||
|
|
|
|||
|
|
@ -3,21 +3,21 @@ import { observer } from "mobx-react-lite";
|
|||
import { useRouter } from "next/router";
|
||||
import useSWR from "swr";
|
||||
// hooks
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectSettingHeader } from "components/headers";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectSettingHeader } from "@/components/headers";
|
||||
import {
|
||||
DeleteProjectModal,
|
||||
DeleteProjectSection,
|
||||
ProjectDetailsForm,
|
||||
ProjectDetailsFormLoader,
|
||||
} from "components/project";
|
||||
import { useProject } from "hooks/store";
|
||||
} from "@/components/project";
|
||||
import { useProject } from "@/hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "layouts/settings-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "@/layouts/settings-layout";
|
||||
// components
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
|
||||
const GeneralSettingsPage: NextPageWithLayout = observer(() => {
|
||||
// states
|
||||
|
|
|
|||
|
|
@ -2,27 +2,27 @@ import { ReactElement } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
import { useRouter } from "next/router";
|
||||
import useSWR from "swr";
|
||||
import { IProject } from "@plane/types";
|
||||
// hooks
|
||||
import { IntegrationsSettingsLoader } from "components/ui";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { EmptyState } from "@/components/empty-state";
|
||||
import { ProjectSettingHeader } from "@/components/headers";
|
||||
import { IntegrationCard } from "@/components/project";
|
||||
import { IntegrationsSettingsLoader } from "@/components/ui";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "layouts/settings-layout";
|
||||
import { EmptyStateType } from "@/constants/empty-state";
|
||||
import { PROJECT_DETAILS, WORKSPACE_INTEGRATIONS } from "@/constants/fetch-keys";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "@/layouts/settings-layout";
|
||||
// services
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { IntegrationService } from "services/integrations";
|
||||
import { ProjectService } from "services/project";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
import { IntegrationService } from "@/services/integrations";
|
||||
import { ProjectService } from "@/services/project";
|
||||
// components
|
||||
import { PageHead } from "components/core";
|
||||
import { IntegrationCard } from "components/project";
|
||||
import { ProjectSettingHeader } from "components/headers";
|
||||
import { EmptyState } from "components/empty-state";
|
||||
// ui
|
||||
// types
|
||||
import { IProject } from "@plane/types";
|
||||
// fetch-keys
|
||||
import { PROJECT_DETAILS, WORKSPACE_INTEGRATIONS } from "constants/fetch-keys";
|
||||
// constants
|
||||
import { EmptyStateType } from "constants/empty-state";
|
||||
|
||||
// services
|
||||
const integrationService = new IntegrationService();
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import { ReactElement } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
// layouts
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectSettingHeader } from "components/headers";
|
||||
import { ProjectSettingsLabelList } from "components/labels";
|
||||
import { useProject } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "layouts/settings-layout";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectSettingHeader } from "@/components/headers";
|
||||
import { ProjectSettingsLabelList } from "@/components/labels";
|
||||
import { useProject } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "@/layouts/settings-layout";
|
||||
// components
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// hooks
|
||||
|
||||
const LabelsSettingsPage: NextPageWithLayout = observer(() => {
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@ import { ReactElement } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
// layouts
|
||||
// components
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectSettingHeader } from "components/headers";
|
||||
import { ProjectMemberList, ProjectSettingsMemberDefaults } from "components/project";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectSettingHeader } from "@/components/headers";
|
||||
import { ProjectMemberList, ProjectSettingsMemberDefaults } from "@/components/project";
|
||||
// types
|
||||
// hooks
|
||||
import { useProject } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "layouts/settings-layout";
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { useProject } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "@/layouts/settings-layout";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
|
||||
const MembersSettingsPage: NextPageWithLayout = observer(() => {
|
||||
// store
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import { ReactElement } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
// layout
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectSettingHeader } from "components/headers";
|
||||
import { ProjectSettingStateList } from "components/states";
|
||||
import { useProject } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "layouts/settings-layout";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectSettingHeader } from "@/components/headers";
|
||||
import { ProjectSettingStateList } from "@/components/states";
|
||||
import { useProject } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
import { ProjectSettingLayout } from "@/layouts/settings-layout";
|
||||
// components
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
// hook
|
||||
|
||||
const StatesSettingsPage: NextPageWithLayout = observer(() => {
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@ import { observer } from "mobx-react";
|
|||
import { useRouter } from "next/router";
|
||||
import useSWR from "swr";
|
||||
// hooks
|
||||
import { EmptyState } from "components/common";
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectViewIssuesHeader } from "components/headers";
|
||||
import { ProjectViewLayoutRoot } from "components/issues";
|
||||
import { useProject, useProjectView } from "hooks/store";
|
||||
import { EmptyState } from "@/components/common";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectViewIssuesHeader } from "@/components/headers";
|
||||
import { ProjectViewLayoutRoot } from "@/components/issues";
|
||||
import { useProject, useProjectView } from "@/hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// components
|
||||
// ui
|
||||
// assets
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
import emptyView from "public/empty-state/view.svg";
|
||||
// types
|
||||
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@ import { ReactElement } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
import { useRouter } from "next/router";
|
||||
// components
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectViewsHeader } from "components/headers";
|
||||
import { ProjectViewsList } from "components/views";
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectViewsHeader } from "@/components/headers";
|
||||
import { ProjectViewsList } from "@/components/views";
|
||||
// hooks
|
||||
import { useProject } from "hooks/store";
|
||||
import { useProject } from "@/hooks/store";
|
||||
// layouts
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
|
||||
const ProjectViewsPage: NextPageWithLayout = observer(() => {
|
||||
// router
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import { ReactElement, useCallback } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
// components
|
||||
import { PageHead } from "components/core";
|
||||
import { ProjectsHeader } from "components/headers";
|
||||
import { ProjectAppliedFiltersList, ProjectCardList } from "components/project";
|
||||
// layouts
|
||||
import { useApplication, useProject, useProjectFilter, useWorkspace } from "hooks/store";
|
||||
import { AppLayout } from "layouts/app-layout";
|
||||
// helpers
|
||||
import { calculateTotalFilters } from "helpers/filter.helper";
|
||||
// types
|
||||
import { NextPageWithLayout } from "lib/types";
|
||||
import { TProjectFilters } from "@plane/types";
|
||||
// components
|
||||
import { PageHead } from "@/components/core";
|
||||
import { ProjectsHeader } from "@/components/headers";
|
||||
import { ProjectAppliedFiltersList, ProjectCardList } from "@/components/project";
|
||||
// layouts
|
||||
import { calculateTotalFilters } from "@/helpers/filter.helper";
|
||||
import { useApplication, useProject, useProjectFilter, useWorkspace } from "@/hooks/store";
|
||||
import { AppLayout } from "@/layouts/app-layout";
|
||||
// helpers
|
||||
// types
|
||||
import { NextPageWithLayout } from "@/lib/types";
|
||||
|
||||
const ProjectsPage: NextPageWithLayout = observer(() => {
|
||||
// store
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue