| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- import type { Preferences } from './types';
- const defaultPreferences: Preferences = {
- app: {
- accessMode: 'backend',
- authPageLayout: 'panel-center',
- 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,
- enablePreferences: true,
- enableRefreshToken: false,
- isMobile: false,
- layout: 'sidebar-nav',
- locale: 'zh-CN',
- loginExpiredMode: 'page',
- name: 'Samool Admin',
- preferencesButtonPosition: 'auto',
- watermark: false,
- zIndex: 200,
- },
- breadcrumb: {
- enable: true,
- hideOnlyOne: false,
- showHome: false,
- showIcon: true,
- styleType: 'normal',
- },
- copyright: {
- companyName: '达州市达川区农机化技术推广服务站',
- companySiteLink: '',
- date: '2025',
- 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,
- source: '/images/logo.png',
- fit: 'contain',
- },
- 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,
- enable: true,
- expandOnHover: true,
- extraCollapse: false,
- extraCollapsedWidth: 60,
- fixedButton: true,
- hidden: false,
- width: 250,
- mixedWidth: 80,
- },
- tabbar: {
- draggable: true,
- enable: true,
- height: 38,
- keepAlive: true,
- maxCount: 0,
- middleClickToClose: false,
- persist: true,
- showIcon: true,
- showMaximize: true,
- showMore: true,
- styleType: 'chrome',
- 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: 'auto',
- radius: '0.5',
- semiDarkHeader: false,
- semiDarkSidebar: 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,
- },
- };
- export { defaultPreferences };
|