mirror of https://github.com/halo-dev/halo
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
import BasicLayout from "@console/layouts/BasicLayout.vue";
|
|
import { IconDashboard } from "@halo-dev/components";
|
|
import { definePlugin } from "@halo-dev/console-shared";
|
|
import Dashboard from "./Dashboard.vue";
|
|
|
|
import { markRaw } from "vue";
|
|
import QuickLinkWidget from "./widgets/QuickLinkWidget.vue";
|
|
import ViewsStatsWidget from "./widgets/ViewsStatsWidget.vue";
|
|
|
|
export default definePlugin({
|
|
components: {
|
|
QuickLinkWidget,
|
|
ViewsStatsWidget,
|
|
},
|
|
routes: [
|
|
{
|
|
path: "/",
|
|
component: BasicLayout,
|
|
name: "Root",
|
|
redirect: "/dashboard",
|
|
children: [
|
|
{
|
|
path: "dashboard",
|
|
name: "Dashboard",
|
|
component: Dashboard,
|
|
meta: {
|
|
title: "core.dashboard.title",
|
|
searchable: true,
|
|
menu: {
|
|
name: "core.sidebar.menu.items.dashboard",
|
|
group: "dashboard",
|
|
icon: markRaw(IconDashboard),
|
|
priority: 0,
|
|
mobile: true,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|