mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
44f8ba407d
* auth integration fixes * auth integration fixes * auth integration fixes * auth integration fixes * dev: update user api to return fallback workspace and improve the structure of the response * dev: fix the issue keyerror and move onboarding logic to serializer method field * dev: use-user-auth hook imlemented for route access validation and build issues resolved effected by user payload * fix: global theme color fix * style: new onboarding ui , fix: use-user-auth hook implemented * fix: command palette, project invite modal and issue detail page mutation type fix * fix: onboarding redirection fix * dev: build isuue resolved * fix: use user auth hook fix * fix: sign in toast alert fix, sign out redirection fix and user theme error fix * fix: user response fix * fix: unAuthorizedStatus logic updated --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: gurusainath <gurusainath007@gmail.com> Co-authored-by: anmolsinghbhatia <anmolsinghbhatia@caravel.tech>
59 lines
1.4 KiB
TypeScript
59 lines
1.4 KiB
TypeScript
import dynamic from "next/dynamic";
|
|
|
|
// themes
|
|
import { ThemeProvider } from "next-themes";
|
|
|
|
// styles
|
|
import "styles/globals.css";
|
|
import "styles/editor.css";
|
|
import "styles/command-pallette.css";
|
|
import "styles/nprogress.css";
|
|
import "styles/react-datepicker.css";
|
|
|
|
import Router from "next/router";
|
|
import Head from "next/head";
|
|
|
|
// 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";
|
|
// constants
|
|
import { THEMES } from "constants/themes";
|
|
// constants
|
|
import {
|
|
SITE_NAME,
|
|
SITE_DESCRIPTION,
|
|
SITE_URL,
|
|
TWITTER_USER_NAME,
|
|
SITE_KEYWORDS,
|
|
SITE_TITLE,
|
|
} from "constants/seo-variables";
|
|
|
|
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;
|