|
|
|
@ -1,24 +1,22 @@
|
|
|
|
|
import { lazy } from "react";
|
|
|
|
|
import { createBrowserRouter } from "react-router-dom";
|
|
|
|
|
import App from "@/App";
|
|
|
|
|
import HomeLayout from "@/layouts/HomeLayout";
|
|
|
|
|
import SuspenseWrapper from "@/layouts/SuspenseWrapper";
|
|
|
|
|
|
|
|
|
|
const SignIn = lazy(() => import("@/pages/SignIn"));
|
|
|
|
|
const SignUp = lazy(() => import("@/pages/SignUp"));
|
|
|
|
|
const AuthCallback = lazy(() => import("@/pages/AuthCallback"));
|
|
|
|
|
const Explore = lazy(() => import("@/pages/Explore"));
|
|
|
|
|
const Home = lazy(() => import("@/pages/Home"));
|
|
|
|
|
const UserProfile = lazy(() => import("@/pages/UserProfile"));
|
|
|
|
|
const MemoDetail = lazy(() => import("@/pages/MemoDetail"));
|
|
|
|
|
const Archived = lazy(() => import("@/pages/Archived"));
|
|
|
|
|
const Timeline = lazy(() => import("@/pages/Timeline"));
|
|
|
|
|
const Resources = lazy(() => import("@/pages/Resources"));
|
|
|
|
|
const Inboxes = lazy(() => import("@/pages/Inboxes"));
|
|
|
|
|
const Setting = lazy(() => import("@/pages/Setting"));
|
|
|
|
|
const About = lazy(() => import("@/pages/About"));
|
|
|
|
|
const NotFound = lazy(() => import("@/pages/NotFound"));
|
|
|
|
|
const PermissionDenied = lazy(() => import("@/pages/PermissionDenied"));
|
|
|
|
|
import About from "@/pages/About";
|
|
|
|
|
import Archived from "@/pages/Archived";
|
|
|
|
|
import AuthCallback from "@/pages/AuthCallback";
|
|
|
|
|
import Explore from "@/pages/Explore";
|
|
|
|
|
import Home from "@/pages/Home";
|
|
|
|
|
import Inboxes from "@/pages/Inboxes";
|
|
|
|
|
import MemoDetail from "@/pages/MemoDetail";
|
|
|
|
|
import NotFound from "@/pages/NotFound";
|
|
|
|
|
import PermissionDenied from "@/pages/PermissionDenied";
|
|
|
|
|
import Resources from "@/pages/Resources";
|
|
|
|
|
import Setting from "@/pages/Setting";
|
|
|
|
|
import SignIn from "@/pages/SignIn";
|
|
|
|
|
import SignUp from "@/pages/SignUp";
|
|
|
|
|
import Timeline from "@/pages/Timeline";
|
|
|
|
|
import UserProfile from "@/pages/UserProfile";
|
|
|
|
|
|
|
|
|
|
export enum Routes {
|
|
|
|
|
HOME = "/",
|
|
|
|
|