mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-14 08:29:50 +00:00
93 lines
2.1 KiB
TypeScript
93 lines
2.1 KiB
TypeScript
import { createHashRouter } from "react-router-dom";
|
|
|
|
import DashboardLayout from "./pages/DashboardLayout";
|
|
import Home from "./pages/domains/Home";
|
|
import Edit from "./pages/domains/Edit";
|
|
import Access from "./pages/access/Access";
|
|
import History from "./pages/history/History";
|
|
import Login from "./pages/login/Login";
|
|
import LoginLayout from "./pages/LoginLayout";
|
|
import Password from "./pages/setting/Password";
|
|
import SettingLayout from "./pages/SettingLayout";
|
|
import Dashboard from "./pages/dashboard/Dashboard";
|
|
import Account from "./pages/setting/Account";
|
|
import Notify from "./pages/setting/Notify";
|
|
import SSLProvider from "./pages/setting/SSLProvider";
|
|
import Workflow from "./pages/workflow";
|
|
import WorkflowDetail from "./pages/workflow/WorkflowDetail";
|
|
import Certificate from "./pages/certificate";
|
|
|
|
export const router = createHashRouter([
|
|
{
|
|
path: "/",
|
|
element: <DashboardLayout />,
|
|
children: [
|
|
{
|
|
path: "/",
|
|
element: <Dashboard />,
|
|
},
|
|
{
|
|
path: "/domains",
|
|
element: <Home />,
|
|
},
|
|
{
|
|
path: "/edit",
|
|
element: <Edit />,
|
|
},
|
|
{
|
|
path: "/access",
|
|
element: <Access />,
|
|
},
|
|
{
|
|
path: "/history",
|
|
element: <History />,
|
|
},
|
|
{
|
|
path: "/workflow",
|
|
element: <Workflow />,
|
|
},
|
|
{
|
|
path: "/certificate",
|
|
element: <Certificate />,
|
|
},
|
|
{
|
|
path: "/setting",
|
|
element: <SettingLayout />,
|
|
children: [
|
|
{
|
|
path: "/setting/password",
|
|
element: <Password />,
|
|
},
|
|
{
|
|
path: "/setting/account",
|
|
element: <Account />,
|
|
},
|
|
{
|
|
path: "/setting/notify",
|
|
element: <Notify />,
|
|
},
|
|
{
|
|
path: "/setting/ssl-provider",
|
|
element: <SSLProvider />,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/login",
|
|
element: <LoginLayout />,
|
|
children: [
|
|
{
|
|
path: "/login",
|
|
element: <Login />,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/workflow/detail",
|
|
element: <WorkflowDetail />,
|
|
},
|
|
]);
|
|
|