2024-06-26 10:42:50 +00:00
|
|
|
import GatewayLayout from "@/layouts/GatewayLayout.vue";
|
2023-11-13 08:56:08 +00:00
|
|
|
import Forbidden from "@/views/exceptions/Forbidden.vue";
|
2024-06-26 10:42:50 +00:00
|
|
|
import NotFound from "@/views/exceptions/NotFound.vue";
|
2023-11-09 06:56:06 +00:00
|
|
|
import BasicLayout from "@console/layouts/BasicLayout.vue";
|
2024-06-26 10:42:50 +00:00
|
|
|
import Binding from "@console/views/system/Binding.vue";
|
|
|
|
import Login from "@console/views/system/Login.vue";
|
2023-11-09 06:56:06 +00:00
|
|
|
import Redirect from "@console/views/system/Redirect.vue";
|
2023-12-01 03:06:09 +00:00
|
|
|
import ResetPassword from "@console/views/system/ResetPassword.vue";
|
2024-06-26 10:42:50 +00:00
|
|
|
import Setup from "@console/views/system/Setup.vue";
|
|
|
|
import SetupInitialData from "@console/views/system/SetupInitialData.vue";
|
|
|
|
import type { RouteRecordRaw } from "vue-router";
|
2022-04-12 06:23:14 +00:00
|
|
|
|
|
|
|
export const routes: Array<RouteRecordRaw> = [
|
|
|
|
{
|
2022-06-17 06:12:15 +00:00
|
|
|
path: "/:pathMatch(.*)*",
|
2022-05-12 07:28:21 +00:00
|
|
|
component: BasicLayout,
|
2022-06-17 06:12:15 +00:00
|
|
|
children: [{ path: "", name: "NotFound", component: NotFound }],
|
2022-04-12 10:06:13 +00:00
|
|
|
},
|
2022-07-15 08:26:27 +00:00
|
|
|
{
|
|
|
|
path: "/403",
|
|
|
|
component: BasicLayout,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
name: "Forbidden",
|
|
|
|
component: Forbidden,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2024-02-27 10:21:14 +00:00
|
|
|
{
|
|
|
|
path: "/login",
|
|
|
|
component: GatewayLayout,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
name: "Login",
|
|
|
|
component: Login,
|
|
|
|
meta: {
|
|
|
|
title: "core.login.title",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/binding/:provider",
|
|
|
|
component: GatewayLayout,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
name: "Binding",
|
|
|
|
component: Binding,
|
|
|
|
meta: {
|
|
|
|
title: "core.binding.title",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-09-30 09:46:19 +00:00
|
|
|
{
|
|
|
|
path: "/setup",
|
2024-02-27 10:21:14 +00:00
|
|
|
component: GatewayLayout,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
name: "Setup",
|
|
|
|
component: Setup,
|
|
|
|
meta: {
|
|
|
|
title: "core.setup.title",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2022-09-30 09:46:19 +00:00
|
|
|
},
|
2023-08-11 01:10:35 +00:00
|
|
|
{
|
|
|
|
path: "/setup-initial-data",
|
|
|
|
name: "SetupInitialData",
|
|
|
|
component: SetupInitialData,
|
|
|
|
meta: {
|
|
|
|
title: "core.setup.title",
|
|
|
|
},
|
|
|
|
},
|
2023-05-31 06:55:01 +00:00
|
|
|
{
|
|
|
|
path: "/redirect",
|
|
|
|
name: "Redirect",
|
|
|
|
component: Redirect,
|
|
|
|
},
|
2023-12-01 03:06:09 +00:00
|
|
|
{
|
|
|
|
path: "/reset-password",
|
2024-02-27 10:21:14 +00:00
|
|
|
component: GatewayLayout,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
name: "ResetPassword",
|
|
|
|
component: ResetPassword,
|
|
|
|
meta: {
|
|
|
|
title: "core.reset_password.title",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2023-12-01 03:06:09 +00:00
|
|
|
},
|
2022-04-12 06:23:14 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
export default routes;
|