mirror of https://github.com/halo-dev/halo
33 lines
739 B
TypeScript
33 lines
739 B
TypeScript
import { definePlugin } from "@halo-dev/console-shared";
|
|
import Tools from "./Tools.vue";
|
|
import { markRaw } from "vue";
|
|
import BasicLayout from "@console/layouts/BasicLayout.vue";
|
|
import { IconToolsFill } from "@halo-dev/components";
|
|
|
|
export default definePlugin({
|
|
components: {},
|
|
routes: [
|
|
{
|
|
path: "/tools",
|
|
name: "ToolsRoot",
|
|
component: BasicLayout,
|
|
meta: {
|
|
title: "core.tool.title",
|
|
menu: {
|
|
name: "core.sidebar.menu.items.tools",
|
|
group: "system",
|
|
icon: markRaw(IconToolsFill),
|
|
priority: 5,
|
|
},
|
|
},
|
|
children: [
|
|
{
|
|
path: "",
|
|
name: "Tools",
|
|
component: Tools,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|