smart-admin-web 10.14.0 → 10.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (538) hide show
  1. package/README.md +6 -6
  2. package/dist/api/index.d.ts +41 -2
  3. package/dist/api/index.js +36 -15
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/schema.d.ts +418 -6
  6. package/dist/assets/icons/ph-subset.json.js +7 -7
  7. package/dist/assets/smart-logo.svg.js +5 -0
  8. package/dist/assets/smart-logo.svg.js.map +1 -0
  9. package/dist/components/AppIcon.vue.js +9 -9
  10. package/dist/components/AppIcon.vue.js.map +1 -1
  11. package/dist/components/AppWatermark.vue.d.ts +14 -0
  12. package/dist/components/AppWatermark.vue.js +38 -0
  13. package/dist/components/AppWatermark.vue.js.map +1 -0
  14. package/dist/components/AppWatermark2.vue.js +5 -0
  15. package/dist/components/AppWatermark2.vue.js.map +1 -0
  16. package/dist/components/Chart/PieChart.vue.d.ts +1 -1
  17. package/dist/components/Chart/echarts.js +15 -20
  18. package/dist/components/Chart/echarts.js.map +1 -1
  19. package/dist/components/CronEditor/index.vue.js +1 -1
  20. package/dist/components/CronEditor/index2.vue.js +2 -1
  21. package/dist/components/CronEditor/index2.vue.js.map +1 -1
  22. package/dist/components/DetailPage/index.vue.js +2 -2
  23. package/dist/components/DetailPage/index2.vue.js.map +1 -1
  24. package/dist/components/DictTag/index.vue.js.map +1 -1
  25. package/dist/components/ErrorBoundary/index.vue.js +2 -2
  26. package/dist/components/ErrorBoundary/index2.vue.js +1 -1
  27. package/dist/components/ErrorBoundary/index2.vue.js.map +1 -1
  28. package/dist/components/FormContainer/index.vue.js +91 -56
  29. package/dist/components/FormContainer/index.vue.js.map +1 -1
  30. package/dist/components/ImportWizard/index.vue.js +1 -1
  31. package/dist/components/ImportWizard/index2.vue.js +44 -41
  32. package/dist/components/ImportWizard/index2.vue.js.map +1 -1
  33. package/dist/components/MenuSearch.vue.js +2 -2
  34. package/dist/components/MenuSearch2.vue.js +19 -18
  35. package/dist/components/MenuSearch2.vue.js.map +1 -1
  36. package/dist/components/PasswordStrength/index.vue.js +2 -2
  37. package/dist/components/PasswordStrength/index2.vue.js +20 -18
  38. package/dist/components/PasswordStrength/index2.vue.js.map +1 -1
  39. package/dist/components/SmartLogo.vue.d.ts +3 -0
  40. package/dist/components/SmartLogo.vue.js +1 -1
  41. package/dist/components/SmartLogo2.vue.js +22 -64
  42. package/dist/components/SmartLogo2.vue.js.map +1 -1
  43. package/dist/{views/system/config/components/GroupExtraConfig.vue.d.ts → components/TableTotal/index.vue.d.ts} +1 -4
  44. package/dist/components/{SelectTable → TableTotal}/index.vue.js +1 -1
  45. package/dist/components/TableTotal/index2.vue.js +16 -0
  46. package/dist/components/TableTotal/index2.vue.js.map +1 -0
  47. package/dist/components/TableZoomButton/index.vue.js.map +1 -1
  48. package/dist/components/UserPicker/index.vue.js +2 -2
  49. package/dist/components/UserPicker/index2.vue.js +176 -117
  50. package/dist/components/UserPicker/index2.vue.js.map +1 -1
  51. package/dist/composables/useBatchDelete.js.map +1 -1
  52. package/dist/composables/useLayoutMenu.js +17 -16
  53. package/dist/composables/useLayoutMenu.js.map +1 -1
  54. package/dist/composables/useLoginHero.d.ts +2 -0
  55. package/dist/composables/useLoginHero.js +22 -0
  56. package/dist/composables/useLoginHero.js.map +1 -0
  57. package/dist/composables/useModule.js +39 -29
  58. package/dist/composables/useModule.js.map +1 -1
  59. package/dist/composables/usePageTitle.js +16 -14
  60. package/dist/composables/usePageTitle.js.map +1 -1
  61. package/dist/composables/useShellBreakpoint.d.ts +19 -0
  62. package/dist/composables/useShellBreakpoint.js +37 -0
  63. package/dist/composables/useShellBreakpoint.js.map +1 -0
  64. package/dist/composables/useSite.d.ts +20 -0
  65. package/dist/composables/useSite.js +18 -13
  66. package/dist/composables/useSite.js.map +1 -1
  67. package/dist/composables/useTabTitle.js.map +1 -1
  68. package/dist/composables/useTableTitle.d.ts +6 -0
  69. package/dist/composables/useTableTitle.js +11 -0
  70. package/dist/composables/useTableTitle.js.map +1 -0
  71. package/dist/composables/useTableZoom.d.ts +5 -0
  72. package/dist/composables/useTableZoom.js.map +1 -1
  73. package/dist/composables/useTheme.d.ts +2 -2
  74. package/dist/composables/useTheme.js +23 -20
  75. package/dist/composables/useTheme.js.map +1 -1
  76. package/dist/createSmartAdmin.d.ts +12 -2
  77. package/dist/createSmartAdmin.js +72 -60
  78. package/dist/createSmartAdmin.js.map +1 -1
  79. package/dist/index.d.ts +5 -2
  80. package/dist/index.js +223 -208
  81. package/dist/index.js.map +1 -1
  82. package/dist/layouts/AccentPicker.vue.js +8 -0
  83. package/dist/layouts/AccentPicker.vue.js.map +1 -0
  84. package/dist/layouts/AccentPicker2.vue.js +131 -0
  85. package/dist/layouts/AccentPicker2.vue.js.map +1 -0
  86. package/dist/layouts/AppHeader.vue.d.ts +8 -1
  87. package/dist/layouts/AppHeader.vue.js +2 -2
  88. package/dist/layouts/AppHeader2.vue.js +317 -235
  89. package/dist/layouts/AppHeader2.vue.js.map +1 -1
  90. package/dist/layouts/NoticeBell.vue.js +2 -2
  91. package/dist/layouts/NoticeBell2.vue.js +1 -1
  92. package/dist/layouts/NoticeBell2.vue.js.map +1 -1
  93. package/dist/layouts/PersonalLayout.vue.js +2 -2
  94. package/dist/layouts/PersonalLayout2.vue.js +69 -47
  95. package/dist/layouts/PersonalLayout2.vue.js.map +1 -1
  96. package/dist/layouts/SettingsDrawer.vue.js +3 -3
  97. package/dist/layouts/SettingsDrawer2.vue.js +261 -325
  98. package/dist/layouts/SettingsDrawer2.vue.js.map +1 -1
  99. package/dist/layouts/TabsBar.vue.js +2 -2
  100. package/dist/layouts/TabsBar2.vue.js +97 -69
  101. package/dist/layouts/TabsBar2.vue.js.map +1 -1
  102. package/dist/layouts/components/SideNav.vue.d.ts +3 -0
  103. package/dist/layouts/components/SideNav.vue.js +1 -1
  104. package/dist/layouts/components/SideNav2.vue.js +54 -26
  105. package/dist/layouts/components/SideNav2.vue.js.map +1 -1
  106. package/dist/layouts/default.vue.js +1 -1
  107. package/dist/layouts/default2.vue.js +170 -140
  108. package/dist/layouts/default2.vue.js.map +1 -1
  109. package/dist/lib/favicon.d.ts +1 -0
  110. package/dist/lib/favicon.js +12 -0
  111. package/dist/lib/favicon.js.map +1 -0
  112. package/dist/lib/loginHero.d.ts +16 -0
  113. package/dist/lib/loginHero.js +33 -0
  114. package/dist/lib/loginHero.js.map +1 -0
  115. package/dist/lib/logoCrop.d.ts +25 -0
  116. package/dist/lib/logoCrop.js +22 -0
  117. package/dist/lib/logoCrop.js.map +1 -0
  118. package/dist/lib/runtime.d.ts +2 -0
  119. package/dist/lib/runtime.js +1 -1
  120. package/dist/lib/runtime.js.map +1 -1
  121. package/dist/lib/securityRules.d.ts +26 -0
  122. package/dist/lib/securityRules.js +86 -0
  123. package/dist/lib/securityRules.js.map +1 -0
  124. package/dist/lib/watermark.d.ts +110 -0
  125. package/dist/lib/watermark.js +151 -0
  126. package/dist/lib/watermark.js.map +1 -0
  127. package/dist/locales/en-US.d.ts +462 -42
  128. package/dist/locales/en-US.js +491 -78
  129. package/dist/locales/en-US.js.map +1 -1
  130. package/dist/locales/kernelMenuTitles.d.ts +1 -0
  131. package/dist/locales/kernelMenuTitles.js +128 -0
  132. package/dist/locales/kernelMenuTitles.js.map +1 -0
  133. package/dist/locales/menuTitle.d.ts +3 -0
  134. package/dist/locales/menuTitle.js +14 -12
  135. package/dist/locales/menuTitle.js.map +1 -1
  136. package/dist/locales/zh-CN.d.ts +462 -42
  137. package/dist/locales/zh-CN.js +490 -81
  138. package/dist/locales/zh-CN.js.map +1 -1
  139. package/dist/router/index.js +41 -32
  140. package/dist/router/index.js.map +1 -1
  141. package/dist/router/namedPage.d.ts +4 -0
  142. package/dist/router/namedPage.js +7 -7
  143. package/dist/router/namedPage.js.map +1 -1
  144. package/dist/router/viewRegistry.js +12 -12
  145. package/dist/router/viewRegistry.js.map +1 -1
  146. package/dist/stores/app.d.ts +0 -12
  147. package/dist/stores/app.js +11 -12
  148. package/dist/stores/app.js.map +1 -1
  149. package/dist/stores/tabs.js.map +1 -1
  150. package/dist/stores/user.d.ts +10 -0
  151. package/dist/stores/user.js.map +1 -1
  152. package/dist/style.css +1 -1
  153. package/dist/theme/accentTokens.d.ts +27 -0
  154. package/dist/theme/accentTokens.js +54 -0
  155. package/dist/theme/accentTokens.js.map +1 -0
  156. package/dist/theme/accents.d.ts +21 -1
  157. package/dist/theme/accents.js +11 -2
  158. package/dist/theme/accents.js.map +1 -1
  159. package/dist/theme/mix.d.ts +58 -7
  160. package/dist/theme/mix.js +115 -30
  161. package/dist/theme/mix.js.map +1 -1
  162. package/dist/theme/naive-theme.d.ts +5 -2
  163. package/dist/theme/naive-theme.js +405 -75
  164. package/dist/theme/naive-theme.js.map +1 -1
  165. package/dist/utils/jwt.d.ts +8 -0
  166. package/dist/utils/jwt.js +14 -0
  167. package/dist/utils/jwt.js.map +1 -0
  168. package/dist/utils/menuIcon.d.ts +2 -0
  169. package/dist/utils/menuIcon.js +8 -0
  170. package/dist/utils/menuIcon.js.map +1 -0
  171. package/dist/utils/oauthBrand.d.ts +34 -9
  172. package/dist/utils/oauthBrand.js +70 -74
  173. package/dist/utils/oauthBrand.js.map +1 -1
  174. package/dist/utils/tableFilter.d.ts +88 -0
  175. package/dist/utils/tableFilter.js +116 -0
  176. package/dist/utils/tableFilter.js.map +1 -0
  177. package/dist/utils/tableToolbar.d.ts +18 -0
  178. package/dist/utils/tableToolbar.js +11 -0
  179. package/dist/utils/tableToolbar.js.map +1 -0
  180. package/dist/utils/treeFilter.d.ts +20 -0
  181. package/dist/utils/treeFilter.js +24 -0
  182. package/dist/utils/treeFilter.js.map +1 -0
  183. package/dist/views/dashboard/ShortcutPicker.vue.js +1 -1
  184. package/dist/views/dashboard/ShortcutPicker2.vue.js +73 -48
  185. package/dist/views/dashboard/ShortcutPicker2.vue.js.map +1 -1
  186. package/dist/views/dashboard/biz.vue.js +1 -1
  187. package/dist/views/dashboard/biz2.vue.js +310 -257
  188. package/dist/views/dashboard/biz2.vue.js.map +1 -1
  189. package/dist/views/dashboard/workbench.vue.js +2 -2
  190. package/dist/views/dashboard/workbench2.vue.js +141 -155
  191. package/dist/views/dashboard/workbench2.vue.js.map +1 -1
  192. package/dist/views/embed/iframe.vue.js +2 -2
  193. package/dist/views/embed/iframe2.vue.js +22 -15
  194. package/dist/views/embed/iframe2.vue.js.map +1 -1
  195. package/dist/views/error/404.vue.js +2 -2
  196. package/dist/views/error/4042.vue.js +33 -24
  197. package/dist/views/error/4042.vue.js.map +1 -1
  198. package/dist/views/error/BootError.vue.js +1 -1
  199. package/dist/views/error/BootError2.vue.js +59 -48
  200. package/dist/views/error/BootError2.vue.js.map +1 -1
  201. package/dist/views/error/MissingRoute.vue.js +2 -2
  202. package/dist/views/error/MissingRoute2.vue.js +34 -15
  203. package/dist/views/error/MissingRoute2.vue.js.map +1 -1
  204. package/dist/views/login/LoginForm.vue.d.ts +7 -1
  205. package/dist/views/login/LoginForm.vue.js +2 -2
  206. package/dist/views/login/LoginForm2.vue.js +580 -488
  207. package/dist/views/login/LoginForm2.vue.js.map +1 -1
  208. package/dist/views/login/components/LoginDesk.vue.d.ts +36 -0
  209. package/dist/views/login/components/LoginDesk.vue.js +9 -0
  210. package/dist/views/login/components/LoginDesk.vue.js.map +1 -0
  211. package/dist/views/login/components/LoginDesk2.vue.js +100 -0
  212. package/dist/views/login/components/LoginDesk2.vue.js.map +1 -0
  213. package/dist/views/login/components/LoginHeroPanel.vue.d.ts +18 -0
  214. package/dist/views/login/components/LoginHeroPanel.vue.js +8 -0
  215. package/dist/views/login/components/LoginHeroPanel.vue.js.map +1 -0
  216. package/dist/views/login/components/LoginHeroPanel2.vue.js +61 -0
  217. package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -0
  218. package/dist/views/login/index.vue.js +1 -1
  219. package/dist/views/login/index2.vue.js +141 -71
  220. package/dist/views/login/index2.vue.js.map +1 -1
  221. package/dist/views/login/layout.d.ts +11 -0
  222. package/dist/views/login/layout.js +27 -0
  223. package/dist/views/login/layout.js.map +1 -0
  224. package/dist/views/mfa/index.vue.js +2 -2
  225. package/dist/views/mfa/index2.vue.js +367 -321
  226. package/dist/views/mfa/index2.vue.js.map +1 -1
  227. package/dist/views/module/index.vue.js +2 -2
  228. package/dist/views/module/index2.vue.js +132 -99
  229. package/dist/views/module/index2.vue.js.map +1 -1
  230. package/dist/views/oauth/callback.vue.js +2 -2
  231. package/dist/views/oauth/callback2.vue.js +65 -51
  232. package/dist/views/oauth/callback2.vue.js.map +1 -1
  233. package/dist/views/personal/bindings.vue.js +2 -2
  234. package/dist/views/personal/bindings2.vue.js +98 -94
  235. package/dist/views/personal/bindings2.vue.js.map +1 -1
  236. package/dist/views/personal/notice2.vue.js +103 -76
  237. package/dist/views/personal/notice2.vue.js.map +1 -1
  238. package/dist/views/personal/password2.vue.js +47 -40
  239. package/dist/views/personal/password2.vue.js.map +1 -1
  240. package/dist/views/personal/profile.vue.js +3 -3
  241. package/dist/views/personal/profile2.vue.js +24 -18
  242. package/dist/views/personal/profile2.vue.js.map +1 -1
  243. package/dist/views/personal/security.vue.js +2 -2
  244. package/dist/views/personal/security2.vue.js +65 -53
  245. package/dist/views/personal/security2.vue.js.map +1 -1
  246. package/dist/views/personal/sessions.vue.js +2 -2
  247. package/dist/views/personal/sessions2.vue.js +67 -62
  248. package/dist/views/personal/sessions2.vue.js.map +1 -1
  249. package/dist/views/system/ai-model/components/ProviderCard.vue.js +2 -2
  250. package/dist/views/system/ai-model/components/ProviderCard2.vue.js +142 -130
  251. package/dist/views/system/ai-model/components/ProviderCard2.vue.js.map +1 -1
  252. package/dist/views/system/ai-model/components/ProviderForm.vue.js +2 -2
  253. package/dist/views/system/ai-model/components/ProviderForm2.vue.js +71 -70
  254. package/dist/views/system/ai-model/components/ProviderForm2.vue.js.map +1 -1
  255. package/dist/views/system/ai-model/index.vue.js +2 -2
  256. package/dist/views/system/ai-model/index2.vue.js +99 -99
  257. package/dist/views/system/ai-model/index2.vue.js.map +1 -1
  258. package/dist/views/system/ai-model/presets.d.ts +1 -1
  259. package/dist/views/system/ai-model/presets.js +18 -18
  260. package/dist/views/system/ai-model/presets.js.map +1 -1
  261. package/dist/views/system/ai-usage/index.vue.js +2 -2
  262. package/dist/views/system/ai-usage/index2.vue.js +356 -258
  263. package/dist/views/system/ai-usage/index2.vue.js.map +1 -1
  264. package/dist/views/system/api-docs/index.vue.js +5 -2
  265. package/dist/views/system/api-docs/index.vue.js.map +1 -1
  266. package/dist/views/system/api-docs/index2.vue.js +92 -42
  267. package/dist/views/system/api-docs/index2.vue.js.map +1 -1
  268. package/dist/views/system/cache/index.vue.js +2 -2
  269. package/dist/views/system/cache/index2.vue.js +74 -80
  270. package/dist/views/system/cache/index2.vue.js.map +1 -1
  271. package/dist/views/system/config/components/AdminMock.vue.js +8 -0
  272. package/dist/views/system/config/components/AdminMock.vue.js.map +1 -0
  273. package/dist/views/system/config/components/AdminMock2.vue.js +93 -0
  274. package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -0
  275. package/dist/views/system/config/components/AdvancedSection.vue.js +8 -0
  276. package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -0
  277. package/dist/views/system/config/components/AdvancedSection2.vue.js +163 -0
  278. package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -0
  279. package/dist/views/system/config/components/BrandSection.vue.d.ts +7 -0
  280. package/dist/views/system/config/components/BrandSection.vue.js +8 -0
  281. package/dist/views/system/config/components/BrandSection.vue.js.map +1 -0
  282. package/dist/views/system/config/components/BrandSection2.vue.js +266 -0
  283. package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -0
  284. package/dist/views/system/config/components/CfgGroup.vue.d.ts +18 -0
  285. package/dist/views/system/config/components/CfgGroup.vue.js +8 -0
  286. package/dist/views/system/config/components/CfgGroup.vue.js.map +1 -0
  287. package/dist/views/system/config/components/CfgGroup2.vue.js +22 -0
  288. package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -0
  289. package/dist/views/system/config/components/CfgRow.vue.d.ts +26 -0
  290. package/dist/views/system/config/components/CfgRow.vue.js +9 -0
  291. package/dist/views/system/config/components/CfgRow.vue.js.map +1 -0
  292. package/dist/views/system/config/components/CfgRow2.vue.js +54 -0
  293. package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -0
  294. package/dist/views/system/config/components/CfgSegment.vue.d.ts +28 -0
  295. package/dist/views/system/config/components/CfgSegment.vue.js +8 -0
  296. package/dist/views/system/config/components/CfgSegment.vue.js.map +1 -0
  297. package/dist/views/system/config/components/CfgSegment2.vue.js +45 -0
  298. package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -0
  299. package/dist/views/system/config/components/ConfigFormModal.vue.js +4 -1
  300. package/dist/views/system/config/components/ConfigFormModal.vue.js.map +1 -1
  301. package/dist/views/system/config/components/ConfigFormModal2.vue.js +72 -60
  302. package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
  303. package/dist/views/system/config/components/JobSection.vue.js +8 -0
  304. package/dist/views/system/config/components/JobSection.vue.js.map +1 -0
  305. package/dist/views/system/config/components/JobSection2.vue.js +140 -0
  306. package/dist/views/system/config/components/JobSection2.vue.js.map +1 -0
  307. package/dist/views/system/config/components/LoginMock.vue.d.ts +8 -0
  308. package/dist/views/system/config/components/LoginMock.vue.js +8 -0
  309. package/dist/views/system/config/components/LoginMock.vue.js.map +1 -0
  310. package/dist/views/system/config/components/LoginMock2.vue.js +132 -0
  311. package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -0
  312. package/dist/views/system/config/components/LogoCropper.vue.d.ts +10 -0
  313. package/dist/views/system/config/components/LogoCropper.vue.js +8 -0
  314. package/dist/views/system/config/components/LogoCropper.vue.js.map +1 -0
  315. package/dist/views/system/config/components/LogoCropper2.vue.js +122 -0
  316. package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -0
  317. package/dist/views/system/config/components/LogoEditor.vue.js +8 -0
  318. package/dist/views/system/config/components/LogoEditor.vue.js.map +1 -0
  319. package/dist/views/system/config/components/LogoEditor2.vue.js +161 -0
  320. package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -0
  321. package/dist/views/system/config/components/ProviderSheet.vue.d.ts +17 -0
  322. package/dist/views/system/config/components/ProviderSheet.vue.js +8 -0
  323. package/dist/views/system/config/components/ProviderSheet.vue.js.map +1 -0
  324. package/dist/views/system/config/components/ProviderSheet2.vue.js +343 -0
  325. package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -0
  326. package/dist/{layouts/SettingRow.vue.d.ts → views/system/config/components/ScaleToFit.vue.d.ts} +2 -1
  327. package/dist/views/system/config/components/ScaleToFit.vue.js +8 -0
  328. package/dist/views/system/config/components/ScaleToFit.vue.js.map +1 -0
  329. package/dist/views/system/config/components/ScaleToFit2.vue.js +41 -0
  330. package/dist/views/system/config/components/ScaleToFit2.vue.js.map +1 -0
  331. package/dist/views/system/config/components/SectionLayout.vue.d.ts +30 -0
  332. package/dist/views/system/config/components/SectionLayout.vue.js +8 -0
  333. package/dist/views/system/config/components/SectionLayout.vue.js.map +1 -0
  334. package/dist/views/system/config/components/SectionLayout2.vue.js +69 -0
  335. package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -0
  336. package/dist/views/system/config/components/SecuritySection.vue.js +8 -0
  337. package/dist/views/system/config/components/SecuritySection.vue.js.map +1 -0
  338. package/dist/views/system/config/components/SecuritySection2.vue.js +417 -0
  339. package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -0
  340. package/dist/views/system/config/components/SensitiveSection.vue.js +8 -0
  341. package/dist/views/system/config/components/SensitiveSection.vue.js.map +1 -0
  342. package/dist/views/system/config/components/SensitiveSection2.vue.js +214 -0
  343. package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -0
  344. package/dist/views/system/config/components/SigninSection.vue.js +8 -0
  345. package/dist/views/system/config/components/SigninSection.vue.js.map +1 -0
  346. package/dist/views/system/config/components/SigninSection2.vue.js +201 -0
  347. package/dist/views/system/config/components/SigninSection2.vue.js.map +1 -0
  348. package/dist/views/system/config/components/UploadSection.vue.js +8 -0
  349. package/dist/views/system/config/components/UploadSection.vue.js.map +1 -0
  350. package/dist/views/system/config/components/UploadSection2.vue.js +176 -0
  351. package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -0
  352. package/dist/views/system/config/components/WatermarkSection.vue.js +8 -0
  353. package/dist/views/system/config/components/WatermarkSection.vue.js.map +1 -0
  354. package/dist/views/system/config/components/WatermarkSection2.vue.js +284 -0
  355. package/dist/views/system/config/components/WatermarkSection2.vue.js.map +1 -0
  356. package/dist/views/system/config/draft.d.ts +148 -0
  357. package/dist/views/system/config/draft.js +170 -0
  358. package/dist/views/system/config/draft.js.map +1 -0
  359. package/dist/views/system/config/flash.d.ts +2 -0
  360. package/dist/views/system/config/flash.js +9 -0
  361. package/dist/views/system/config/flash.js.map +1 -0
  362. package/dist/views/system/config/groups.d.ts +38 -7
  363. package/dist/views/system/config/groups.js +104 -14
  364. package/dist/views/system/config/groups.js.map +1 -1
  365. package/dist/views/system/config/index.vue.js +6 -2
  366. package/dist/views/system/config/index.vue.js.map +1 -1
  367. package/dist/views/system/config/index2.vue.js +201 -111
  368. package/dist/views/system/config/index2.vue.js.map +1 -1
  369. package/dist/views/system/config/layoutMode.d.ts +23 -0
  370. package/dist/views/system/config/layoutMode.js +28 -0
  371. package/dist/views/system/config/layoutMode.js.map +1 -0
  372. package/dist/views/system/config/providerForm.d.ts +33 -0
  373. package/dist/views/system/config/providerForm.js +63 -0
  374. package/dist/views/system/config/providerForm.js.map +1 -0
  375. package/dist/views/system/dict/index.vue.js +2 -2
  376. package/dist/views/system/dict/index2.vue.js +471 -366
  377. package/dist/views/system/dict/index2.vue.js.map +1 -1
  378. package/dist/views/system/file/index2.vue.js +91 -76
  379. package/dist/views/system/file/index2.vue.js.map +1 -1
  380. package/dist/views/system/job/index.vue.js +3 -3
  381. package/dist/views/system/job/index2.vue.js +897 -828
  382. package/dist/views/system/job/index2.vue.js.map +1 -1
  383. package/dist/views/system/job-log/components/AttemptTable.vue.d.ts +8 -0
  384. package/dist/views/system/job-log/components/AttemptTable.vue.js +5 -0
  385. package/dist/views/system/job-log/components/AttemptTable.vue.js.map +1 -0
  386. package/dist/views/system/job-log/components/AttemptTable2.vue.js +54 -0
  387. package/dist/views/system/job-log/components/AttemptTable2.vue.js.map +1 -0
  388. package/dist/views/system/job-log/index.vue.js +2 -2
  389. package/dist/views/system/job-log/index2.vue.js +193 -207
  390. package/dist/views/system/job-log/index2.vue.js.map +1 -1
  391. package/dist/views/system/job-log/runStatus.d.ts +13 -0
  392. package/dist/views/system/job-log/runStatus.js +26 -0
  393. package/dist/views/system/job-log/runStatus.js.map +1 -0
  394. package/dist/views/system/job-monitor/index.vue.js +2 -2
  395. package/dist/views/system/job-monitor/index2.vue.js +172 -180
  396. package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
  397. package/dist/views/system/log/exception/index.vue.js +2 -2
  398. package/dist/views/system/log/exception/index2.vue.js +135 -96
  399. package/dist/views/system/log/exception/index2.vue.js.map +1 -1
  400. package/dist/views/system/log/login/index2.vue.js +62 -41
  401. package/dist/views/system/log/login/index2.vue.js.map +1 -1
  402. package/dist/views/system/log/op/index.vue.js +2 -2
  403. package/dist/views/system/log/op/index2.vue.js +200 -162
  404. package/dist/views/system/log/op/index2.vue.js.map +1 -1
  405. package/dist/views/system/menu/components/ButtonManager.vue.js +2 -2
  406. package/dist/views/system/menu/components/ButtonManager2.vue.js +206 -190
  407. package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -1
  408. package/dist/views/system/menu/components/MenuFormModal.vue.js +2 -2
  409. package/dist/views/system/menu/components/MenuFormModal2.vue.js +127 -118
  410. package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -1
  411. package/dist/views/system/menu/index.vue.js +1 -1
  412. package/dist/views/system/menu/index2.vue.js +216 -183
  413. package/dist/views/system/menu/index2.vue.js.map +1 -1
  414. package/dist/views/system/module/index.vue.js +1 -1
  415. package/dist/views/system/module/index2.vue.js +177 -144
  416. package/dist/views/system/module/index2.vue.js.map +1 -1
  417. package/dist/views/system/monitor/index.vue.js +2 -2
  418. package/dist/views/system/monitor/index2.vue.js +134 -149
  419. package/dist/views/system/monitor/index2.vue.js.map +1 -1
  420. package/dist/views/system/notice/index.vue.js +1 -1
  421. package/dist/views/system/notice/index2.vue.js +209 -181
  422. package/dist/views/system/notice/index2.vue.js.map +1 -1
  423. package/dist/views/system/org/index.vue.js +1 -1
  424. package/dist/views/system/org/index2.vue.js +278 -248
  425. package/dist/views/system/org/index2.vue.js.map +1 -1
  426. package/dist/views/system/position/index.vue.js +5 -2
  427. package/dist/views/system/position/index.vue.js.map +1 -1
  428. package/dist/views/system/position/index2.vue.js +128 -92
  429. package/dist/views/system/position/index2.vue.js.map +1 -1
  430. package/dist/views/system/recycle/index.vue.js +2 -2
  431. package/dist/views/system/recycle/index2.vue.js +90 -67
  432. package/dist/views/system/recycle/index2.vue.js.map +1 -1
  433. package/dist/views/system/role/components/GrantMenuSheet.vue.d.ts +20 -0
  434. package/dist/views/system/role/components/GrantMenuSheet.vue.js +8 -0
  435. package/dist/views/system/role/components/GrantMenuSheet.vue.js.map +1 -0
  436. package/dist/views/system/role/components/GrantMenuSheet2.vue.js +117 -0
  437. package/dist/views/system/role/components/GrantMenuSheet2.vue.js.map +1 -0
  438. package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +6 -4
  439. package/dist/views/system/role/components/GrantMenuTable.vue.js +2 -2
  440. package/dist/views/system/role/components/GrantMenuTable2.vue.js +279 -177
  441. package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -1
  442. package/dist/views/system/role/components/MatchText.vue.d.ts +7 -0
  443. package/dist/views/system/role/components/MatchText.vue.js +8 -0
  444. package/dist/views/system/role/components/MatchText.vue.js.map +1 -0
  445. package/dist/views/system/role/components/MatchText2.vue.js +29 -0
  446. package/dist/views/system/role/components/MatchText2.vue.js.map +1 -0
  447. package/dist/views/system/role/components/grantMenuGroups.d.ts +36 -0
  448. package/dist/views/system/role/components/grantMenuGroups.js +110 -48
  449. package/dist/views/system/role/components/grantMenuGroups.js.map +1 -1
  450. package/dist/views/system/role/index.vue.js +5 -2
  451. package/dist/views/system/role/index.vue.js.map +1 -1
  452. package/dist/views/system/role/index2.vue.js +181 -165
  453. package/dist/views/system/role/index2.vue.js.map +1 -1
  454. package/dist/views/system/session/index2.vue.js +75 -49
  455. package/dist/views/system/session/index2.vue.js.map +1 -1
  456. package/dist/views/system/user/components/ResetPasswordModal.vue.js +2 -2
  457. package/dist/views/system/user/components/ResetPasswordModal2.vue.js +2 -0
  458. package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -1
  459. package/dist/views/system/user/components/UserFormModal.vue.js +2 -2
  460. package/dist/views/system/user/components/UserFormModal2.vue.js +77 -76
  461. package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -1
  462. package/dist/views/system/user/index.vue.js +2 -2
  463. package/dist/views/system/user/index2.vue.js +362 -275
  464. package/dist/views/system/user/index2.vue.js.map +1 -1
  465. package/package.json +6 -8
  466. package/dist/components/SelectTable/index.vue.d.ts +0 -76
  467. package/dist/components/SelectTable/index2.vue.js +0 -256
  468. package/dist/components/SelectTable/index2.vue.js.map +0 -1
  469. package/dist/composables/useTableRowSort.d.ts +0 -20
  470. package/dist/composables/useTableRowSort.js +0 -59
  471. package/dist/composables/useTableRowSort.js.map +0 -1
  472. package/dist/layouts/LayoutModeCards.vue.js +0 -8
  473. package/dist/layouts/LayoutModeCards.vue.js.map +0 -1
  474. package/dist/layouts/LayoutModeCards2.vue.js +0 -67
  475. package/dist/layouts/LayoutModeCards2.vue.js.map +0 -1
  476. package/dist/layouts/SettingRow.vue.js +0 -8
  477. package/dist/layouts/SettingRow.vue.js.map +0 -1
  478. package/dist/layouts/SettingRow2.vue.js +0 -23
  479. package/dist/layouts/SettingRow2.vue.js.map +0 -1
  480. package/dist/views/login/skins/AuroraGlass.vue.js +0 -8
  481. package/dist/views/login/skins/AuroraGlass.vue.js.map +0 -1
  482. package/dist/views/login/skins/AuroraGlass2.vue.js +0 -80
  483. package/dist/views/login/skins/AuroraGlass2.vue.js.map +0 -1
  484. package/dist/views/login/skins/SplitPanel.vue.js +0 -8
  485. package/dist/views/login/skins/SplitPanel.vue.js.map +0 -1
  486. package/dist/views/login/skins/SplitPanel2.vue.js +0 -85
  487. package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
  488. package/dist/views/login/skins/Spotlight.vue.js +0 -8
  489. package/dist/views/login/skins/Spotlight.vue.js.map +0 -1
  490. package/dist/views/login/skins/Spotlight2.vue.js +0 -36
  491. package/dist/views/login/skins/Spotlight2.vue.js.map +0 -1
  492. package/dist/views/login/skins.d.ts +0 -8
  493. package/dist/views/login/skins.js +0 -13
  494. package/dist/views/login/skins.js.map +0 -1
  495. package/dist/views/system/config/components/ExternalAuthConfig.vue.js +0 -8
  496. package/dist/views/system/config/components/ExternalAuthConfig.vue.js.map +0 -1
  497. package/dist/views/system/config/components/ExternalAuthConfig2.vue.js +0 -218
  498. package/dist/views/system/config/components/ExternalAuthConfig2.vue.js.map +0 -1
  499. package/dist/views/system/config/components/GroupExtraConfig.vue.js +0 -8
  500. package/dist/views/system/config/components/GroupExtraConfig.vue.js.map +0 -1
  501. package/dist/views/system/config/components/GroupExtraConfig2.vue.js +0 -108
  502. package/dist/views/system/config/components/GroupExtraConfig2.vue.js.map +0 -1
  503. package/dist/views/system/config/components/HighSensConfig.vue.js +0 -5
  504. package/dist/views/system/config/components/HighSensConfig.vue.js.map +0 -1
  505. package/dist/views/system/config/components/HighSensConfig2.vue.js +0 -134
  506. package/dist/views/system/config/components/HighSensConfig2.vue.js.map +0 -1
  507. package/dist/views/system/config/components/JobConfig.vue.js +0 -5
  508. package/dist/views/system/config/components/JobConfig.vue.js.map +0 -1
  509. package/dist/views/system/config/components/JobConfig2.vue.js +0 -116
  510. package/dist/views/system/config/components/JobConfig2.vue.js.map +0 -1
  511. package/dist/views/system/config/components/OtherConfig.vue.js +0 -5
  512. package/dist/views/system/config/components/OtherConfig.vue.js.map +0 -1
  513. package/dist/views/system/config/components/OtherConfig2.vue.js +0 -121
  514. package/dist/views/system/config/components/OtherConfig2.vue.js.map +0 -1
  515. package/dist/views/system/config/components/SecurityConfig.vue.js +0 -8
  516. package/dist/views/system/config/components/SecurityConfig.vue.js.map +0 -1
  517. package/dist/views/system/config/components/SecurityConfig2.vue.js +0 -456
  518. package/dist/views/system/config/components/SecurityConfig2.vue.js.map +0 -1
  519. package/dist/views/system/config/components/SysBaseConfig.vue.js +0 -5
  520. package/dist/views/system/config/components/SysBaseConfig.vue.js.map +0 -1
  521. package/dist/views/system/config/components/SysBaseConfig2.vue.js +0 -107
  522. package/dist/views/system/config/components/SysBaseConfig2.vue.js.map +0 -1
  523. package/dist/views/system/config/components/UploadConfig.vue.d.ts +0 -3
  524. package/dist/views/system/config/components/UploadConfig.vue.js +0 -5
  525. package/dist/views/system/config/components/UploadConfig.vue.js.map +0 -1
  526. package/dist/views/system/config/components/UploadConfig2.vue.js +0 -135
  527. package/dist/views/system/config/components/UploadConfig2.vue.js.map +0 -1
  528. /package/dist/components/{SelectTable → TableTotal}/index.vue.js.map +0 -0
  529. /package/dist/layouts/{LayoutModeCards.vue.d.ts → AccentPicker.vue.d.ts} +0 -0
  530. /package/dist/views/{login/skins/AuroraGlass.vue.d.ts → system/config/components/AdminMock.vue.d.ts} +0 -0
  531. /package/dist/views/{login/skins/SplitPanel.vue.d.ts → system/config/components/AdvancedSection.vue.d.ts} +0 -0
  532. /package/dist/views/{login/skins/Spotlight.vue.d.ts → system/config/components/JobSection.vue.d.ts} +0 -0
  533. /package/dist/views/system/config/components/{ExternalAuthConfig.vue.d.ts → LogoEditor.vue.d.ts} +0 -0
  534. /package/dist/views/system/config/components/{HighSensConfig.vue.d.ts → SecuritySection.vue.d.ts} +0 -0
  535. /package/dist/views/system/config/components/{JobConfig.vue.d.ts → SensitiveSection.vue.d.ts} +0 -0
  536. /package/dist/views/system/config/components/{OtherConfig.vue.d.ts → SigninSection.vue.d.ts} +0 -0
  537. /package/dist/views/system/config/components/{SecurityConfig.vue.d.ts → UploadSection.vue.d.ts} +0 -0
  538. /package/dist/views/system/config/components/{SysBaseConfig.vue.d.ts → WatermarkSection.vue.d.ts} +0 -0
@@ -1,230 +1,323 @@
1
- import { defineComponent as le, ref as D, computed as M, openBlock as n, createElementBlock as m, createElementVNode as k, createBlock as i, unref as e, withCtx as o, createVNode as t, createCommentVNode as b, toDisplayString as u, Fragment as U, renderList as F, createTextVNode as f, resolveDynamicComponent as ae, normalizeClass as re, h as ne } from "vue";
2
- import { useRoute as se, useRouter as ie } from "vue-router";
3
- import { useMessage as ue, NButton as p, NBreadcrumb as pe, NBreadcrumbItem as ce, NMenu as q, NTooltip as h, NDropdown as A, NAvatar as de } from "naive-ui";
4
- import { Icon as c } from "@iconify/vue";
5
- import { useI18n as me } from "vue-i18n";
6
- import { useAppStore as fe } from "../stores/app.js";
7
- import { useUserStore as he } from "../stores/user.js";
8
- import { useAuthStore as ge } from "../stores/auth.js";
9
- import { useLayoutMenu as ve } from "../composables/useLayoutMenu.js";
10
- import { useMenuFlat as ye } from "../composables/useMenuFlat.js";
11
- import { useSite as be } from "../composables/useSite.js";
12
- import { useFullscreenToggle as ke } from "../composables/useFullscreenToggle.js";
13
- import { useHeaderTools as we } from "../composables/useHeaderTools.js";
14
- import { authApi as Ce } from "../api/index.js";
15
- import { clearClientCache as _e } from "../composables/clearClientCache.js";
16
- import { beginVoluntaryLogout as Se } from "../composables/useRealtime.js";
17
- import { resetRouter as Ne } from "../router/index.js";
18
- import { translateError as T } from "../utils/error.js";
19
- import Be from "../components/SmartLogo.vue.js";
20
- import Me from "../components/AppIcon.vue.js";
21
- import Ue from "./SettingsDrawer.vue.js";
22
- import qe from "../components/MenuSearch.vue.js";
23
- import ze from "./NoticeBell.vue.js";
24
- const Ie = { class: "bar" }, Le = { class: "left" }, Oe = {
1
+ import { defineComponent as de, ref as M, computed as k, onMounted as me, nextTick as fe, onScopeDispose as he, h as S, openBlock as i, createElementBlock as h, createElementVNode as w, createBlock as s, unref as e, withCtx as l, createVNode as r, createCommentVNode as g, toDisplayString as c, Fragment as U, renderList as K, createTextVNode as b, resolveDynamicComponent as be, normalizeClass as ve } from "vue";
2
+ import { useRoute as ye, useRouter as ge } from "vue-router";
3
+ import { useMessage as ke, NButton as p, NButtonGroup as we, NBreadcrumb as Ce, NBreadcrumbItem as _e, NMenu as q, NTooltip as C, NDropdown as G, NAvatar as W } from "naive-ui";
4
+ import { Icon as u } from "@iconify/vue";
5
+ import { useBreakpoints as Se, breakpointsTailwind as xe } from "@vueuse/core";
6
+ import { useI18n as Be } from "vue-i18n";
7
+ import { useAppStore as ze } from "../stores/app.js";
8
+ import { useUserStore as Ne } from "../stores/user.js";
9
+ import { useAuthStore as Me } from "../stores/auth.js";
10
+ import { useLayoutMenu as Ue } from "../composables/useLayoutMenu.js";
11
+ import { useMenuFlat as qe } from "../composables/useMenuFlat.js";
12
+ import { useSite as Ie } from "../composables/useSite.js";
13
+ import { useFullscreenToggle as $e } from "../composables/useFullscreenToggle.js";
14
+ import { useHeaderTools as De } from "../composables/useHeaderTools.js";
15
+ import { authApi as Fe } from "../api/index.js";
16
+ import { clearClientCache as Le } from "../composables/clearClientCache.js";
17
+ import { beginVoluntaryLogout as Oe } from "../composables/useRealtime.js";
18
+ import { resetRouter as Te } from "../router/index.js";
19
+ import { translateError as j } from "../utils/error.js";
20
+ import Ae from "../components/SmartLogo.vue.js";
21
+ import Ee from "../components/AppIcon.vue.js";
22
+ import He from "./SettingsDrawer.vue.js";
23
+ import Ve from "./NoticeBell.vue.js";
24
+ const Re = { class: "bar" }, Ke = { class: "left" }, Ge = {
25
25
  key: 1,
26
26
  class: "brand"
27
- }, $e = { class: "brand-name mobile-hide" }, xe = {
27
+ }, We = { class: "brand-name mobile-hide" }, je = {
28
28
  key: 3,
29
29
  class: "title"
30
- }, De = {
30
+ }, Je = {
31
31
  key: 0,
32
32
  class: "center"
33
- }, Fe = { class: "right" }, Ae = { class: "uname mobile-hide" }, io = /* @__PURE__ */ le({
33
+ }, Pe = { class: "right" }, Qe = ["aria-label"], Xe = { class: "top-user-name mobile-hide" }, wa = /* @__PURE__ */ de({
34
34
  __name: "AppHeader",
35
35
  props: {
36
36
  showCollapse: { type: Boolean, default: !0 },
37
37
  showBrand: { type: Boolean, default: !1 },
38
- topMenu: { default: null }
38
+ topMenu: { default: null },
39
+ showSearch: { type: Boolean, default: !0 }
39
40
  },
40
- setup(g) {
41
- const d = fe(), { site: V } = be(), v = he(), z = ge(), I = se(), w = ie(), C = ue(), { t: s } = me(), {
42
- isSupported: E,
43
- isFullscreen: _,
44
- toggle: R
45
- } = ke(), { menuOptions: H, l1Options: K, l2Options: j, activeKey: L, selectedL1: G, onSelect: O, onSelectL1: J } = ve(), P = ye(), Q = we(), S = D(!1), N = D(!1), W = M(() => {
46
- const r = I.meta.title;
47
- return r ? r.includes(".") ? s(r) : r : "";
48
- }), $ = M(() => {
49
- var r;
50
- return ((r = P.value.find((a) => a.path === I.path)) == null ? void 0 : r.breadcrumb) ?? [];
51
- }), X = [
41
+ emits: ["search"],
42
+ setup(v, { emit: J }) {
43
+ const P = J, m = ze(), { site: Q } = Ie(), d = Ne(), x = Me(), I = ye(), f = ge(), B = ke(), { t: o } = Be(), $ = Se(xe).smaller("md"), {
44
+ isSupported: X,
45
+ isFullscreen: z,
46
+ toggle: Y
47
+ } = $e(), { menuOptions: Z, l1Options: ee, l2Options: ae, activeKey: D, selectedL1: te, onSelect: F, onSelectL1: oe } = Ue(), le = qe(), re = De(), N = M(!1), ne = k(() => {
48
+ const a = I.meta.title;
49
+ return a ? a.includes(".") ? o(a) : a : "";
50
+ }), L = k(() => {
51
+ var a;
52
+ return ((a = le.value.find((t) => t.path === I.path)) == null ? void 0 : a.breadcrumb) ?? [];
53
+ }), O = M(!1), T = M(!1);
54
+ function A() {
55
+ const a = window.history.state;
56
+ O.value = !!(a != null && a.back), T.value = !!(a != null && a.forward);
57
+ }
58
+ me(A);
59
+ const ie = f.afterEach(() => void fe(A));
60
+ he(ie);
61
+ const E = [
52
62
  { label: "简体中文", key: "zh-CN" },
53
63
  { label: "English", key: "en-US" }
54
64
  ];
55
- function Y(r) {
56
- d.setLocale(r);
65
+ function H(a) {
66
+ m.setLocale(a);
57
67
  }
58
- const B = (r, a) => () => ne(c, { icon: r, width: 16, style: a ? { color: a } : void 0 }), Z = M(() => [
59
- { label: s("app.personalCenter"), key: "personal", icon: B("ph:user") },
60
- { label: s("app.clearCache"), key: "clearCache", icon: B("ph:broom") },
61
- { type: "divider", key: "d1" },
62
- // 退出用危险色突出,避免与普通项同权。
63
- {
64
- label: s("app.logout"),
65
- key: "logout",
66
- icon: B("ph:sign-out", "var(--color-danger)"),
67
- props: { style: "color: var(--color-danger)" }
68
- }
69
- ]);
70
- async function ee(r) {
71
- r === "personal" ? w.push("/personal/profile") : r === "clearCache" ? await oe() : r === "logout" && await te();
68
+ const y = (a, t) => () => S(u, { icon: a, width: 16, style: t ? { color: t } : void 0 }), _ = k(() => {
69
+ var a, t;
70
+ return ((a = d.userInfo) == null ? void 0 : a.name) ?? ((t = d.userInfo) == null ? void 0 : t.account) ?? "";
71
+ }), V = k(() => _.value.trim().slice(0, 1).toUpperCase()), se = k(() => {
72
+ const a = [
73
+ {
74
+ key: "header",
75
+ type: "render",
76
+ render: () => {
77
+ var t;
78
+ return S(
79
+ "div",
80
+ {
81
+ style: "display:flex;flex-direction:column;gap:2px;padding:8px 12px 6px;min-width:200px;"
82
+ },
83
+ [
84
+ S("b", { style: "font-size:var(--font-size-md);font-weight:600;" }, _.value),
85
+ (t = d.userInfo) != null && t.account && d.userInfo.account !== _.value ? S(
86
+ "span",
87
+ { style: "font-size:var(--font-size-sm);color:var(--text-3);" },
88
+ d.userInfo.account
89
+ ) : null
90
+ ]
91
+ );
92
+ }
93
+ },
94
+ { type: "divider", key: "d0" },
95
+ { label: o("app.personalCenter"), key: "personal", icon: y("ph:user-circle") },
96
+ { label: o("app.appearance"), key: "settings", icon: y("ph:sliders-horizontal") }
97
+ ];
98
+ return x.modules.length > 1 && a.push({
99
+ label: o("app.switchModule"),
100
+ key: "module",
101
+ icon: y("ph:squares-four")
102
+ }), $.value && a.push({
103
+ label: o("app.language"),
104
+ key: "locale",
105
+ icon: y("ph:translate"),
106
+ children: E.map((t) => ({ ...t, key: `locale:${t.key}` }))
107
+ }), a.push(
108
+ { label: o("app.clearCache"), key: "clearCache", icon: y("ph:broom") },
109
+ { type: "divider", key: "d1" },
110
+ // 退出用危险色突出,避免与普通项同权。
111
+ {
112
+ label: o("app.logout"),
113
+ key: "logout",
114
+ icon: y("ph:sign-out", "var(--err)"),
115
+ props: { style: "color: var(--err)" }
116
+ }
117
+ ), a;
118
+ });
119
+ async function ue(a) {
120
+ a === "personal" ? f.push("/personal/profile") : a === "settings" ? N.value = !0 : a === "module" ? f.push("/module") : a.startsWith("locale:") ? H(a.slice(7)) : a === "clearCache" ? await ce() : a === "logout" && await pe();
72
121
  }
73
- async function oe() {
122
+ async function ce() {
74
123
  try {
75
- await _e(), C.success(s("app.cacheCleared"));
76
- } catch (r) {
77
- C.error(T(r));
124
+ await Le(), B.success(o("app.cacheCleared"));
125
+ } catch (a) {
126
+ B.error(j(a));
78
127
  }
79
128
  }
80
- async function te() {
81
- await Se();
129
+ async function pe() {
130
+ await Oe();
82
131
  try {
83
- await Ce.logout();
84
- } catch (r) {
85
- C.error(T(r));
132
+ await Fe.logout();
133
+ } catch (a) {
134
+ B.error(j(a));
86
135
  }
87
- Ne(), z.reset(), v.clear(), w.replace("/login");
136
+ Te(), x.reset(), d.clear(), f.replace("/login");
88
137
  }
89
- return (r, a) => (n(), m("div", Ie, [
90
- k("div", Le, [
91
- g.showCollapse ? (n(), i(e(p), {
138
+ return (a, t) => (i(), h("div", Re, [
139
+ w("div", Ke, [
140
+ v.showCollapse ? (i(), s(e(p), {
92
141
  key: 0,
93
142
  quaternary: "",
94
143
  circle: "",
95
- "aria-label": e(s)("app.collapse"),
96
- onClick: a[0] || (a[0] = (l) => e(d).toggleCollapsed())
144
+ "aria-label": e(o)("app.collapse"),
145
+ onClick: t[0] || (t[0] = (n) => e(m).toggleCollapsed())
97
146
  }, {
98
- default: o(() => [
99
- t(e(c), {
100
- icon: e(d).collapsed ? "ph:list" : "ph:sidebar-simple",
101
- width: 20
102
- }, null, 8, ["icon"])
147
+ default: l(() => [
148
+ r(e(u), {
149
+ icon: "ph:sidebar-simple",
150
+ width: 19
151
+ })
103
152
  ]),
104
153
  _: 1
105
- }, 8, ["aria-label"])) : b("", !0),
106
- g.showBrand ? (n(), m("div", Oe, [
107
- t(Be, { size: 26 }),
108
- k("span", $e, u(e(V).title), 1)
109
- ])) : b("", !0),
110
- e(d).showBreadcrumb && $.value.length ? (n(), i(e(pe), { key: 2 }, {
111
- default: o(() => [
112
- (n(!0), m(U, null, F($.value, (l, y) => (n(), i(e(ce), { key: y }, {
113
- default: o(() => [
114
- f(u(l), 1)
154
+ }, 8, ["aria-label"])) : g("", !0),
155
+ r(e(we), {
156
+ size: "small",
157
+ class: "mobile-hide"
158
+ }, {
159
+ default: l(() => [
160
+ r(e(p), {
161
+ quaternary: "",
162
+ circle: "",
163
+ disabled: !O.value,
164
+ "aria-label": e(o)("app.back"),
165
+ onClick: t[1] || (t[1] = (n) => e(f).back())
166
+ }, {
167
+ default: l(() => [
168
+ r(e(u), {
169
+ icon: "ph:caret-left",
170
+ width: 16
171
+ })
172
+ ]),
173
+ _: 1
174
+ }, 8, ["disabled", "aria-label"]),
175
+ r(e(p), {
176
+ quaternary: "",
177
+ circle: "",
178
+ disabled: !T.value,
179
+ "aria-label": e(o)("app.forward"),
180
+ onClick: t[2] || (t[2] = (n) => e(f).forward())
181
+ }, {
182
+ default: l(() => [
183
+ r(e(u), {
184
+ icon: "ph:caret-right",
185
+ width: 16
186
+ })
187
+ ]),
188
+ _: 1
189
+ }, 8, ["disabled", "aria-label"])
190
+ ]),
191
+ _: 1
192
+ }),
193
+ v.showBrand ? (i(), h("div", Ge, [
194
+ r(Ae, { size: 26 }),
195
+ w("span", We, c(e(Q).title), 1)
196
+ ])) : g("", !0),
197
+ !e($) && e(m).showBreadcrumb && L.value.length ? (i(), s(e(Ce), {
198
+ key: 2,
199
+ class: "crumb"
200
+ }, {
201
+ default: l(() => [
202
+ (i(!0), h(U, null, K(L.value, (n, R) => (i(), s(e(_e), { key: R }, {
203
+ default: l(() => [
204
+ b(c(n), 1)
115
205
  ]),
116
206
  _: 2
117
207
  }, 1024))), 128))
118
208
  ]),
119
209
  _: 1
120
- })) : (n(), m("span", xe, u(W.value), 1))
210
+ })) : (i(), h("span", je, c(ne.value), 1))
121
211
  ]),
122
- g.topMenu ? (n(), m("div", De, [
123
- g.topMenu === "full" ? (n(), i(e(q), {
212
+ v.topMenu ? (i(), h("div", Je, [
213
+ v.topMenu === "full" ? (i(), s(e(q), {
124
214
  key: 0,
125
215
  mode: "horizontal",
126
216
  responsive: "",
127
- options: e(H),
128
- value: e(L),
129
- "onUpdate:value": e(O)
130
- }, null, 8, ["options", "value", "onUpdate:value"])) : g.topMenu === "l1" ? (n(), i(e(q), {
217
+ options: e(Z),
218
+ value: e(D),
219
+ "onUpdate:value": e(F)
220
+ }, null, 8, ["options", "value", "onUpdate:value"])) : v.topMenu === "l1" ? (i(), s(e(q), {
131
221
  key: 1,
132
222
  mode: "horizontal",
133
223
  responsive: "",
134
- options: e(K),
135
- value: e(G),
136
- "onUpdate:value": e(J)
137
- }, null, 8, ["options", "value", "onUpdate:value"])) : (n(), i(e(q), {
224
+ options: e(ee),
225
+ value: e(te),
226
+ "onUpdate:value": e(oe)
227
+ }, null, 8, ["options", "value", "onUpdate:value"])) : (i(), s(e(q), {
138
228
  key: 2,
139
229
  mode: "horizontal",
140
230
  responsive: "",
141
- options: e(j),
142
- value: e(L),
143
- "onUpdate:value": e(O)
231
+ options: e(ae),
232
+ value: e(D),
233
+ "onUpdate:value": e(F)
144
234
  }, null, 8, ["options", "value", "onUpdate:value"]))
145
- ])) : b("", !0),
146
- k("div", Fe, [
147
- t(e(h), null, {
148
- trigger: o(() => [
149
- t(e(p), {
235
+ ])) : g("", !0),
236
+ w("div", Pe, [
237
+ v.showSearch ? (i(), s(e(C), { key: 0 }, {
238
+ trigger: l(() => [
239
+ r(e(p), {
150
240
  quaternary: "",
151
241
  circle: "",
152
242
  class: "mobile-hide",
153
- onClick: a[1] || (a[1] = (l) => N.value = !0)
243
+ "aria-label": e(o)("app.search"),
244
+ onClick: t[3] || (t[3] = (n) => P("search"))
154
245
  }, {
155
- default: o(() => [
156
- t(e(c), {
246
+ default: l(() => [
247
+ r(e(u), {
157
248
  icon: "ph:magnifying-glass",
158
- width: 18
249
+ width: 19
159
250
  })
160
251
  ]),
161
252
  _: 1
162
- })
253
+ }, 8, ["aria-label"])
163
254
  ]),
164
- default: o(() => [
165
- f(" " + u(e(s)("app.search")) + " (Ctrl+K) ", 1)
255
+ default: l(() => [
256
+ b(" " + c(e(o)("app.search")) + " (Ctrl+K) ", 1)
166
257
  ]),
167
258
  _: 1
168
- }),
169
- e(E) ? (n(), i(e(h), { key: 0 }, {
170
- trigger: o(() => [
171
- t(e(p), {
259
+ })) : g("", !0),
260
+ r(e(C), null, {
261
+ trigger: l(() => [
262
+ r(e(p), {
172
263
  quaternary: "",
173
264
  circle: "",
174
265
  class: "mobile-hide",
175
- "aria-label": e(_) ? e(s)("app.exitFullscreen") : e(s)("app.fullscreen"),
176
- onClick: a[2] || (a[2] = (l) => e(R)())
266
+ "aria-label": e(m).isDark ? e(o)("app.dark") : e(o)("app.light"),
267
+ onClick: t[4] || (t[4] = (n) => e(m).toggleDark())
177
268
  }, {
178
- default: o(() => [
179
- t(e(c), {
180
- icon: e(_) ? "ph:arrows-in" : "ph:arrows-out",
181
- width: 18
269
+ default: l(() => [
270
+ r(e(u), {
271
+ icon: e(m).isDark ? "ph:moon" : "ph:sun",
272
+ width: 19
182
273
  }, null, 8, ["icon"])
183
274
  ]),
184
275
  _: 1
185
276
  }, 8, ["aria-label"])
186
277
  ]),
187
- default: o(() => [
188
- f(" " + u(e(_) ? e(s)("app.exitFullscreen") : e(s)("app.fullscreen")), 1)
278
+ default: l(() => [
279
+ b(" " + c(e(m).isDark ? e(o)("app.dark") : e(o)("app.light")), 1)
189
280
  ]),
190
281
  _: 1
191
- })) : b("", !0),
192
- t(e(h), null, {
193
- trigger: o(() => [
194
- t(e(p), {
282
+ }),
283
+ e(X) ? (i(), s(e(C), { key: 1 }, {
284
+ trigger: l(() => [
285
+ r(e(p), {
195
286
  quaternary: "",
196
287
  circle: "",
197
- onClick: a[3] || (a[3] = (l) => e(d).toggleDark())
288
+ class: "mobile-hide",
289
+ "aria-label": e(z) ? e(o)("app.exitFullscreen") : e(o)("app.fullscreen"),
290
+ onClick: t[5] || (t[5] = (n) => e(Y)())
198
291
  }, {
199
- default: o(() => [
200
- t(e(c), {
201
- icon: e(d).isDark ? "ph:moon-stars" : "ph:sun",
202
- width: 18
292
+ default: l(() => [
293
+ r(e(u), {
294
+ icon: e(z) ? "ph:corners-in" : "ph:corners-out",
295
+ width: 19
203
296
  }, null, 8, ["icon"])
204
297
  ]),
205
298
  _: 1
206
- })
299
+ }, 8, ["aria-label"])
207
300
  ]),
208
- default: o(() => [
209
- f(" " + u(e(d).isDark ? e(s)("app.dark") : e(s)("app.light")), 1)
301
+ default: l(() => [
302
+ b(" " + c(e(z) ? e(o)("app.exitFullscreen") : e(o)("app.fullscreen")), 1)
210
303
  ]),
211
304
  _: 1
212
- }),
213
- t(e(A), {
214
- options: X,
215
- onSelect: Y
305
+ })) : g("", !0),
306
+ r(e(G), {
307
+ options: E,
308
+ onSelect: H
216
309
  }, {
217
- default: o(() => [
218
- t(e(p), {
310
+ default: l(() => [
311
+ r(e(p), {
219
312
  quaternary: "",
220
313
  circle: "",
221
314
  class: "mobile-hide",
222
- "aria-label": e(s)("app.language")
315
+ "aria-label": e(o)("app.language")
223
316
  }, {
224
- default: o(() => [
225
- t(e(c), {
317
+ default: l(() => [
318
+ r(e(u), {
226
319
  icon: "ph:translate",
227
- width: 18
320
+ width: 19
228
321
  })
229
322
  ]),
230
323
  _: 1
@@ -232,121 +325,110 @@ const Ie = { class: "bar" }, Le = { class: "left" }, Oe = {
232
325
  ]),
233
326
  _: 1
234
327
  }),
235
- t(e(h), null, {
236
- trigger: o(() => [
237
- t(e(p), {
238
- quaternary: "",
239
- circle: "",
240
- class: "mobile-hide",
241
- onClick: a[4] || (a[4] = (l) => S.value = !0)
242
- }, {
243
- default: o(() => [
244
- t(e(c), {
245
- icon: "ph:gear-six",
246
- width: 18
247
- })
248
- ]),
249
- _: 1
250
- })
251
- ]),
252
- default: o(() => [
253
- f(" " + u(e(s)("app.settings")), 1)
254
- ]),
255
- _: 1
256
- }),
257
- e(z).modules.length > 1 ? (n(), i(e(h), { key: 1 }, {
258
- trigger: o(() => [
259
- t(e(p), {
260
- quaternary: "",
261
- circle: "",
262
- "aria-label": e(s)("app.switchModule"),
263
- onClick: a[5] || (a[5] = (l) => e(w).push("/module"))
264
- }, {
265
- default: o(() => [
266
- t(e(c), {
267
- icon: "ph:squares-four",
268
- width: 18
269
- })
270
- ]),
271
- _: 1
272
- }, 8, ["aria-label"])
273
- ]),
274
- default: o(() => [
275
- f(" " + u(e(s)("app.switchModule")), 1)
276
- ]),
277
- _: 1
278
- })) : b("", !0),
279
- (n(!0), m(U, null, F(e(Q), (l) => (n(), m(U, {
280
- key: l.key
328
+ (i(!0), h(U, null, K(e(re), (n) => (i(), h(U, {
329
+ key: n.key
281
330
  }, [
282
- l.component ? (n(), i(ae(l.component), { key: 0 })) : (n(), i(e(h), { key: 1 }, {
283
- trigger: o(() => [
284
- t(e(p), {
331
+ n.component ? (i(), s(be(n.component), { key: 0 })) : (i(), s(e(C), { key: 1 }, {
332
+ trigger: l(() => [
333
+ r(e(p), {
285
334
  quaternary: "",
286
335
  circle: "",
287
- class: re({ "mobile-hide": !l.keepOnMobile }),
288
- "aria-label": l.label,
289
- onClick: (y) => l.onClick()
336
+ class: ve({ "mobile-hide": !n.keepOnMobile }),
337
+ "aria-label": n.label,
338
+ onClick: (R) => n.onClick()
290
339
  }, {
291
- default: o(() => [
292
- t(Me, {
293
- icon: l.icon,
294
- size: 18
340
+ default: l(() => [
341
+ r(Ee, {
342
+ icon: n.icon,
343
+ size: 19
295
344
  }, null, 8, ["icon"])
296
345
  ]),
297
346
  _: 2
298
347
  }, 1032, ["class", "aria-label", "onClick"])
299
348
  ]),
300
- default: o(() => [
301
- f(" " + u(l.label), 1)
349
+ default: l(() => [
350
+ b(" " + c(n.label), 1)
302
351
  ]),
303
352
  _: 2
304
353
  }, 1024))
305
354
  ], 64))), 128)),
306
- t(ze),
307
- t(e(A), {
308
- options: Z.value,
309
- onSelect: ee
310
- }, {
311
- default: o(() => [
312
- t(e(p), {
355
+ r(Ve),
356
+ e(x).modules.length > 1 ? (i(), s(e(C), { key: 2 }, {
357
+ trigger: l(() => [
358
+ r(e(p), {
313
359
  quaternary: "",
314
- "aria-label": e(s)("app.profile")
360
+ circle: "",
361
+ class: "mobile-hide",
362
+ "aria-label": e(o)("app.switchModule"),
363
+ onClick: t[6] || (t[6] = (n) => e(f).push("/module"))
315
364
  }, {
316
- default: o(() => {
317
- var l, y, x;
318
- return [
319
- (l = e(v).userInfo) != null && l.avatar ? (n(), i(e(de), {
320
- key: 0,
321
- round: "",
322
- size: 22,
323
- src: e(v).userInfo.avatar
324
- }, null, 8, ["src"])) : (n(), i(e(c), {
325
- key: 1,
326
- icon: "ph:user-circle",
327
- width: 20
328
- })),
329
- k("span", Ae, u(((y = e(v).userInfo) == null ? void 0 : y.name) ?? ((x = e(v).userInfo) == null ? void 0 : x.account) ?? ""), 1)
330
- ];
331
- }),
365
+ default: l(() => [
366
+ r(e(u), {
367
+ icon: "ph:squares-four",
368
+ width: 19
369
+ })
370
+ ]),
332
371
  _: 1
333
372
  }, 8, ["aria-label"])
334
373
  ]),
374
+ default: l(() => [
375
+ b(" " + c(e(o)("app.switchModule")), 1)
376
+ ]),
377
+ _: 1
378
+ })) : g("", !0),
379
+ r(e(G), {
380
+ options: se.value,
381
+ placement: "bottom-end",
382
+ onSelect: ue
383
+ }, {
384
+ default: l(() => {
385
+ var n;
386
+ return [
387
+ w("div", {
388
+ class: "top-user",
389
+ tabindex: "0",
390
+ role: "button",
391
+ "aria-label": e(o)("app.profile")
392
+ }, [
393
+ (n = e(d).userInfo) != null && n.avatar ? (i(), s(e(W), {
394
+ key: 0,
395
+ round: "",
396
+ size: 28,
397
+ src: e(d).userInfo.avatar
398
+ }, null, 8, ["src"])) : V.value ? (i(), s(e(W), {
399
+ key: 1,
400
+ round: "",
401
+ size: 28
402
+ }, {
403
+ default: l(() => [
404
+ b(c(V.value), 1)
405
+ ]),
406
+ _: 1
407
+ })) : (i(), s(e(u), {
408
+ key: 2,
409
+ icon: "ph:user-circle",
410
+ width: 24
411
+ })),
412
+ w("span", Xe, c(_.value), 1),
413
+ r(e(u), {
414
+ icon: "ph:caret-down",
415
+ width: 13,
416
+ class: "caret mobile-hide"
417
+ })
418
+ ], 8, Qe)
419
+ ];
420
+ }),
335
421
  _: 1
336
422
  }, 8, ["options"])
337
423
  ]),
338
- t(Ue, {
339
- show: S.value,
340
- "onUpdate:show": a[6] || (a[6] = (l) => S.value = l)
341
- }, null, 8, ["show"]),
342
- t(qe, {
424
+ r(He, {
343
425
  show: N.value,
344
- "onUpdate:show": a[7] || (a[7] = (l) => N.value = l)
426
+ "onUpdate:show": t[7] || (t[7] = (n) => N.value = n)
345
427
  }, null, 8, ["show"])
346
428
  ]));
347
429
  }
348
430
  });
349
431
  export {
350
- io as default
432
+ wa as default
351
433
  };
352
434
  //# sourceMappingURL=AppHeader2.vue.js.map