
* chore(@vben/common-ui): 增加拖拽校验组件 * chore: 增加样式 * Merge branch 'main' into wangjue-verify-comp * chore: 封装action组件 * chore: 拆分完成拖拽功能 * chore: 样式调整为tailwindcss语法 * chore: 导出check图标 * chore: 拖动的图标变为@vben/icons的 * chore: 完成插槽功能迁移 * fix: ci error * chore: 适配暗黑主题 * chore: 国际化 * chore: resolve conflict * chore: 迁移v2的图片旋转校验组件 * chore: 完善选择校验demo * chore: 转换为tailwindcss * chore: 替换为系统的颜色变量 * chore: 使用interface代替组件的props声明 * chore: 调整props * chore: 优化demo背景 * chore: follow suggest * chore: rm unnecessary style tag * chore: update demo * perf: improve the experience of Captcha components --------- Co-authored-by: vince <vince292007@gmail.com> Co-authored-by: Vben <ann.vben@gmail.com>
116 lines
2.4 KiB
TypeScript
116 lines
2.4 KiB
TypeScript
import type { Preferences } from './types';
|
|
|
|
const defaultPreferences: Preferences = {
|
|
app: {
|
|
accessMode: 'frontend',
|
|
authPageLayout: 'panel-right',
|
|
checkUpdatesInterval: 1,
|
|
colorGrayMode: false,
|
|
colorWeakMode: false,
|
|
compact: false,
|
|
contentCompact: 'wide',
|
|
defaultAvatar:
|
|
'https://unpkg.com/@vbenjs/static-source@0.1.7/source/avatar-v1.webp',
|
|
dynamicTitle: true,
|
|
enableCheckUpdates: true,
|
|
enablePreferences: true,
|
|
enableRefreshToken: false,
|
|
isMobile: false,
|
|
layout: 'sidebar-nav',
|
|
locale: 'zh-CN',
|
|
loginExpiredMode: 'page',
|
|
name: 'Vben Admin',
|
|
preferencesButtonPosition: 'auto',
|
|
watermark: false,
|
|
},
|
|
breadcrumb: {
|
|
enable: true,
|
|
hideOnlyOne: false,
|
|
showHome: false,
|
|
showIcon: true,
|
|
styleType: 'normal',
|
|
},
|
|
copyright: {
|
|
companyName: 'Vben',
|
|
companySiteLink: 'https://www.vben.pro',
|
|
date: '2024',
|
|
enable: true,
|
|
icp: '',
|
|
icpLink: '',
|
|
},
|
|
footer: {
|
|
enable: true,
|
|
fixed: false,
|
|
},
|
|
header: {
|
|
enable: true,
|
|
hidden: false,
|
|
mode: 'fixed',
|
|
},
|
|
logo: {
|
|
enable: true,
|
|
source: 'https://unpkg.com/@vbenjs/static-source@0.1.7/source/logo-v1.webp',
|
|
},
|
|
navigation: {
|
|
accordion: true,
|
|
split: true,
|
|
styleType: 'rounded',
|
|
},
|
|
shortcutKeys: {
|
|
enable: true,
|
|
globalLockScreen: true,
|
|
globalLogout: true,
|
|
globalPreferences: true,
|
|
globalSearch: true,
|
|
},
|
|
sidebar: {
|
|
collapsed: false,
|
|
collapsedShowTitle: false,
|
|
enable: true,
|
|
expandOnHover: true,
|
|
extraCollapse: true,
|
|
hidden: false,
|
|
width: 224,
|
|
},
|
|
tabbar: {
|
|
dragable: true,
|
|
enable: true,
|
|
height: 38,
|
|
keepAlive: true,
|
|
persist: true,
|
|
showIcon: true,
|
|
showMaximize: true,
|
|
showMore: true,
|
|
showRefresh: true,
|
|
styleType: 'chrome',
|
|
},
|
|
theme: {
|
|
builtinType: 'default',
|
|
colorDestructive: 'hsl(348 100% 61%)',
|
|
colorPrimary: 'hsl(212 100% 45%)',
|
|
colorSuccess: 'hsl(144 57% 58%)',
|
|
colorWarning: 'hsl(42 84% 61%)',
|
|
mode: 'dark',
|
|
radius: '0.5',
|
|
semiDarkHeader: false,
|
|
semiDarkSidebar: true,
|
|
},
|
|
transition: {
|
|
enable: true,
|
|
loading: true,
|
|
name: 'fade-slide',
|
|
progress: true,
|
|
},
|
|
widget: {
|
|
fullscreen: true,
|
|
globalSearch: true,
|
|
languageToggle: true,
|
|
lockScreen: true,
|
|
notification: true,
|
|
sidebarToggle: true,
|
|
themeToggle: true,
|
|
},
|
|
};
|
|
|
|
export { defaultPreferences };
|