mirror of https://github.com/halo-dev/halo
87 lines
1.5 KiB
TypeScript
87 lines
1.5 KiB
TypeScript
import type { RouteRecordRaw } from "vue-router";
|
|
import HomeView from "../views/HomeView.vue";
|
|
import AboutView from "../views/AboutView.vue";
|
|
import ViewComponents from "../views/ViewComponents.vue";
|
|
|
|
export const routes: Array<RouteRecordRaw> = [
|
|
{
|
|
path: "/",
|
|
name: "Dashboard",
|
|
component: HomeView,
|
|
},
|
|
{
|
|
path: "/about",
|
|
name: "about",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/posts",
|
|
name: "Posts",
|
|
component: AboutView,
|
|
children: [
|
|
{
|
|
path: "/posts/categories",
|
|
name: "Categories",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/posts/tags",
|
|
name: "Tags",
|
|
component: AboutView,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/sheets",
|
|
name: "Sheets",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/comment",
|
|
name: "Comment",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/attachment",
|
|
name: "Attachment",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/themes",
|
|
name: "Themes",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/menus",
|
|
name: "Menus",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/visual",
|
|
name: "Visual",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/plugins",
|
|
name: "Plugins",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/users",
|
|
name: "Users",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/settings",
|
|
name: "Settings",
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: "/components",
|
|
name: "Components",
|
|
component: ViewComponents,
|
|
},
|
|
];
|
|
|
|
export default routes;
|