Compare commits

...

2 Commits

Author SHA1 Message Date
sriramveeraghanta
8df67c339b fix: appdir setup 2023-11-08 22:45:27 +05:30
sriramveeraghanta
1ea52d47a0 fix: appdir setup 2023-11-08 22:44:57 +05:30
363 changed files with 580 additions and 347 deletions

View File

@ -2,7 +2,7 @@
// @ts-nocheck // @ts-nocheck
import { NodeViewWrapper } from "@tiptap/react"; import { NodeViewWrapper } from "@tiptap/react";
import { cn } from "../../lib/utils"; import { cn } from "../../lib/utils";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { IMentionHighlight } from "../../types/mention-suggestion"; import { IMentionHighlight } from "../../types/mention-suggestion";
// eslint-disable-next-line import/no-anonymous-default-export // eslint-disable-next-line import/no-anonymous-default-export

View File

@ -15,7 +15,10 @@
"module": "esnext", "module": "esnext",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve" "jsx": "react",
"paths": {
"react": [ "./node_modules/@types/react" ]
}
}, },
"include": ["src", "next-env.d.ts"], "include": ["src", "next-env.d.ts"],
"exclude": ["node_modules"] "exclude": ["node_modules"]

View File

@ -4,9 +4,13 @@
"extends": "./base.json", "extends": "./base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
"strict": true,
"lib": ["ES2015", "DOM"], "lib": ["ES2015", "DOM"],
"module": "ESNext", "module": "ESNext",
"target": "es6", "target": "es6",
"sourceMap": true "sourceMap": true,
"paths": {
"react": [ "./node_modules/@types/react" ]
}
} }
} }

View File

@ -30,9 +30,6 @@
"tsup": "^5.10.1", "tsup": "^5.10.1",
"typescript": "4.7.4" "typescript": "4.7.4"
}, },
"publishConfig": {
"access": "public"
},
"dependencies": { "dependencies": {
"@blueprintjs/core": "^4.16.3", "@blueprintjs/core": "^4.16.3",
"@blueprintjs/popover2": "^1.13.3", "@blueprintjs/popover2": "^1.13.3",

View File

@ -1,5 +1,5 @@
import React, { useState } from "react"; import React, { useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import Link from "next/link"; import Link from "next/link";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
// components // components

View File

@ -1,7 +1,7 @@
import { useEffect, useState, FC } from "react"; import { useEffect, useState, FC } from "react";
import Link from "next/link"; import Link from "next/link";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// next-themes // next-themes
import { useTheme } from "next-themes"; import { useTheme } from "next-themes";
// images // images

View File

@ -1,5 +1,5 @@
import { useEffect, Fragment } from "react"; import { useEffect, Fragment } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { Controller, useForm } from "react-hook-form"; import { Controller, useForm } from "react-hook-form";
import { Listbox, Transition } from "@headlessui/react"; import { Listbox, Transition } from "@headlessui/react";

View File

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import useSWR from "swr"; import useSWR from "swr";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx // mobx
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -11,7 +11,7 @@ import { IssueBlockDueDate } from "components/issues/board-views/block-due-date"
// interfaces // interfaces
import { IIssue } from "types/issue"; import { IIssue } from "types/issue";
import { RootStore } from "store/root"; import { RootStore } from "store/root";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
export const IssueListBlock = observer(({ issue }: { issue: IIssue }) => { export const IssueListBlock = observer(({ issue }: { issue: IIssue }) => {
const { project: projectStore, issueDetails: issueDetailStore }: RootStore = useMobxStore(); const { project: projectStore, issueDetails: issueDetailStore }: RootStore = useMobxStore();

View File

@ -1,5 +1,5 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// components // components
import { IssueBlockPriority } from "components/issues/board-views/block-priority"; import { IssueBlockPriority } from "components/issues/board-views/block-priority";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx react lite // mobx react lite
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// components // components

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx react lite // mobx react lite
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// mobx hook // mobx hook

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx react lite // mobx react lite
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// components // components

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx react lite // mobx react lite
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// mobx hook // mobx hook

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx react lite // mobx react lite
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// mobx hook // mobx hook

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx react lite // mobx react lite
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// mobx hook // mobx hook

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx react lite // mobx react lite
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// components // components

View File

@ -2,7 +2,7 @@ import { useEffect } from "react";
import Link from "next/link"; import Link from "next/link";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx // mobx
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// constants // constants
import { issueViews } from "constants/data"; import { issueViews } from "constants/data";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { ChevronDown } from "lucide-react"; import { ChevronDown } from "lucide-react";
// mobx store // mobx store

View File

@ -1,5 +1,5 @@
import React, { useRef } from "react"; import React, { useRef } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { useForm, Controller } from "react-hook-form"; import { useForm, Controller } from "react-hook-form";
// lib // lib

View File

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx // mobx
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import Link from "next/link"; import Link from "next/link";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx // mobx
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -1,5 +1,5 @@
import { useEffect } from "react"; import { useEffect } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// lib // lib
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,6 +1,6 @@
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx // mobx
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx // mobx
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -1,7 +1,7 @@
import { useEffect } from "react"; import { useEffect } from "react";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx // mobx
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -2,7 +2,7 @@
import { useEffect } from "react"; import { useEffect } from "react";
// next imports // next imports
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// js cookie // js cookie
import Cookie from "js-cookie"; import Cookie from "js-cookie";
// mobx store // mobx store

View File

@ -1,5 +1,5 @@
import Head from "next/head"; import Head from "next/head";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";

View File

@ -2,7 +2,7 @@ import { useEffect } from "react";
// next // next
import { NextPage } from "next"; import { NextPage } from "next";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
const Index: NextPage = () => { const Index: NextPage = () => {
const router = useRouter(); const router = useRouter();

56
web/app/layout.tsx Normal file
View File

@ -0,0 +1,56 @@
"use client"
import { ReactElement } from "react";
import Head from "next/head";
import dynamic from "next/dynamic";
import Router from "next/navigation";
import { AppProps } from "next/app";
import { ThemeProvider } from "next-themes";
import NProgress from "nprogress";
// styles
import "styles/globals.css";
import "styles/editor.css";
import "styles/table.css";
import "styles/command-pallette.css";
import "styles/nprogress.css";
import "styles/react-datepicker.css";
// contexts
import { ToastContextProvider } from "contexts/toast.context";
// constants
import { THEMES } from "constants/themes";
import { SITE_TITLE } from "constants/seo-variables";
// mobx store provider
import { MobxStoreProvider } from "lib/mobx/store-provider";
import MobxStoreInit from "lib/mobx/store-init";
// types
import { NextPageWithLayout } from "types/app";
const CrispWithNoSSR = dynamic(() => import("constants/crisp"), { ssr: false });
// // nprogress
// NProgress.configure({ showSpinner: false });
// Router.events.on("routeChangeStart", NProgress.start);
// Router.events.on("routeChangeError", NProgress.done);
// Router.events.on("routeChangeComplete", NProgress.done);
export default function AppLayout({ children }:any) {
// Use the layout defined at the page level, if available
// const getLayout = Component.getLayout ?? ((page: ReactElement) => page);
return (
<>
<Head>
<title>{SITE_TITLE}</title>
</Head>
<MobxStoreProvider>
<ThemeProvider themes={THEMES} defaultTheme="system">
<ToastContextProvider>
<CrispWithNoSSR />
<MobxStoreInit />
{children}
</ToastContextProvider>
</ThemeProvider>
</MobxStoreProvider>
</>
);
}

16
web/app/page.tsx Normal file
View File

@ -0,0 +1,16 @@
"use client"
import { ReactElement } from "react";
// layouts
import DefaultLayout from "layouts/default-layout";
// components
import { SignInView } from "components/page-views";
// type
import { NextPageWithLayout } from "types/app";
const HomePage: NextPageWithLayout = () => <SignInView />;
// HomePage.getLayout = function getLayout(page: ReactElement) {
// return <DefaultLayout>{page}</DefaultLayout>;
// };
export default HomePage;

View File

@ -1,5 +1,5 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { useForm, Controller } from "react-hook-form"; import { useForm, Controller } from "react-hook-form";
// ui // ui
import { Input, Button } from "@plane/ui"; import { Input, Button } from "@plane/ui";

View File

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { useForm, Controller } from "react-hook-form"; import { useForm, Controller } from "react-hook-form";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// ui // ui
import { Input, Button } from "@plane/ui"; import { Input, Button } from "@plane/ui";

View File

@ -1,7 +1,7 @@
import { useEffect, useState, FC } from "react"; import { useEffect, useState, FC } from "react";
import Link from "next/link"; import Link from "next/link";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { useTheme } from "next-themes"; import { useTheme } from "next-themes";
// images // images
import githubBlackImage from "/public/logos/github-black.png"; import githubBlackImage from "/public/logos/github-black.png";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { mutate } from "swr"; import { mutate } from "swr";
// components // components

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { Control, Controller, UseFormSetValue } from "react-hook-form"; import { Control, Controller, UseFormSetValue } from "react-hook-form";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// ui // ui
import { CustomSelect } from "@plane/ui"; import { CustomSelect } from "@plane/ui";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// ui // ui
import { CustomSelect } from "@plane/ui"; import { CustomSelect } from "@plane/ui";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// mobx store // mobx store

View File

@ -1,5 +1,5 @@
import { useEffect } from "react"; import { useEffect } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { mutate } from "swr"; import { mutate } from "swr";
// services // services

View File

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { Tab } from "@headlessui/react"; import { Tab } from "@headlessui/react";
// mobx store // mobx store

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";

View File

@ -2,7 +2,7 @@ import React from "react";
// next // next
import Link from "next/link"; import Link from "next/link";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// layouts // layouts
import DefaultLayout from "layouts/default-layout"; import DefaultLayout from "layouts/default-layout";
// hooks // hooks

View File

@ -1,6 +1,6 @@
import { useState } from "react"; import { useState } from "react";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx store // mobx store
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";
// ui // ui

View File

@ -1,6 +1,6 @@
import React, { useState } from "react"; import React, { useState } from "react";
import useSWR from "swr"; import useSWR from "swr";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// component // component
import { SelectMonthModal } from "components/automation"; import { SelectMonthModal } from "components/automation";
import { CustomSelect, CustomSearchSelect, ToggleSwitch, StateGroupIcon, DoubleCircleIcon } from "@plane/ui"; import { CustomSelect, CustomSearchSelect, ToggleSwitch, StateGroupIcon, DoubleCircleIcon } from "@plane/ui";

View File

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// react-hook-form // react-hook-form
import { Controller, useForm } from "react-hook-form"; import { Controller, useForm } from "react-hook-form";
// headless ui // headless ui

View File

@ -1,5 +1,5 @@
import * as React from "react"; import * as React from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import Link from "next/link"; import Link from "next/link";
// icons // icons
import { MoveLeft } from "lucide-react"; import { MoveLeft } from "lucide-react";

View File

@ -1,5 +1,5 @@
import React, { useCallback, useEffect, useState } from "react"; import React, { useCallback, useEffect, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR, { mutate } from "swr"; import useSWR, { mutate } from "swr";
import { Command } from "cmdk"; import { Command } from "cmdk";
import { Dialog, Transition } from "@headlessui/react"; import { Dialog, Transition } from "@headlessui/react";

View File

@ -1,5 +1,5 @@
import React, { useCallback, useEffect, FC } from "react"; import React, { useCallback, useEffect, FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// hooks // hooks

View File

@ -1,5 +1,5 @@
import { Dispatch, SetStateAction, useCallback, FC } from "react"; import { Dispatch, SetStateAction, useCallback, FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { mutate } from "swr"; import { mutate } from "swr";
import { Command } from "cmdk"; import { Command } from "cmdk";

View File

@ -1,6 +1,6 @@
import React, { Dispatch, SetStateAction, useCallback } from "react"; import React, { Dispatch, SetStateAction, useCallback } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { mutate } from "swr"; import { mutate } from "swr";

View File

@ -1,6 +1,6 @@
import React, { Dispatch, SetStateAction, useCallback } from "react"; import React, { Dispatch, SetStateAction, useCallback } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR, { mutate } from "swr"; import useSWR, { mutate } from "swr";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";

View File

@ -1,6 +1,6 @@
import React, { useEffect, useState, useRef, useCallback } from "react"; import React, { useEffect, useState, useRef, useCallback } from "react";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import useSWR from "swr"; import useSWR from "swr";
import { useDropzone } from "react-dropzone"; import { useDropzone } from "react-dropzone";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react"; import React, { useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";
// react hook form // react hook form
import { SubmitHandler, useForm } from "react-hook-form"; import { SubmitHandler, useForm } from "react-hook-form";

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { Combobox, Dialog, Transition } from "@headlessui/react"; import { Combobox, Dialog, Transition } from "@headlessui/react";
import { Rocket, Search, X } from "lucide-react"; import { Rocket, Search, X } from "lucide-react";
// services // services

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState, useRef } from "react"; import React, { useEffect, useState, useRef } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// react-hook-form // react-hook-form
import { Controller, useForm } from "react-hook-form"; import { Controller, useForm } from "react-hook-form";
// services // services

View File

@ -1,5 +1,5 @@
import React, { useCallback, useState } from "react"; import React, { useCallback, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { useDropzone } from "react-dropzone"; import { useDropzone } from "react-dropzone";
import { Transition, Dialog } from "@headlessui/react"; import { Transition, Dialog } from "@headlessui/react";

View File

@ -1,6 +1,6 @@
import { MouseEvent } from "react"; import { MouseEvent } from "react";
import Link from "next/link"; import Link from "next/link";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";
// hooks // hooks
import useToast from "hooks/use-toast"; import useToast from "hooks/use-toast";

View File

@ -1,6 +1,6 @@
import React, { useEffect } from "react"; import React, { useEffect } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// mobx // mobx
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -1,5 +1,5 @@
import { FC, MouseEvent, useState } from "react"; import { FC, MouseEvent, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import Link from "next/link"; import Link from "next/link";
// hooks // hooks
import useToast from "hooks/use-toast"; import useToast from "hooks/use-toast";

View File

@ -1,6 +1,6 @@
import { FC, MouseEvent, useState } from "react"; import { FC, MouseEvent, useState } from "react";
import Link from "next/link"; import Link from "next/link";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// stores // stores
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// ui // ui
import { Tooltip, ContrastIcon } from "@plane/ui"; import { Tooltip, ContrastIcon } from "@plane/ui";

View File

@ -1,6 +1,6 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { KeyedMutator } from "swr"; import { KeyedMutator } from "swr";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react"; import React, { useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";
import { Listbox, Transition } from "@headlessui/react"; import { Listbox, Transition } from "@headlessui/react";
// icons // icons

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { mutate } from "swr"; import { mutate } from "swr";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react"; import React, { useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";
import { Dialog, Transition } from "@headlessui/react"; import { Dialog, Transition } from "@headlessui/react";
// services // services

View File

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR from "swr"; import useSWR from "swr";

View File

@ -1,5 +1,5 @@
import React, { useEffect } from "react"; import React, { useEffect } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { Controller, useForm } from "react-hook-form"; import { Controller, useForm } from "react-hook-form";
import { Dialog, Transition } from "@headlessui/react"; import { Dialog, Transition } from "@headlessui/react";

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { Dialog, Transition } from "@headlessui/react"; import { Dialog, Transition } from "@headlessui/react";
// store // store
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// store // store
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react"; import React, { useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// store // store
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react"; import React, { useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { Dialog, Transition } from "@headlessui/react"; import { Dialog, Transition } from "@headlessui/react";
// mobx store // mobx store

View File

@ -2,7 +2,7 @@ import { useState } from "react";
import Link from "next/link"; import Link from "next/link";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import useSWR, { mutate } from "swr"; import useSWR, { mutate } from "swr";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { DragDropContext, Draggable, DropResult } from "@hello-pangea/dnd"; import { DragDropContext, Draggable, DropResult } from "@hello-pangea/dnd";
import StrictModeDroppable from "components/dnd/StrictModeDroppable"; import StrictModeDroppable from "components/dnd/StrictModeDroppable";
import { MoreVertical } from "lucide-react"; import { MoreVertical } from "lucide-react";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { DragDropContext, Draggable, DropResult } from "@hello-pangea/dnd"; import { DragDropContext, Draggable, DropResult } from "@hello-pangea/dnd";
import StrictModeDroppable from "components/dnd/StrictModeDroppable"; import StrictModeDroppable from "components/dnd/StrictModeDroppable";
import { MoreVertical } from "lucide-react"; import { MoreVertical } from "lucide-react";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { DragDropContext, Draggable, DropResult } from "@hello-pangea/dnd"; import { DragDropContext, Draggable, DropResult } from "@hello-pangea/dnd";
import StrictModeDroppable from "components/dnd/StrictModeDroppable"; import StrictModeDroppable from "components/dnd/StrictModeDroppable";
import { MoreVertical } from "lucide-react"; import { MoreVertical } from "lucide-react";

View File

@ -1,5 +1,5 @@
import { useCallback, useState } from "react"; import { useCallback, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// mobx store // mobx store
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { Plus } from "lucide-react"; import { Plus } from "lucide-react";
// ui // ui
import { Breadcrumbs, Button, ContrastIcon } from "@plane/ui"; import { Breadcrumbs, Button, ContrastIcon } from "@plane/ui";

View File

@ -1,6 +1,6 @@
import { useCallback, useState } from "react"; import { useCallback, useState } from "react";
import Link from "next/link"; import Link from "next/link";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import useSWR from "swr"; import useSWR from "swr";

View File

@ -1,5 +1,5 @@
import { useCallback, useState } from "react"; import { useCallback, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// mobx store // mobx store
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { Plus } from "lucide-react"; import { Plus } from "lucide-react";
// mobx store // mobx store

View File

@ -1,5 +1,5 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { FileText, Plus } from "lucide-react"; import { FileText, Plus } from "lucide-react";
// services // services

View File

@ -1,5 +1,5 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { FileText, Plus } from "lucide-react"; import { FileText, Plus } from "lucide-react";
// hooks // hooks

View File

@ -1,6 +1,6 @@
import { FC } from "react"; import { FC } from "react";
import useSWR from "swr"; import useSWR from "swr";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// hooks // hooks
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// hooks // hooks
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// hooks // hooks
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { FC, useState } from "react"; import { FC, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { Plus } from "lucide-react"; import { Plus } from "lucide-react";
// hooks // hooks

View File

@ -1,6 +1,6 @@
import { FC } from "react"; import { FC } from "react";
import useSWR from "swr"; import useSWR from "swr";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// ui // ui

View File

@ -1,6 +1,6 @@
import { useCallback, useState } from "react"; import { useCallback, useState } from "react";
import Link from "next/link"; import Link from "next/link";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { ArrowLeft, Circle, ExternalLink, Plus } from "lucide-react"; import { ArrowLeft, Circle, ExternalLink, Plus } from "lucide-react";
// mobx store // mobx store

View File

@ -1,5 +1,5 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// ui // ui
import { Breadcrumbs } from "@plane/ui"; import { Breadcrumbs } from "@plane/ui";

View File

@ -1,5 +1,5 @@
import { useCallback } from "react"; import { useCallback } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// mobx store // mobx store
import { useMobxStore } from "lib/mobx/store-provider"; import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { useState } from "react"; import { useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { Plus } from "lucide-react"; import { Plus } from "lucide-react";
// mobx store // mobx store

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { Search, Plus, Briefcase } from "lucide-react"; import { Search, Plus, Briefcase } from "lucide-react";
// ui // ui
import { Breadcrumbs, Button } from "@plane/ui"; import { Breadcrumbs, Button } from "@plane/ui";

View File

@ -1,5 +1,5 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// ui // ui
import { Breadcrumbs } from "@plane/ui"; import { Breadcrumbs } from "@plane/ui";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { ArrowLeft, BarChart2 } from "lucide-react"; import { ArrowLeft, BarChart2 } from "lucide-react";
// ui // ui
import { Breadcrumbs } from "@plane/ui"; import { Breadcrumbs } from "@plane/ui";

View File

@ -1,6 +1,6 @@
import { FC } from "react"; import { FC } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
// ui // ui
import { Breadcrumbs } from "@plane/ui"; import { Breadcrumbs } from "@plane/ui";

View File

@ -1,5 +1,5 @@
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import DatePicker from "react-datepicker"; import DatePicker from "react-datepicker";
import { Popover } from "@headlessui/react"; import { Popover } from "@headlessui/react";

Some files were not shown because too many files have changed in this diff Show More