mirror of https://github.com/halo-dev/halo
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import BasicLayout from "@console/layouts/BasicLayout.vue";
|
|
import { IconMessage } from "@halo-dev/components";
|
|
import { definePlugin } from "@halo-dev/console-shared";
|
|
import { markRaw } from "vue";
|
|
import CommentList from "./CommentList.vue";
|
|
import SubjectQueryCommentList from "./components/SubjectQueryCommentList.vue";
|
|
import SubjectQueryCommentListModal from "./components/SubjectQueryCommentListModal.vue";
|
|
|
|
export default definePlugin({
|
|
components: {
|
|
SubjectQueryCommentList,
|
|
SubjectQueryCommentListModal,
|
|
},
|
|
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,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|