config.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. import type { Preferences } from './types';
  2. const defaultPreferences: Preferences = {
  3. app: {
  4. accessMode: 'backend',
  5. authPageLayout: 'panel-center',
  6. checkUpdatesInterval: 1,
  7. colorGrayMode: false,
  8. colorWeakMode: false,
  9. compact: false,
  10. contentCompact: 'wide',
  11. contentCompactWidth: 1200,
  12. contentPadding: 0,
  13. contentPaddingBottom: 0,
  14. contentPaddingLeft: 0,
  15. contentPaddingRight: 0,
  16. contentPaddingTop: 0,
  17. defaultAvatar:
  18. 'https://unpkg.com/@vbenjs/static-source@0.1.7/source/avatar-v1.webp',
  19. defaultHomePath: '/analytics',
  20. dynamicTitle: true,
  21. enableCheckUpdates: true,
  22. enablePreferences: true,
  23. enableRefreshToken: false,
  24. isMobile: false,
  25. layout: 'sidebar-nav',
  26. locale: 'zh-CN',
  27. loginExpiredMode: 'page',
  28. name: 'Samool Admin',
  29. preferencesButtonPosition: 'auto',
  30. watermark: false,
  31. zIndex: 200,
  32. },
  33. breadcrumb: {
  34. enable: true,
  35. hideOnlyOne: false,
  36. showHome: false,
  37. showIcon: true,
  38. styleType: 'normal',
  39. },
  40. copyright: {
  41. companyName: '达州市达川区农机化技术推广服务站',
  42. companySiteLink: '',
  43. date: '2025',
  44. enable: true,
  45. icp: '',
  46. icpLink: '',
  47. settingShow: true,
  48. },
  49. footer: {
  50. enable: false,
  51. fixed: false,
  52. height: 32,
  53. },
  54. header: {
  55. enable: true,
  56. height: 50,
  57. hidden: false,
  58. menuAlign: 'start',
  59. mode: 'fixed',
  60. },
  61. logo: {
  62. enable: true,
  63. source: '/images/logo.png',
  64. fit: 'contain',
  65. },
  66. navigation: {
  67. accordion: true,
  68. split: true,
  69. styleType: 'rounded',
  70. },
  71. shortcutKeys: {
  72. enable: true,
  73. globalLockScreen: true,
  74. globalLogout: true,
  75. globalPreferences: true,
  76. globalSearch: true,
  77. },
  78. sidebar: {
  79. autoActivateChild: false,
  80. collapsed: false,
  81. collapsedButton: true,
  82. collapsedShowTitle: false,
  83. collapseWidth: 60,
  84. enable: true,
  85. expandOnHover: true,
  86. extraCollapse: false,
  87. extraCollapsedWidth: 60,
  88. fixedButton: true,
  89. hidden: false,
  90. width: 250,
  91. mixedWidth: 80,
  92. },
  93. tabbar: {
  94. draggable: true,
  95. enable: true,
  96. height: 38,
  97. keepAlive: true,
  98. maxCount: 0,
  99. middleClickToClose: false,
  100. persist: true,
  101. showIcon: true,
  102. showMaximize: true,
  103. showMore: true,
  104. styleType: 'chrome',
  105. wheelable: true,
  106. },
  107. theme: {
  108. builtinType: 'default',
  109. colorDestructive: 'hsl(348 100% 61%)',
  110. colorPrimary: 'hsl(212 100% 45%)',
  111. colorSuccess: 'hsl(144 57% 58%)',
  112. colorWarning: 'hsl(42 84% 61%)',
  113. mode: 'auto',
  114. radius: '0.5',
  115. semiDarkHeader: false,
  116. semiDarkSidebar: false,
  117. },
  118. transition: {
  119. enable: true,
  120. loading: true,
  121. name: 'fade-slide',
  122. progress: true,
  123. },
  124. widget: {
  125. fullscreen: true,
  126. globalSearch: true,
  127. languageToggle: true,
  128. lockScreen: true,
  129. notification: true,
  130. refresh: true,
  131. sidebarToggle: true,
  132. themeToggle: true,
  133. },
  134. };
  135. export { defaultPreferences };