admin-vben/packages/preference/src/config.ts

73 lines
1.7 KiB
TypeScript

import type { Preference, StaticPreference } from '@vben-core/typings';
const defaultPreference: Preference = {
appName: 'Vben Admin Pro',
authPageLayout: 'panel-right',
breadcrumbHideOnlyOne: false,
breadcrumbHome: false,
breadcrumbIcon: true,
breadcrumbStyle: 'normal',
breadcrumbVisible: true,
colorGrayMode: false,
colorPrimary: 'hsl(211 91% 39%)',
colorWeakMode: false,
compact: false,
contentCompact: 'wide',
copyright: 'Copyright © 2024 Vben Admin PRO',
defaultAvatar:
'https://cdn.jsdelivr.net/gh/vbenjs/vben-cdn-static@0.1.2/vben-admin/pro-avatar.webp',
dynamicTitle: true,
footerFixed: true,
footerVisible: true,
headerMode: 'fixed',
headerVisible: true,
isMobile: false,
keepAlive: true,
layout: 'side-nav',
locale: 'zh-CN',
logo: 'https://cdn.jsdelivr.net/gh/vbenjs/vben-cdn-static@0.1.2/vben-admin/admin-logo.png',
logoVisible: true,
navigationAccordion: true,
navigationSplit: true,
navigationStyle: 'rounded',
pageProgress: true,
pageTransition: 'fade-slide',
pageTransitionEnable: true,
semiDarkMenu: true,
sideCollapse: false,
sideCollapseShowTitle: false,
sideExpandOnHover: true,
sideExtraCollapse: true,
sideVisible: true,
sideWidth: 240,
tabsIcon: true,
tabsVisible: true,
theme: 'dark',
};
/**
* 静态偏好设置,这些配置不会被用户修改
*/
const staticPreference: StaticPreference = {
colorPrimaryPresets: [
'hsl(211 91% 39%)',
'hsl(212 100% 45%)',
'hsl(181 84% 32%)',
'hsl(230 99% 66%)',
'hsl(245 82% 67%)',
'hsl(340 100% 68%)',
],
supportLanguages: [
{
key: 'zh-CN',
text: '简体中文',
},
{
key: 'en-US',
text: 'English',
},
],
};
export { defaultPreference, staticPreference };