smart-admin-web 10.15.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.
- package/README.md +1 -1
- package/dist/api/index.d.ts +4 -2
- package/dist/api/index.js +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/schema.d.ts +39 -5
- package/dist/assets/icons/ph-subset.json.js +5 -5
- package/dist/components/AppIcon.vue.js +9 -9
- package/dist/components/AppIcon.vue.js.map +1 -1
- package/dist/components/AppWatermark.vue.d.ts +14 -0
- package/dist/components/AppWatermark.vue.js +38 -0
- package/dist/components/AppWatermark.vue.js.map +1 -0
- package/dist/components/AppWatermark2.vue.js +5 -0
- package/dist/components/AppWatermark2.vue.js.map +1 -0
- package/dist/components/Chart/PieChart.vue.d.ts +1 -1
- package/dist/components/Chart/echarts.js +15 -20
- package/dist/components/Chart/echarts.js.map +1 -1
- package/dist/components/CronEditor/index.vue.js +1 -1
- package/dist/components/CronEditor/index2.vue.js +2 -1
- package/dist/components/CronEditor/index2.vue.js.map +1 -1
- package/dist/components/DetailPage/index.vue.js +2 -2
- package/dist/components/DetailPage/index2.vue.js.map +1 -1
- package/dist/components/DictTag/index.vue.js.map +1 -1
- package/dist/components/ErrorBoundary/index.vue.js +2 -2
- package/dist/components/ErrorBoundary/index2.vue.js +1 -1
- package/dist/components/ErrorBoundary/index2.vue.js.map +1 -1
- package/dist/components/FormContainer/index.vue.js +91 -56
- package/dist/components/FormContainer/index.vue.js.map +1 -1
- package/dist/components/ImportWizard/index.vue.js +1 -1
- package/dist/components/ImportWizard/index2.vue.js +44 -41
- package/dist/components/ImportWizard/index2.vue.js.map +1 -1
- package/dist/components/MenuSearch.vue.js +2 -2
- package/dist/components/MenuSearch2.vue.js +19 -18
- package/dist/components/MenuSearch2.vue.js.map +1 -1
- package/dist/components/PasswordStrength/index.vue.js +2 -2
- package/dist/components/PasswordStrength/index2.vue.js +20 -18
- package/dist/components/PasswordStrength/index2.vue.js.map +1 -1
- package/dist/components/TableTotal/index.vue.d.ts +6 -0
- package/dist/components/{SelectTable → TableTotal}/index.vue.js +1 -1
- package/dist/components/TableTotal/index2.vue.js +16 -0
- package/dist/components/TableTotal/index2.vue.js.map +1 -0
- package/dist/components/TableZoomButton/index.vue.js.map +1 -1
- package/dist/components/UserPicker/index.vue.js +2 -2
- package/dist/components/UserPicker/index2.vue.js +176 -117
- package/dist/components/UserPicker/index2.vue.js.map +1 -1
- package/dist/composables/useBatchDelete.js.map +1 -1
- package/dist/composables/useLayoutMenu.js +17 -16
- package/dist/composables/useLayoutMenu.js.map +1 -1
- package/dist/composables/useModule.js +39 -29
- package/dist/composables/useModule.js.map +1 -1
- package/dist/composables/useShellBreakpoint.d.ts +19 -0
- package/dist/composables/useShellBreakpoint.js +37 -0
- package/dist/composables/useShellBreakpoint.js.map +1 -0
- package/dist/composables/useSite.d.ts +15 -0
- package/dist/composables/useSite.js +16 -14
- package/dist/composables/useSite.js.map +1 -1
- package/dist/composables/useTabTitle.js.map +1 -1
- package/dist/composables/useTableTitle.d.ts +6 -0
- package/dist/composables/useTableTitle.js +11 -0
- package/dist/composables/useTableTitle.js.map +1 -0
- package/dist/composables/useTableZoom.d.ts +5 -0
- package/dist/composables/useTableZoom.js.map +1 -1
- package/dist/composables/useTheme.d.ts +2 -2
- package/dist/composables/useTheme.js +23 -20
- package/dist/composables/useTheme.js.map +1 -1
- package/dist/createSmartAdmin.d.ts +12 -2
- package/dist/createSmartAdmin.js +72 -60
- package/dist/createSmartAdmin.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +219 -205
- package/dist/index.js.map +1 -1
- package/dist/layouts/AccentPicker.vue.js +8 -0
- package/dist/layouts/AccentPicker.vue.js.map +1 -0
- package/dist/layouts/AccentPicker2.vue.js +131 -0
- package/dist/layouts/AccentPicker2.vue.js.map +1 -0
- package/dist/layouts/AppHeader.vue.d.ts +8 -1
- package/dist/layouts/AppHeader.vue.js +2 -2
- package/dist/layouts/AppHeader2.vue.js +317 -235
- package/dist/layouts/AppHeader2.vue.js.map +1 -1
- package/dist/layouts/NoticeBell.vue.js +2 -2
- package/dist/layouts/NoticeBell2.vue.js +1 -1
- package/dist/layouts/NoticeBell2.vue.js.map +1 -1
- package/dist/layouts/PersonalLayout.vue.js +2 -2
- package/dist/layouts/PersonalLayout2.vue.js +69 -47
- package/dist/layouts/PersonalLayout2.vue.js.map +1 -1
- package/dist/layouts/SettingsDrawer.vue.js +3 -3
- package/dist/layouts/SettingsDrawer2.vue.js +261 -325
- package/dist/layouts/SettingsDrawer2.vue.js.map +1 -1
- package/dist/layouts/TabsBar.vue.js +2 -2
- package/dist/layouts/TabsBar2.vue.js +97 -69
- package/dist/layouts/TabsBar2.vue.js.map +1 -1
- package/dist/layouts/components/SideNav.vue.d.ts +3 -0
- package/dist/layouts/components/SideNav.vue.js +1 -1
- package/dist/layouts/components/SideNav2.vue.js +54 -26
- package/dist/layouts/components/SideNav2.vue.js.map +1 -1
- package/dist/layouts/default.vue.js +1 -1
- package/dist/layouts/default2.vue.js +170 -140
- package/dist/layouts/default2.vue.js.map +1 -1
- package/dist/lib/loginHero.d.ts +2 -2
- package/dist/lib/loginHero.js.map +1 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/watermark.d.ts +110 -0
- package/dist/lib/watermark.js +151 -0
- package/dist/lib/watermark.js.map +1 -0
- package/dist/locales/en-US.d.ts +221 -15
- package/dist/locales/en-US.js +230 -21
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/kernelMenuTitles.d.ts +1 -0
- package/dist/locales/kernelMenuTitles.js +128 -0
- package/dist/locales/kernelMenuTitles.js.map +1 -0
- package/dist/locales/menuTitle.d.ts +3 -0
- package/dist/locales/menuTitle.js +14 -12
- package/dist/locales/menuTitle.js.map +1 -1
- package/dist/locales/zh-CN.d.ts +221 -15
- package/dist/locales/zh-CN.js +238 -28
- package/dist/locales/zh-CN.js.map +1 -1
- package/dist/router/index.js +41 -32
- package/dist/router/index.js.map +1 -1
- package/dist/router/namedPage.d.ts +4 -0
- package/dist/router/namedPage.js +7 -7
- package/dist/router/namedPage.js.map +1 -1
- package/dist/router/viewRegistry.js +8 -8
- package/dist/router/viewRegistry.js.map +1 -1
- package/dist/stores/app.d.ts +0 -12
- package/dist/stores/app.js +11 -12
- package/dist/stores/app.js.map +1 -1
- package/dist/stores/tabs.js.map +1 -1
- package/dist/stores/user.d.ts +10 -0
- package/dist/stores/user.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/accentTokens.d.ts +27 -0
- package/dist/theme/accentTokens.js +54 -0
- package/dist/theme/accentTokens.js.map +1 -0
- package/dist/theme/accents.d.ts +21 -1
- package/dist/theme/accents.js +11 -2
- package/dist/theme/accents.js.map +1 -1
- package/dist/theme/mix.d.ts +58 -7
- package/dist/theme/mix.js +115 -30
- package/dist/theme/mix.js.map +1 -1
- package/dist/theme/naive-theme.d.ts +5 -2
- package/dist/theme/naive-theme.js +405 -75
- package/dist/theme/naive-theme.js.map +1 -1
- package/dist/utils/jwt.d.ts +8 -0
- package/dist/utils/jwt.js +14 -0
- package/dist/utils/jwt.js.map +1 -0
- package/dist/utils/menuIcon.d.ts +2 -0
- package/dist/utils/menuIcon.js +8 -0
- package/dist/utils/menuIcon.js.map +1 -0
- package/dist/utils/oauthBrand.js.map +1 -1
- package/dist/utils/tableFilter.d.ts +88 -0
- package/dist/utils/tableFilter.js +116 -0
- package/dist/utils/tableFilter.js.map +1 -0
- package/dist/utils/tableToolbar.d.ts +18 -0
- package/dist/utils/tableToolbar.js +11 -0
- package/dist/utils/tableToolbar.js.map +1 -0
- package/dist/utils/treeFilter.d.ts +20 -0
- package/dist/utils/treeFilter.js +24 -0
- package/dist/utils/treeFilter.js.map +1 -0
- package/dist/views/dashboard/ShortcutPicker.vue.js +1 -1
- package/dist/views/dashboard/ShortcutPicker2.vue.js +73 -48
- package/dist/views/dashboard/ShortcutPicker2.vue.js.map +1 -1
- package/dist/views/dashboard/biz.vue.js +1 -1
- package/dist/views/dashboard/biz2.vue.js +310 -257
- package/dist/views/dashboard/biz2.vue.js.map +1 -1
- package/dist/views/dashboard/workbench.vue.js +2 -2
- package/dist/views/dashboard/workbench2.vue.js +141 -155
- package/dist/views/dashboard/workbench2.vue.js.map +1 -1
- package/dist/views/embed/iframe.vue.js +2 -2
- package/dist/views/embed/iframe2.vue.js +22 -15
- package/dist/views/embed/iframe2.vue.js.map +1 -1
- package/dist/views/error/404.vue.js +2 -2
- package/dist/views/error/4042.vue.js +33 -24
- package/dist/views/error/4042.vue.js.map +1 -1
- package/dist/views/error/BootError.vue.js +1 -1
- package/dist/views/error/BootError2.vue.js +59 -48
- package/dist/views/error/BootError2.vue.js.map +1 -1
- package/dist/views/error/MissingRoute.vue.js +2 -2
- package/dist/views/error/MissingRoute2.vue.js +34 -15
- package/dist/views/error/MissingRoute2.vue.js.map +1 -1
- package/dist/views/login/LoginForm.vue.d.ts +7 -1
- package/dist/views/login/LoginForm.vue.js +2 -2
- package/dist/views/login/LoginForm2.vue.js +580 -488
- package/dist/views/login/LoginForm2.vue.js.map +1 -1
- package/dist/views/login/components/LoginDesk.vue.d.ts +36 -0
- package/dist/views/login/components/LoginDesk.vue.js +9 -0
- package/dist/views/login/components/LoginDesk.vue.js.map +1 -0
- package/dist/views/login/components/LoginDesk2.vue.js +100 -0
- package/dist/views/login/components/LoginDesk2.vue.js.map +1 -0
- package/dist/views/login/components/LoginHeroPanel.vue.js +3 -3
- package/dist/views/login/components/LoginHeroPanel2.vue.js +34 -39
- package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -1
- package/dist/views/login/index.vue.js +1 -1
- package/dist/views/login/index2.vue.js +141 -71
- package/dist/views/login/index2.vue.js.map +1 -1
- package/dist/views/login/layout.d.ts +11 -0
- package/dist/views/login/layout.js +27 -0
- package/dist/views/login/layout.js.map +1 -0
- package/dist/views/mfa/index.vue.js +2 -2
- package/dist/views/mfa/index2.vue.js +367 -321
- package/dist/views/mfa/index2.vue.js.map +1 -1
- package/dist/views/module/index.vue.js +2 -2
- package/dist/views/module/index2.vue.js +132 -99
- package/dist/views/module/index2.vue.js.map +1 -1
- package/dist/views/oauth/callback.vue.js +2 -2
- package/dist/views/oauth/callback2.vue.js +65 -51
- package/dist/views/oauth/callback2.vue.js.map +1 -1
- package/dist/views/personal/bindings.vue.js +2 -2
- package/dist/views/personal/bindings2.vue.js +98 -94
- package/dist/views/personal/bindings2.vue.js.map +1 -1
- package/dist/views/personal/notice2.vue.js +103 -76
- package/dist/views/personal/notice2.vue.js.map +1 -1
- package/dist/views/personal/password2.vue.js +47 -40
- package/dist/views/personal/password2.vue.js.map +1 -1
- package/dist/views/personal/profile.vue.js +3 -3
- package/dist/views/personal/profile2.vue.js +24 -18
- package/dist/views/personal/profile2.vue.js.map +1 -1
- package/dist/views/personal/security.vue.js +2 -2
- package/dist/views/personal/security2.vue.js +65 -53
- package/dist/views/personal/security2.vue.js.map +1 -1
- package/dist/views/personal/sessions.vue.js +2 -2
- package/dist/views/personal/sessions2.vue.js +67 -62
- package/dist/views/personal/sessions2.vue.js.map +1 -1
- package/dist/views/system/ai-model/components/ProviderCard.vue.js +2 -2
- package/dist/views/system/ai-model/components/ProviderCard2.vue.js +142 -130
- package/dist/views/system/ai-model/components/ProviderCard2.vue.js.map +1 -1
- package/dist/views/system/ai-model/components/ProviderForm.vue.js +2 -2
- package/dist/views/system/ai-model/components/ProviderForm2.vue.js +71 -70
- package/dist/views/system/ai-model/components/ProviderForm2.vue.js.map +1 -1
- package/dist/views/system/ai-model/index.vue.js +2 -2
- package/dist/views/system/ai-model/index2.vue.js +99 -99
- package/dist/views/system/ai-model/index2.vue.js.map +1 -1
- package/dist/views/system/ai-model/presets.d.ts +1 -1
- package/dist/views/system/ai-model/presets.js +18 -18
- package/dist/views/system/ai-model/presets.js.map +1 -1
- package/dist/views/system/ai-usage/index.vue.js +2 -2
- package/dist/views/system/ai-usage/index2.vue.js +356 -258
- package/dist/views/system/ai-usage/index2.vue.js.map +1 -1
- package/dist/views/system/api-docs/index.vue.js +5 -2
- package/dist/views/system/api-docs/index.vue.js.map +1 -1
- package/dist/views/system/api-docs/index2.vue.js +92 -42
- package/dist/views/system/api-docs/index2.vue.js.map +1 -1
- package/dist/views/system/cache/index.vue.js +2 -2
- package/dist/views/system/cache/index2.vue.js +74 -80
- package/dist/views/system/cache/index2.vue.js.map +1 -1
- package/dist/views/system/config/components/AdminMock.vue.js +2 -2
- package/dist/views/system/config/components/AdminMock2.vue.js +60 -43
- package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -1
- package/dist/views/system/config/components/AdvancedSection.vue.js +5 -2
- package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -1
- package/dist/views/system/config/components/AdvancedSection2.vue.js +98 -70
- package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/BrandSection.vue.js +2 -2
- package/dist/views/system/config/components/BrandSection2.vue.js +121 -119
- package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/CfgGroup.vue.js +3 -3
- package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -1
- package/dist/views/system/config/components/CfgRow.vue.js +1 -1
- package/dist/views/system/config/components/CfgRow2.vue.js +24 -23
- package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -1
- package/dist/views/system/config/components/CfgSegment.vue.js +1 -1
- package/dist/views/system/config/components/CfgSegment2.vue.js +16 -15
- package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -1
- package/dist/views/system/config/components/ConfigFormModal.vue.js +2 -2
- package/dist/views/system/config/components/ConfigFormModal2.vue.js +35 -33
- package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
- package/dist/views/system/config/components/JobSection.vue.js +2 -2
- package/dist/views/system/config/components/JobSection2.vue.js +46 -44
- package/dist/views/system/config/components/JobSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/LoginMock.vue.js +3 -3
- package/dist/views/system/config/components/LoginMock2.vue.js +83 -72
- package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -1
- package/dist/views/system/config/components/LogoCropper.vue.js +1 -1
- package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -1
- package/dist/views/system/config/components/LogoEditor.vue.js +2 -2
- package/dist/views/system/config/components/LogoEditor2.vue.js +11 -13
- package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -1
- package/dist/views/system/config/components/ProviderSheet.vue.js +3 -3
- package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -1
- package/dist/views/system/config/components/SectionLayout.vue.d.ts +4 -2
- package/dist/views/system/config/components/SectionLayout.vue.js +2 -2
- package/dist/views/system/config/components/SectionLayout2.vue.js +51 -27
- package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -1
- package/dist/views/system/config/components/SecuritySection.vue.js +2 -2
- package/dist/views/system/config/components/SecuritySection2.vue.js +207 -206
- package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -1
- package/dist/views/system/config/components/SensitiveSection.vue.js +2 -2
- package/dist/views/system/config/components/SensitiveSection2.vue.js +107 -102
- package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/UploadSection.vue.js +2 -2
- package/dist/views/system/config/components/UploadSection2.vue.js +86 -77
- package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/WatermarkSection.vue.js +8 -0
- package/dist/views/system/config/components/WatermarkSection.vue.js.map +1 -0
- package/dist/views/system/config/components/WatermarkSection2.vue.js +284 -0
- package/dist/views/system/config/components/WatermarkSection2.vue.js.map +1 -0
- package/dist/views/system/config/draft.d.ts +2 -2
- package/dist/views/system/config/draft.js.map +1 -1
- package/dist/views/system/config/groups.d.ts +4 -1
- package/dist/views/system/config/groups.js +54 -49
- package/dist/views/system/config/groups.js.map +1 -1
- package/dist/views/system/config/index.vue.js +3 -2
- package/dist/views/system/config/index.vue.js.map +1 -1
- package/dist/views/system/config/index2.vue.js +173 -148
- package/dist/views/system/config/index2.vue.js.map +1 -1
- package/dist/views/system/config/layoutMode.d.ts +23 -0
- package/dist/views/system/config/layoutMode.js +28 -0
- package/dist/views/system/config/layoutMode.js.map +1 -0
- package/dist/views/system/dict/index.vue.js +2 -2
- package/dist/views/system/dict/index2.vue.js +471 -366
- package/dist/views/system/dict/index2.vue.js.map +1 -1
- package/dist/views/system/file/index2.vue.js +91 -76
- package/dist/views/system/file/index2.vue.js.map +1 -1
- package/dist/views/system/job/index.vue.js +3 -3
- package/dist/views/system/job/index2.vue.js +897 -828
- package/dist/views/system/job/index2.vue.js.map +1 -1
- package/dist/views/system/job-log/components/AttemptTable.vue.d.ts +8 -0
- package/dist/views/system/job-log/components/AttemptTable.vue.js +5 -0
- package/dist/views/system/job-log/components/AttemptTable.vue.js.map +1 -0
- package/dist/views/system/job-log/components/AttemptTable2.vue.js +54 -0
- package/dist/views/system/job-log/components/AttemptTable2.vue.js.map +1 -0
- package/dist/views/system/job-log/index.vue.js +2 -2
- package/dist/views/system/job-log/index2.vue.js +193 -207
- package/dist/views/system/job-log/index2.vue.js.map +1 -1
- package/dist/views/system/job-log/runStatus.d.ts +13 -0
- package/dist/views/system/job-log/runStatus.js +26 -0
- package/dist/views/system/job-log/runStatus.js.map +1 -0
- package/dist/views/system/job-monitor/index.vue.js +2 -2
- package/dist/views/system/job-monitor/index2.vue.js +172 -180
- package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
- package/dist/views/system/log/exception/index.vue.js +2 -2
- package/dist/views/system/log/exception/index2.vue.js +135 -96
- package/dist/views/system/log/exception/index2.vue.js.map +1 -1
- package/dist/views/system/log/login/index2.vue.js +62 -41
- package/dist/views/system/log/login/index2.vue.js.map +1 -1
- package/dist/views/system/log/op/index.vue.js +2 -2
- package/dist/views/system/log/op/index2.vue.js +200 -162
- package/dist/views/system/log/op/index2.vue.js.map +1 -1
- package/dist/views/system/menu/components/ButtonManager.vue.js +2 -2
- package/dist/views/system/menu/components/ButtonManager2.vue.js +206 -190
- package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -1
- package/dist/views/system/menu/components/MenuFormModal.vue.js +2 -2
- package/dist/views/system/menu/components/MenuFormModal2.vue.js +127 -118
- package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -1
- package/dist/views/system/menu/index.vue.js +1 -1
- package/dist/views/system/menu/index2.vue.js +216 -183
- package/dist/views/system/menu/index2.vue.js.map +1 -1
- package/dist/views/system/module/index.vue.js +1 -1
- package/dist/views/system/module/index2.vue.js +177 -144
- package/dist/views/system/module/index2.vue.js.map +1 -1
- package/dist/views/system/monitor/index.vue.js +2 -2
- package/dist/views/system/monitor/index2.vue.js +134 -149
- package/dist/views/system/monitor/index2.vue.js.map +1 -1
- package/dist/views/system/notice/index.vue.js +1 -1
- package/dist/views/system/notice/index2.vue.js +209 -181
- package/dist/views/system/notice/index2.vue.js.map +1 -1
- package/dist/views/system/org/index.vue.js +1 -1
- package/dist/views/system/org/index2.vue.js +278 -248
- package/dist/views/system/org/index2.vue.js.map +1 -1
- package/dist/views/system/position/index.vue.js +5 -2
- package/dist/views/system/position/index.vue.js.map +1 -1
- package/dist/views/system/position/index2.vue.js +128 -92
- package/dist/views/system/position/index2.vue.js.map +1 -1
- package/dist/views/system/recycle/index.vue.js +2 -2
- package/dist/views/system/recycle/index2.vue.js +90 -67
- package/dist/views/system/recycle/index2.vue.js.map +1 -1
- package/dist/views/system/role/components/GrantMenuSheet.vue.d.ts +20 -0
- package/dist/views/system/role/components/GrantMenuSheet.vue.js +8 -0
- package/dist/views/system/role/components/GrantMenuSheet.vue.js.map +1 -0
- package/dist/views/system/role/components/GrantMenuSheet2.vue.js +117 -0
- package/dist/views/system/role/components/GrantMenuSheet2.vue.js.map +1 -0
- package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +6 -4
- package/dist/views/system/role/components/GrantMenuTable.vue.js +2 -2
- package/dist/views/system/role/components/GrantMenuTable2.vue.js +279 -177
- package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -1
- package/dist/views/system/role/components/MatchText.vue.d.ts +7 -0
- package/dist/views/system/role/components/MatchText.vue.js +8 -0
- package/dist/views/system/role/components/MatchText.vue.js.map +1 -0
- package/dist/views/system/role/components/MatchText2.vue.js +29 -0
- package/dist/views/system/role/components/MatchText2.vue.js.map +1 -0
- package/dist/views/system/role/components/grantMenuGroups.d.ts +36 -0
- package/dist/views/system/role/components/grantMenuGroups.js +110 -48
- package/dist/views/system/role/components/grantMenuGroups.js.map +1 -1
- package/dist/views/system/role/index.vue.js +5 -2
- package/dist/views/system/role/index.vue.js.map +1 -1
- package/dist/views/system/role/index2.vue.js +181 -165
- package/dist/views/system/role/index2.vue.js.map +1 -1
- package/dist/views/system/session/index2.vue.js +75 -49
- package/dist/views/system/session/index2.vue.js.map +1 -1
- package/dist/views/system/user/components/ResetPasswordModal.vue.js +2 -2
- package/dist/views/system/user/components/ResetPasswordModal2.vue.js +2 -0
- package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -1
- package/dist/views/system/user/components/UserFormModal.vue.js +2 -2
- package/dist/views/system/user/components/UserFormModal2.vue.js +77 -76
- package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -1
- package/dist/views/system/user/index.vue.js +2 -2
- package/dist/views/system/user/index2.vue.js +362 -275
- package/dist/views/system/user/index2.vue.js.map +1 -1
- package/package.json +3 -5
- package/dist/components/SelectTable/index.vue.d.ts +0 -76
- package/dist/components/SelectTable/index2.vue.js +0 -256
- package/dist/components/SelectTable/index2.vue.js.map +0 -1
- package/dist/composables/useTableRowSort.d.ts +0 -20
- package/dist/composables/useTableRowSort.js +0 -59
- package/dist/composables/useTableRowSort.js.map +0 -1
- package/dist/layouts/LayoutModeCards.vue.js +0 -8
- package/dist/layouts/LayoutModeCards.vue.js.map +0 -1
- package/dist/layouts/LayoutModeCards2.vue.js +0 -67
- package/dist/layouts/LayoutModeCards2.vue.js.map +0 -1
- package/dist/layouts/SettingRow.vue.d.ts +0 -16
- package/dist/layouts/SettingRow.vue.js +0 -8
- package/dist/layouts/SettingRow.vue.js.map +0 -1
- package/dist/layouts/SettingRow2.vue.js +0 -23
- package/dist/layouts/SettingRow2.vue.js.map +0 -1
- package/dist/views/login/skins/AuroraGlass.vue.js +0 -8
- package/dist/views/login/skins/AuroraGlass.vue.js.map +0 -1
- package/dist/views/login/skins/AuroraGlass2.vue.js +0 -80
- package/dist/views/login/skins/AuroraGlass2.vue.js.map +0 -1
- package/dist/views/login/skins/SplitPanel.vue.d.ts +0 -3
- package/dist/views/login/skins/SplitPanel.vue.js +0 -8
- package/dist/views/login/skins/SplitPanel.vue.js.map +0 -1
- package/dist/views/login/skins/SplitPanel2.vue.js +0 -65
- package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
- package/dist/views/login/skins/Spotlight.vue.d.ts +0 -3
- package/dist/views/login/skins/Spotlight.vue.js +0 -8
- package/dist/views/login/skins/Spotlight.vue.js.map +0 -1
- package/dist/views/login/skins/Spotlight2.vue.js +0 -36
- package/dist/views/login/skins/Spotlight2.vue.js.map +0 -1
- package/dist/views/login/skins.d.ts +0 -8
- package/dist/views/login/skins.js +0 -13
- package/dist/views/login/skins.js.map +0 -1
- /package/dist/components/{SelectTable → TableTotal}/index.vue.js.map +0 -0
- /package/dist/layouts/{LayoutModeCards.vue.d.ts → AccentPicker.vue.d.ts} +0 -0
- /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
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { useMessage as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
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 =
|
|
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(
|
|
18
|
-
var
|
|
19
|
-
const { t } = re(),
|
|
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
|
-
}),
|
|
35
|
+
}), i = K({
|
|
28
36
|
account: A,
|
|
29
37
|
currentPassword: "",
|
|
30
38
|
recoveryCode: ""
|
|
31
|
-
}),
|
|
32
|
-
async function T(
|
|
39
|
+
}), J = oe(() => !!a.account.trim() && !!a.currentPassword);
|
|
40
|
+
async function T(c) {
|
|
33
41
|
try {
|
|
34
|
-
await navigator.clipboard.writeText(
|
|
42
|
+
await navigator.clipboard.writeText(c), m.success(o("mfa.copied"));
|
|
35
43
|
} catch {
|
|
36
|
-
|
|
44
|
+
m.error(o("mfa.copyFailed"));
|
|
37
45
|
}
|
|
38
46
|
}
|
|
39
|
-
function
|
|
40
|
-
const
|
|
41
|
-
|
|
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
|
-
|
|
53
|
+
o("mfa.recoveryDownloadFooter")
|
|
46
54
|
], n = new Blob([l.join(`
|
|
47
|
-
`)], { type: "text/plain;charset=utf-8" }),
|
|
48
|
-
|
|
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
|
|
51
|
-
if (!
|
|
52
|
-
|
|
58
|
+
async function F() {
|
|
59
|
+
if (!J.value) {
|
|
60
|
+
m.warning(o("mfa.bindRequired"));
|
|
53
61
|
return;
|
|
54
62
|
}
|
|
55
|
-
|
|
63
|
+
f.value = !0;
|
|
56
64
|
try {
|
|
57
|
-
const
|
|
65
|
+
const c = await U.bindStart({
|
|
58
66
|
account: a.account.trim(),
|
|
59
67
|
currentPassword: a.currentPassword
|
|
60
68
|
});
|
|
61
|
-
if (a.bindChallengeId =
|
|
62
|
-
throw new Error(
|
|
63
|
-
a.currentPassword = "",
|
|
64
|
-
} catch (
|
|
65
|
-
|
|
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
|
-
|
|
75
|
+
f.value = !1;
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
|
-
async function
|
|
78
|
+
async function L() {
|
|
71
79
|
if (!a.totpCode) {
|
|
72
|
-
|
|
80
|
+
m.warning(o("mfa.codeRequired"));
|
|
73
81
|
return;
|
|
74
82
|
}
|
|
75
|
-
|
|
83
|
+
f.value = !0;
|
|
76
84
|
try {
|
|
77
|
-
const
|
|
85
|
+
const c = await U.bindComplete({
|
|
78
86
|
bindChallengeId: a.bindChallengeId,
|
|
79
87
|
totpCode: a.totpCode
|
|
80
|
-
}), l =
|
|
81
|
-
if (!l) throw new Error(
|
|
82
|
-
a.recoveryCodes = l, a.seed = "", a.otpauthUri = "", a.totpCode = "",
|
|
83
|
-
} catch (
|
|
84
|
-
|
|
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
|
-
|
|
94
|
+
f.value = !1;
|
|
87
95
|
}
|
|
88
96
|
}
|
|
89
|
-
async function
|
|
90
|
-
if (!
|
|
91
|
-
|
|
97
|
+
async function V() {
|
|
98
|
+
if (!i.account || !i.currentPassword || !i.recoveryCode) {
|
|
99
|
+
m.warning(o("mfa.recoveryRequired"));
|
|
92
100
|
return;
|
|
93
101
|
}
|
|
94
|
-
|
|
102
|
+
f.value = !0;
|
|
95
103
|
try {
|
|
96
|
-
await
|
|
97
|
-
} catch (
|
|
98
|
-
|
|
104
|
+
await U.recovery(i), i.currentPassword = "", i.recoveryCode = "", _.value = !0;
|
|
105
|
+
} catch (c) {
|
|
106
|
+
m.error(N(c));
|
|
99
107
|
} finally {
|
|
100
|
-
|
|
108
|
+
f.value = !1;
|
|
101
109
|
}
|
|
102
110
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
111
|
+
function E() {
|
|
112
|
+
ye(), O.reset(), B.clear(), j.replace("/login");
|
|
105
113
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
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 (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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(
|
|
175
|
+
u(s(e(o)("mfa.bindHint")), 1)
|
|
287
176
|
]),
|
|
288
177
|
_: 1
|
|
289
178
|
}),
|
|
290
|
-
(
|
|
291
|
-
|
|
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
|
-
|
|
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
|
-
|
|
306
|
-
|
|
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
|
-
|
|
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
|
-
|
|
204
|
+
}, 8, ["label"]),
|
|
205
|
+
t(e(y), {
|
|
206
|
+
class: "cta mfa-submit",
|
|
207
|
+
type: "primary",
|
|
208
|
+
size: "large",
|
|
317
209
|
block: "",
|
|
318
|
-
|
|
319
|
-
onClick:
|
|
210
|
+
loading: f.value,
|
|
211
|
+
onClick: F
|
|
320
212
|
}, {
|
|
321
213
|
default: r(() => [
|
|
322
|
-
s(
|
|
214
|
+
u(s(e(o)("mfa.startBind")), 1)
|
|
323
215
|
]),
|
|
324
216
|
_: 1
|
|
325
|
-
})
|
|
326
|
-
])
|
|
327
|
-
|
|
328
|
-
|
|
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
|
-
|
|
223
|
+
size: "large",
|
|
224
|
+
"show-feedback": !1,
|
|
225
|
+
onKeyup: P(L, ["enter"])
|
|
352
226
|
}, {
|
|
353
227
|
default: r(() => [
|
|
354
|
-
|
|
355
|
-
type: "
|
|
356
|
-
|
|
357
|
-
|
|
228
|
+
t(e(h), {
|
|
229
|
+
type: "info",
|
|
230
|
+
"show-icon": !0,
|
|
231
|
+
class: "mfa-alert"
|
|
358
232
|
}, {
|
|
359
233
|
default: r(() => [
|
|
360
|
-
s(
|
|
234
|
+
u(s(e(o)("mfa.scanSetupHint")), 1)
|
|
361
235
|
]),
|
|
362
236
|
_: 1
|
|
363
237
|
}),
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
|
|
369
|
-
value:
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
},
|
|
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
|
-
|
|
377
|
-
|
|
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
|
-
|
|
381
|
-
value:
|
|
382
|
-
"onUpdate:value": l[
|
|
383
|
-
|
|
384
|
-
"
|
|
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
|
-
|
|
391
|
-
|
|
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
|
-
|
|
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, ["
|
|
402
|
-
|
|
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
|
-
|
|
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(
|
|
333
|
+
u(" " + s(e(o)("mfa.downloadCodes")), 1)
|
|
410
334
|
]),
|
|
411
335
|
_: 1
|
|
412
|
-
},
|
|
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
|
-
|
|
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
|
-
|
|
469
|
+
Qe as default
|
|
424
470
|
};
|
|
425
471
|
//# sourceMappingURL=index2.vue.js.map
|