mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-04-28 04:19:39 +08:00
* chore: update deps * feat: use jsonc/x language * chore: update eslint 10.0 * fix: no-useless-assignment * feat: add CLAUDE.md * chore: ignore * feat: claude * fix: lint * chore: suppot eslint v10 * fix: lint * fix: lint * fix: type check * fix: unit test * fix: Suggested fix * fix: unit test * chore: update stylelint v17 * chore: update all major deps * fix: echarts console warn * chore: update vitest v4 * feat: add skills ignores * chore: update deps * chore: update deps * fix: cspell * chore: update deps * chore: update tailwindcss v4 * chore: remove postcss config * fix: no use catalog * chore: tailwind v4 config * fix: tailwindcss v4 sort * feat: use eslint-plugin-better-tailwindcss * fix: Interference between enforce-consistent-line-wrapping, jsx-curly-brace-presence and Prettier * fix: Interference between enforce-consistent-line-wrapping, jsx-curly-brace-presence and Prettier * fix(lint): resolve prettier and better-tailwindcss formatting conflicts * fix(tailwind): update theme references and lint sources * style(format): normalize apps docs and playground vue files * style(format): normalize core ui-kit components * style(format): normalize effects ui and layout components
148 lines
3.2 KiB
TypeScript
148 lines
3.2 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',
|
|
contentCompactWidth: 1200,
|
|
contentPadding: 0,
|
|
contentPaddingBottom: 0,
|
|
contentPaddingLeft: 0,
|
|
contentPaddingRight: 0,
|
|
contentPaddingTop: 0,
|
|
defaultAvatar:
|
|
'https://unpkg.com/@vbenjs/static-source@0.1.7/source/avatar-v1.webp',
|
|
defaultHomePath: '/analytics',
|
|
dynamicTitle: true,
|
|
enableCheckUpdates: true,
|
|
enableCopyPreferences: true,
|
|
enablePreferences: true,
|
|
enableRefreshToken: false,
|
|
enableStickyPreferencesNavigationBar: true,
|
|
isMobile: false,
|
|
layout: 'sidebar-nav',
|
|
locale: 'zh-CN',
|
|
loginExpiredMode: 'page',
|
|
name: 'Vben Admin',
|
|
preferencesButtonPosition: 'auto',
|
|
watermark: false,
|
|
watermarkContent: '',
|
|
zIndex: 200,
|
|
},
|
|
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: '',
|
|
settingShow: true,
|
|
},
|
|
footer: {
|
|
enable: false,
|
|
fixed: false,
|
|
height: 32,
|
|
},
|
|
header: {
|
|
enable: true,
|
|
height: 50,
|
|
hidden: false,
|
|
menuAlign: 'start',
|
|
mode: 'fixed',
|
|
},
|
|
|
|
logo: {
|
|
enable: true,
|
|
fit: 'contain',
|
|
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: {
|
|
autoActivateChild: false,
|
|
collapsed: false,
|
|
collapsedButton: true,
|
|
collapsedShowTitle: false,
|
|
collapseWidth: 60,
|
|
draggable: true,
|
|
enable: true,
|
|
expandOnHover: true,
|
|
extraCollapse: false,
|
|
extraCollapsedWidth: 60,
|
|
fixedButton: true,
|
|
hidden: false,
|
|
mixedWidth: 80,
|
|
width: 224,
|
|
},
|
|
tabbar: {
|
|
draggable: true,
|
|
enable: true,
|
|
height: 38,
|
|
keepAlive: true,
|
|
maxCount: 0,
|
|
middleClickToClose: false,
|
|
persist: true,
|
|
showIcon: true,
|
|
showMaximize: true,
|
|
showMore: true,
|
|
showRefresh: true,
|
|
styleType: 'chrome',
|
|
visitHistory: true,
|
|
wheelable: true,
|
|
},
|
|
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',
|
|
fontSize: 16,
|
|
semiDarkHeader: false,
|
|
semiDarkSidebar: false,
|
|
semiDarkSidebarSub: false,
|
|
},
|
|
transition: {
|
|
enable: true,
|
|
loading: true,
|
|
name: 'fade-slide',
|
|
progress: true,
|
|
},
|
|
widget: {
|
|
fullscreen: true,
|
|
globalSearch: true,
|
|
languageToggle: true,
|
|
lockScreen: true,
|
|
notification: true,
|
|
refresh: true,
|
|
sidebarToggle: true,
|
|
themeToggle: true,
|
|
timezone: true,
|
|
},
|
|
};
|
|
|
|
export { defaultPreferences };
|