forked from halo-dev/halo
/
module.ts
34 lines (33 loc) · 851 Bytes
/
module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { definePlugin } from "@halo-dev/console-shared";
import { IconTerminalBoxLine } from "@halo-dev/components";
import BasicLayout from "@console/layouts/BasicLayout.vue";
import Overview from "./Overview.vue";
import { markRaw } from "vue";
export default definePlugin({
components: {},
routes: [
{
path: "/overview",
name: "OverviewRoot",
component: BasicLayout,
meta: {
title: "core.overview.title",
searchable: true,
permissions: ["system:actuator:manage"],
menu: {
name: "core.sidebar.menu.items.overview",
group: "system",
icon: markRaw(IconTerminalBoxLine),
priority: 3,
},
},
children: [
{
path: "",
name: "Overview",
component: Overview,
},
],
},
],
});