mirror of https://github.com/halo-dev/halo
39 lines
960 B
TypeScript
39 lines
960 B
TypeScript
import { definePlugin } from "@halo-dev/console-shared";
|
|
import BasicLayout from "@console/layouts/BasicLayout.vue";
|
|
import { IconMessage } from "@halo-dev/components";
|
|
import CommentList from "./CommentList.vue";
|
|
import CommentStatsWidget from "./widgets/CommentStatsWidget.vue";
|
|
import { markRaw } from "vue";
|
|
|
|
export default definePlugin({
|
|
components: {
|
|
CommentStatsWidget,
|
|
},
|
|
routes: [
|
|
{
|
|
path: "/comments",
|
|
name: "CommentsRoot",
|
|
component: BasicLayout,
|
|
meta: {
|
|
title: "core.comment.title",
|
|
searchable: true,
|
|
permissions: ["system:comments:view"],
|
|
menu: {
|
|
name: "core.sidebar.menu.items.comments",
|
|
group: "content",
|
|
icon: markRaw(IconMessage),
|
|
priority: 2,
|
|
mobile: true,
|
|
},
|
|
},
|
|
children: [
|
|
{
|
|
path: "",
|
|
name: "Comments",
|
|
component: CommentList,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|