/
githubmirror
/
halo
Обзор
Документация
Войти
/
githubmirror
/
halo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ui/console-src/modules/interface/themes/module.ts
41 строка
1 KB
Ryan Wang
Refactor to use async component imports (#7941)
17 ноя 2025, 04:36
Не верифицирован
17 ноя 2025, 04:36
b434574
Код
Авторство
О чём код?
import { IconPalette } from "@halo-dev/components"; import { definePlugin } from "@halo-dev/ui-shared"; import { markRaw } from "vue"; export default definePlugin({ components: {}, routes: [ { path: "/theme", name: "ThemeRoot", component: () => import("./layouts/ThemeLayout.vue"), meta: { title: "core.theme.title", searchable: true, permissions: ["system:themes:view"], menu: { name: "core.sidebar.menu.items.themes", group: "interface", icon: markRaw(IconPalette), priority: 0, }, }, children: [ { path: "", name: "ThemeDetail", component: () => import("./ThemeDetail.vue"), }, { path: "settings/:group", name: "ThemeSetting", component: () => import("./ThemeSetting.vue"), meta: { title: "core.theme.settings.title", permissions: ["system:themes:view"], }, }, ], }, ], });