mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
chore: ee repo improvements and lint fixes. (#1326)
* chore: move plans constant to `ee` folder. * fix: all lint error accross `ee` repo.
This commit is contained in:
@@ -5,8 +5,7 @@ import useSWR from "swr";
|
||||
import { CircleX } from "lucide-react";
|
||||
// types
|
||||
import { IPaymentProduct } from "@plane/types";
|
||||
// types
|
||||
// services
|
||||
// ui
|
||||
import { EModalWidth, ModalCore } from "@plane/ui";
|
||||
// plane web components
|
||||
import { cn } from "@/helpers/common.helper";
|
||||
|
||||
@@ -4,10 +4,10 @@ import { FC, useEffect, useRef, useState } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Eye, EyeOff, XCircle } from "lucide-react";
|
||||
import { Button, Input, Spinner } from "@plane/ui";
|
||||
// hooks
|
||||
// helpers
|
||||
import { EAuthSteps } from "@/helpers/authentication.helper";
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
// hooks
|
||||
import { useInstance } from "@/hooks/store";
|
||||
// services
|
||||
import { AuthService } from "@/services/auth.service";
|
||||
|
||||
@@ -4,12 +4,12 @@ import { FC, useEffect, useRef, useState } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { CircleCheck, XCircle } from "lucide-react";
|
||||
import { Button, Input, Spinner } from "@plane/ui";
|
||||
// hooks
|
||||
// helpers
|
||||
import { EAuthSteps } from "@/helpers/authentication.helper";
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
// services
|
||||
// hooks
|
||||
import useTimer from "@/hooks/use-timer";
|
||||
// services
|
||||
import { AuthService } from "@/services/auth.service";
|
||||
|
||||
const authService = new AuthService();
|
||||
@@ -95,7 +95,7 @@ export const MobileAuthUniqueCodeForm: FC<TMobileAuthUniqueCodeForm> = observer(
|
||||
event.preventDefault(); // Prevent form from submitting by default
|
||||
setIsSubmitting(true);
|
||||
await handleCSRFToken();
|
||||
authFormRef.current && authFormRef.current.submit();
|
||||
if (authFormRef.current) authFormRef.current.submit();
|
||||
}}
|
||||
>
|
||||
<input type="hidden" name="csrfmiddlewaretoken" />
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { useSearchParams } from "next/navigation";
|
||||
// plane editor
|
||||
import { EditorReadOnlyRefApi, EditorRefApi, useEditorMarkings } from "@plane/editor";
|
||||
import { EditorReadOnlyRefApi, EditorRefApi } from "@plane/editor";
|
||||
// plane types
|
||||
import { TPage } from "@plane/types";
|
||||
// plane ui
|
||||
@@ -57,8 +57,6 @@ export const WorkspacePageRoot = observer((props: TPageRootProps) => {
|
||||
hasConnectionFailed,
|
||||
updatePageDescription: async (data) => await updateDescription(data),
|
||||
});
|
||||
// editor markings hook
|
||||
const { updateMarkings } = useEditorMarkings();
|
||||
// update query params
|
||||
const { updateQueryParams } = useQueryParams();
|
||||
|
||||
|
||||
@@ -9,13 +9,13 @@ import { Disclosure, Transition } from "@headlessui/react";
|
||||
// plane types
|
||||
import { TPage, TPageNavigationTabs } from "@plane/types";
|
||||
// plane ui
|
||||
import { ArchiveIcon, Tooltip, setToast, TOAST_TYPE } from "@plane/ui";
|
||||
import { ArchiveIcon, setToast, TOAST_TYPE, Tooltip } from "@plane/ui";
|
||||
// constants
|
||||
import { EPageAccess } from "@/constants/page";
|
||||
// helpers
|
||||
import { cn } from "@/helpers/common.helper";
|
||||
// hooks
|
||||
import { useAppTheme, useCommandPalette, useEventTracker } from "@/hooks/store";
|
||||
import { useAppTheme, useEventTracker } from "@/hooks/store";
|
||||
// plane web components
|
||||
import { PagesAppSidebarListItem } from "@/plane-web/components/pages";
|
||||
// plane web hooks
|
||||
@@ -30,7 +30,6 @@ export const PagesAppSidebarList = observer(() => {
|
||||
// store hooks
|
||||
const { sidebarCollapsed } = useAppTheme();
|
||||
const { setTrackElement } = useEventTracker();
|
||||
const { toggleCreatePageModal } = useCommandPalette();
|
||||
const { getCurrentWorkspacePageIdsByType, createPage } = useWorkspacePages();
|
||||
// derived values
|
||||
const isCollapsed = sidebarCollapsed || false;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
import { FC, useState, FormEvent } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { useParams } from "next/navigation";
|
||||
import { cn } from "@plane/editor";
|
||||
import { Button, EModalWidth, Input, ModalCore, setToast, TOAST_TYPE } from "@plane/ui";
|
||||
// components
|
||||
import { WorkspaceLogo } from "@/components/workspace";
|
||||
// helpers
|
||||
import { getFileURL } from "@/helpers/file.helper";
|
||||
import { cn } from "@/helpers/common.helper";
|
||||
// hooks
|
||||
import { getFileURL } from "@/helpers/file.helper";
|
||||
import { useUserPermissions, useWorkspace } from "@/hooks/store";
|
||||
// plane web constants
|
||||
import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
|
||||
|
||||
@@ -8,11 +8,12 @@ import { TProductSubscriptionType } from "@plane/types";
|
||||
// ui
|
||||
import { Button, Loader } from "@plane/ui";
|
||||
// constants
|
||||
import { ComingSoonBadge, PLANE_PLANS, TPlanDetail, TPlanePlans, TPlanFeatureData } from "@/constants/plans";
|
||||
// helpers
|
||||
import { cn } from "@/helpers/common.helper";
|
||||
// plane web components
|
||||
import { calculateYearlyDiscount } from "@/plane-web/components/license";
|
||||
// plane web constants
|
||||
import { ComingSoonBadge, PLANE_PLANS, TPlanDetail, TPlanePlans, TPlanFeatureData } from "@/plane-web/constants/plans";
|
||||
// plane web hooks
|
||||
import { useWorkspaceSubscription } from "@/plane-web/hooks/store";
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@ import { IssueActivityService } from "@/services/issue";
|
||||
|
||||
export type TActivityLoader = "fetch" | "mutate" | undefined;
|
||||
|
||||
export interface IIssueActivityStoreActions extends IIssueActivityStoreActionsCe {}
|
||||
export type IIssueActivityStoreActions = IIssueActivityStoreActionsCe;
|
||||
|
||||
export interface IIssueActivityStore extends IIssueActivityStoreCe {}
|
||||
export type IIssueActivityStore = IIssueActivityStoreCe;
|
||||
|
||||
export class IssueActivityStore extends IssueActivityStoreCe implements IIssueActivityStore {
|
||||
// services
|
||||
|
||||
Reference in New Issue
Block a user