mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
Move folder console to ui
This commit is contained in:
41
ui/console-src/modules/dashboard/module.ts
Normal file
41
ui/console-src/modules/dashboard/module.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import { definePlugin } from "@halo-dev/console-shared";
|
||||
import BasicLayout from "@console/layouts/BasicLayout.vue";
|
||||
import Dashboard from "./Dashboard.vue";
|
||||
import { IconDashboard } from "@halo-dev/components";
|
||||
|
||||
import QuickLinkWidget from "./widgets/QuickLinkWidget.vue";
|
||||
import ViewsStatsWidget from "./widgets/ViewsStatsWidget.vue";
|
||||
import { markRaw } from "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,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user