/
githubmirror
/
halo
Обзор
Документация
Войти
/
githubmirror
/
halo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ui/console-src/modules/contents/posts/module.ts
98 строк
3 KB
Ryan Wang
Enhance post snapshot comparison feature by adding diff mode support (#8272)
29 янв 2026, 09:21
Не верифицирован
29 янв 2026, 09:21
15a6ae2
Код
Авторство
О чём код?
import BasicLayout from "@console/layouts/BasicLayout.vue"; import BlankLayout from "@console/layouts/BlankLayout.vue"; import { IconBookRead } from "@halo-dev/components"; import { definePlugin } from "@halo-dev/ui-shared"; import { markRaw } from "vue"; export default definePlugin({ routes: [ { path: "/posts", name: "PostsRoot", component: BasicLayout, meta: { title: "core.post.title", searchable: true, permissions: ["system:posts:view"], menu: { name: "core.sidebar.menu.items.posts", group: "content", icon: markRaw(IconBookRead), priority: 0, mobile: true, }, }, children: [ { path: "", name: "Posts", component: () => import("./PostList.vue"), }, { path: "deleted", name: "DeletedPosts", component: () => import("./DeletedPostList.vue"), meta: { title: "core.deleted_post.title", searchable: true, permissions: ["system:posts:view"], }, }, { path: "editor", name: "PostEditor", component: () => import("./PostEditor.vue"), meta: { title: "core.post_editor.title", searchable: true, hideFooter: true, permissions: ["system:posts:manage"], }, }, { path: "categories", component: BlankLayout, children: [ { path: "", name: "Categories", component: () => import("./categories/CategoryList.vue"), meta: { title: "core.post_category.title", searchable: true, permissions: ["system:posts:view"], }, }, ], }, { path: "tags", component: BlankLayout, children: [ { path: "", name: "Tags", component: () => import("./tags/TagList.vue"), meta: { title: "core.post_tag.title", searchable: true, permissions: ["system:posts:view"], }, }, ], }, ], }, { path: "/posts/snapshots", name: "PostSnapshots", component: () => import("./PostSnapshots.vue"), meta: { title: "core.post_snapshots.title", searchable: false, hideFooter: true, permissions: ["system:posts:manage"], }, }, ], });