mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
afb92ea850
* feat: cmdk integration * feat: create view, cycle, project, module and workspace from command k * feat: user can logout directly from command menu * feat: user can visit sub page like various settings * feat: change state of issue from command menu * chore: add current issue state and minor UX improvements * refactor: moved change issue state to new file * feat: change issue priority from command k * feat: delete issue from command k * feat: copy issue url to clipboard * fix: change placeholder when settings page is selected * chore: remove logout option from cmd k * feat: add help options to cmd k * feat: assign issue to member from cmd k * feat: now assign issue to yourself from cmd k * chore: implement new cmd k design with icons * feat: implemented global search feature in the cmd k * feat: add keyboard acessibility to cmd k list items * chore: remove console logs * fix: pages icon in cmd list --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import dynamic from "next/dynamic";
|
|
|
|
// styles
|
|
import "styles/globals.css";
|
|
import "styles/editor.css";
|
|
import "styles/command-pallette.css";
|
|
import "styles/nprogress.css";
|
|
|
|
// router
|
|
import Router from "next/router";
|
|
|
|
// nprogress
|
|
import NProgress from "nprogress";
|
|
|
|
// contexts
|
|
import { UserProvider } from "contexts/user.context";
|
|
import { ToastContextProvider } from "contexts/toast.context";
|
|
import { ThemeContextProvider } from "contexts/theme.context";
|
|
// types
|
|
import type { AppProps } from "next/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);
|
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
|
return (
|
|
<UserProvider>
|
|
<ToastContextProvider>
|
|
<ThemeContextProvider>
|
|
<CrispWithNoSSR />
|
|
<Component {...pageProps} />
|
|
</ThemeContextProvider>
|
|
</ToastContextProvider>
|
|
</UserProvider>
|
|
);
|
|
}
|
|
|
|
export default MyApp;
|