smart-admin-web 10.15.0 → 10.20.1

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 (432) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.d.ts +4 -2
  3. package/dist/api/index.js +1 -1
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/schema.d.ts +39 -5
  6. package/dist/assets/icons/ph-subset.json.js +5 -5
  7. package/dist/components/AppIcon.vue.js +9 -9
  8. package/dist/components/AppIcon.vue.js.map +1 -1
  9. package/dist/components/AppWatermark.vue.d.ts +14 -0
  10. package/dist/components/AppWatermark.vue.js +38 -0
  11. package/dist/components/AppWatermark.vue.js.map +1 -0
  12. package/dist/components/AppWatermark2.vue.js +5 -0
  13. package/dist/components/AppWatermark2.vue.js.map +1 -0
  14. package/dist/components/Chart/PieChart.vue.d.ts +1 -1
  15. package/dist/components/Chart/echarts.js +15 -20
  16. package/dist/components/Chart/echarts.js.map +1 -1
  17. package/dist/components/CronEditor/index.vue.js +1 -1
  18. package/dist/components/CronEditor/index2.vue.js +2 -1
  19. package/dist/components/CronEditor/index2.vue.js.map +1 -1
  20. package/dist/components/DetailPage/index.vue.js +2 -2
  21. package/dist/components/DetailPage/index2.vue.js.map +1 -1
  22. package/dist/components/DictTag/index.vue.js.map +1 -1
  23. package/dist/components/ErrorBoundary/index.vue.js +2 -2
  24. package/dist/components/ErrorBoundary/index2.vue.js +1 -1
  25. package/dist/components/ErrorBoundary/index2.vue.js.map +1 -1
  26. package/dist/components/FormContainer/index.vue.js +91 -56
  27. package/dist/components/FormContainer/index.vue.js.map +1 -1
  28. package/dist/components/ImportWizard/index.vue.js +1 -1
  29. package/dist/components/ImportWizard/index2.vue.js +44 -41
  30. package/dist/components/ImportWizard/index2.vue.js.map +1 -1
  31. package/dist/components/MenuSearch.vue.js +2 -2
  32. package/dist/components/MenuSearch2.vue.js +19 -18
  33. package/dist/components/MenuSearch2.vue.js.map +1 -1
  34. package/dist/components/PasswordStrength/index.vue.js +2 -2
  35. package/dist/components/PasswordStrength/index2.vue.js +20 -18
  36. package/dist/components/PasswordStrength/index2.vue.js.map +1 -1
  37. package/dist/components/TableTotal/index.vue.d.ts +6 -0
  38. package/dist/components/{SelectTable → TableTotal}/index.vue.js +1 -1
  39. package/dist/components/TableTotal/index2.vue.js +16 -0
  40. package/dist/components/TableTotal/index2.vue.js.map +1 -0
  41. package/dist/components/TableZoomButton/index.vue.js.map +1 -1
  42. package/dist/components/UserPicker/index.vue.js +2 -2
  43. package/dist/components/UserPicker/index2.vue.js +176 -117
  44. package/dist/components/UserPicker/index2.vue.js.map +1 -1
  45. package/dist/composables/useBatchDelete.js.map +1 -1
  46. package/dist/composables/useLayoutMenu.js +17 -16
  47. package/dist/composables/useLayoutMenu.js.map +1 -1
  48. package/dist/composables/useModule.js +39 -29
  49. package/dist/composables/useModule.js.map +1 -1
  50. package/dist/composables/useShellBreakpoint.d.ts +19 -0
  51. package/dist/composables/useShellBreakpoint.js +37 -0
  52. package/dist/composables/useShellBreakpoint.js.map +1 -0
  53. package/dist/composables/useSite.d.ts +15 -0
  54. package/dist/composables/useSite.js +16 -14
  55. package/dist/composables/useSite.js.map +1 -1
  56. package/dist/composables/useTabTitle.js.map +1 -1
  57. package/dist/composables/useTableTitle.d.ts +6 -0
  58. package/dist/composables/useTableTitle.js +11 -0
  59. package/dist/composables/useTableTitle.js.map +1 -0
  60. package/dist/composables/useTableZoom.d.ts +5 -0
  61. package/dist/composables/useTableZoom.js.map +1 -1
  62. package/dist/composables/useTheme.d.ts +2 -2
  63. package/dist/composables/useTheme.js +23 -20
  64. package/dist/composables/useTheme.js.map +1 -1
  65. package/dist/createSmartAdmin.d.ts +12 -2
  66. package/dist/createSmartAdmin.js +72 -60
  67. package/dist/createSmartAdmin.js.map +1 -1
  68. package/dist/index.d.ts +5 -2
  69. package/dist/index.js +219 -205
  70. package/dist/index.js.map +1 -1
  71. package/dist/layouts/AccentPicker.vue.js +8 -0
  72. package/dist/layouts/AccentPicker.vue.js.map +1 -0
  73. package/dist/layouts/AccentPicker2.vue.js +131 -0
  74. package/dist/layouts/AccentPicker2.vue.js.map +1 -0
  75. package/dist/layouts/AppHeader.vue.d.ts +8 -1
  76. package/dist/layouts/AppHeader.vue.js +2 -2
  77. package/dist/layouts/AppHeader2.vue.js +317 -235
  78. package/dist/layouts/AppHeader2.vue.js.map +1 -1
  79. package/dist/layouts/NoticeBell.vue.js +2 -2
  80. package/dist/layouts/NoticeBell2.vue.js +19 -18
  81. package/dist/layouts/NoticeBell2.vue.js.map +1 -1
  82. package/dist/layouts/PersonalLayout.vue.js +2 -2
  83. package/dist/layouts/PersonalLayout2.vue.js +69 -47
  84. package/dist/layouts/PersonalLayout2.vue.js.map +1 -1
  85. package/dist/layouts/SettingsDrawer.vue.js +3 -3
  86. package/dist/layouts/SettingsDrawer2.vue.js +261 -325
  87. package/dist/layouts/SettingsDrawer2.vue.js.map +1 -1
  88. package/dist/layouts/TabsBar.vue.js +2 -2
  89. package/dist/layouts/TabsBar2.vue.js +97 -69
  90. package/dist/layouts/TabsBar2.vue.js.map +1 -1
  91. package/dist/layouts/components/SideNav.vue.d.ts +3 -0
  92. package/dist/layouts/components/SideNav.vue.js +1 -1
  93. package/dist/layouts/components/SideNav2.vue.js +54 -26
  94. package/dist/layouts/components/SideNav2.vue.js.map +1 -1
  95. package/dist/layouts/default.vue.js +1 -1
  96. package/dist/layouts/default2.vue.js +170 -140
  97. package/dist/layouts/default2.vue.js.map +1 -1
  98. package/dist/lib/loginHero.d.ts +2 -2
  99. package/dist/lib/loginHero.js.map +1 -1
  100. package/dist/lib/runtime.js +1 -1
  101. package/dist/lib/watermark.d.ts +110 -0
  102. package/dist/lib/watermark.js +151 -0
  103. package/dist/lib/watermark.js.map +1 -0
  104. package/dist/locales/en-US.d.ts +221 -15
  105. package/dist/locales/en-US.js +230 -21
  106. package/dist/locales/en-US.js.map +1 -1
  107. package/dist/locales/kernelMenuTitles.d.ts +1 -0
  108. package/dist/locales/kernelMenuTitles.js +128 -0
  109. package/dist/locales/kernelMenuTitles.js.map +1 -0
  110. package/dist/locales/menuTitle.d.ts +3 -0
  111. package/dist/locales/menuTitle.js +14 -12
  112. package/dist/locales/menuTitle.js.map +1 -1
  113. package/dist/locales/zh-CN.d.ts +221 -15
  114. package/dist/locales/zh-CN.js +238 -28
  115. package/dist/locales/zh-CN.js.map +1 -1
  116. package/dist/router/index.js +41 -32
  117. package/dist/router/index.js.map +1 -1
  118. package/dist/router/namedPage.d.ts +4 -0
  119. package/dist/router/namedPage.js +7 -7
  120. package/dist/router/namedPage.js.map +1 -1
  121. package/dist/router/viewRegistry.js +8 -8
  122. package/dist/router/viewRegistry.js.map +1 -1
  123. package/dist/stores/app.d.ts +0 -12
  124. package/dist/stores/app.js +11 -12
  125. package/dist/stores/app.js.map +1 -1
  126. package/dist/stores/tabs.js.map +1 -1
  127. package/dist/stores/user.d.ts +10 -0
  128. package/dist/stores/user.js.map +1 -1
  129. package/dist/style.css +1 -1
  130. package/dist/theme/accentTokens.d.ts +27 -0
  131. package/dist/theme/accentTokens.js +54 -0
  132. package/dist/theme/accentTokens.js.map +1 -0
  133. package/dist/theme/accents.d.ts +21 -1
  134. package/dist/theme/accents.js +11 -2
  135. package/dist/theme/accents.js.map +1 -1
  136. package/dist/theme/mix.d.ts +58 -7
  137. package/dist/theme/mix.js +115 -30
  138. package/dist/theme/mix.js.map +1 -1
  139. package/dist/theme/naive-theme.d.ts +5 -2
  140. package/dist/theme/naive-theme.js +407 -75
  141. package/dist/theme/naive-theme.js.map +1 -1
  142. package/dist/utils/jwt.d.ts +8 -0
  143. package/dist/utils/jwt.js +14 -0
  144. package/dist/utils/jwt.js.map +1 -0
  145. package/dist/utils/menuIcon.d.ts +2 -0
  146. package/dist/utils/menuIcon.js +8 -0
  147. package/dist/utils/menuIcon.js.map +1 -0
  148. package/dist/utils/oauthBrand.js.map +1 -1
  149. package/dist/utils/tableFilter.d.ts +88 -0
  150. package/dist/utils/tableFilter.js +116 -0
  151. package/dist/utils/tableFilter.js.map +1 -0
  152. package/dist/utils/tableToolbar.d.ts +18 -0
  153. package/dist/utils/tableToolbar.js +11 -0
  154. package/dist/utils/tableToolbar.js.map +1 -0
  155. package/dist/utils/treeFilter.d.ts +20 -0
  156. package/dist/utils/treeFilter.js +24 -0
  157. package/dist/utils/treeFilter.js.map +1 -0
  158. package/dist/views/dashboard/ShortcutPicker.vue.js +1 -1
  159. package/dist/views/dashboard/ShortcutPicker2.vue.js +73 -48
  160. package/dist/views/dashboard/ShortcutPicker2.vue.js.map +1 -1
  161. package/dist/views/dashboard/biz.vue.js +1 -1
  162. package/dist/views/dashboard/biz2.vue.js +310 -257
  163. package/dist/views/dashboard/biz2.vue.js.map +1 -1
  164. package/dist/views/dashboard/workbench.vue.js +2 -2
  165. package/dist/views/dashboard/workbench2.vue.js +141 -155
  166. package/dist/views/dashboard/workbench2.vue.js.map +1 -1
  167. package/dist/views/embed/iframe.vue.js +2 -2
  168. package/dist/views/embed/iframe2.vue.js +22 -15
  169. package/dist/views/embed/iframe2.vue.js.map +1 -1
  170. package/dist/views/error/404.vue.js +2 -2
  171. package/dist/views/error/4042.vue.js +33 -24
  172. package/dist/views/error/4042.vue.js.map +1 -1
  173. package/dist/views/error/BootError.vue.js +1 -1
  174. package/dist/views/error/BootError2.vue.js +59 -48
  175. package/dist/views/error/BootError2.vue.js.map +1 -1
  176. package/dist/views/error/MissingRoute.vue.js +2 -2
  177. package/dist/views/error/MissingRoute2.vue.js +34 -15
  178. package/dist/views/error/MissingRoute2.vue.js.map +1 -1
  179. package/dist/views/login/LoginForm.vue.d.ts +7 -1
  180. package/dist/views/login/LoginForm.vue.js +2 -2
  181. package/dist/views/login/LoginForm2.vue.js +580 -488
  182. package/dist/views/login/LoginForm2.vue.js.map +1 -1
  183. package/dist/views/login/components/LoginDesk.vue.d.ts +36 -0
  184. package/dist/views/login/components/LoginDesk.vue.js +9 -0
  185. package/dist/views/login/components/LoginDesk.vue.js.map +1 -0
  186. package/dist/views/login/components/LoginDesk2.vue.js +100 -0
  187. package/dist/views/login/components/LoginDesk2.vue.js.map +1 -0
  188. package/dist/views/login/components/LoginHeroPanel.vue.js +3 -3
  189. package/dist/views/login/components/LoginHeroPanel2.vue.js +34 -39
  190. package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -1
  191. package/dist/views/login/index.vue.js +1 -1
  192. package/dist/views/login/index2.vue.js +141 -71
  193. package/dist/views/login/index2.vue.js.map +1 -1
  194. package/dist/views/login/layout.d.ts +11 -0
  195. package/dist/views/login/layout.js +27 -0
  196. package/dist/views/login/layout.js.map +1 -0
  197. package/dist/views/mfa/index.vue.js +2 -2
  198. package/dist/views/mfa/index2.vue.js +367 -321
  199. package/dist/views/mfa/index2.vue.js.map +1 -1
  200. package/dist/views/module/index.vue.js +2 -2
  201. package/dist/views/module/index2.vue.js +132 -99
  202. package/dist/views/module/index2.vue.js.map +1 -1
  203. package/dist/views/oauth/callback.vue.js +2 -2
  204. package/dist/views/oauth/callback2.vue.js +65 -51
  205. package/dist/views/oauth/callback2.vue.js.map +1 -1
  206. package/dist/views/personal/bindings.vue.js +2 -2
  207. package/dist/views/personal/bindings2.vue.js +98 -94
  208. package/dist/views/personal/bindings2.vue.js.map +1 -1
  209. package/dist/views/personal/notice2.vue.js +103 -76
  210. package/dist/views/personal/notice2.vue.js.map +1 -1
  211. package/dist/views/personal/password2.vue.js +47 -40
  212. package/dist/views/personal/password2.vue.js.map +1 -1
  213. package/dist/views/personal/profile.vue.js +3 -3
  214. package/dist/views/personal/profile2.vue.js +24 -18
  215. package/dist/views/personal/profile2.vue.js.map +1 -1
  216. package/dist/views/personal/security.vue.js +2 -2
  217. package/dist/views/personal/security2.vue.js +65 -53
  218. package/dist/views/personal/security2.vue.js.map +1 -1
  219. package/dist/views/personal/sessions.vue.js +2 -2
  220. package/dist/views/personal/sessions2.vue.js +67 -62
  221. package/dist/views/personal/sessions2.vue.js.map +1 -1
  222. package/dist/views/system/ai-model/components/ProviderCard.vue.js +2 -2
  223. package/dist/views/system/ai-model/components/ProviderCard2.vue.js +142 -130
  224. package/dist/views/system/ai-model/components/ProviderCard2.vue.js.map +1 -1
  225. package/dist/views/system/ai-model/components/ProviderForm.vue.js +2 -2
  226. package/dist/views/system/ai-model/components/ProviderForm2.vue.js +71 -70
  227. package/dist/views/system/ai-model/components/ProviderForm2.vue.js.map +1 -1
  228. package/dist/views/system/ai-model/index.vue.js +2 -2
  229. package/dist/views/system/ai-model/index2.vue.js +99 -99
  230. package/dist/views/system/ai-model/index2.vue.js.map +1 -1
  231. package/dist/views/system/ai-model/presets.d.ts +1 -1
  232. package/dist/views/system/ai-model/presets.js +18 -18
  233. package/dist/views/system/ai-model/presets.js.map +1 -1
  234. package/dist/views/system/ai-usage/index.vue.js +2 -2
  235. package/dist/views/system/ai-usage/index2.vue.js +356 -258
  236. package/dist/views/system/ai-usage/index2.vue.js.map +1 -1
  237. package/dist/views/system/api-docs/index.vue.js +5 -2
  238. package/dist/views/system/api-docs/index.vue.js.map +1 -1
  239. package/dist/views/system/api-docs/index2.vue.js +92 -42
  240. package/dist/views/system/api-docs/index2.vue.js.map +1 -1
  241. package/dist/views/system/cache/index.vue.js +2 -2
  242. package/dist/views/system/cache/index2.vue.js +74 -80
  243. package/dist/views/system/cache/index2.vue.js.map +1 -1
  244. package/dist/views/system/config/components/AdminMock.vue.js +2 -2
  245. package/dist/views/system/config/components/AdminMock2.vue.js +60 -43
  246. package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -1
  247. package/dist/views/system/config/components/AdvancedSection.vue.js +5 -2
  248. package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -1
  249. package/dist/views/system/config/components/AdvancedSection2.vue.js +98 -70
  250. package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -1
  251. package/dist/views/system/config/components/BrandSection.vue.js +2 -2
  252. package/dist/views/system/config/components/BrandSection2.vue.js +121 -119
  253. package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -1
  254. package/dist/views/system/config/components/CfgGroup.vue.js +3 -3
  255. package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -1
  256. package/dist/views/system/config/components/CfgRow.vue.js +1 -1
  257. package/dist/views/system/config/components/CfgRow2.vue.js +24 -23
  258. package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -1
  259. package/dist/views/system/config/components/CfgSegment.vue.js +1 -1
  260. package/dist/views/system/config/components/CfgSegment2.vue.js +16 -15
  261. package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -1
  262. package/dist/views/system/config/components/ConfigFormModal.vue.js +2 -2
  263. package/dist/views/system/config/components/ConfigFormModal2.vue.js +35 -33
  264. package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
  265. package/dist/views/system/config/components/JobSection.vue.js +2 -2
  266. package/dist/views/system/config/components/JobSection2.vue.js +46 -44
  267. package/dist/views/system/config/components/JobSection2.vue.js.map +1 -1
  268. package/dist/views/system/config/components/LoginMock.vue.js +3 -3
  269. package/dist/views/system/config/components/LoginMock2.vue.js +83 -72
  270. package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -1
  271. package/dist/views/system/config/components/LogoCropper.vue.js +1 -1
  272. package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -1
  273. package/dist/views/system/config/components/LogoEditor.vue.js +2 -2
  274. package/dist/views/system/config/components/LogoEditor2.vue.js +11 -13
  275. package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -1
  276. package/dist/views/system/config/components/ProviderSheet.vue.js +3 -3
  277. package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -1
  278. package/dist/views/system/config/components/SectionLayout.vue.d.ts +4 -2
  279. package/dist/views/system/config/components/SectionLayout.vue.js +2 -2
  280. package/dist/views/system/config/components/SectionLayout2.vue.js +51 -27
  281. package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -1
  282. package/dist/views/system/config/components/SecuritySection.vue.js +2 -2
  283. package/dist/views/system/config/components/SecuritySection2.vue.js +207 -206
  284. package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -1
  285. package/dist/views/system/config/components/SensitiveSection.vue.js +2 -2
  286. package/dist/views/system/config/components/SensitiveSection2.vue.js +107 -102
  287. package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -1
  288. package/dist/views/system/config/components/UploadSection.vue.js +2 -2
  289. package/dist/views/system/config/components/UploadSection2.vue.js +86 -77
  290. package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -1
  291. package/dist/views/system/config/components/WatermarkSection.vue.js +8 -0
  292. package/dist/views/system/config/components/WatermarkSection.vue.js.map +1 -0
  293. package/dist/views/system/config/components/WatermarkSection2.vue.js +284 -0
  294. package/dist/views/system/config/components/WatermarkSection2.vue.js.map +1 -0
  295. package/dist/views/system/config/draft.d.ts +2 -2
  296. package/dist/views/system/config/draft.js.map +1 -1
  297. package/dist/views/system/config/groups.d.ts +4 -1
  298. package/dist/views/system/config/groups.js +54 -49
  299. package/dist/views/system/config/groups.js.map +1 -1
  300. package/dist/views/system/config/index.vue.js +3 -2
  301. package/dist/views/system/config/index.vue.js.map +1 -1
  302. package/dist/views/system/config/index2.vue.js +173 -148
  303. package/dist/views/system/config/index2.vue.js.map +1 -1
  304. package/dist/views/system/config/layoutMode.d.ts +23 -0
  305. package/dist/views/system/config/layoutMode.js +28 -0
  306. package/dist/views/system/config/layoutMode.js.map +1 -0
  307. package/dist/views/system/dict/index.vue.js +2 -2
  308. package/dist/views/system/dict/index2.vue.js +471 -366
  309. package/dist/views/system/dict/index2.vue.js.map +1 -1
  310. package/dist/views/system/file/index2.vue.js +91 -76
  311. package/dist/views/system/file/index2.vue.js.map +1 -1
  312. package/dist/views/system/job/index.vue.js +3 -3
  313. package/dist/views/system/job/index2.vue.js +897 -828
  314. package/dist/views/system/job/index2.vue.js.map +1 -1
  315. package/dist/views/system/job-log/components/AttemptTable.vue.d.ts +8 -0
  316. package/dist/views/system/job-log/components/AttemptTable.vue.js +5 -0
  317. package/dist/views/system/job-log/components/AttemptTable.vue.js.map +1 -0
  318. package/dist/views/system/job-log/components/AttemptTable2.vue.js +54 -0
  319. package/dist/views/system/job-log/components/AttemptTable2.vue.js.map +1 -0
  320. package/dist/views/system/job-log/index.vue.js +2 -2
  321. package/dist/views/system/job-log/index2.vue.js +193 -207
  322. package/dist/views/system/job-log/index2.vue.js.map +1 -1
  323. package/dist/views/system/job-log/runStatus.d.ts +13 -0
  324. package/dist/views/system/job-log/runStatus.js +26 -0
  325. package/dist/views/system/job-log/runStatus.js.map +1 -0
  326. package/dist/views/system/job-monitor/index.vue.js +2 -2
  327. package/dist/views/system/job-monitor/index2.vue.js +172 -180
  328. package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
  329. package/dist/views/system/log/exception/index.vue.js +2 -2
  330. package/dist/views/system/log/exception/index2.vue.js +135 -96
  331. package/dist/views/system/log/exception/index2.vue.js.map +1 -1
  332. package/dist/views/system/log/login/index2.vue.js +62 -41
  333. package/dist/views/system/log/login/index2.vue.js.map +1 -1
  334. package/dist/views/system/log/op/index.vue.js +2 -2
  335. package/dist/views/system/log/op/index2.vue.js +200 -162
  336. package/dist/views/system/log/op/index2.vue.js.map +1 -1
  337. package/dist/views/system/menu/components/ButtonManager.vue.js +2 -2
  338. package/dist/views/system/menu/components/ButtonManager2.vue.js +206 -190
  339. package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -1
  340. package/dist/views/system/menu/components/MenuFormModal.vue.js +2 -2
  341. package/dist/views/system/menu/components/MenuFormModal2.vue.js +127 -118
  342. package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -1
  343. package/dist/views/system/menu/index.vue.js +1 -1
  344. package/dist/views/system/menu/index2.vue.js +216 -183
  345. package/dist/views/system/menu/index2.vue.js.map +1 -1
  346. package/dist/views/system/module/index.vue.js +1 -1
  347. package/dist/views/system/module/index2.vue.js +177 -144
  348. package/dist/views/system/module/index2.vue.js.map +1 -1
  349. package/dist/views/system/monitor/index.vue.js +2 -2
  350. package/dist/views/system/monitor/index2.vue.js +134 -149
  351. package/dist/views/system/monitor/index2.vue.js.map +1 -1
  352. package/dist/views/system/notice/index.vue.js +1 -1
  353. package/dist/views/system/notice/index2.vue.js +209 -181
  354. package/dist/views/system/notice/index2.vue.js.map +1 -1
  355. package/dist/views/system/org/index.vue.js +1 -1
  356. package/dist/views/system/org/index2.vue.js +278 -248
  357. package/dist/views/system/org/index2.vue.js.map +1 -1
  358. package/dist/views/system/position/index.vue.js +5 -2
  359. package/dist/views/system/position/index.vue.js.map +1 -1
  360. package/dist/views/system/position/index2.vue.js +128 -92
  361. package/dist/views/system/position/index2.vue.js.map +1 -1
  362. package/dist/views/system/recycle/index.vue.js +2 -2
  363. package/dist/views/system/recycle/index2.vue.js +90 -67
  364. package/dist/views/system/recycle/index2.vue.js.map +1 -1
  365. package/dist/views/system/role/components/GrantMenuSheet.vue.d.ts +20 -0
  366. package/dist/views/system/role/components/GrantMenuSheet.vue.js +8 -0
  367. package/dist/views/system/role/components/GrantMenuSheet.vue.js.map +1 -0
  368. package/dist/views/system/role/components/GrantMenuSheet2.vue.js +117 -0
  369. package/dist/views/system/role/components/GrantMenuSheet2.vue.js.map +1 -0
  370. package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +6 -4
  371. package/dist/views/system/role/components/GrantMenuTable.vue.js +2 -2
  372. package/dist/views/system/role/components/GrantMenuTable2.vue.js +279 -177
  373. package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -1
  374. package/dist/views/system/role/components/MatchText.vue.d.ts +7 -0
  375. package/dist/views/system/role/components/MatchText.vue.js +8 -0
  376. package/dist/views/system/role/components/MatchText.vue.js.map +1 -0
  377. package/dist/views/system/role/components/MatchText2.vue.js +29 -0
  378. package/dist/views/system/role/components/MatchText2.vue.js.map +1 -0
  379. package/dist/views/system/role/components/grantMenuGroups.d.ts +36 -0
  380. package/dist/views/system/role/components/grantMenuGroups.js +110 -48
  381. package/dist/views/system/role/components/grantMenuGroups.js.map +1 -1
  382. package/dist/views/system/role/index.vue.js +5 -2
  383. package/dist/views/system/role/index.vue.js.map +1 -1
  384. package/dist/views/system/role/index2.vue.js +181 -165
  385. package/dist/views/system/role/index2.vue.js.map +1 -1
  386. package/dist/views/system/session/index2.vue.js +75 -49
  387. package/dist/views/system/session/index2.vue.js.map +1 -1
  388. package/dist/views/system/user/components/ResetPasswordModal.vue.js +2 -2
  389. package/dist/views/system/user/components/ResetPasswordModal2.vue.js +2 -0
  390. package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -1
  391. package/dist/views/system/user/components/UserFormModal.vue.js +2 -2
  392. package/dist/views/system/user/components/UserFormModal2.vue.js +77 -76
  393. package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -1
  394. package/dist/views/system/user/index.vue.js +2 -2
  395. package/dist/views/system/user/index2.vue.js +362 -275
  396. package/dist/views/system/user/index2.vue.js.map +1 -1
  397. package/package.json +3 -5
  398. package/dist/components/SelectTable/index.vue.d.ts +0 -76
  399. package/dist/components/SelectTable/index2.vue.js +0 -256
  400. package/dist/components/SelectTable/index2.vue.js.map +0 -1
  401. package/dist/composables/useTableRowSort.d.ts +0 -20
  402. package/dist/composables/useTableRowSort.js +0 -59
  403. package/dist/composables/useTableRowSort.js.map +0 -1
  404. package/dist/layouts/LayoutModeCards.vue.js +0 -8
  405. package/dist/layouts/LayoutModeCards.vue.js.map +0 -1
  406. package/dist/layouts/LayoutModeCards2.vue.js +0 -67
  407. package/dist/layouts/LayoutModeCards2.vue.js.map +0 -1
  408. package/dist/layouts/SettingRow.vue.d.ts +0 -16
  409. package/dist/layouts/SettingRow.vue.js +0 -8
  410. package/dist/layouts/SettingRow.vue.js.map +0 -1
  411. package/dist/layouts/SettingRow2.vue.js +0 -23
  412. package/dist/layouts/SettingRow2.vue.js.map +0 -1
  413. package/dist/views/login/skins/AuroraGlass.vue.js +0 -8
  414. package/dist/views/login/skins/AuroraGlass.vue.js.map +0 -1
  415. package/dist/views/login/skins/AuroraGlass2.vue.js +0 -80
  416. package/dist/views/login/skins/AuroraGlass2.vue.js.map +0 -1
  417. package/dist/views/login/skins/SplitPanel.vue.d.ts +0 -3
  418. package/dist/views/login/skins/SplitPanel.vue.js +0 -8
  419. package/dist/views/login/skins/SplitPanel.vue.js.map +0 -1
  420. package/dist/views/login/skins/SplitPanel2.vue.js +0 -65
  421. package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
  422. package/dist/views/login/skins/Spotlight.vue.d.ts +0 -3
  423. package/dist/views/login/skins/Spotlight.vue.js +0 -8
  424. package/dist/views/login/skins/Spotlight.vue.js.map +0 -1
  425. package/dist/views/login/skins/Spotlight2.vue.js +0 -36
  426. package/dist/views/login/skins/Spotlight2.vue.js.map +0 -1
  427. package/dist/views/login/skins.d.ts +0 -8
  428. package/dist/views/login/skins.js +0 -13
  429. package/dist/views/login/skins.js.map +0 -1
  430. /package/dist/components/{SelectTable → TableTotal}/index.vue.js.map +0 -0
  431. /package/dist/layouts/{LayoutModeCards.vue.d.ts → AccentPicker.vue.d.ts} +0 -0
  432. /package/dist/views/{login/skins/AuroraGlass.vue.d.ts → system/config/components/WatermarkSection.vue.d.ts} +0 -0
@@ -1,22 +1,30 @@
1
- import { defineComponent as J, ref as _, reactive as L, computed as W, openBlock as p, createElementBlock as C, createVNode as o, unref as e, withCtx as r, Fragment as P, createBlock as R, withKeys as S, createTextVNode as s, toDisplayString as c, createElementVNode as h, renderList as X } from "vue";
2
- import { useRoute as Y, useRouter as Z } from "vue-router";
3
- import { useMessage as ee, NCard as te, NSteps as oe, NStep as I, NForm as U, NAlert as g, NFormItem as v, NInput as b, NButton as f, NQrCode as ae } from "naive-ui";
4
- import { useI18n as re } from "vue-i18n";
5
- import { mfaApi as N } from "../../api/index.js";
6
- import { translateError as B } from "../../utils/error.js";
7
- import { triggerBlobDownload as le } from "../../utils/download.js";
8
- import { useUserStore as ne } from "../../stores/user.js";
9
- import { useAuthStore as ue } from "../../stores/auth.js";
10
- import { resetRouter as ce } from "../../router/index.js";
11
- import { takeRecoveryCodes as se } from "./bindComplete.js";
12
- const de = { class: "mfa-page" }, ie = { class: "mfa-header" }, me = { class: "mfa-qr-wrap" }, pe = { class: "mfa-manual-hint" }, fe = {
1
+ import { defineComponent as ee, ref as k, reactive as K, computed as oe, openBlock as d, createBlock as x, withCtx as r, createElementVNode as p, toDisplayString as s, unref as e, createVNode as t, createTextVNode as u, createElementBlock as w, Fragment as S, renderList as M, withKeys as P, createCommentVNode as te } from "vue";
2
+ import { useRoute as ae, useRouter as re } from "vue-router";
3
+ import { useMessage as le, NButton as y, NSteps as ne, NStep as se, NForm as R, NAlert as h, NFormItem as b, NInput as g, NQrCode as ce } from "naive-ui";
4
+ import { Icon as $ } from "@iconify/vue";
5
+ import { useMediaQuery as ue } from "@vueuse/core";
6
+ import { useI18n as ie } from "vue-i18n";
7
+ import { mfaApi as U } from "../../api/index.js";
8
+ import { translateError as N } from "../../utils/error.js";
9
+ import { triggerBlobDownload as de } from "../../utils/download.js";
10
+ import { useUserStore as me } from "../../stores/user.js";
11
+ import { useAuthStore as fe } from "../../stores/auth.js";
12
+ import { useSite as pe } from "../../composables/useSite.js";
13
+ import { resetRouter as ye } from "../../router/index.js";
14
+ import ve from "../../components/SmartLogo.vue.js";
15
+ import we from "../login/components/LoginDesk.vue.js";
16
+ import { takeRecoveryCodes as be } from "./bindComplete.js";
17
+ const ge = { class: "login-logo" }, Ce = { class: "mfa-header" }, he = { class: "mfa-title" }, _e = { class: "mfa-qr-wrap" }, ke = { class: "mfa-manual-hint" }, xe = {
13
18
  key: 2,
14
19
  class: "recovery-codes"
15
- }, Ie = /* @__PURE__ */ J({
20
+ }, Se = { class: "recovery-grid" }, ze = { class: "recovery-actions" }, Ie = { class: "login-foot" }, Pe = {
21
+ key: 0,
22
+ class: "login-foot-ver"
23
+ }, Qe = /* @__PURE__ */ ee({
16
24
  __name: "index",
17
- setup(ye) {
18
- var K;
19
- const { t } = re(), x = Y(), M = Z(), i = ee(), q = ne(), V = ue(), $ = x.query.mode === "recovery" ? "recovery" : "bind", w = _($), y = _(1), m = _(!1), k = _(!1), A = (typeof x.query.account == "string" ? x.query.account : "") || ((K = q.userInfo) == null ? void 0 : K.account) || "", a = L({
25
+ setup(Re) {
26
+ var H;
27
+ const { t: o } = ie(), z = ae(), j = re(), m = le(), B = me(), O = fe(), { site: q, appVersion: D } = pe(), Q = (/* @__PURE__ */ new Date()).getFullYear(), Y = ue("(max-width: 480px)"), G = z.query.mode === "recovery" ? "recovery" : "bind", C = k(G), v = k(1), f = k(!1), _ = k(!1), A = (typeof z.query.account == "string" ? z.query.account : "") || ((H = B.userInfo) == null ? void 0 : H.account) || "", a = K({
20
28
  account: A,
21
29
  currentPassword: "",
22
30
  bindChallengeId: "",
@@ -24,402 +32,440 @@ const de = { class: "mfa-page" }, ie = { class: "mfa-header" }, me = { class: "m
24
32
  seed: "",
25
33
  totpCode: "",
26
34
  recoveryCodes: []
27
- }), d = L({
35
+ }), i = K({
28
36
  account: A,
29
37
  currentPassword: "",
30
38
  recoveryCode: ""
31
- }), j = W(() => !!a.account.trim() && !!a.currentPassword);
32
- async function T(u) {
39
+ }), J = oe(() => !!a.account.trim() && !!a.currentPassword);
40
+ async function T(c) {
33
41
  try {
34
- await navigator.clipboard.writeText(u), i.success(t("mfa.copied"));
42
+ await navigator.clipboard.writeText(c), m.success(o("mfa.copied"));
35
43
  } catch {
36
- i.error(t("mfa.copyFailed"));
44
+ m.error(o("mfa.copyFailed"));
37
45
  }
38
46
  }
39
- function z() {
40
- const u = a.account.trim() || "account", l = [
41
- t("mfa.recoveryDownloadHeader", { account: u }),
47
+ function W() {
48
+ const c = a.account.trim() || "account", l = [
49
+ o("mfa.recoveryDownloadHeader", { account: c }),
42
50
  "",
43
51
  ...a.recoveryCodes,
44
52
  "",
45
- t("mfa.recoveryDownloadFooter")
53
+ o("mfa.recoveryDownloadFooter")
46
54
  ], n = new Blob([l.join(`
47
- `)], { type: "text/plain;charset=utf-8" }), Q = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), G = u.replace(/[^\w.\-@]+/g, "_");
48
- le(n, `smart-recovery-codes-${G}-${Q}.txt`), i.success(t("mfa.recoveryDownloaded"));
55
+ `)], { type: "text/plain;charset=utf-8" }), I = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), Z = c.replace(/[^\w.\-@]+/g, "_");
56
+ de(n, `smart-recovery-codes-${Z}-${I}.txt`), m.success(o("mfa.recoveryDownloaded"));
49
57
  }
50
- async function D() {
51
- if (!j.value) {
52
- i.warning(t("mfa.bindRequired"));
58
+ async function F() {
59
+ if (!J.value) {
60
+ m.warning(o("mfa.bindRequired"));
53
61
  return;
54
62
  }
55
- m.value = !0;
63
+ f.value = !0;
56
64
  try {
57
- const u = await N.bindStart({
65
+ const c = await U.bindStart({
58
66
  account: a.account.trim(),
59
67
  currentPassword: a.currentPassword
60
68
  });
61
- if (a.bindChallengeId = u.bindChallengeId ?? "", a.otpauthUri = u.otpauthUri ?? "", a.seed = u.seed ?? "", !a.bindChallengeId || !a.otpauthUri || !a.seed)
62
- throw new Error(t("mfa.bindStartResponseIncomplete"));
63
- a.currentPassword = "", y.value = 2;
64
- } catch (u) {
65
- i.error(B(u));
69
+ if (a.bindChallengeId = c.bindChallengeId ?? "", a.otpauthUri = c.otpauthUri ?? "", a.seed = c.seed ?? "", !a.bindChallengeId || !a.otpauthUri || !a.seed)
70
+ throw new Error(o("mfa.bindStartResponseIncomplete"));
71
+ a.currentPassword = "", v.value = 2;
72
+ } catch (c) {
73
+ m.error(N(c));
66
74
  } finally {
67
- m.value = !1;
75
+ f.value = !1;
68
76
  }
69
77
  }
70
- async function E() {
78
+ async function L() {
71
79
  if (!a.totpCode) {
72
- i.warning(t("mfa.codeRequired"));
80
+ m.warning(o("mfa.codeRequired"));
73
81
  return;
74
82
  }
75
- m.value = !0;
83
+ f.value = !0;
76
84
  try {
77
- const u = await N.bindComplete({
85
+ const c = await U.bindComplete({
78
86
  bindChallengeId: a.bindChallengeId,
79
87
  totpCode: a.totpCode
80
- }), l = se(u);
81
- if (!l) throw new Error(t("mfa.bindCompleteResponseIncomplete"));
82
- a.recoveryCodes = l, a.seed = "", a.otpauthUri = "", a.totpCode = "", k.value = !0, y.value = 3;
83
- } catch (u) {
84
- i.error(B(u));
88
+ }), l = be(c);
89
+ if (!l) throw new Error(o("mfa.bindCompleteResponseIncomplete"));
90
+ a.recoveryCodes = l, a.seed = "", a.otpauthUri = "", a.totpCode = "", _.value = !0, v.value = 3;
91
+ } catch (c) {
92
+ m.error(N(c));
85
93
  } finally {
86
- m.value = !1;
94
+ f.value = !1;
87
95
  }
88
96
  }
89
- async function F() {
90
- if (!d.account || !d.currentPassword || !d.recoveryCode) {
91
- i.warning(t("mfa.recoveryRequired"));
97
+ async function V() {
98
+ if (!i.account || !i.currentPassword || !i.recoveryCode) {
99
+ m.warning(o("mfa.recoveryRequired"));
92
100
  return;
93
101
  }
94
- m.value = !0;
102
+ f.value = !0;
95
103
  try {
96
- await N.recovery(d), d.currentPassword = "", d.recoveryCode = "", k.value = !0;
97
- } catch (u) {
98
- i.error(B(u));
104
+ await U.recovery(i), i.currentPassword = "", i.recoveryCode = "", _.value = !0;
105
+ } catch (c) {
106
+ m.error(N(c));
99
107
  } finally {
100
- m.value = !1;
108
+ f.value = !1;
101
109
  }
102
110
  }
103
- function H() {
104
- ce(), V.reset(), q.clear(), M.replace("/login");
111
+ function E() {
112
+ ye(), O.reset(), B.clear(), j.replace("/login");
105
113
  }
106
- function O() {
107
- w.value === "bind" && y.value === 3 && (a.recoveryCodes = [], y.value = 1), k.value = !1, w.value = w.value === "bind" ? "recovery" : "bind";
114
+ function X() {
115
+ C.value === "bind" && v.value === 3 && (a.recoveryCodes = [], v.value = 1), _.value = !1, C.value = C.value === "bind" ? "recovery" : "bind";
108
116
  }
109
- return (u, l) => (p(), C("main", de, [
110
- o(e(te), {
111
- class: "mfa-card",
112
- bordered: !0
113
- }, {
114
- header: r(() => [
115
- h("div", ie, [
116
- h("span", null, c(w.value === "bind" ? e(t)("mfa.bindTitle") : e(t)("mfa.recoveryTitle")), 1),
117
- o(e(f), {
118
- text: "",
119
- type: "primary",
120
- onClick: O
121
- }, {
122
- default: r(() => [
123
- s(c(w.value === "bind" ? e(t)("mfa.useRecovery") : e(t)("mfa.backToBind")), 1)
124
- ]),
125
- _: 1
126
- })
127
- ])
117
+ return (c, l) => (d(), x(we, {
118
+ width: 440,
119
+ "content-style": "padding: 24px 26px 22px"
120
+ }, {
121
+ above: r(() => [
122
+ p("div", ge, [
123
+ t(ve, { size: 56 })
124
+ ])
125
+ ]),
126
+ after: r(() => [
127
+ p("p", Ie, [
128
+ p("span", null, "© " + s(e(Q)) + " " + s(e(q).copyright || e(q).title), 1),
129
+ e(D) ? (d(), w("span", Pe, "v" + s(e(D)), 1)) : te("", !0)
130
+ ])
131
+ ]),
132
+ default: r(() => [
133
+ p("div", Ce, [
134
+ p("div", he, s(C.value === "bind" ? e(o)("mfa.bindTitle") : e(o)("mfa.recoveryTitle")), 1),
135
+ t(e(y), {
136
+ text: "",
137
+ type: "primary",
138
+ class: "mfa-switch",
139
+ onClick: X
140
+ }, {
141
+ default: r(() => [
142
+ u(s(C.value === "bind" ? e(o)("mfa.useRecovery") : e(o)("mfa.backToBind")), 1)
143
+ ]),
144
+ _: 1
145
+ })
128
146
  ]),
129
- default: r(() => [
130
- w.value === "bind" ? (p(), C(P, { key: 0 }, [
131
- o(e(oe), {
132
- current: y.value,
133
- size: "small",
134
- style: { "margin-bottom": "24px" }
135
- }, {
136
- default: r(() => [
137
- o(e(I), {
138
- title: e(t)("mfa.stepVerify")
139
- }, null, 8, ["title"]),
140
- o(e(I), {
141
- title: e(t)("mfa.stepAuthenticator")
142
- }, null, 8, ["title"]),
143
- o(e(I), {
144
- title: e(t)("mfa.stepRecovery")
145
- }, null, 8, ["title"])
146
- ]),
147
- _: 1
148
- }, 8, ["current"]),
149
- y.value === 1 ? (p(), R(e(U), {
150
- key: 0,
151
- "label-placement": "top",
152
- onKeyup: S(D, ["enter"])
153
- }, {
154
- default: r(() => [
155
- o(e(g), {
156
- type: "info",
157
- bordered: !1,
158
- style: { "margin-bottom": "16px" }
159
- }, {
160
- default: r(() => [
161
- s(c(e(t)("mfa.bindHint")), 1)
162
- ]),
163
- _: 1
164
- }),
165
- o(e(v), {
166
- label: e(t)("mfa.account")
167
- }, {
168
- default: r(() => [
169
- o(e(b), {
170
- value: a.account,
171
- "onUpdate:value": l[0] || (l[0] = (n) => a.account = n),
172
- autocomplete: "username"
173
- }, null, 8, ["value"])
174
- ]),
175
- _: 1
176
- }, 8, ["label"]),
177
- o(e(v), {
178
- label: e(t)("mfa.currentPassword")
179
- }, {
180
- default: r(() => [
181
- o(e(b), {
182
- value: a.currentPassword,
183
- "onUpdate:value": l[1] || (l[1] = (n) => a.currentPassword = n),
184
- type: "password",
185
- "show-password-on": "click",
186
- autocomplete: "current-password"
187
- }, null, 8, ["value"])
188
- ]),
189
- _: 1
190
- }, 8, ["label"]),
191
- o(e(f), {
192
- type: "primary",
193
- block: "",
194
- loading: m.value,
195
- onClick: D
196
- }, {
197
- default: r(() => [
198
- s(c(e(t)("mfa.startBind")), 1)
199
- ]),
200
- _: 1
201
- }, 8, ["loading"])
202
- ]),
203
- _: 1
204
- })) : y.value === 2 ? (p(), R(e(U), {
205
- key: 1,
206
- "label-placement": "top",
207
- onKeyup: S(E, ["enter"])
208
- }, {
209
- default: r(() => [
210
- o(e(g), {
211
- type: "info",
212
- bordered: !1,
213
- style: { "margin-bottom": "16px" }
214
- }, {
215
- default: r(() => [
216
- s(c(e(t)("mfa.scanSetupHint")), 1)
217
- ]),
218
- _: 1
219
- }),
220
- h("div", me, [
221
- o(e(ae), {
222
- value: a.otpauthUri,
223
- size: 200,
224
- "error-correction-level": "M"
225
- }, null, 8, ["value"])
226
- ]),
227
- o(e(v), {
228
- label: e(t)("mfa.manualKey")
229
- }, {
230
- default: r(() => [
231
- o(e(b), {
232
- value: a.seed,
233
- readonly: ""
234
- }, {
235
- suffix: r(() => [
236
- o(e(f), {
237
- text: "",
238
- type: "primary",
239
- onClick: l[2] || (l[2] = (n) => T(a.seed))
240
- }, {
241
- default: r(() => [
242
- s(c(e(t)("mfa.copy")), 1)
243
- ]),
244
- _: 1
245
- })
246
- ]),
247
- _: 1
248
- }, 8, ["value"])
249
- ]),
250
- _: 1
251
- }, 8, ["label"]),
252
- h("p", pe, c(e(t)("mfa.manualSetupHint")), 1),
253
- o(e(v), {
254
- label: e(t)("mfa.authenticatorCode")
255
- }, {
256
- default: r(() => [
257
- o(e(b), {
258
- value: a.totpCode,
259
- "onUpdate:value": l[3] || (l[3] = (n) => a.totpCode = n),
260
- maxlength: 6,
261
- autocomplete: "one-time-code"
262
- }, null, 8, ["value"])
263
- ]),
264
- _: 1
265
- }, 8, ["label"]),
266
- o(e(f), {
267
- type: "primary",
268
- block: "",
269
- loading: m.value,
270
- onClick: E
271
- }, {
272
- default: r(() => [
273
- s(c(e(t)("mfa.completeBind")), 1)
274
- ]),
275
- _: 1
276
- }, 8, ["loading"])
277
- ]),
278
- _: 1
279
- })) : (p(), C("div", fe, [
280
- o(e(g), {
281
- type: "warning",
282
- bordered: !1,
283
- style: { "margin-bottom": "16px" }
147
+ C.value === "bind" ? (d(), w(S, { key: 0 }, [
148
+ t(e(ne), {
149
+ current: v.value,
150
+ size: "small",
151
+ class: "mfa-steps"
152
+ }, {
153
+ default: r(() => [
154
+ (d(), w(S, null, M(["mfa.stepVerify", "mfa.stepAuthenticator", "mfa.stepRecovery"], (n, I) => t(e(se), {
155
+ key: n,
156
+ title: !e(Y) || v.value === I + 1 ? e(o)(n) : ""
157
+ }, null, 8, ["title"])), 64))
158
+ ]),
159
+ _: 1
160
+ }, 8, ["current"]),
161
+ v.value === 1 ? (d(), x(e(R), {
162
+ key: 0,
163
+ "label-placement": "top",
164
+ size: "large",
165
+ "show-feedback": !1,
166
+ onKeyup: P(F, ["enter"])
167
+ }, {
168
+ default: r(() => [
169
+ t(e(h), {
170
+ type: "info",
171
+ "show-icon": !0,
172
+ class: "mfa-alert"
284
173
  }, {
285
174
  default: r(() => [
286
- s(c(e(t)("mfa.recoveryOnce")), 1)
175
+ u(s(e(o)("mfa.bindHint")), 1)
287
176
  ]),
288
177
  _: 1
289
178
  }),
290
- (p(!0), C(P, null, X(a.recoveryCodes, (n) => (p(), C("div", {
291
- key: n,
292
- class: "recovery-code"
293
- }, c(n), 1))), 128)),
294
- o(e(f), {
295
- type: "primary",
296
- block: "",
297
- style: { "margin-top": "16px" },
298
- onClick: z
179
+ t(e(b), {
180
+ label: e(o)("mfa.account")
299
181
  }, {
300
182
  default: r(() => [
301
- s(c(e(t)("mfa.downloadCodes")), 1)
183
+ t(e(g), {
184
+ value: a.account,
185
+ "onUpdate:value": l[0] || (l[0] = (n) => a.account = n),
186
+ autocomplete: "username"
187
+ }, null, 8, ["value"])
302
188
  ]),
303
189
  _: 1
304
- }),
305
- o(e(f), {
306
- block: "",
307
- style: { "margin-top": "8px" },
308
- onClick: l[4] || (l[4] = (n) => T(a.recoveryCodes.join(`
309
- `)))
190
+ }, 8, ["label"]),
191
+ t(e(b), {
192
+ label: e(o)("mfa.currentPassword")
310
193
  }, {
311
194
  default: r(() => [
312
- s(c(e(t)("mfa.copyAll")), 1)
195
+ t(e(g), {
196
+ value: a.currentPassword,
197
+ "onUpdate:value": l[1] || (l[1] = (n) => a.currentPassword = n),
198
+ type: "password",
199
+ "show-password-on": "click",
200
+ autocomplete: "current-password"
201
+ }, null, 8, ["value"])
313
202
  ]),
314
203
  _: 1
315
- }),
316
- o(e(f), {
204
+ }, 8, ["label"]),
205
+ t(e(y), {
206
+ class: "cta mfa-submit",
207
+ type: "primary",
208
+ size: "large",
317
209
  block: "",
318
- style: { "margin-top": "8px" },
319
- onClick: H
210
+ loading: f.value,
211
+ onClick: F
320
212
  }, {
321
213
  default: r(() => [
322
- s(c(e(t)("mfa.backToLogin")), 1)
214
+ u(s(e(o)("mfa.startBind")), 1)
323
215
  ]),
324
216
  _: 1
325
- })
326
- ]))
327
- ], 64)) : k.value ? (p(), C(P, { key: 2 }, [
328
- o(e(g), {
329
- type: "success",
330
- bordered: !1
331
- }, {
332
- default: r(() => [
333
- s(c(e(t)("mfa.recoveryDone")), 1)
334
- ]),
335
- _: 1
336
- }),
337
- o(e(f), {
338
- type: "primary",
339
- block: "",
340
- style: { "margin-top": "16px" },
341
- onClick: H
342
- }, {
343
- default: r(() => [
344
- s(c(e(t)("mfa.backToLogin")), 1)
345
- ]),
346
- _: 1
347
- })
348
- ], 64)) : (p(), R(e(U), {
217
+ }, 8, ["loading"])
218
+ ]),
219
+ _: 1
220
+ })) : v.value === 2 ? (d(), x(e(R), {
349
221
  key: 1,
350
222
  "label-placement": "top",
351
- onKeyup: S(F, ["enter"])
223
+ size: "large",
224
+ "show-feedback": !1,
225
+ onKeyup: P(L, ["enter"])
352
226
  }, {
353
227
  default: r(() => [
354
- o(e(g), {
355
- type: "warning",
356
- bordered: !1,
357
- style: { "margin-bottom": "16px" }
228
+ t(e(h), {
229
+ type: "info",
230
+ "show-icon": !0,
231
+ class: "mfa-alert"
358
232
  }, {
359
233
  default: r(() => [
360
- s(c(e(t)("mfa.recoveryHint")), 1)
234
+ u(s(e(o)("mfa.scanSetupHint")), 1)
361
235
  ]),
362
236
  _: 1
363
237
  }),
364
- o(e(v), {
365
- label: e(t)("mfa.account")
238
+ p("div", _e, [
239
+ t(e(ce), {
240
+ value: a.otpauthUri,
241
+ size: 200,
242
+ "error-correction-level": "M",
243
+ style: { "box-sizing": "content-box" }
244
+ }, null, 8, ["value"])
245
+ ]),
246
+ t(e(b), {
247
+ label: e(o)("mfa.manualKey")
366
248
  }, {
367
249
  default: r(() => [
368
- o(e(b), {
369
- value: d.account,
370
- "onUpdate:value": l[5] || (l[5] = (n) => d.account = n),
371
- autocomplete: "username"
372
- }, null, 8, ["value"])
250
+ t(e(g), {
251
+ value: a.seed,
252
+ readonly: "",
253
+ class: "mfa-seed"
254
+ }, {
255
+ suffix: r(() => [
256
+ t(e(y), {
257
+ text: "",
258
+ type: "primary",
259
+ onClick: l[2] || (l[2] = (n) => T(a.seed))
260
+ }, {
261
+ default: r(() => [
262
+ u(s(e(o)("mfa.copy")), 1)
263
+ ]),
264
+ _: 1
265
+ })
266
+ ]),
267
+ _: 1
268
+ }, 8, ["value"])
373
269
  ]),
374
270
  _: 1
375
271
  }, 8, ["label"]),
376
- o(e(v), {
377
- label: e(t)("mfa.currentPassword")
272
+ p("p", ke, s(e(o)("mfa.manualSetupHint")), 1),
273
+ t(e(b), {
274
+ label: e(o)("mfa.authenticatorCode")
378
275
  }, {
379
276
  default: r(() => [
380
- o(e(b), {
381
- value: d.currentPassword,
382
- "onUpdate:value": l[6] || (l[6] = (n) => d.currentPassword = n),
383
- type: "password",
384
- "show-password-on": "click",
385
- autocomplete: "current-password"
277
+ t(e(g), {
278
+ value: a.totpCode,
279
+ "onUpdate:value": l[3] || (l[3] = (n) => a.totpCode = n),
280
+ maxlength: 6,
281
+ autocomplete: "one-time-code"
386
282
  }, null, 8, ["value"])
387
283
  ]),
388
284
  _: 1
389
285
  }, 8, ["label"]),
390
- o(e(v), {
391
- label: e(t)("mfa.recoveryCode")
286
+ t(e(y), {
287
+ class: "cta mfa-submit",
288
+ type: "primary",
289
+ size: "large",
290
+ block: "",
291
+ loading: f.value,
292
+ onClick: L
392
293
  }, {
393
294
  default: r(() => [
394
- o(e(b), {
395
- value: d.recoveryCode,
396
- "onUpdate:value": l[7] || (l[7] = (n) => d.recoveryCode = n),
397
- autocomplete: "one-time-code"
398
- }, null, 8, ["value"])
295
+ u(s(e(o)("mfa.completeBind")), 1)
399
296
  ]),
400
297
  _: 1
401
- }, 8, ["label"]),
402
- o(e(f), {
298
+ }, 8, ["loading"])
299
+ ]),
300
+ _: 1
301
+ })) : (d(), w("div", xe, [
302
+ t(e(h), {
303
+ type: "warning",
304
+ "show-icon": !0,
305
+ class: "mfa-alert"
306
+ }, {
307
+ default: r(() => [
308
+ u(s(e(o)("mfa.recoveryOnce")), 1)
309
+ ]),
310
+ _: 1
311
+ }),
312
+ p("div", Se, [
313
+ (d(!0), w(S, null, M(a.recoveryCodes, (n) => (d(), w("div", {
314
+ key: n,
315
+ class: "recovery-code"
316
+ }, s(n), 1))), 128))
317
+ ]),
318
+ p("div", ze, [
319
+ t(e(y), {
320
+ class: "cta",
403
321
  type: "primary",
322
+ size: "large",
404
323
  block: "",
405
- loading: m.value,
406
- onClick: F
324
+ onClick: W
407
325
  }, {
326
+ icon: r(() => [
327
+ t(e($), {
328
+ icon: "ph:download-simple",
329
+ width: 18
330
+ })
331
+ ]),
408
332
  default: r(() => [
409
- s(c(e(t)("mfa.submitRecovery")), 1)
333
+ u(" " + s(e(o)("mfa.downloadCodes")), 1)
410
334
  ]),
411
335
  _: 1
412
- }, 8, ["loading"])
336
+ }),
337
+ t(e(y), {
338
+ secondary: "",
339
+ size: "large",
340
+ block: "",
341
+ onClick: l[4] || (l[4] = (n) => T(a.recoveryCodes.join(`
342
+ `)))
343
+ }, {
344
+ icon: r(() => [
345
+ t(e($), {
346
+ icon: "ph:copy",
347
+ width: 18
348
+ })
349
+ ]),
350
+ default: r(() => [
351
+ u(" " + s(e(o)("mfa.copyAll")), 1)
352
+ ]),
353
+ _: 1
354
+ }),
355
+ t(e(y), {
356
+ secondary: "",
357
+ size: "large",
358
+ block: "",
359
+ onClick: E
360
+ }, {
361
+ default: r(() => [
362
+ u(s(e(o)("mfa.backToLogin")), 1)
363
+ ]),
364
+ _: 1
365
+ })
366
+ ])
367
+ ]))
368
+ ], 64)) : _.value ? (d(), w(S, { key: 2 }, [
369
+ t(e(h), {
370
+ type: "success",
371
+ "show-icon": !0,
372
+ class: "mfa-alert"
373
+ }, {
374
+ default: r(() => [
375
+ u(s(e(o)("mfa.recoveryDone")), 1)
413
376
  ]),
414
377
  _: 1
415
- }))
416
- ]),
417
- _: 1
418
- })
419
- ]));
378
+ }),
379
+ t(e(y), {
380
+ class: "cta",
381
+ type: "primary",
382
+ size: "large",
383
+ block: "",
384
+ onClick: E
385
+ }, {
386
+ default: r(() => [
387
+ u(s(e(o)("mfa.backToLogin")), 1)
388
+ ]),
389
+ _: 1
390
+ })
391
+ ], 64)) : (d(), x(e(R), {
392
+ key: 1,
393
+ "label-placement": "top",
394
+ size: "large",
395
+ "show-feedback": !1,
396
+ onKeyup: P(V, ["enter"])
397
+ }, {
398
+ default: r(() => [
399
+ t(e(h), {
400
+ type: "warning",
401
+ "show-icon": !0,
402
+ class: "mfa-alert"
403
+ }, {
404
+ default: r(() => [
405
+ u(s(e(o)("mfa.recoveryHint")), 1)
406
+ ]),
407
+ _: 1
408
+ }),
409
+ t(e(b), {
410
+ label: e(o)("mfa.account")
411
+ }, {
412
+ default: r(() => [
413
+ t(e(g), {
414
+ value: i.account,
415
+ "onUpdate:value": l[5] || (l[5] = (n) => i.account = n),
416
+ autocomplete: "username"
417
+ }, null, 8, ["value"])
418
+ ]),
419
+ _: 1
420
+ }, 8, ["label"]),
421
+ t(e(b), {
422
+ label: e(o)("mfa.currentPassword")
423
+ }, {
424
+ default: r(() => [
425
+ t(e(g), {
426
+ value: i.currentPassword,
427
+ "onUpdate:value": l[6] || (l[6] = (n) => i.currentPassword = n),
428
+ type: "password",
429
+ "show-password-on": "click",
430
+ autocomplete: "current-password"
431
+ }, null, 8, ["value"])
432
+ ]),
433
+ _: 1
434
+ }, 8, ["label"]),
435
+ t(e(b), {
436
+ label: e(o)("mfa.recoveryCode")
437
+ }, {
438
+ default: r(() => [
439
+ t(e(g), {
440
+ value: i.recoveryCode,
441
+ "onUpdate:value": l[7] || (l[7] = (n) => i.recoveryCode = n),
442
+ autocomplete: "one-time-code"
443
+ }, null, 8, ["value"])
444
+ ]),
445
+ _: 1
446
+ }, 8, ["label"]),
447
+ t(e(y), {
448
+ class: "cta mfa-submit",
449
+ type: "primary",
450
+ size: "large",
451
+ block: "",
452
+ loading: f.value,
453
+ onClick: V
454
+ }, {
455
+ default: r(() => [
456
+ u(s(e(o)("mfa.submitRecovery")), 1)
457
+ ]),
458
+ _: 1
459
+ }, 8, ["loading"])
460
+ ]),
461
+ _: 1
462
+ }))
463
+ ]),
464
+ _: 1
465
+ }));
420
466
  }
421
467
  });
422
468
  export {
423
- Ie as default
469
+ Qe as default
424
470
  };
425
471
  //# sourceMappingURL=index2.vue.js.map