smart-admin-web 10.13.1 → 10.15.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 +5 -5
- package/dist/api/index.d.ts +37 -0
- package/dist/api/index.js +35 -14
- package/dist/api/index.js.map +1 -1
- package/dist/api/schema.d.ts +381 -3
- package/dist/assets/icons/ph-subset.json.js +3 -3
- package/dist/assets/smart-logo.svg.js +5 -0
- package/dist/assets/smart-logo.svg.js.map +1 -0
- package/dist/components/SmartLogo.vue.d.ts +3 -0
- package/dist/components/SmartLogo.vue.js +1 -1
- package/dist/components/SmartLogo2.vue.js +22 -64
- package/dist/components/SmartLogo2.vue.js.map +1 -1
- package/dist/composables/useLoginHero.d.ts +2 -0
- package/dist/composables/useLoginHero.js +22 -0
- package/dist/composables/useLoginHero.js.map +1 -0
- package/dist/composables/usePageTitle.js +16 -14
- package/dist/composables/usePageTitle.js.map +1 -1
- package/dist/composables/useSite.d.ts +5 -0
- package/dist/composables/useSite.js +16 -13
- package/dist/composables/useSite.js.map +1 -1
- package/dist/index.js +92 -91
- package/dist/lib/favicon.d.ts +1 -0
- package/dist/lib/favicon.js +12 -0
- package/dist/lib/favicon.js.map +1 -0
- package/dist/lib/loginHero.d.ts +16 -0
- package/dist/lib/loginHero.js +33 -0
- package/dist/lib/loginHero.js.map +1 -0
- package/dist/lib/logoCrop.d.ts +25 -0
- package/dist/lib/logoCrop.js +22 -0
- package/dist/lib/logoCrop.js.map +1 -0
- package/dist/lib/runtime.d.ts +2 -0
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/runtime.js.map +1 -1
- package/dist/lib/securityRules.d.ts +26 -0
- package/dist/lib/securityRules.js +86 -0
- package/dist/lib/securityRules.js.map +1 -0
- package/dist/locales/en-US.d.ts +250 -28
- package/dist/locales/en-US.js +271 -58
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/zh-CN.d.ts +250 -28
- package/dist/locales/zh-CN.js +266 -58
- package/dist/locales/zh-CN.js.map +1 -1
- package/dist/router/viewRegistry.js +10 -10
- package/dist/router/viewRegistry.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/oauthBrand.d.ts +34 -9
- package/dist/utils/oauthBrand.js +70 -74
- package/dist/utils/oauthBrand.js.map +1 -1
- package/dist/views/login/components/LoginHeroPanel.vue.d.ts +18 -0
- package/dist/views/login/components/LoginHeroPanel.vue.js +8 -0
- package/dist/views/login/components/LoginHeroPanel.vue.js.map +1 -0
- package/dist/views/login/components/LoginHeroPanel2.vue.js +66 -0
- package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -0
- package/dist/views/login/skins/SplitPanel.vue.js +1 -1
- package/dist/views/login/skins/SplitPanel2.vue.js +39 -59
- package/dist/views/login/skins/SplitPanel2.vue.js.map +1 -1
- package/dist/views/system/api-docs/index.vue.js +5 -0
- package/dist/views/system/api-docs/index.vue.js.map +1 -0
- package/dist/views/system/api-docs/index2.vue.js +64 -0
- package/dist/views/system/api-docs/index2.vue.js.map +1 -0
- package/dist/views/system/config/components/AdminMock.vue.js +8 -0
- package/dist/views/system/config/components/AdminMock.vue.js.map +1 -0
- package/dist/views/system/config/components/AdminMock2.vue.js +76 -0
- package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -0
- package/dist/views/system/config/components/AdvancedSection.vue.js +5 -0
- package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -0
- package/dist/views/system/config/components/AdvancedSection2.vue.js +135 -0
- package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/BrandSection.vue.d.ts +7 -0
- package/dist/views/system/config/components/BrandSection.vue.js +8 -0
- package/dist/views/system/config/components/BrandSection.vue.js.map +1 -0
- package/dist/views/system/config/components/BrandSection2.vue.js +264 -0
- package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgGroup.vue.d.ts +18 -0
- package/dist/views/system/config/components/CfgGroup.vue.js +8 -0
- package/dist/views/system/config/components/CfgGroup.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgGroup2.vue.js +22 -0
- package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgRow.vue.d.ts +26 -0
- package/dist/views/system/config/components/CfgRow.vue.js +9 -0
- package/dist/views/system/config/components/CfgRow.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgRow2.vue.js +53 -0
- package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgSegment.vue.d.ts +28 -0
- package/dist/views/system/config/components/CfgSegment.vue.js +8 -0
- package/dist/views/system/config/components/CfgSegment.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgSegment2.vue.js +44 -0
- package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -0
- package/dist/views/system/config/components/ConfigFormModal.vue.js +5 -2
- package/dist/views/system/config/components/ConfigFormModal.vue.js.map +1 -1
- package/dist/views/system/config/components/ConfigFormModal2.vue.js +66 -56
- package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
- package/dist/views/system/config/components/JobSection.vue.js +8 -0
- package/dist/views/system/config/components/JobSection.vue.js.map +1 -0
- package/dist/views/system/config/components/JobSection2.vue.js +138 -0
- package/dist/views/system/config/components/JobSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/{GroupExtraConfig.vue.d.ts → LoginMock.vue.d.ts} +3 -4
- package/dist/views/system/config/components/LoginMock.vue.js +8 -0
- package/dist/views/system/config/components/LoginMock.vue.js.map +1 -0
- package/dist/views/system/config/components/LoginMock2.vue.js +121 -0
- package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -0
- package/dist/views/system/config/components/LogoCropper.vue.d.ts +10 -0
- package/dist/views/system/config/components/LogoCropper.vue.js +8 -0
- package/dist/views/system/config/components/LogoCropper.vue.js.map +1 -0
- package/dist/views/system/config/components/LogoCropper2.vue.js +122 -0
- package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -0
- package/dist/views/system/config/components/LogoEditor.vue.js +8 -0
- package/dist/views/system/config/components/LogoEditor.vue.js.map +1 -0
- package/dist/views/system/config/components/LogoEditor2.vue.js +163 -0
- package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -0
- package/dist/views/system/config/components/ProviderSheet.vue.d.ts +17 -0
- package/dist/views/system/config/components/ProviderSheet.vue.js +8 -0
- package/dist/views/system/config/components/ProviderSheet.vue.js.map +1 -0
- package/dist/views/system/config/components/ProviderSheet2.vue.js +343 -0
- package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -0
- package/dist/views/system/config/components/ScaleToFit.vue.d.ts +17 -0
- package/dist/views/system/config/components/ScaleToFit.vue.js +8 -0
- package/dist/views/system/config/components/ScaleToFit.vue.js.map +1 -0
- package/dist/views/system/config/components/ScaleToFit2.vue.js +41 -0
- package/dist/views/system/config/components/ScaleToFit2.vue.js.map +1 -0
- package/dist/views/system/config/components/SectionLayout.vue.d.ts +28 -0
- package/dist/views/system/config/components/SectionLayout.vue.js +8 -0
- package/dist/views/system/config/components/SectionLayout.vue.js.map +1 -0
- package/dist/views/system/config/components/SectionLayout2.vue.js +45 -0
- package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -0
- package/dist/views/system/config/components/SecuritySection.vue.js +8 -0
- package/dist/views/system/config/components/SecuritySection.vue.js.map +1 -0
- package/dist/views/system/config/components/SecuritySection2.vue.js +416 -0
- package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -0
- package/dist/views/system/config/components/SensitiveSection.vue.js +8 -0
- package/dist/views/system/config/components/SensitiveSection.vue.js.map +1 -0
- package/dist/views/system/config/components/SensitiveSection2.vue.js +209 -0
- package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/SigninSection.vue.d.ts +3 -0
- package/dist/views/system/config/components/SigninSection.vue.js +8 -0
- package/dist/views/system/config/components/SigninSection.vue.js.map +1 -0
- package/dist/views/system/config/components/SigninSection2.vue.js +201 -0
- package/dist/views/system/config/components/SigninSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/UploadSection.vue.d.ts +3 -0
- package/dist/views/system/config/components/UploadSection.vue.js +8 -0
- package/dist/views/system/config/components/UploadSection.vue.js.map +1 -0
- package/dist/views/system/config/components/UploadSection2.vue.js +167 -0
- package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -0
- package/dist/views/system/config/draft.d.ts +148 -0
- package/dist/views/system/config/draft.js +170 -0
- package/dist/views/system/config/draft.js.map +1 -0
- package/dist/views/system/config/flash.d.ts +2 -0
- package/dist/views/system/config/flash.js +9 -0
- package/dist/views/system/config/flash.js.map +1 -0
- package/dist/views/system/config/groups.d.ts +35 -7
- package/dist/views/system/config/groups.js +99 -14
- package/dist/views/system/config/groups.js.map +1 -1
- package/dist/views/system/config/index.vue.js +4 -1
- package/dist/views/system/config/index.vue.js.map +1 -1
- package/dist/views/system/config/index2.vue.js +180 -115
- package/dist/views/system/config/index2.vue.js.map +1 -1
- package/dist/views/system/config/providerForm.d.ts +33 -0
- package/dist/views/system/config/providerForm.js +63 -0
- package/dist/views/system/config/providerForm.js.map +1 -0
- package/package.json +4 -4
- package/dist/views/system/config/components/ExternalAuthConfig.vue.js +0 -8
- package/dist/views/system/config/components/ExternalAuthConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/ExternalAuthConfig2.vue.js +0 -218
- package/dist/views/system/config/components/ExternalAuthConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/GroupExtraConfig.vue.js +0 -8
- package/dist/views/system/config/components/GroupExtraConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/GroupExtraConfig2.vue.js +0 -108
- package/dist/views/system/config/components/GroupExtraConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/HighSensConfig.vue.js +0 -5
- package/dist/views/system/config/components/HighSensConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/HighSensConfig2.vue.js +0 -134
- package/dist/views/system/config/components/HighSensConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/JobConfig.vue.js +0 -5
- package/dist/views/system/config/components/JobConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/JobConfig2.vue.js +0 -116
- package/dist/views/system/config/components/JobConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/OtherConfig.vue.js +0 -5
- package/dist/views/system/config/components/OtherConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/OtherConfig2.vue.js +0 -121
- package/dist/views/system/config/components/OtherConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/SecurityConfig.vue.js +0 -8
- package/dist/views/system/config/components/SecurityConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/SecurityConfig2.vue.js +0 -456
- package/dist/views/system/config/components/SecurityConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/SysBaseConfig.vue.js +0 -5
- package/dist/views/system/config/components/SysBaseConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/SysBaseConfig2.vue.js +0 -107
- package/dist/views/system/config/components/SysBaseConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/UploadConfig.vue.js +0 -5
- package/dist/views/system/config/components/UploadConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/UploadConfig2.vue.js +0 -135
- package/dist/views/system/config/components/UploadConfig2.vue.js.map +0 -1
- /package/dist/views/system/{config/components/ExternalAuthConfig.vue.d.ts → api-docs/index.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{HighSensConfig.vue.d.ts → AdminMock.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{JobConfig.vue.d.ts → AdvancedSection.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{OtherConfig.vue.d.ts → JobSection.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{SecurityConfig.vue.d.ts → LogoEditor.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{SysBaseConfig.vue.d.ts → SecuritySection.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{UploadConfig.vue.d.ts → SensitiveSection.vue.d.ts} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import o from "./ScaleToFit2.vue.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bebb8d09"]]);
|
|
5
|
+
export {
|
|
6
|
+
m as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=ScaleToFit.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScaleToFit.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as r, ref as n, computed as h, openBlock as c, createElementBlock as d, createElementVNode as u, normalizeStyle as m, renderSlot as v } from "vue";
|
|
2
|
+
import { useResizeObserver as f } from "@vueuse/core";
|
|
3
|
+
const g = /* @__PURE__ */ r({
|
|
4
|
+
__name: "ScaleToFit",
|
|
5
|
+
props: {
|
|
6
|
+
width: {},
|
|
7
|
+
height: {}
|
|
8
|
+
},
|
|
9
|
+
setup(t) {
|
|
10
|
+
const l = t, o = n(null), e = n({ w: 0, h: 0 });
|
|
11
|
+
f(o, (i) => {
|
|
12
|
+
const a = i[0].contentRect;
|
|
13
|
+
e.value = { w: a.width, h: a.height };
|
|
14
|
+
});
|
|
15
|
+
const s = h(
|
|
16
|
+
() => e.value.w && e.value.h ? Math.min(e.value.w / l.width, e.value.h / l.height) : 0
|
|
17
|
+
);
|
|
18
|
+
return (i, a) => (c(), d("div", {
|
|
19
|
+
ref_key: "box",
|
|
20
|
+
ref: o,
|
|
21
|
+
class: "fit",
|
|
22
|
+
"aria-hidden": "true"
|
|
23
|
+
}, [
|
|
24
|
+
u("div", {
|
|
25
|
+
class: "stage",
|
|
26
|
+
style: m({
|
|
27
|
+
width: `${t.width}px`,
|
|
28
|
+
height: `${t.height}px`,
|
|
29
|
+
transform: `translate(-50%, -50%) scale(${s.value})`,
|
|
30
|
+
visibility: s.value ? "visible" : "hidden"
|
|
31
|
+
})
|
|
32
|
+
}, [
|
|
33
|
+
v(i.$slots, "default", {}, void 0, !0)
|
|
34
|
+
], 4)
|
|
35
|
+
], 512));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
g as default
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=ScaleToFit2.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScaleToFit2.vue.js","sources":["../../../../../src/views/system/config/components/ScaleToFit.vue"],"sourcesContent":["<script setup lang=\"ts\">\n// 把按固定设计尺寸画好的迷你界面,整体等比缩放到容器可用的宽高里(居中,不裁不滚)。\n// 预览因此和真实界面同比例,窗口多大就放多大。\nimport { computed, ref } from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\n\nconst props = defineProps<{ width: number; height: number }>()\nconst box = ref<HTMLElement | null>(null)\nconst size = ref({ w: 0, h: 0 })\n\nuseResizeObserver(box, entries => {\n const r = entries[0].contentRect\n size.value = { w: r.width, h: r.height }\n})\n\nconst scale = computed(() =>\n size.value.w && size.value.h\n ? Math.min(size.value.w / props.width, size.value.h / props.height)\n : 0,\n)\n</script>\n\n<template>\n <!-- 缩小版界面只是图示,信息都在左边的表单里;对读屏隐藏,免得重复朗读一遍 -->\n <div ref=\"box\" class=\"fit\" aria-hidden=\"true\">\n <div\n class=\"stage\"\n :style=\"{\n width: `${width}px`,\n height: `${height}px`,\n transform: `translate(-50%, -50%) scale(${scale})`,\n visibility: scale ? 'visible' : 'hidden',\n }\"\n >\n <slot />\n </div>\n </div>\n</template>\n\n<style scoped>\n.fit {\n position: relative;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n}\n.stage {\n position: absolute;\n left: 50%;\n top: 50%;\n transform-origin: center;\n}\n</style>\n"],"names":["props","__props","box","ref","size","useResizeObserver","entries","r","scale","computed","_createElementBlock","_createElementVNode","_normalizeStyle","_renderSlot","_ctx"],"mappings":";;;;;;;;;AAMA,UAAMA,IAAQC,GACRC,IAAMC,EAAwB,IAAI,GAClCC,IAAOD,EAAI,EAAE,GAAG,GAAG,GAAG,GAAG;AAE/B,IAAAE,EAAkBH,GAAK,CAAAI,MAAW;AAChC,YAAMC,IAAID,EAAQ,CAAC,EAAE;AACrB,MAAAF,EAAK,QAAQ,EAAE,GAAGG,EAAE,OAAO,GAAGA,EAAE,OAAA;AAAA,IAClC,CAAC;AAED,UAAMC,IAAQC;AAAA,MAAS,MACrBL,EAAK,MAAM,KAAKA,EAAK,MAAM,IACvB,KAAK,IAAIA,EAAK,MAAM,IAAIJ,EAAM,OAAOI,EAAK,MAAM,IAAIJ,EAAM,MAAM,IAChE;AAAA,IAAA;2BAMJU,EAYM,OAAA;AAAA,eAZG;AAAA,MAAJ,KAAIR;AAAA,MAAM,OAAM;AAAA,MAAM,eAAY;AAAA,IAAA;MACrCS,EAUM,OAAA;AAAA,QATJ,OAAM;AAAA,QACL,OAAKC,EAAA;AAAA,oBAAsBX,EAAA,KAAK;AAAA,qBAAyBA,EAAA,MAAM;AAAA,oDAAwDO,EAAA,KAAK;AAAA,sBAAyBA,EAAA,QAAK,YAAA;AAAA,QAAA;;QAO3JK,EAAQC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
desc?: string;
|
|
4
|
+
previewTitle?: string;
|
|
5
|
+
layout?: 'even' | 'wide' | 'slim';
|
|
6
|
+
/** 预览内容在预览栏里的位置:center(缩小版界面)/ start(列表类,自上而下排) */
|
|
7
|
+
previewAlign?: 'center' | 'start';
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
'preview-extra'?: (props: typeof __VLS_3) => any;
|
|
14
|
+
} & {
|
|
15
|
+
preview?: (props: typeof __VLS_5) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
layout: "even" | "wide" | "slim";
|
|
19
|
+
previewAlign: "center" | "start";
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import o from "./SectionLayout2.vue.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1f5b0c64"]]);
|
|
5
|
+
export {
|
|
6
|
+
f as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=SectionLayout.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionLayout.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as d, openBlock as i, createElementBlock as o, createElementVNode as e, toDisplayString as l, createCommentVNode as a, normalizeClass as n, renderSlot as c } from "vue";
|
|
2
|
+
const r = { class: "cfg-section" }, v = { class: "cfg-head" }, f = { key: 0 }, p = { class: "cfg-form" }, u = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "cfg-preview",
|
|
5
|
+
"data-testid": "config-preview"
|
|
6
|
+
}, g = { class: "cfg-preview-cap" }, w = { class: "live" }, y = /* @__PURE__ */ d({
|
|
7
|
+
__name: "SectionLayout",
|
|
8
|
+
props: {
|
|
9
|
+
title: {},
|
|
10
|
+
desc: {},
|
|
11
|
+
previewTitle: {},
|
|
12
|
+
layout: { default: "even" },
|
|
13
|
+
previewAlign: { default: "center" }
|
|
14
|
+
},
|
|
15
|
+
setup(t) {
|
|
16
|
+
return (s, h) => (i(), o("section", r, [
|
|
17
|
+
e("header", v, [
|
|
18
|
+
e("h2", null, l(t.title), 1),
|
|
19
|
+
t.desc ? (i(), o("p", f, l(t.desc), 1)) : a("", !0)
|
|
20
|
+
]),
|
|
21
|
+
e("div", {
|
|
22
|
+
class: n(["cfg-split", `cfg-split--${s.$slots.preview ? t.layout : "single"}`])
|
|
23
|
+
}, [
|
|
24
|
+
e("div", p, [
|
|
25
|
+
c(s.$slots, "default", {}, void 0, !0)
|
|
26
|
+
]),
|
|
27
|
+
s.$slots.preview ? (i(), o("aside", u, [
|
|
28
|
+
e("div", g, [
|
|
29
|
+
e("span", w, l(t.previewTitle), 1),
|
|
30
|
+
c(s.$slots, "preview-extra", {}, void 0, !0)
|
|
31
|
+
]),
|
|
32
|
+
e("div", {
|
|
33
|
+
class: n(["cfg-preview-body", `cfg-preview-body--${t.previewAlign}`])
|
|
34
|
+
}, [
|
|
35
|
+
c(s.$slots, "preview", {}, void 0, !0)
|
|
36
|
+
], 2)
|
|
37
|
+
])) : a("", !0)
|
|
38
|
+
], 2)
|
|
39
|
+
]));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
y as default
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=SectionLayout2.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionLayout2.vue.js","sources":["../../../../../src/views/system/config/components/SectionLayout.vue"],"sourcesContent":["<script setup lang=\"ts\">\n// 配置中心每个分类的统一版面:页头 + 「左边设置、右边预览」,整块吃满内容区、一屏放下。\n// layout 决定两栏比例:even 1:1(默认)、wide 设置多时 3:2、slim 设置少时 2:3(预览放大,不留半屏空白)。\n// 没有 #preview 的分类(高级)整页给内容,不硬凑预览。\n// 设置列放不下(矮窄屏)时在列内滚,页面本身不滚。\nwithDefaults(\n defineProps<{\n title: string\n desc?: string\n previewTitle?: string\n layout?: 'even' | 'wide' | 'slim'\n /** 预览内容在预览栏里的位置:center(缩小版界面)/ start(列表类,自上而下排) */\n previewAlign?: 'center' | 'start'\n }>(),\n { layout: 'even', previewAlign: 'center' },\n)\n</script>\n\n<template>\n <section class=\"cfg-section\">\n <header class=\"cfg-head\">\n <h2>{{ title }}</h2>\n <p v-if=\"desc\">{{ desc }}</p>\n </header>\n <div :class=\"['cfg-split', `cfg-split--${$slots.preview ? layout : 'single'}`]\">\n <div class=\"cfg-form\">\n <slot />\n </div>\n <aside v-if=\"$slots.preview\" class=\"cfg-preview\" data-testid=\"config-preview\">\n <div class=\"cfg-preview-cap\">\n <span class=\"live\">{{ previewTitle }}</span>\n <slot name=\"preview-extra\" />\n </div>\n <div :class=\"['cfg-preview-body', `cfg-preview-body--${previewAlign}`]\">\n <slot name=\"preview\" />\n </div>\n </aside>\n </div>\n </section>\n</template>\n\n<style scoped>\n.cfg-section {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n}\n.cfg-head {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 4px 12px;\n margin-bottom: 14px;\n}\n.cfg-head h2 {\n margin: 0;\n font-size: 20px;\n font-weight: 600;\n letter-spacing: -0.01em;\n}\n.cfg-head p {\n margin: 0;\n font-size: var(--font-size-base);\n color: var(--color-text-secondary);\n}\n.cfg-split {\n display: grid;\n flex: 1;\n gap: 20px;\n min-height: 0;\n}\n.cfg-split--even {\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n}\n.cfg-split--wide {\n grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);\n}\n.cfg-split--slim {\n grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);\n}\n.cfg-split--single {\n grid-template-columns: minmax(0, 1fr);\n}\n.cfg-form {\n display: flex;\n flex-direction: column;\n gap: 14px;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n}\n/* 预览画布:浅灰圆角底,里面放缩小版界面或效果说明 */\n.cfg-preview {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border-radius: 14px;\n background: color-mix(in srgb, var(--color-fill) 70%, var(--color-bg-body));\n}\n.cfg-preview-cap {\n display: flex;\n flex: none;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 10px 14px 0;\n font-size: var(--font-size-sm);\n color: var(--color-text-secondary);\n}\n.live {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n.live::before {\n content: '';\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--color-success);\n}\n.cfg-preview-body {\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n gap: 12px;\n min-height: 0;\n padding: 12px 14px 14px;\n overflow: auto;\n}\n.cfg-preview-body--start {\n justify-content: flex-start;\n}\n/* v-flash:改了哪一项,预览里受影响的部分闪一下橙框,告诉用户\"改的是这里\" */\n.cfg-preview :deep(.cfg-flash) {\n animation: cfg-flash 1.1s ease-out;\n}\n@keyframes cfg-flash {\n from {\n box-shadow: 0 0 0 3px var(--color-warning);\n }\n to {\n box-shadow: 0 0 0 3px transparent;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .cfg-preview :deep(.cfg-flash) {\n animation: none;\n }\n}\n@media (max-width: 1000px) {\n .cfg-split {\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: auto minmax(280px, 1fr);\n overflow: auto;\n }\n .cfg-form {\n overflow: visible;\n }\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","__props","_normalizeClass","$slots","_hoisted_4","_renderSlot","_ctx","_hoisted_5","_hoisted_6","_hoisted_7","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;sBAmBEA,EAAA,GAAAC,EAmBU,WAnBVC,GAmBU;AAAA,MAlBRC,EAGS,UAHTC,GAGS;AAAA,QAFPD,EAAoB,cAAbE,EAAA,KAAK,GAAA,CAAA;AAAA,QACHA,EAAA,QAATL,EAAA,GAAAC,EAA6B,UAAXI,EAAA,IAAI,GAAA,CAAA;;MAExBF,EAaM,OAAA;AAAA,QAbA,OAAKG,EAAA,CAAA,aAAA,cAA8BC,EAAAA,OAAO,UAAUF,EAAA,SAAM,QAAA,EAAA,CAAA;AAAA,MAAA;QAC9DF,EAEM,OAFNK,GAEM;AAAA,UADJC,EAAQC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,QAAA;QAEGH,EAAAA,OAAO,WAApBP,KAAAC,EAQQ,SARRU,GAQQ;AAAA,UAPNR,EAGM,OAHNS,GAGM;AAAA,YAFJT,EAA4C,QAA5CU,GAA4CC,EAAtBT,EAAA,YAAY,GAAA,CAAA;AAAA,YAClCI,EAA6BC,EAAA,QAAA,iBAAA,CAAA,GAAA,QAAA,EAAA;AAAA,UAAA;UAE/BP,EAEM,OAAA;AAAA,YAFA,mDAAiDE,EAAA,YAAY,EAAA,CAAA;AAAA,UAAA;YACjEI,EAAuBC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,UAAA;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import o from "./SecuritySection2.vue.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7f9b84df"]]);
|
|
5
|
+
export {
|
|
6
|
+
e as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=SecuritySection.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecuritySection.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { defineComponent as ne, computed as _, ref as oe, openBlock as r, createBlock as S, unref as l, 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 $, withDirectives as W, normalizeClass as E, createCommentVNode as ue, vModelText as re } from "vue";
|
|
2
|
+
import { NInputNumber as w, NSwitch as h, NTooltip as Y } from "naive-ui";
|
|
3
|
+
import { useI18n as ce } from "vue-i18n";
|
|
4
|
+
import T from "../../../../components/AppIcon.vue.js";
|
|
5
|
+
import { securityRules as pe, humanizeMinutes as de } from "../../../../lib/securityRules.js";
|
|
6
|
+
import { CAPTCHA_TYPE_KEY as H, SECURITY_NUMBERS as j } from "../groups.js";
|
|
7
|
+
import { useConfigDraft as me, useDraftFields as ye } from "../draft.js";
|
|
8
|
+
import { vFlash as be } from "../flash.js";
|
|
9
|
+
import ve from "./SectionLayout.vue.js";
|
|
10
|
+
import z from "./CfgGroup.vue.js";
|
|
11
|
+
import p from "./CfgRow.vue.js";
|
|
12
|
+
import fe from "./CfgSegment.vue.js";
|
|
13
|
+
const ge = { class: "cols" }, ke = { class: "col" }, he = { class: "unit" }, _e = ["aria-label"], we = ["aria-label"], Ce = { class: "unit" }, Le = { class: "col" }, Ue = { class: "unit" }, Se = { class: "chips" }, $e = ["aria-pressed", "aria-label", "title", "onClick"], ze = { class: "unit" }, Fe = { class: "unit" }, qe = {
|
|
14
|
+
class: "rules",
|
|
15
|
+
"data-testid": "security-rules"
|
|
16
|
+
}, xe = { class: "ic" }, Ne = { class: "txt" }, Ae = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "sr-only"
|
|
19
|
+
}, Ee = { class: "try" }, Ge = /* @__PURE__ */ ne({
|
|
20
|
+
__name: "SecuritySection",
|
|
21
|
+
setup(Te) {
|
|
22
|
+
const { t } = ce(), { values: G } = me(), { num: K, bool: v, str: Z } = ye(), u = (a) => `sys.security.${a}`, y = (a, i) => ({
|
|
23
|
+
key: u(a),
|
|
24
|
+
label: t(`config.security.${a}`),
|
|
25
|
+
unit: t(`config.security.unit.${i}`),
|
|
26
|
+
min: j[u(a)],
|
|
27
|
+
model: K(u(a), j[u(a)])
|
|
28
|
+
}), M = y("loginLock.maxFailCount", "times"), Q = y("loginLock.lockMinutes", "minutes"), C = v(u("captcha.enabled")), D = Z(H), J = _(
|
|
29
|
+
() => ["char", "path", "math"].map((a) => ({
|
|
30
|
+
value: a,
|
|
31
|
+
label: t(`config.security.captcha.types.${a}`)
|
|
32
|
+
}))
|
|
33
|
+
), O = _({
|
|
34
|
+
get: () => D.value || "char",
|
|
35
|
+
set: (a) => D.value = a
|
|
36
|
+
}), L = v(u("totp.enabled")), F = v(u("totp.requireForSuperAdmin")), q = v(u("mfa.enabled")), X = y("session.accessMinutes", "minutes"), ee = y("session.refreshMinutes", "minutes"), b = y("password.minLength", "chars"), R = ["Upper", "Lower", "Digit", "Special"], x = R.map((a) => ({
|
|
37
|
+
key: u(`password.require${a}`),
|
|
38
|
+
label: t(`config.security.password.chip${a}`),
|
|
39
|
+
name: t(`config.security.password.require${a}`),
|
|
40
|
+
model: v(u(`password.require${a}`))
|
|
41
|
+
})), V = y("password.expireDays", "days"), le = y("password.historyCount", "times"), P = u("password.forceChangeOnFirstLogin"), N = v(P), U = v(u("rateLimit.enabled")), te = [
|
|
42
|
+
y("rateLimit.windowSeconds", "seconds"),
|
|
43
|
+
y("rateLimit.permitPerWindow", "times"),
|
|
44
|
+
y("rateLimit.authPermitPerWindow", "times")
|
|
45
|
+
], ae = (a) => {
|
|
46
|
+
const i = de(a);
|
|
47
|
+
return t(i.key, { n: i.n });
|
|
48
|
+
}, se = _(
|
|
49
|
+
() => pe(G, {
|
|
50
|
+
duration: (a) => t(a.key, { n: a.n }),
|
|
51
|
+
requirement: (a) => t(`config.preview.req.${a}`),
|
|
52
|
+
captchaType: (a) => t(`config.security.captcha.types.${a}`),
|
|
53
|
+
join: (a) => a.join(t("config.preview.sep"))
|
|
54
|
+
})
|
|
55
|
+
), A = oe("Admin123"), B = _(() => {
|
|
56
|
+
const a = A.value, i = [
|
|
57
|
+
{
|
|
58
|
+
label: t("config.security.tryMin", { n: b.model.value }),
|
|
59
|
+
ok: a.length >= b.model.value
|
|
60
|
+
}
|
|
61
|
+
], e = {
|
|
62
|
+
Upper: /[A-Z]/,
|
|
63
|
+
Lower: /[a-z]/,
|
|
64
|
+
Digit: /\d/,
|
|
65
|
+
Special: /[^A-Za-z0-9]/
|
|
66
|
+
};
|
|
67
|
+
return R.forEach((d, ie) => {
|
|
68
|
+
x[ie].model.value && i.push({ label: t(`config.preview.req.${d.toLowerCase()}`), ok: e[d].test(a) });
|
|
69
|
+
}), i;
|
|
70
|
+
}), I = _(() => B.value.every((a) => a.ok));
|
|
71
|
+
return (a, i) => (r(), S(ve, {
|
|
72
|
+
title: l(t)("config.tab.security"),
|
|
73
|
+
desc: l(t)("config.security.desc"),
|
|
74
|
+
"preview-title": l(t)("config.security.preview"),
|
|
75
|
+
layout: "wide",
|
|
76
|
+
"preview-align": "start"
|
|
77
|
+
}, {
|
|
78
|
+
preview: n(() => [
|
|
79
|
+
o("ul", qe, [
|
|
80
|
+
(r(!0), m(f, null, g(se.value, (e) => W((r(), m("li", {
|
|
81
|
+
key: e.icon,
|
|
82
|
+
class: E({ off: !e.on })
|
|
83
|
+
}, [
|
|
84
|
+
o("span", xe, [
|
|
85
|
+
s(T, {
|
|
86
|
+
icon: e.icon,
|
|
87
|
+
size: 14
|
|
88
|
+
}, null, 8, ["icon"])
|
|
89
|
+
]),
|
|
90
|
+
o("span", Ne, c(l(t)(e.key, e.params ?? {})), 1),
|
|
91
|
+
e.on ? ue("", !0) : (r(), m("span", Ae, c(l(t)("config.preview.off")), 1))
|
|
92
|
+
], 2)), [
|
|
93
|
+
[l(be), `${e.on}|${l(t)(e.key, e.params ?? {})}`]
|
|
94
|
+
])), 128))
|
|
95
|
+
]),
|
|
96
|
+
o("div", Ee, [
|
|
97
|
+
o("label", null, [
|
|
98
|
+
o("span", null, c(l(t)("config.security.tryLabel")), 1),
|
|
99
|
+
W(o("input", {
|
|
100
|
+
"onUpdate:modelValue": i[8] || (i[8] = (e) => A.value = e),
|
|
101
|
+
autocomplete: "off",
|
|
102
|
+
spellcheck: "false"
|
|
103
|
+
}, null, 512), [
|
|
104
|
+
[re, A.value]
|
|
105
|
+
])
|
|
106
|
+
]),
|
|
107
|
+
o("ul", null, [
|
|
108
|
+
(r(!0), m(f, null, g(B.value, (e) => (r(), m("li", {
|
|
109
|
+
key: e.label,
|
|
110
|
+
class: E({ ok: e.ok })
|
|
111
|
+
}, c(e.label), 3))), 128)),
|
|
112
|
+
o("li", {
|
|
113
|
+
class: E(["verdict", { ok: I.value }])
|
|
114
|
+
}, c(I.value ? l(t)("config.security.tryPass") : l(t)("config.security.tryFail")), 3)
|
|
115
|
+
])
|
|
116
|
+
])
|
|
117
|
+
]),
|
|
118
|
+
default: n(() => [
|
|
119
|
+
o("div", ge, [
|
|
120
|
+
o("div", ke, [
|
|
121
|
+
s(z, {
|
|
122
|
+
title: l(t)("config.security.groupLogin")
|
|
123
|
+
}, {
|
|
124
|
+
default: n(() => [
|
|
125
|
+
(r(!0), m(f, null, g([l(M), l(Q)], (e) => (r(), S(p, {
|
|
126
|
+
key: e.key,
|
|
127
|
+
label: e.label,
|
|
128
|
+
hint: e === l(M) ? l(t)("config.security.zeroNoLock") : void 0,
|
|
129
|
+
keys: [e.key]
|
|
130
|
+
}, {
|
|
131
|
+
default: n(() => [
|
|
132
|
+
s(l(w), {
|
|
133
|
+
value: e.model.value,
|
|
134
|
+
"onUpdate:value": (d) => e.model.value = d,
|
|
135
|
+
class: "num",
|
|
136
|
+
size: "small",
|
|
137
|
+
min: e.min,
|
|
138
|
+
"show-button": !1,
|
|
139
|
+
"input-props": { "aria-label": e.label }
|
|
140
|
+
}, null, 8, ["value", "onUpdate:value", "min", "input-props"]),
|
|
141
|
+
o("span", he, c(e.unit), 1)
|
|
142
|
+
]),
|
|
143
|
+
_: 2
|
|
144
|
+
}, 1032, ["label", "hint", "keys"]))), 128)),
|
|
145
|
+
s(p, {
|
|
146
|
+
label: l(t)("config.security.captcha.enabled"),
|
|
147
|
+
keys: [u("captcha.enabled")]
|
|
148
|
+
}, {
|
|
149
|
+
default: n(() => [
|
|
150
|
+
s(l(h), {
|
|
151
|
+
value: l(C),
|
|
152
|
+
"onUpdate:value": i[0] || (i[0] = (e) => k(C) ? C.value = e : null),
|
|
153
|
+
"aria-label": l(t)("config.security.captcha.enabled")
|
|
154
|
+
}, null, 8, ["value", "aria-label"])
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}, 8, ["label", "keys"]),
|
|
158
|
+
s(p, {
|
|
159
|
+
label: l(t)("config.security.captcha.type"),
|
|
160
|
+
keys: [l(H)],
|
|
161
|
+
disabled: !l(C),
|
|
162
|
+
sub: ""
|
|
163
|
+
}, {
|
|
164
|
+
default: n(() => [
|
|
165
|
+
s(fe, {
|
|
166
|
+
modelValue: O.value,
|
|
167
|
+
"onUpdate:modelValue": i[1] || (i[1] = (e) => O.value = e),
|
|
168
|
+
options: J.value,
|
|
169
|
+
label: l(t)("config.security.captcha.type")
|
|
170
|
+
}, null, 8, ["modelValue", "options", "label"])
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}, 8, ["label", "keys", "disabled"]),
|
|
174
|
+
s(p, {
|
|
175
|
+
keys: [u("totp.enabled")]
|
|
176
|
+
}, {
|
|
177
|
+
label: n(() => [
|
|
178
|
+
$(c(l(t)("config.security.totp.enabled")) + " ", 1),
|
|
179
|
+
s(l(Y), { style: { maxWidth: "320px" } }, {
|
|
180
|
+
trigger: n(() => [
|
|
181
|
+
o("button", {
|
|
182
|
+
type: "button",
|
|
183
|
+
class: "tip",
|
|
184
|
+
"aria-label": l(t)("config.security.totp.hint")
|
|
185
|
+
}, [
|
|
186
|
+
s(T, {
|
|
187
|
+
icon: "ph:question",
|
|
188
|
+
size: 12
|
|
189
|
+
})
|
|
190
|
+
], 8, _e)
|
|
191
|
+
]),
|
|
192
|
+
default: n(() => [
|
|
193
|
+
$(" " + c(l(t)("config.security.totp.hint")), 1)
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
})
|
|
197
|
+
]),
|
|
198
|
+
default: n(() => [
|
|
199
|
+
s(l(h), {
|
|
200
|
+
value: l(L),
|
|
201
|
+
"onUpdate:value": i[2] || (i[2] = (e) => k(L) ? L.value = e : null),
|
|
202
|
+
"aria-label": l(t)("config.security.totp.enabled")
|
|
203
|
+
}, null, 8, ["value", "aria-label"])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["keys"]),
|
|
207
|
+
s(p, {
|
|
208
|
+
label: l(t)("config.security.totp.requireForSuperAdmin"),
|
|
209
|
+
keys: [u("totp.requireForSuperAdmin")],
|
|
210
|
+
disabled: !l(L),
|
|
211
|
+
sub: ""
|
|
212
|
+
}, {
|
|
213
|
+
default: n(() => [
|
|
214
|
+
s(l(h), {
|
|
215
|
+
value: l(F),
|
|
216
|
+
"onUpdate:value": i[3] || (i[3] = (e) => k(F) ? F.value = e : null),
|
|
217
|
+
"aria-label": l(t)("config.security.totp.requireForSuperAdmin")
|
|
218
|
+
}, null, 8, ["value", "aria-label"])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["label", "keys", "disabled"]),
|
|
222
|
+
s(p, {
|
|
223
|
+
keys: [u("mfa.enabled")]
|
|
224
|
+
}, {
|
|
225
|
+
label: n(() => [
|
|
226
|
+
$(c(l(t)("config.security.mfa.enabled")) + " ", 1),
|
|
227
|
+
s(l(Y), { style: { maxWidth: "320px" } }, {
|
|
228
|
+
trigger: n(() => [
|
|
229
|
+
o("button", {
|
|
230
|
+
type: "button",
|
|
231
|
+
class: "tip",
|
|
232
|
+
"aria-label": l(t)("config.security.sms.hint")
|
|
233
|
+
}, [
|
|
234
|
+
s(T, {
|
|
235
|
+
icon: "ph:question",
|
|
236
|
+
size: 12
|
|
237
|
+
})
|
|
238
|
+
], 8, we)
|
|
239
|
+
]),
|
|
240
|
+
default: n(() => [
|
|
241
|
+
$(" " + c(l(t)("config.security.sms.hint")), 1)
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
})
|
|
245
|
+
]),
|
|
246
|
+
default: n(() => [
|
|
247
|
+
s(l(h), {
|
|
248
|
+
value: l(q),
|
|
249
|
+
"onUpdate:value": i[4] || (i[4] = (e) => k(q) ? q.value = e : null),
|
|
250
|
+
"aria-label": l(t)("config.security.mfa.enabled")
|
|
251
|
+
}, null, 8, ["value", "aria-label"])
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}, 8, ["keys"])
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["title"]),
|
|
258
|
+
s(z, {
|
|
259
|
+
title: l(t)("config.security.groupSession")
|
|
260
|
+
}, {
|
|
261
|
+
default: n(() => [
|
|
262
|
+
(r(!0), m(f, null, g([l(X), l(ee)], (e) => (r(), S(p, {
|
|
263
|
+
key: e.key,
|
|
264
|
+
label: e.label,
|
|
265
|
+
hint: `= ${ae(e.model.value)}`,
|
|
266
|
+
keys: [e.key]
|
|
267
|
+
}, {
|
|
268
|
+
default: n(() => [
|
|
269
|
+
s(l(w), {
|
|
270
|
+
value: e.model.value,
|
|
271
|
+
"onUpdate:value": (d) => e.model.value = d,
|
|
272
|
+
class: "num",
|
|
273
|
+
size: "small",
|
|
274
|
+
min: e.min,
|
|
275
|
+
"show-button": !1,
|
|
276
|
+
"input-props": { "aria-label": e.label }
|
|
277
|
+
}, null, 8, ["value", "onUpdate:value", "min", "input-props"]),
|
|
278
|
+
o("span", Ce, c(e.unit), 1)
|
|
279
|
+
]),
|
|
280
|
+
_: 2
|
|
281
|
+
}, 1032, ["label", "hint", "keys"]))), 128))
|
|
282
|
+
]),
|
|
283
|
+
_: 1
|
|
284
|
+
}, 8, ["title"])
|
|
285
|
+
]),
|
|
286
|
+
o("div", Le, [
|
|
287
|
+
s(z, {
|
|
288
|
+
title: l(t)("config.security.password.title")
|
|
289
|
+
}, {
|
|
290
|
+
default: n(() => [
|
|
291
|
+
s(p, {
|
|
292
|
+
label: l(b).label,
|
|
293
|
+
keys: [l(b).key]
|
|
294
|
+
}, {
|
|
295
|
+
default: n(() => [
|
|
296
|
+
s(l(w), {
|
|
297
|
+
value: l(b).model.value,
|
|
298
|
+
"onUpdate:value": i[5] || (i[5] = (e) => l(b).model.value = e),
|
|
299
|
+
class: "num",
|
|
300
|
+
size: "small",
|
|
301
|
+
min: l(b).min,
|
|
302
|
+
"show-button": !1,
|
|
303
|
+
"input-props": { "aria-label": l(b).label }
|
|
304
|
+
}, null, 8, ["value", "min", "input-props"]),
|
|
305
|
+
o("span", Ue, c(l(b).unit), 1)
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
}, 8, ["label", "keys"]),
|
|
309
|
+
s(p, {
|
|
310
|
+
label: l(t)("config.security.password.mustContain"),
|
|
311
|
+
keys: l(x).map((e) => e.key)
|
|
312
|
+
}, {
|
|
313
|
+
default: n(() => [
|
|
314
|
+
o("span", Se, [
|
|
315
|
+
(r(!0), m(f, null, g(l(x), (e) => (r(), m("button", {
|
|
316
|
+
key: e.key,
|
|
317
|
+
type: "button",
|
|
318
|
+
class: "chip",
|
|
319
|
+
"aria-pressed": e.model.value,
|
|
320
|
+
"aria-label": e.name,
|
|
321
|
+
title: e.name,
|
|
322
|
+
onClick: (d) => e.model.value = !e.model.value
|
|
323
|
+
}, c(e.label), 9, $e))), 128))
|
|
324
|
+
])
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
}, 8, ["label", "keys"]),
|
|
328
|
+
(r(!0), m(f, null, g([l(V), l(le)], (e) => (r(), S(p, {
|
|
329
|
+
key: e.key,
|
|
330
|
+
label: e.label,
|
|
331
|
+
hint: l(t)(e === l(V) ? "config.security.zeroNever" : "config.security.zeroOff"),
|
|
332
|
+
keys: [e.key]
|
|
333
|
+
}, {
|
|
334
|
+
default: n(() => [
|
|
335
|
+
s(l(w), {
|
|
336
|
+
value: e.model.value,
|
|
337
|
+
"onUpdate:value": (d) => e.model.value = d,
|
|
338
|
+
class: "num",
|
|
339
|
+
size: "small",
|
|
340
|
+
min: e.min,
|
|
341
|
+
"show-button": !1,
|
|
342
|
+
"input-props": { "aria-label": e.label }
|
|
343
|
+
}, null, 8, ["value", "onUpdate:value", "min", "input-props"]),
|
|
344
|
+
o("span", ze, c(e.unit), 1)
|
|
345
|
+
]),
|
|
346
|
+
_: 2
|
|
347
|
+
}, 1032, ["label", "hint", "keys"]))), 128)),
|
|
348
|
+
s(p, {
|
|
349
|
+
label: l(t)("config.security.password.forceChangeOnFirstLogin"),
|
|
350
|
+
hint: l(t)("config.security.password.forceChangeOnFirstLoginHint"),
|
|
351
|
+
keys: [l(P)]
|
|
352
|
+
}, {
|
|
353
|
+
default: n(() => [
|
|
354
|
+
s(l(h), {
|
|
355
|
+
value: l(N),
|
|
356
|
+
"onUpdate:value": i[6] || (i[6] = (e) => k(N) ? N.value = e : null),
|
|
357
|
+
"aria-label": l(t)("config.security.password.forceChangeOnFirstLogin")
|
|
358
|
+
}, null, 8, ["value", "aria-label"])
|
|
359
|
+
]),
|
|
360
|
+
_: 1
|
|
361
|
+
}, 8, ["label", "hint", "keys"])
|
|
362
|
+
]),
|
|
363
|
+
_: 1
|
|
364
|
+
}, 8, ["title"]),
|
|
365
|
+
s(z, {
|
|
366
|
+
title: l(t)("config.security.groupRate")
|
|
367
|
+
}, {
|
|
368
|
+
default: n(() => [
|
|
369
|
+
s(p, {
|
|
370
|
+
label: l(t)("config.security.rateLimit.enabled"),
|
|
371
|
+
keys: [u("rateLimit.enabled")]
|
|
372
|
+
}, {
|
|
373
|
+
default: n(() => [
|
|
374
|
+
s(l(h), {
|
|
375
|
+
value: l(U),
|
|
376
|
+
"onUpdate:value": i[7] || (i[7] = (e) => k(U) ? U.value = e : null),
|
|
377
|
+
"aria-label": l(t)("config.security.rateLimit.enabled")
|
|
378
|
+
}, null, 8, ["value", "aria-label"])
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
}, 8, ["label", "keys"]),
|
|
382
|
+
(r(), m(f, null, g(te, (e) => s(p, {
|
|
383
|
+
key: e.key,
|
|
384
|
+
label: e.label,
|
|
385
|
+
keys: [e.key],
|
|
386
|
+
disabled: !l(U),
|
|
387
|
+
sub: ""
|
|
388
|
+
}, {
|
|
389
|
+
default: n(() => [
|
|
390
|
+
s(l(w), {
|
|
391
|
+
value: e.model.value,
|
|
392
|
+
"onUpdate:value": (d) => e.model.value = d,
|
|
393
|
+
class: "num",
|
|
394
|
+
size: "small",
|
|
395
|
+
min: e.min,
|
|
396
|
+
"show-button": !1,
|
|
397
|
+
"input-props": { "aria-label": e.label }
|
|
398
|
+
}, null, 8, ["value", "onUpdate:value", "min", "input-props"]),
|
|
399
|
+
o("span", Fe, c(e.unit), 1)
|
|
400
|
+
]),
|
|
401
|
+
_: 2
|
|
402
|
+
}, 1032, ["label", "keys", "disabled"])), 64))
|
|
403
|
+
]),
|
|
404
|
+
_: 1
|
|
405
|
+
}, 8, ["title"])
|
|
406
|
+
])
|
|
407
|
+
])
|
|
408
|
+
]),
|
|
409
|
+
_: 1
|
|
410
|
+
}, 8, ["title", "desc", "preview-title"]));
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
export {
|
|
414
|
+
Ge as default
|
|
415
|
+
};
|
|
416
|
+
//# sourceMappingURL=SecuritySection2.vue.js.map
|