mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-12 11:23:42 +08:00
feat: add new theme berry (#860)
* feat: add theme berry * docs: add development notes * fix: fix blank page * chore: update implementation * fix: fix package.json * chore: update ui copy --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
This commit is contained in:
58
web/berry/src/routes/OtherRoutes.js
Normal file
58
web/berry/src/routes/OtherRoutes.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import { lazy } from 'react';
|
||||
|
||||
// project imports
|
||||
import Loadable from 'ui-component/Loadable';
|
||||
import MinimalLayout from 'layout/MinimalLayout';
|
||||
|
||||
// login option 3 routing
|
||||
const AuthLogin = Loadable(lazy(() => import('views/Authentication/Auth/Login')));
|
||||
const AuthRegister = Loadable(lazy(() => import('views/Authentication/Auth/Register')));
|
||||
const GitHubOAuth = Loadable(lazy(() => import('views/Authentication/Auth/GitHubOAuth')));
|
||||
const ForgetPassword = Loadable(lazy(() => import('views/Authentication/Auth/ForgetPassword')));
|
||||
const ResetPassword = Loadable(lazy(() => import('views/Authentication/Auth/ResetPassword')));
|
||||
const Home = Loadable(lazy(() => import('views/Home')));
|
||||
const About = Loadable(lazy(() => import('views/About')));
|
||||
const NotFoundView = Loadable(lazy(() => import('views/Error')));
|
||||
|
||||
// ==============================|| AUTHENTICATION ROUTING ||============================== //
|
||||
|
||||
const OtherRoutes = {
|
||||
path: '/',
|
||||
element: <MinimalLayout />,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
element: <Home />
|
||||
},
|
||||
{
|
||||
path: '/about',
|
||||
element: <About />
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
element: <AuthLogin />
|
||||
},
|
||||
{
|
||||
path: '/register',
|
||||
element: <AuthRegister />
|
||||
},
|
||||
{
|
||||
path: '/reset',
|
||||
element: <ForgetPassword />
|
||||
},
|
||||
{
|
||||
path: '/user/reset',
|
||||
element: <ResetPassword />
|
||||
},
|
||||
{
|
||||
path: '/oauth/github',
|
||||
element: <GitHubOAuth />
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
element: <NotFoundView />
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default OtherRoutes;
|
||||
Reference in New Issue
Block a user