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,308 +1,361 @@
1
- import { defineComponent as W, computed as b, ref as h, onMounted as X, onUnmounted as Y, openBlock as o, createElementBlock as s, createElementVNode as n, normalizeStyle as Z, createVNode as c, unref as t, toDisplayString as l, createCommentVNode as r, createSlots as tt, withCtx as d, Fragment as C, renderList as q, createBlock as y, createTextVNode as R, withModifiers as F } from "vue";
2
- import { NCard as D, NEmpty as I, NTag as et, NButton as ot, NList as it, NListItem as st } from "naive-ui";
3
- import { Icon as S } from "@iconify/vue";
4
- import { useI18n as nt } from "vue-i18n";
5
- import { useRoute as at, useRouter as lt } from "vue-router";
6
- import { useUserStore as ut } from "../../stores/user.js";
7
- import { useAppStore as ct } from "../../stores/app.js";
8
- import { btnGrad as rt } from "../../theme/mix.js";
9
- import { personalApi as _, noticeApi as dt } from "../../api/index.js";
10
- import { useMenuFlat as pt } from "../../composables/useMenuFlat.js";
11
- import { translateMenuTitle as G } from "../../locales/menuTitle.js";
12
- import { onlineDurationParts as vt } from "./onlineDuration.js";
13
- import { buildShortcutGroups as mt } from "./shortcutGroups.js";
14
- import ht from "./ShortcutPicker.vue.js";
15
- import j from "../../components/AppIcon.vue.js";
16
- import { fmtDateTime as E } from "../../utils/format.js";
17
- import { uaSummary as _t } from "../../utils/ua.js";
18
- const kt = { class: "view" }, ft = { class: "banner" }, bt = { class: "banner-body" }, yt = { class: "hi" }, gt = { class: "tip" }, wt = {
1
+ import { defineComponent as ee, ref as m, computed as _, onMounted as te, onUnmounted as ie, openBlock as i, createElementBlock as r, createVNode as l, unref as e, withCtx as n, createElementVNode as a, toDisplayString as c, createCommentVNode as k, normalizeStyle as j, createSlots as ae, createBlock as f, Fragment as y, renderList as C, createTextVNode as se, withModifiers as H, normalizeClass as S } from "vue";
2
+ import { NCard as T, NList as J, NListItem as K, NEmpty as E, NTag as ne, NButton as g } from "naive-ui";
3
+ import { useElementSize as oe } from "@vueuse/core";
4
+ import { Icon as $ } from "@iconify/vue";
5
+ import { useI18n as le } from "vue-i18n";
6
+ import { useRoute as re, useRouter as ce } from "vue-router";
7
+ import { useUserStore as ue } from "../../stores/user.js";
8
+ import { personalApi as b, noticeApi as de } from "../../api/index.js";
9
+ import { useMenuFlat as pe } from "../../composables/useMenuFlat.js";
10
+ import { translateMenuTitle as O } from "../../locales/menuTitle.js";
11
+ import { onlineDurationParts as me } from "./onlineDuration.js";
12
+ import { buildShortcutGroups as ve } from "./shortcutGroups.js";
13
+ import he from "./ShortcutPicker.vue.js";
14
+ import Q from "../../components/AppIcon.vue.js";
15
+ import { fmtDateTime as M } from "../../utils/format.js";
16
+ import { uaSummary as fe } from "../../utils/ua.js";
17
+ const _e = { class: "banner" }, ke = { class: "avatar" }, ye = { class: "banner-body" }, be = { class: "hi" }, ge = { class: "tip" }, we = {
19
18
  key: 0,
20
19
  class: "meta-row"
21
- }, zt = { key: 0 }, Ct = {
20
+ }, ze = { key: 0 }, xe = {
22
21
  key: 1,
23
- class: "meta-dot"
24
- }, qt = { class: "row" }, St = {
25
- key: 0,
26
- class: "todo-list"
27
- }, $t = ["onClick"], Tt = { class: "todo-main" }, xt = { class: "todo-title" }, Nt = {
22
+ class: "meta-dot",
23
+ "aria-hidden": "true"
24
+ }, qe = { class: "todo-row" }, Ce = { class: "todo-main" }, Se = { class: "todo-title" }, Te = {
28
25
  key: 0,
29
26
  class: "todo-sub"
30
- }, Lt = { class: "todo-time" }, Pt = { key: 0 }, Dt = {
31
- key: 0,
32
- class: "quick-group-label"
33
- }, It = {
34
- key: 1,
35
- class: "quick-grid"
36
- }, Et = ["aria-label", "onClick"], Mt = ["onClick"], At = { class: "quick-name" }, Bt = {
37
- key: 2,
38
- class: "quick-group-label"
39
- }, Ut = {
40
- key: 3,
41
- class: "quick-grid"
42
- }, Vt = ["aria-label", "onClick"], Rt = ["onClick"], Ft = { class: "quick-name" }, Gt = { class: "notice-title" }, jt = {
43
- key: 0,
44
- class: "dot"
45
- }, Ht = { class: "notice-time" }, re = /* @__PURE__ */ W({
27
+ }, $e = { class: "todo-time" }, Ne = { key: 0 }, Le = { class: "quick-group-label" }, Pe = { class: "quick-grid" }, De = { class: "quick-name" }, Ie = { class: "quick-grid" }, Re = { class: "quick-name" }, Ee = ["title"], Me = { class: "notice-time" }, tt = /* @__PURE__ */ ee({
46
28
  __name: "biz",
47
- setup(Jt) {
48
- const { t: a } = nt(), M = ut(), H = ct(), A = at(), g = lt(), J = pt(), K = b(() => ({ background: rt(H.accent) })), $ = h(null), m = h(null), B = h(/* @__PURE__ */ new Date());
49
- let T;
50
- const w = b(() => {
51
- if (!$.value) return "";
52
- const { hours: i, minutes: u } = vt($.value, B.value);
53
- return i > 0 ? a("biz.onlineDuration", { hours: i, minutes: u }) : a("biz.onlineDurationShort", { minutes: u });
54
- }), x = b(() => {
55
- if (!m.value) return a("biz.firstLogin");
56
- const i = _t(m.value.userAgent), u = m.value.ip ? ` · ${m.value.ip}` : "";
57
- return `${a("biz.lastLogin", { time: E(m.value.time, { seconds: !1 }) })}${u}${i ? ` · ${i}` : ""}`;
58
- }), p = h(null), z = h([]), N = h(!1), v = b(
59
- () => mt(
60
- z.value.filter((i) => i.menuPath !== A.path),
61
- J.value
29
+ setup(Ae) {
30
+ const { t: o } = le(), A = ue(), B = re(), w = ce(), W = pe(), U = m(null), { width: z } = oe(U), X = _(() => z.value === 0 || z.value >= 760), V = _(() => z.value === 0 || z.value >= 600), N = m(null), v = m(null), F = m(/* @__PURE__ */ new Date());
31
+ let L;
32
+ const x = _(() => {
33
+ if (!N.value) return "";
34
+ const { hours: s, minutes: u } = me(N.value, F.value);
35
+ return s > 0 ? o("biz.onlineDuration", { hours: s, minutes: u }) : o("biz.onlineDurationShort", { minutes: u });
36
+ }), P = _(() => {
37
+ if (!v.value) return o("biz.firstLogin");
38
+ const s = fe(v.value.userAgent), u = v.value.ip ? ` · ${v.value.ip}` : "";
39
+ return `${o("biz.lastLogin", { time: M(v.value.time, { seconds: !1 }) })}${u}${s ? ` · ${s}` : ""}`;
40
+ }), d = m(null), q = m([]), D = m(!1), h = _(
41
+ () => ve(
42
+ q.value.filter((s) => s.menuPath !== B.path),
43
+ W.value
62
44
  )
63
- ), O = b(() => z.value.filter((i) => i.pinned).map((i) => i.menuPath));
64
- async function L() {
45
+ ), Y = _(() => q.value.filter((s) => s.pinned).map((s) => s.menuPath));
46
+ async function I() {
65
47
  try {
66
- z.value = await _.shortcuts();
48
+ q.value = await b.shortcuts();
67
49
  } catch {
68
- z.value = [];
50
+ q.value = [];
69
51
  }
70
52
  }
71
- async function U(i) {
72
- await _.pinShortcut(i), await L();
53
+ async function G(s) {
54
+ await b.pinShortcut(s), await I();
73
55
  }
74
- async function Q(i) {
75
- await _.unpinShortcut(i), await L();
56
+ async function Z(s) {
57
+ await b.unpinShortcut(s), await I();
76
58
  }
77
- const P = h([]);
78
- return X(async () => {
79
- var i;
80
- T = setInterval(() => {
81
- B.value = /* @__PURE__ */ new Date();
59
+ const R = m([]);
60
+ return te(async () => {
61
+ var s;
62
+ L = setInterval(() => {
63
+ F.value = /* @__PURE__ */ new Date();
82
64
  }, 6e4);
83
65
  try {
84
- const u = await _.sessions();
85
- $.value = ((i = u.find((k) => k.isCurrent)) == null ? void 0 : i.loginTime) ?? null;
66
+ const u = await b.sessions();
67
+ N.value = ((s = u.find((t) => t.isCurrent)) == null ? void 0 : s.loginTime) ?? null;
86
68
  } catch {
87
69
  }
88
70
  try {
89
- m.value = await _.lastLogin();
71
+ v.value = await b.lastLogin();
90
72
  } catch {
91
- m.value = null;
73
+ v.value = null;
92
74
  }
93
75
  try {
94
- p.value = await _.workbenchTodo();
76
+ d.value = await b.workbenchTodo();
95
77
  } catch {
96
- p.value = null;
78
+ d.value = null;
97
79
  }
98
- await L();
80
+ await I();
99
81
  try {
100
- P.value = (await dt.mine({ page: 1, pageSize: 5 })).items;
82
+ R.value = (await de.mine({ page: 1, pageSize: 5 })).items;
101
83
  } catch {
102
84
  }
103
- }), Y(() => {
104
- T && clearInterval(T);
105
- }), (i, u) => {
106
- var k, V;
107
- return o(), s("div", kt, [
108
- n("div", ft, [
109
- n("div", {
110
- class: "avatar",
111
- style: Z(K.value)
112
- }, [
113
- c(t(S), {
114
- icon: "ph:user",
115
- width: 26,
116
- color: "#fff"
117
- })
118
- ], 4),
119
- n("div", bt, [
120
- n("div", yt, l(t(a)("biz.welcome", { name: ((k = t(M).userInfo) == null ? void 0 : k.name) ?? ((V = t(M).userInfo) == null ? void 0 : V.account) ?? "" })), 1),
121
- n("div", gt, l(t(a)("biz.subtitle")), 1),
122
- w.value || x.value ? (o(), s("div", wt, [
123
- w.value ? (o(), s("span", zt, l(w.value), 1)) : r("", !0),
124
- w.value && x.value ? (o(), s("span", Ct)) : r("", !0),
125
- n("span", null, l(x.value), 1)
126
- ])) : r("", !0)
127
- ])
128
- ]),
129
- n("div", qt, [
130
- c(t(D), {
131
- title: t(a)("biz.todo"),
132
- bordered: !0
133
- }, tt({
134
- default: d(() => [
135
- p.value && p.value.items.length ? (o(), s("div", St, [
136
- (o(!0), s(C, null, q(p.value.items, (e) => (o(), s("div", {
137
- key: e.id,
138
- class: "todo-row",
139
- onClick: (f) => e.url && t(g).push(e.url)
140
- }, [
141
- n("div", Tt, [
142
- n("div", xt, l(e.title), 1),
143
- e.description ? (o(), s("div", Nt, l(e.description), 1)) : r("", !0)
144
- ]),
145
- n("span", Lt, l(t(E)(e.createTime, { seconds: !1 })), 1)
146
- ], 8, $t))), 128))
147
- ])) : (o(), y(t(I), {
148
- key: 1,
149
- description: t(a)("biz.todoEmpty")
150
- }, null, 8, ["description"]))
151
- ]),
152
- _: 2
153
- }, [
154
- p.value && p.value.totalCount > 0 ? {
155
- name: "header-extra",
156
- fn: d(() => [
157
- c(t(et), {
158
- type: "error",
159
- round: "",
160
- size: "small"
85
+ }), ie(() => {
86
+ L && clearInterval(L);
87
+ }), (s, u) => (i(), r("div", {
88
+ ref_key: "viewRef",
89
+ ref: U,
90
+ class: "view"
91
+ }, [
92
+ l(e(T), {
93
+ class: "a-card banner-card",
94
+ bordered: !0,
95
+ "content-style": "padding: 18px 20px"
96
+ }, {
97
+ default: n(() => {
98
+ var t, p;
99
+ return [
100
+ a("div", _e, [
101
+ a("div", ke, [
102
+ l(e($), {
103
+ icon: "ph:user",
104
+ width: 26
105
+ })
106
+ ]),
107
+ a("div", ye, [
108
+ a("div", be, c(e(o)("biz.welcome", { name: ((t = e(A).userInfo) == null ? void 0 : t.name) ?? ((p = e(A).userInfo) == null ? void 0 : p.account) ?? "" })), 1),
109
+ a("div", ge, c(e(o)("biz.subtitle")), 1),
110
+ x.value || P.value ? (i(), r("div", we, [
111
+ x.value ? (i(), r("span", ze, c(x.value), 1)) : k("", !0),
112
+ x.value && P.value && V.value ? (i(), r("span", xe)) : k("", !0),
113
+ a("span", null, c(P.value), 1)
114
+ ])) : k("", !0)
115
+ ])
116
+ ])
117
+ ];
118
+ }),
119
+ _: 1
120
+ }),
121
+ a("div", {
122
+ class: "row",
123
+ style: j({
124
+ gridTemplateColumns: X.value ? "minmax(0, 1.35fr) minmax(0, 1fr)" : "minmax(0, 1fr)"
125
+ })
126
+ }, [
127
+ l(e(T), {
128
+ class: "a-card",
129
+ title: e(o)("biz.todo"),
130
+ bordered: !0,
131
+ "content-style": "padding: 2px 8px 8px"
132
+ }, ae({
133
+ default: n(() => [
134
+ d.value && d.value.items.length ? (i(), f(e(J), {
135
+ key: 0,
136
+ hoverable: "",
137
+ "show-divider": !1
138
+ }, {
139
+ default: n(() => [
140
+ (i(!0), r(y, null, C(d.value.items, (t) => (i(), f(e(K), {
141
+ key: t.id,
142
+ class: "list-item",
143
+ style: j({ cursor: t.url ? "pointer" : "default" }),
144
+ onClick: (p) => t.url && e(w).push(t.url)
161
145
  }, {
162
- default: d(() => [
163
- R(l(p.value.totalCount), 1)
146
+ default: n(() => [
147
+ a("div", qe, [
148
+ a("div", Ce, [
149
+ a("div", Se, c(t.title), 1),
150
+ t.description ? (i(), r("div", Te, c(t.description), 1)) : k("", !0)
151
+ ]),
152
+ a("span", $e, c(e(M)(t.createTime, { seconds: !1 })), 1)
153
+ ])
164
154
  ]),
165
- _: 1
166
- })
155
+ _: 2
156
+ }, 1032, ["style", "onClick"]))), 128))
167
157
  ]),
168
- key: "0"
169
- } : void 0
170
- ]), 1032, ["title"]),
171
- c(t(D), {
172
- title: t(a)("biz.quick"),
173
- bordered: !0
174
- }, {
175
- "header-extra": d(() => [
176
- c(t(ot), {
158
+ _: 1
159
+ })) : (i(), f(e(E), {
160
+ key: 1,
161
+ description: e(o)("biz.todoEmpty"),
162
+ class: "empty"
163
+ }, null, 8, ["description"]))
164
+ ]),
165
+ _: 2
166
+ }, [
167
+ d.value && d.value.totalCount > 0 ? {
168
+ name: "header-extra",
169
+ fn: n(() => [
170
+ l(e(ne), {
171
+ type: "error",
172
+ round: "",
177
173
  size: "small",
178
- quaternary: "",
179
- circle: "",
180
- onClick: u[0] || (u[0] = (e) => N.value = !0)
174
+ bordered: !1
181
175
  }, {
182
- icon: d(() => [
183
- c(t(S), {
184
- icon: "ph:plus",
185
- width: 16
186
- })
176
+ default: n(() => [
177
+ se(c(d.value.totalCount), 1)
187
178
  ]),
188
179
  _: 1
189
180
  })
190
181
  ]),
191
- default: d(() => [
192
- v.value.pinned.length || v.value.suggested.length ? (o(), s("div", Pt, [
193
- v.value.pinned.length ? (o(), s("div", Dt, l(t(a)("biz.quickPinned")), 1)) : r("", !0),
194
- v.value.pinned.length ? (o(), s("div", It, [
195
- (o(!0), s(C, null, q(v.value.pinned, (e) => (o(), s("div", {
196
- key: e.path,
197
- class: "quick-item"
182
+ key: "0"
183
+ } : void 0
184
+ ]), 1032, ["title"]),
185
+ l(e(T), {
186
+ class: "a-card",
187
+ title: e(o)("biz.quick"),
188
+ bordered: !0,
189
+ "content-style": "padding: 4px 16px 16px"
190
+ }, {
191
+ "header-extra": n(() => [
192
+ l(e(g), {
193
+ quaternary: "",
194
+ circle: "",
195
+ "aria-label": e(o)("biz.quickAdd"),
196
+ onClick: u[0] || (u[0] = (t) => D.value = !0)
197
+ }, {
198
+ icon: n(() => [
199
+ l(e($), {
200
+ icon: "ph:plus",
201
+ width: 16
202
+ })
203
+ ]),
204
+ _: 1
205
+ }, 8, ["aria-label"])
206
+ ]),
207
+ default: n(() => [
208
+ h.value.pinned.length || h.value.suggested.length ? (i(), r("div", Ne, [
209
+ h.value.pinned.length ? (i(), r(y, { key: 0 }, [
210
+ a("div", Le, c(e(o)("biz.quickPinned")), 1),
211
+ a("div", Pe, [
212
+ (i(!0), r(y, null, C(h.value.pinned, (t) => (i(), r("div", {
213
+ key: t.path,
214
+ class: "quick-item pinned"
198
215
  }, [
199
- n("button", {
200
- class: "quick-star active",
201
- type: "button",
202
- "aria-label": t(a)("biz.quickUnpin"),
203
- onClick: F((f) => Q(e.path), ["stop"])
204
- }, [
205
- c(t(S), {
206
- icon: "ph:star-fill",
207
- width: 12
208
- })
209
- ], 8, Et),
210
- n("div", {
216
+ l(e(g), {
217
+ quaternary: "",
211
218
  class: "quick-body",
212
- onClick: (f) => t(g).push(e.path)
213
- }, [
214
- c(j, {
215
- icon: e.icon,
216
- size: 17
217
- }, null, 8, ["icon"]),
218
- n("span", At, l(t(G)(e.title)), 1)
219
- ], 8, Mt)
219
+ onClick: (p) => e(w).push(t.path)
220
+ }, {
221
+ icon: n(() => [
222
+ l(Q, {
223
+ icon: t.icon,
224
+ size: 17
225
+ }, null, 8, ["icon"])
226
+ ]),
227
+ default: n(() => [
228
+ a("span", De, c(e(O)(t.title)), 1)
229
+ ]),
230
+ _: 2
231
+ }, 1032, ["onClick"]),
232
+ l(e(g), {
233
+ quaternary: "",
234
+ circle: "",
235
+ class: "quick-star",
236
+ "aria-label": e(o)("biz.quickUnpin"),
237
+ onClick: H((p) => Z(t.path), ["stop"])
238
+ }, {
239
+ icon: n(() => [
240
+ l(e($), {
241
+ icon: "ph:star-fill",
242
+ width: 14,
243
+ class: "star-on"
244
+ })
245
+ ]),
246
+ _: 1
247
+ }, 8, ["aria-label", "onClick"])
220
248
  ]))), 128))
221
- ])) : r("", !0),
222
- v.value.suggested.length ? (o(), s("div", Bt, l(t(a)("biz.quickSuggested")), 1)) : r("", !0),
223
- v.value.suggested.length ? (o(), s("div", Ut, [
224
- (o(!0), s(C, null, q(v.value.suggested, (e) => (o(), s("div", {
225
- key: e.path,
249
+ ])
250
+ ], 64)) : k("", !0),
251
+ h.value.suggested.length ? (i(), r(y, { key: 1 }, [
252
+ a("div", {
253
+ class: S(["quick-group-label", { "after-pinned": h.value.pinned.length }])
254
+ }, c(e(o)("biz.quickSuggested")), 3),
255
+ a("div", Ie, [
256
+ (i(!0), r(y, null, C(h.value.suggested, (t) => (i(), r("div", {
257
+ key: t.path,
226
258
  class: "quick-item suggested"
227
259
  }, [
228
- n("button", {
229
- class: "quick-star",
230
- type: "button",
231
- "aria-label": t(a)("biz.quickPin"),
232
- onClick: F((f) => U(e.path), ["stop"])
233
- }, [
234
- c(t(S), {
235
- icon: "ph:star",
236
- width: 12
237
- })
238
- ], 8, Vt),
239
- n("div", {
260
+ l(e(g), {
261
+ quaternary: "",
240
262
  class: "quick-body",
241
- onClick: (f) => t(g).push(e.path)
242
- }, [
243
- c(j, {
244
- icon: e.icon,
245
- size: 17
246
- }, null, 8, ["icon"]),
247
- n("span", Ft, l(t(G)(e.title)), 1)
248
- ], 8, Rt)
249
- ]))), 128))
250
- ])) : r("", !0)
251
- ])) : (o(), y(t(I), {
252
- key: 1,
253
- description: t(a)("biz.noMenus")
254
- }, null, 8, ["description"]))
255
- ]),
256
- _: 1
257
- }, 8, ["title"])
258
- ]),
259
- c(t(D), {
260
- title: t(a)("biz.notices"),
261
- bordered: !0
262
- }, {
263
- default: d(() => [
264
- P.value.length ? (o(), y(t(it), {
265
- key: 0,
266
- "show-divider": !1
267
- }, {
268
- default: d(() => [
269
- (o(!0), s(C, null, q(P.value, (e) => (o(), y(t(st), {
270
- key: e.id
271
- }, {
272
- default: d(() => [
273
- n("div", {
274
- class: "notice-row",
275
- onClick: u[1] || (u[1] = (f) => t(g).push("/personal/notice"))
276
- }, [
277
- n("span", Gt, [
278
- e.isRead ? r("", !0) : (o(), s("span", jt)),
279
- R(" " + l(e.title), 1)
263
+ onClick: (p) => e(w).push(t.path)
264
+ }, {
265
+ icon: n(() => [
266
+ l(Q, {
267
+ icon: t.icon,
268
+ size: 17
269
+ }, null, 8, ["icon"])
280
270
  ]),
281
- n("span", Ht, l(t(E)(e.publishTime, { seconds: !1 })), 1)
282
- ])
283
- ]),
284
- _: 2
285
- }, 1024))), 128))
286
- ]),
287
- _: 1
288
- })) : (o(), y(t(I), {
271
+ default: n(() => [
272
+ a("span", Re, c(e(O)(t.title)), 1)
273
+ ]),
274
+ _: 2
275
+ }, 1032, ["onClick"]),
276
+ l(e(g), {
277
+ quaternary: "",
278
+ circle: "",
279
+ class: "quick-star",
280
+ "aria-label": e(o)("biz.quickPin"),
281
+ onClick: H((p) => G(t.path), ["stop"])
282
+ }, {
283
+ icon: n(() => [
284
+ l(e($), {
285
+ icon: "ph:star",
286
+ width: 14,
287
+ class: "star-off"
288
+ })
289
+ ]),
290
+ _: 1
291
+ }, 8, ["aria-label", "onClick"])
292
+ ]))), 128))
293
+ ])
294
+ ], 64)) : k("", !0)
295
+ ])) : (i(), f(e(E), {
289
296
  key: 1,
290
- description: t(a)("biz.noticesEmpty")
297
+ description: e(o)("biz.noMenus"),
298
+ class: "empty"
291
299
  }, null, 8, ["description"]))
292
300
  ]),
293
301
  _: 1
294
- }, 8, ["title"]),
295
- c(ht, {
296
- show: N.value,
297
- "onUpdate:show": u[2] || (u[2] = (e) => N.value = e),
298
- "exclude-paths": [...O.value, t(A).path],
299
- onPick: U
300
- }, null, 8, ["show", "exclude-paths"])
301
- ]);
302
- };
302
+ }, 8, ["title"])
303
+ ], 4),
304
+ l(e(T), {
305
+ class: "a-card",
306
+ title: e(o)("biz.notices"),
307
+ bordered: !0,
308
+ "content-style": "padding: 2px 8px 8px"
309
+ }, {
310
+ default: n(() => [
311
+ R.value.length ? (i(), f(e(J), {
312
+ key: 0,
313
+ hoverable: "",
314
+ clickable: "",
315
+ "show-divider": !1
316
+ }, {
317
+ default: n(() => [
318
+ (i(!0), r(y, null, C(R.value, (t) => (i(), f(e(K), {
319
+ key: t.id,
320
+ class: "list-item",
321
+ onClick: u[1] || (u[1] = (p) => e(w).push("/personal/notice"))
322
+ }, {
323
+ default: n(() => [
324
+ a("div", {
325
+ class: S(["notice-row", { stacked: !V.value }])
326
+ }, [
327
+ a("span", {
328
+ class: S(["dot", { unread: !t.isRead }])
329
+ }, null, 2),
330
+ a("span", {
331
+ class: S(["notice-title", { unread: !t.isRead }]),
332
+ title: t.title
333
+ }, c(t.title), 11, Ee),
334
+ a("span", Me, c(e(M)(t.publishTime, { seconds: !1 })), 1)
335
+ ], 2)
336
+ ]),
337
+ _: 2
338
+ }, 1024))), 128))
339
+ ]),
340
+ _: 1
341
+ })) : (i(), f(e(E), {
342
+ key: 1,
343
+ description: e(o)("biz.noticesEmpty"),
344
+ class: "empty"
345
+ }, null, 8, ["description"]))
346
+ ]),
347
+ _: 1
348
+ }, 8, ["title"]),
349
+ l(he, {
350
+ show: D.value,
351
+ "onUpdate:show": u[2] || (u[2] = (t) => D.value = t),
352
+ "exclude-paths": [...Y.value, e(B).path],
353
+ onPick: G
354
+ }, null, 8, ["show", "exclude-paths"])
355
+ ], 512));
303
356
  }
304
357
  });
305
358
  export {
306
- re as default
359
+ tt as default
307
360
  };
308
361
  //# sourceMappingURL=biz2.vue.js.map