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.
- 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 +19 -18
- 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 +407 -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,172 +1,173 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { NInputNumber as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import
|
|
5
|
-
import { securityRules as
|
|
6
|
-
import { CAPTCHA_TYPE_KEY as
|
|
7
|
-
import { useConfigDraft as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as ue, computed as w, ref as re, openBlock as r, createBlock as S, unref as e, withCtx as n, createElementVNode as o, createVNode as s, createElementBlock as m, Fragment as f, renderList as g, toDisplayString as c, isRef as k, createTextVNode as $, normalizeClass as F, withDirectives as Y, createCommentVNode as ce, vModelText as pe } from "vue";
|
|
2
|
+
import { NInputNumber as C, NSwitch as h, NTooltip as H } from "naive-ui";
|
|
3
|
+
import { useI18n as de } from "vue-i18n";
|
|
4
|
+
import M from "../../../../components/AppIcon.vue.js";
|
|
5
|
+
import { securityRules as me, humanizeMinutes as ye } from "../../../../lib/securityRules.js";
|
|
6
|
+
import { CAPTCHA_TYPE_KEY as j, SECURITY_NUMBERS as G } from "../groups.js";
|
|
7
|
+
import { useConfigDraft as be, useDraftFields as ve } from "../draft.js";
|
|
8
|
+
import { useConfigLayout as fe } from "../layoutMode.js";
|
|
9
|
+
import { vFlash as ge } from "../flash.js";
|
|
10
|
+
import ke from "./SectionLayout.vue.js";
|
|
11
|
+
import q from "./CfgGroup.vue.js";
|
|
11
12
|
import p from "./CfgRow.vue.js";
|
|
12
|
-
import
|
|
13
|
-
const
|
|
13
|
+
import he from "./CfgSegment.vue.js";
|
|
14
|
+
const _e = { class: "cols" }, we = { class: "col" }, Ce = { class: "unit" }, Le = ["aria-label"], Ue = ["aria-label"], ze = { class: "unit" }, Se = { class: "col" }, $e = { class: "unit" }, Fe = { class: "chips" }, qe = ["aria-pressed", "aria-label", "title", "onClick"], xe = { class: "unit" }, Ne = { class: "unit" }, Ae = {
|
|
14
15
|
class: "rules",
|
|
15
16
|
"data-testid": "security-rules"
|
|
16
|
-
},
|
|
17
|
+
}, Ee = { class: "ic" }, Te = { class: "txt" }, Me = {
|
|
17
18
|
key: 0,
|
|
18
19
|
class: "sr-only"
|
|
19
|
-
},
|
|
20
|
+
}, De = { class: "try" }, Je = /* @__PURE__ */ ue({
|
|
20
21
|
__name: "SecuritySection",
|
|
21
|
-
setup(
|
|
22
|
-
const { t } =
|
|
22
|
+
setup(Oe) {
|
|
23
|
+
const { t: l } = de(), { values: K } = be(), { num: Z, bool: v, str: Q } = ve(), { ctl: _, nar: J } = fe(), u = (a) => `sys.security.${a}`, y = (a, i) => ({
|
|
23
24
|
key: u(a),
|
|
24
|
-
label:
|
|
25
|
-
unit:
|
|
26
|
-
min:
|
|
27
|
-
model:
|
|
28
|
-
}),
|
|
25
|
+
label: l(`config.security.${a}`),
|
|
26
|
+
unit: l(`config.security.unit.${i}`),
|
|
27
|
+
min: G[u(a)],
|
|
28
|
+
model: Z(u(a), G[u(a)])
|
|
29
|
+
}), D = y("loginLock.maxFailCount", "times"), X = y("loginLock.lockMinutes", "minutes"), L = v(u("captcha.enabled")), O = Q(j), ee = w(
|
|
29
30
|
() => ["char", "path", "math"].map((a) => ({
|
|
30
31
|
value: a,
|
|
31
|
-
label:
|
|
32
|
+
label: l(`config.security.captcha.types.${a}`)
|
|
32
33
|
}))
|
|
33
|
-
),
|
|
34
|
-
get: () =>
|
|
35
|
-
set: (a) =>
|
|
36
|
-
}),
|
|
34
|
+
), R = w({
|
|
35
|
+
get: () => O.value || "char",
|
|
36
|
+
set: (a) => O.value = a
|
|
37
|
+
}), U = v(u("totp.enabled")), x = v(u("totp.requireForSuperAdmin")), N = v(u("mfa.enabled")), te = y("session.accessMinutes", "minutes"), le = y("session.refreshMinutes", "minutes"), b = y("password.minLength", "chars"), V = ["Upper", "Lower", "Digit", "Special"], A = V.map((a) => ({
|
|
37
38
|
key: u(`password.require${a}`),
|
|
38
|
-
label:
|
|
39
|
-
name:
|
|
39
|
+
label: l(`config.security.password.chip${a}`),
|
|
40
|
+
name: l(`config.security.password.require${a}`),
|
|
40
41
|
model: v(u(`password.require${a}`))
|
|
41
|
-
})),
|
|
42
|
+
})), P = y("password.expireDays", "days"), ae = y("password.historyCount", "times"), B = u("password.forceChangeOnFirstLogin"), E = v(B), z = v(u("rateLimit.enabled")), se = [
|
|
42
43
|
y("rateLimit.windowSeconds", "seconds"),
|
|
43
44
|
y("rateLimit.permitPerWindow", "times"),
|
|
44
45
|
y("rateLimit.authPermitPerWindow", "times")
|
|
45
|
-
],
|
|
46
|
-
const i =
|
|
47
|
-
return
|
|
48
|
-
},
|
|
49
|
-
() =>
|
|
50
|
-
duration: (a) =>
|
|
51
|
-
requirement: (a) =>
|
|
52
|
-
captchaType: (a) =>
|
|
53
|
-
join: (a) => a.join(
|
|
46
|
+
], ie = (a) => {
|
|
47
|
+
const i = ye(a);
|
|
48
|
+
return l(i.key, { n: i.n });
|
|
49
|
+
}, ne = w(
|
|
50
|
+
() => me(K, {
|
|
51
|
+
duration: (a) => l(a.key, { n: a.n }),
|
|
52
|
+
requirement: (a) => l(`config.preview.req.${a}`),
|
|
53
|
+
captchaType: (a) => l(`config.security.captcha.types.${a}`),
|
|
54
|
+
join: (a) => a.join(l("config.preview.sep"))
|
|
54
55
|
})
|
|
55
|
-
),
|
|
56
|
-
const a =
|
|
56
|
+
), T = re("Admin123"), I = w(() => {
|
|
57
|
+
const a = T.value, i = [
|
|
57
58
|
{
|
|
58
|
-
label:
|
|
59
|
+
label: l("config.security.tryMin", { n: b.model.value }),
|
|
59
60
|
ok: a.length >= b.model.value
|
|
60
61
|
}
|
|
61
|
-
],
|
|
62
|
+
], t = {
|
|
62
63
|
Upper: /[A-Z]/,
|
|
63
64
|
Lower: /[a-z]/,
|
|
64
65
|
Digit: /\d/,
|
|
65
66
|
Special: /[^A-Za-z0-9]/
|
|
66
67
|
};
|
|
67
|
-
return
|
|
68
|
-
|
|
68
|
+
return V.forEach((d, oe) => {
|
|
69
|
+
A[oe].model.value && i.push({ label: l(`config.preview.req.${d.toLowerCase()}`), ok: t[d].test(a) });
|
|
69
70
|
}), i;
|
|
70
|
-
}),
|
|
71
|
-
return (a, i) => (r(), S(
|
|
72
|
-
title: l
|
|
73
|
-
desc: l
|
|
74
|
-
"preview-title": l
|
|
71
|
+
}), W = w(() => I.value.every((a) => a.ok));
|
|
72
|
+
return (a, i) => (r(), S(ke, {
|
|
73
|
+
title: e(l)("config.tab.security"),
|
|
74
|
+
desc: e(l)("config.security.desc"),
|
|
75
|
+
"preview-title": e(l)("config.security.preview"),
|
|
75
76
|
layout: "wide",
|
|
76
77
|
"preview-align": "start"
|
|
77
78
|
}, {
|
|
78
79
|
preview: n(() => [
|
|
79
|
-
o("ul",
|
|
80
|
-
(r(!0), m(f, null, g(
|
|
81
|
-
key:
|
|
82
|
-
class:
|
|
80
|
+
o("ul", Ae, [
|
|
81
|
+
(r(!0), m(f, null, g(ne.value, (t) => Y((r(), m("li", {
|
|
82
|
+
key: t.icon,
|
|
83
|
+
class: F({ off: !t.on })
|
|
83
84
|
}, [
|
|
84
|
-
o("span",
|
|
85
|
-
s(
|
|
86
|
-
icon:
|
|
85
|
+
o("span", Ee, [
|
|
86
|
+
s(M, {
|
|
87
|
+
icon: t.icon,
|
|
87
88
|
size: 14
|
|
88
89
|
}, null, 8, ["icon"])
|
|
89
90
|
]),
|
|
90
|
-
o("span",
|
|
91
|
-
|
|
91
|
+
o("span", Te, c(e(l)(t.key, t.params ?? {})), 1),
|
|
92
|
+
t.on ? ce("", !0) : (r(), m("span", Me, c(e(l)("config.preview.off")), 1))
|
|
92
93
|
], 2)), [
|
|
93
|
-
[
|
|
94
|
+
[e(ge), `${t.on}|${e(l)(t.key, t.params ?? {})}`]
|
|
94
95
|
])), 128))
|
|
95
96
|
]),
|
|
96
|
-
o("div",
|
|
97
|
+
o("div", De, [
|
|
97
98
|
o("label", null, [
|
|
98
|
-
o("span", null, c(l
|
|
99
|
-
|
|
100
|
-
"onUpdate:modelValue": i[8] || (i[8] = (
|
|
99
|
+
o("span", null, c(e(l)("config.security.tryLabel")), 1),
|
|
100
|
+
Y(o("input", {
|
|
101
|
+
"onUpdate:modelValue": i[8] || (i[8] = (t) => T.value = t),
|
|
101
102
|
autocomplete: "off",
|
|
102
103
|
spellcheck: "false"
|
|
103
104
|
}, null, 512), [
|
|
104
|
-
[
|
|
105
|
+
[pe, T.value]
|
|
105
106
|
])
|
|
106
107
|
]),
|
|
107
108
|
o("ul", null, [
|
|
108
|
-
(r(!0), m(f, null, g(
|
|
109
|
-
key:
|
|
110
|
-
class:
|
|
111
|
-
}, c(
|
|
109
|
+
(r(!0), m(f, null, g(I.value, (t) => (r(), m("li", {
|
|
110
|
+
key: t.label,
|
|
111
|
+
class: F({ ok: t.ok })
|
|
112
|
+
}, c(t.label), 3))), 128)),
|
|
112
113
|
o("li", {
|
|
113
|
-
class:
|
|
114
|
-
}, c(
|
|
114
|
+
class: F(["verdict", { ok: W.value }])
|
|
115
|
+
}, c(W.value ? e(l)("config.security.tryPass") : e(l)("config.security.tryFail")), 3)
|
|
115
116
|
])
|
|
116
117
|
])
|
|
117
118
|
]),
|
|
118
119
|
default: n(() => [
|
|
119
|
-
o("div",
|
|
120
|
-
o("div",
|
|
121
|
-
s(
|
|
122
|
-
title: l
|
|
120
|
+
o("div", _e, [
|
|
121
|
+
o("div", we, [
|
|
122
|
+
s(q, {
|
|
123
|
+
title: e(l)("config.security.groupLogin")
|
|
123
124
|
}, {
|
|
124
125
|
default: n(() => [
|
|
125
|
-
(r(!0), m(f, null, g([
|
|
126
|
-
key:
|
|
127
|
-
label:
|
|
128
|
-
hint:
|
|
129
|
-
keys: [
|
|
126
|
+
(r(!0), m(f, null, g([e(D), e(X)], (t) => (r(), S(p, {
|
|
127
|
+
key: t.key,
|
|
128
|
+
label: t.label,
|
|
129
|
+
hint: t === e(D) ? e(l)("config.security.zeroNoLock") : void 0,
|
|
130
|
+
keys: [t.key]
|
|
130
131
|
}, {
|
|
131
132
|
default: n(() => [
|
|
132
|
-
s(
|
|
133
|
-
value:
|
|
134
|
-
"onUpdate:value": (d) =>
|
|
133
|
+
s(e(C), {
|
|
134
|
+
value: t.model.value,
|
|
135
|
+
"onUpdate:value": (d) => t.model.value = d,
|
|
135
136
|
class: "num",
|
|
136
|
-
size:
|
|
137
|
-
min:
|
|
137
|
+
size: e(_),
|
|
138
|
+
min: t.min,
|
|
138
139
|
"show-button": !1,
|
|
139
|
-
"input-props": { "aria-label":
|
|
140
|
-
}, null, 8, ["value", "onUpdate:value", "min", "input-props"]),
|
|
141
|
-
o("span",
|
|
140
|
+
"input-props": { "aria-label": t.label }
|
|
141
|
+
}, null, 8, ["value", "onUpdate:value", "size", "min", "input-props"]),
|
|
142
|
+
o("span", Ce, c(t.unit), 1)
|
|
142
143
|
]),
|
|
143
144
|
_: 2
|
|
144
145
|
}, 1032, ["label", "hint", "keys"]))), 128)),
|
|
145
146
|
s(p, {
|
|
146
|
-
label: l
|
|
147
|
+
label: e(l)("config.security.captcha.enabled"),
|
|
147
148
|
keys: [u("captcha.enabled")]
|
|
148
149
|
}, {
|
|
149
150
|
default: n(() => [
|
|
150
|
-
s(
|
|
151
|
-
value:
|
|
152
|
-
"onUpdate:value": i[0] || (i[0] = (
|
|
153
|
-
"aria-label": l
|
|
151
|
+
s(e(h), {
|
|
152
|
+
value: e(L),
|
|
153
|
+
"onUpdate:value": i[0] || (i[0] = (t) => k(L) ? L.value = t : null),
|
|
154
|
+
"aria-label": e(l)("config.security.captcha.enabled")
|
|
154
155
|
}, null, 8, ["value", "aria-label"])
|
|
155
156
|
]),
|
|
156
157
|
_: 1
|
|
157
158
|
}, 8, ["label", "keys"]),
|
|
158
159
|
s(p, {
|
|
159
|
-
label: l
|
|
160
|
-
keys: [
|
|
161
|
-
disabled: !
|
|
160
|
+
label: e(l)("config.security.captcha.type"),
|
|
161
|
+
keys: [e(j)],
|
|
162
|
+
disabled: !e(L),
|
|
162
163
|
sub: ""
|
|
163
164
|
}, {
|
|
164
165
|
default: n(() => [
|
|
165
|
-
s(
|
|
166
|
-
modelValue:
|
|
167
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
168
|
-
options:
|
|
169
|
-
label: l
|
|
166
|
+
s(he, {
|
|
167
|
+
modelValue: R.value,
|
|
168
|
+
"onUpdate:modelValue": i[1] || (i[1] = (t) => R.value = t),
|
|
169
|
+
options: ee.value,
|
|
170
|
+
label: e(l)("config.security.captcha.type")
|
|
170
171
|
}, null, 8, ["modelValue", "options", "label"])
|
|
171
172
|
]),
|
|
172
173
|
_: 1
|
|
@@ -175,46 +176,46 @@ const ge = { class: "cols" }, ke = { class: "col" }, he = { class: "unit" }, _e
|
|
|
175
176
|
keys: [u("totp.enabled")]
|
|
176
177
|
}, {
|
|
177
178
|
label: n(() => [
|
|
178
|
-
$(c(l
|
|
179
|
-
s(
|
|
179
|
+
$(c(e(l)("config.security.totp.enabled")) + " ", 1),
|
|
180
|
+
s(e(H), { style: { maxWidth: "320px" } }, {
|
|
180
181
|
trigger: n(() => [
|
|
181
182
|
o("button", {
|
|
182
183
|
type: "button",
|
|
183
184
|
class: "tip",
|
|
184
|
-
"aria-label": l
|
|
185
|
+
"aria-label": e(l)("config.security.totp.hint")
|
|
185
186
|
}, [
|
|
186
|
-
s(
|
|
187
|
+
s(M, {
|
|
187
188
|
icon: "ph:question",
|
|
188
189
|
size: 12
|
|
189
190
|
})
|
|
190
|
-
], 8,
|
|
191
|
+
], 8, Le)
|
|
191
192
|
]),
|
|
192
193
|
default: n(() => [
|
|
193
|
-
$(" " + c(l
|
|
194
|
+
$(" " + c(e(l)("config.security.totp.hint")), 1)
|
|
194
195
|
]),
|
|
195
196
|
_: 1
|
|
196
197
|
})
|
|
197
198
|
]),
|
|
198
199
|
default: n(() => [
|
|
199
|
-
s(
|
|
200
|
-
value:
|
|
201
|
-
"onUpdate:value": i[2] || (i[2] = (
|
|
202
|
-
"aria-label": l
|
|
200
|
+
s(e(h), {
|
|
201
|
+
value: e(U),
|
|
202
|
+
"onUpdate:value": i[2] || (i[2] = (t) => k(U) ? U.value = t : null),
|
|
203
|
+
"aria-label": e(l)("config.security.totp.enabled")
|
|
203
204
|
}, null, 8, ["value", "aria-label"])
|
|
204
205
|
]),
|
|
205
206
|
_: 1
|
|
206
207
|
}, 8, ["keys"]),
|
|
207
208
|
s(p, {
|
|
208
|
-
label: l
|
|
209
|
+
label: e(l)("config.security.totp.requireForSuperAdmin"),
|
|
209
210
|
keys: [u("totp.requireForSuperAdmin")],
|
|
210
|
-
disabled: !
|
|
211
|
+
disabled: !e(U),
|
|
211
212
|
sub: ""
|
|
212
213
|
}, {
|
|
213
214
|
default: n(() => [
|
|
214
|
-
s(
|
|
215
|
-
value:
|
|
216
|
-
"onUpdate:value": i[3] || (i[3] = (
|
|
217
|
-
"aria-label": l
|
|
215
|
+
s(e(h), {
|
|
216
|
+
value: e(x),
|
|
217
|
+
"onUpdate:value": i[3] || (i[3] = (t) => k(x) ? x.value = t : null),
|
|
218
|
+
"aria-label": e(l)("config.security.totp.requireForSuperAdmin")
|
|
218
219
|
}, null, 8, ["value", "aria-label"])
|
|
219
220
|
]),
|
|
220
221
|
_: 1
|
|
@@ -223,31 +224,31 @@ const ge = { class: "cols" }, ke = { class: "col" }, he = { class: "unit" }, _e
|
|
|
223
224
|
keys: [u("mfa.enabled")]
|
|
224
225
|
}, {
|
|
225
226
|
label: n(() => [
|
|
226
|
-
$(c(l
|
|
227
|
-
s(
|
|
227
|
+
$(c(e(l)("config.security.mfa.enabled")) + " ", 1),
|
|
228
|
+
s(e(H), { style: { maxWidth: "320px" } }, {
|
|
228
229
|
trigger: n(() => [
|
|
229
230
|
o("button", {
|
|
230
231
|
type: "button",
|
|
231
232
|
class: "tip",
|
|
232
|
-
"aria-label": l
|
|
233
|
+
"aria-label": e(l)("config.security.sms.hint")
|
|
233
234
|
}, [
|
|
234
|
-
s(
|
|
235
|
+
s(M, {
|
|
235
236
|
icon: "ph:question",
|
|
236
237
|
size: 12
|
|
237
238
|
})
|
|
238
|
-
], 8,
|
|
239
|
+
], 8, Ue)
|
|
239
240
|
]),
|
|
240
241
|
default: n(() => [
|
|
241
|
-
$(" " + c(l
|
|
242
|
+
$(" " + c(e(l)("config.security.sms.hint")), 1)
|
|
242
243
|
]),
|
|
243
244
|
_: 1
|
|
244
245
|
})
|
|
245
246
|
]),
|
|
246
247
|
default: n(() => [
|
|
247
|
-
s(
|
|
248
|
-
value:
|
|
249
|
-
"onUpdate:value": i[4] || (i[4] = (
|
|
250
|
-
"aria-label": l
|
|
248
|
+
s(e(h), {
|
|
249
|
+
value: e(N),
|
|
250
|
+
"onUpdate:value": i[4] || (i[4] = (t) => k(N) ? N.value = t : null),
|
|
251
|
+
"aria-label": e(l)("config.security.mfa.enabled")
|
|
251
252
|
}, null, 8, ["value", "aria-label"])
|
|
252
253
|
]),
|
|
253
254
|
_: 1
|
|
@@ -255,27 +256,27 @@ const ge = { class: "cols" }, ke = { class: "col" }, he = { class: "unit" }, _e
|
|
|
255
256
|
]),
|
|
256
257
|
_: 1
|
|
257
258
|
}, 8, ["title"]),
|
|
258
|
-
s(
|
|
259
|
-
title: l
|
|
259
|
+
s(q, {
|
|
260
|
+
title: e(l)("config.security.groupSession")
|
|
260
261
|
}, {
|
|
261
262
|
default: n(() => [
|
|
262
|
-
(r(!0), m(f, null, g([
|
|
263
|
-
key:
|
|
264
|
-
label:
|
|
265
|
-
hint: `= ${
|
|
266
|
-
keys: [
|
|
263
|
+
(r(!0), m(f, null, g([e(te), e(le)], (t) => (r(), S(p, {
|
|
264
|
+
key: t.key,
|
|
265
|
+
label: t.label,
|
|
266
|
+
hint: `= ${ie(t.model.value)}`,
|
|
267
|
+
keys: [t.key]
|
|
267
268
|
}, {
|
|
268
269
|
default: n(() => [
|
|
269
|
-
s(
|
|
270
|
-
value:
|
|
271
|
-
"onUpdate:value": (d) =>
|
|
270
|
+
s(e(C), {
|
|
271
|
+
value: t.model.value,
|
|
272
|
+
"onUpdate:value": (d) => t.model.value = d,
|
|
272
273
|
class: "num",
|
|
273
|
-
size:
|
|
274
|
-
min:
|
|
274
|
+
size: e(_),
|
|
275
|
+
min: t.min,
|
|
275
276
|
"show-button": !1,
|
|
276
|
-
"input-props": { "aria-label":
|
|
277
|
-
}, null, 8, ["value", "onUpdate:value", "min", "input-props"]),
|
|
278
|
-
o("span",
|
|
277
|
+
"input-props": { "aria-label": t.label }
|
|
278
|
+
}, null, 8, ["value", "onUpdate:value", "size", "min", "input-props"]),
|
|
279
|
+
o("span", ze, c(t.unit), 1)
|
|
279
280
|
]),
|
|
280
281
|
_: 2
|
|
281
282
|
}, 1032, ["label", "hint", "keys"]))), 128))
|
|
@@ -283,78 +284,78 @@ const ge = { class: "cols" }, ke = { class: "col" }, he = { class: "unit" }, _e
|
|
|
283
284
|
_: 1
|
|
284
285
|
}, 8, ["title"])
|
|
285
286
|
]),
|
|
286
|
-
o("div",
|
|
287
|
-
s(
|
|
288
|
-
title: l
|
|
287
|
+
o("div", Se, [
|
|
288
|
+
s(q, {
|
|
289
|
+
title: e(l)("config.security.password.title")
|
|
289
290
|
}, {
|
|
290
291
|
default: n(() => [
|
|
291
292
|
s(p, {
|
|
292
|
-
label:
|
|
293
|
-
keys: [
|
|
293
|
+
label: e(b).label,
|
|
294
|
+
keys: [e(b).key]
|
|
294
295
|
}, {
|
|
295
296
|
default: n(() => [
|
|
296
|
-
s(
|
|
297
|
-
value:
|
|
298
|
-
"onUpdate:value": i[5] || (i[5] = (
|
|
297
|
+
s(e(C), {
|
|
298
|
+
value: e(b).model.value,
|
|
299
|
+
"onUpdate:value": i[5] || (i[5] = (t) => e(b).model.value = t),
|
|
299
300
|
class: "num",
|
|
300
|
-
size:
|
|
301
|
-
min:
|
|
301
|
+
size: e(_),
|
|
302
|
+
min: e(b).min,
|
|
302
303
|
"show-button": !1,
|
|
303
|
-
"input-props": { "aria-label":
|
|
304
|
-
}, null, 8, ["value", "min", "input-props"]),
|
|
305
|
-
o("span",
|
|
304
|
+
"input-props": { "aria-label": e(b).label }
|
|
305
|
+
}, null, 8, ["value", "size", "min", "input-props"]),
|
|
306
|
+
o("span", $e, c(e(b).unit), 1)
|
|
306
307
|
]),
|
|
307
308
|
_: 1
|
|
308
309
|
}, 8, ["label", "keys"]),
|
|
309
310
|
s(p, {
|
|
310
|
-
label: l
|
|
311
|
-
keys:
|
|
311
|
+
label: e(l)("config.security.password.mustContain"),
|
|
312
|
+
keys: e(A).map((t) => t.key)
|
|
312
313
|
}, {
|
|
313
314
|
default: n(() => [
|
|
314
|
-
o("span",
|
|
315
|
-
(r(!0), m(f, null, g(
|
|
316
|
-
key:
|
|
315
|
+
o("span", Fe, [
|
|
316
|
+
(r(!0), m(f, null, g(e(A), (t) => (r(), m("button", {
|
|
317
|
+
key: t.key,
|
|
317
318
|
type: "button",
|
|
318
|
-
class: "chip",
|
|
319
|
-
"aria-pressed":
|
|
320
|
-
"aria-label":
|
|
321
|
-
title:
|
|
322
|
-
onClick: (d) =>
|
|
323
|
-
}, c(
|
|
319
|
+
class: F(["chip", { lg: e(J) }]),
|
|
320
|
+
"aria-pressed": t.model.value,
|
|
321
|
+
"aria-label": t.name,
|
|
322
|
+
title: t.name,
|
|
323
|
+
onClick: (d) => t.model.value = !t.model.value
|
|
324
|
+
}, c(t.label), 11, qe))), 128))
|
|
324
325
|
])
|
|
325
326
|
]),
|
|
326
327
|
_: 1
|
|
327
328
|
}, 8, ["label", "keys"]),
|
|
328
|
-
(r(!0), m(f, null, g([
|
|
329
|
-
key:
|
|
330
|
-
label:
|
|
331
|
-
hint: l(t
|
|
332
|
-
keys: [
|
|
329
|
+
(r(!0), m(f, null, g([e(P), e(ae)], (t) => (r(), S(p, {
|
|
330
|
+
key: t.key,
|
|
331
|
+
label: t.label,
|
|
332
|
+
hint: e(l)(t === e(P) ? "config.security.zeroNever" : "config.security.zeroOff"),
|
|
333
|
+
keys: [t.key]
|
|
333
334
|
}, {
|
|
334
335
|
default: n(() => [
|
|
335
|
-
s(
|
|
336
|
-
value:
|
|
337
|
-
"onUpdate:value": (d) =>
|
|
336
|
+
s(e(C), {
|
|
337
|
+
value: t.model.value,
|
|
338
|
+
"onUpdate:value": (d) => t.model.value = d,
|
|
338
339
|
class: "num",
|
|
339
|
-
size:
|
|
340
|
-
min:
|
|
340
|
+
size: e(_),
|
|
341
|
+
min: t.min,
|
|
341
342
|
"show-button": !1,
|
|
342
|
-
"input-props": { "aria-label":
|
|
343
|
-
}, null, 8, ["value", "onUpdate:value", "min", "input-props"]),
|
|
344
|
-
o("span",
|
|
343
|
+
"input-props": { "aria-label": t.label }
|
|
344
|
+
}, null, 8, ["value", "onUpdate:value", "size", "min", "input-props"]),
|
|
345
|
+
o("span", xe, c(t.unit), 1)
|
|
345
346
|
]),
|
|
346
347
|
_: 2
|
|
347
348
|
}, 1032, ["label", "hint", "keys"]))), 128)),
|
|
348
349
|
s(p, {
|
|
349
|
-
label: l
|
|
350
|
-
hint: l
|
|
351
|
-
keys: [
|
|
350
|
+
label: e(l)("config.security.password.forceChangeOnFirstLogin"),
|
|
351
|
+
hint: e(l)("config.security.password.forceChangeOnFirstLoginHint"),
|
|
352
|
+
keys: [e(B)]
|
|
352
353
|
}, {
|
|
353
354
|
default: n(() => [
|
|
354
|
-
s(
|
|
355
|
-
value:
|
|
356
|
-
"onUpdate:value": i[6] || (i[6] = (
|
|
357
|
-
"aria-label": l
|
|
355
|
+
s(e(h), {
|
|
356
|
+
value: e(E),
|
|
357
|
+
"onUpdate:value": i[6] || (i[6] = (t) => k(E) ? E.value = t : null),
|
|
358
|
+
"aria-label": e(l)("config.security.password.forceChangeOnFirstLogin")
|
|
358
359
|
}, null, 8, ["value", "aria-label"])
|
|
359
360
|
]),
|
|
360
361
|
_: 1
|
|
@@ -362,41 +363,41 @@ const ge = { class: "cols" }, ke = { class: "col" }, he = { class: "unit" }, _e
|
|
|
362
363
|
]),
|
|
363
364
|
_: 1
|
|
364
365
|
}, 8, ["title"]),
|
|
365
|
-
s(
|
|
366
|
-
title: l
|
|
366
|
+
s(q, {
|
|
367
|
+
title: e(l)("config.security.groupRate")
|
|
367
368
|
}, {
|
|
368
369
|
default: n(() => [
|
|
369
370
|
s(p, {
|
|
370
|
-
label: l
|
|
371
|
+
label: e(l)("config.security.rateLimit.enabled"),
|
|
371
372
|
keys: [u("rateLimit.enabled")]
|
|
372
373
|
}, {
|
|
373
374
|
default: n(() => [
|
|
374
|
-
s(
|
|
375
|
-
value:
|
|
376
|
-
"onUpdate:value": i[7] || (i[7] = (
|
|
377
|
-
"aria-label": l
|
|
375
|
+
s(e(h), {
|
|
376
|
+
value: e(z),
|
|
377
|
+
"onUpdate:value": i[7] || (i[7] = (t) => k(z) ? z.value = t : null),
|
|
378
|
+
"aria-label": e(l)("config.security.rateLimit.enabled")
|
|
378
379
|
}, null, 8, ["value", "aria-label"])
|
|
379
380
|
]),
|
|
380
381
|
_: 1
|
|
381
382
|
}, 8, ["label", "keys"]),
|
|
382
|
-
(r(), m(f, null, g(
|
|
383
|
-
key:
|
|
384
|
-
label:
|
|
385
|
-
keys: [
|
|
386
|
-
disabled: !
|
|
383
|
+
(r(), m(f, null, g(se, (t) => s(p, {
|
|
384
|
+
key: t.key,
|
|
385
|
+
label: t.label,
|
|
386
|
+
keys: [t.key],
|
|
387
|
+
disabled: !e(z),
|
|
387
388
|
sub: ""
|
|
388
389
|
}, {
|
|
389
390
|
default: n(() => [
|
|
390
|
-
s(
|
|
391
|
-
value:
|
|
392
|
-
"onUpdate:value": (d) =>
|
|
391
|
+
s(e(C), {
|
|
392
|
+
value: t.model.value,
|
|
393
|
+
"onUpdate:value": (d) => t.model.value = d,
|
|
393
394
|
class: "num",
|
|
394
|
-
size:
|
|
395
|
-
min:
|
|
395
|
+
size: e(_),
|
|
396
|
+
min: t.min,
|
|
396
397
|
"show-button": !1,
|
|
397
|
-
"input-props": { "aria-label":
|
|
398
|
-
}, null, 8, ["value", "onUpdate:value", "min", "input-props"]),
|
|
399
|
-
o("span",
|
|
398
|
+
"input-props": { "aria-label": t.label }
|
|
399
|
+
}, null, 8, ["value", "onUpdate:value", "size", "min", "input-props"]),
|
|
400
|
+
o("span", Ne, c(t.unit), 1)
|
|
400
401
|
]),
|
|
401
402
|
_: 2
|
|
402
403
|
}, 1032, ["label", "keys", "disabled"])), 64))
|
|
@@ -411,6 +412,6 @@ const ge = { class: "cols" }, ke = { class: "col" }, he = { class: "unit" }, _e
|
|
|
411
412
|
}
|
|
412
413
|
});
|
|
413
414
|
export {
|
|
414
|
-
|
|
415
|
+
Je as default
|
|
415
416
|
};
|
|
416
417
|
//# sourceMappingURL=SecuritySection2.vue.js.map
|