feat: 完善官网配置、预约管理与文章编辑

This commit is contained in:
zhanjunhao
2026-10-31 19:02:58 +08:00
parent a2e5f6ef0e
commit 90b710215a
54 changed files with 4898 additions and 203 deletions
+13
View File
@@ -54,3 +54,16 @@ export const DELEGATABLE_SETTING_TABS = SETTING_TABS.filter(
!ALWAYS_ADMIN_VISIBLE_TABS.includes(t.key) &&
!ROOT_ONLY_SETTING_TABS.includes(t.key),
);
// Standalone admin pages share delegation settings, but are not settings tabs.
export const DELEGATABLE_ADMIN_PAGES = [
{ key: 'website-setting', labelKey: '官网设置' },
{ key: 'demo-reservations', labelKey: '预约演示' },
];
export const ADMIN_DELEGATION_OPTIONS = [
...DELEGATABLE_SETTING_TABS,
...DELEGATABLE_ADMIN_PAGES,
];
export const ADMIN_DELEGATION_OPTION_KEY = 'AdminDelegatedSettingTabs';
+2
View File
@@ -67,6 +67,8 @@ export const getDefaultSidebarModulesAdmin = () => ({
order: true,
invoice: true,
setting: true,
'website-setting': true,
'demo-reservations': true,
},
analytics: {
enabled: true,