chore: init project
This commit is contained in:
69
packages/preference/src/config.ts
Normal file
69
packages/preference/src/config.ts
Normal file
@@ -0,0 +1,69 @@
|
||||
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',
|
||||
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,
|
||||
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 };
|
Reference in New Issue
Block a user