178 lines
13 KiB
JavaScript
178 lines
13 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/Login.C_oFk9qn.js","js/element-plus.CkEW9frc.js","js/.pnpm.BW3P1y8f.js","css/.pnpm.DodhYl8G.css","css/element-plus.B-meKFhT.css","js/index.CMd5bD1r.js","js/codemirror.CvJAcn2d.js","css/codemirror.DCcVQTiv.css","css/index.B0LRe0AS.css","js/_plugin-vue_export-helper.1tPrXgE0.js","css/Login.DhaQY825.css","js/Register.OcLvSvcl.js","js/ResetPwd.D74e_hLH.js"])))=>i.map(i=>d[i]);
|
||
import { c as useConfigStore, _ as __vitePreload } from "./index.CMd5bD1r.js";
|
||
import { l as ElTooltip, R as ElImage, r as ElText, i as ElIcon } from "./element-plus.CkEW9frc.js";
|
||
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_setup_true_lang.BmYCVfK2.js";
|
||
import { J as defineComponent, e9 as useI18n, t as onMounted, x as onBeforeUnmount, _ as createElementBlock, a1 as createBaseVNode, $ as createVNode, a0 as withCtx, o as unref, ef as createStaticVNode, aa as toDisplayString, ac as Transition, a2 as normalizeStyle, j as computed, aO as resolveComponent, S as openBlock, T as createBlock, a7 as resolveDynamicComponent, z as isRef, a9 as createTextVNode, r as ref, eg as defineAsyncComponent, ak as reactive } from "./.pnpm.BW3P1y8f.js";
|
||
import { C as CommonWrapper, _ as _sfc_main$1 } from "./index.vue_vue_type_script_setup_true_lang.BdXauzXx.js";
|
||
import { _ as _export_sfc } from "./_plugin-vue_export-helper.1tPrXgE0.js";
|
||
import "./codemirror.CvJAcn2d.js";
|
||
const _hoisted_1 = { class: "auth-view__toolbar" };
|
||
const _hoisted_2 = { class: "auth-view__wrapper" };
|
||
const _hoisted_3 = { class: "auth-panel" };
|
||
const _hoisted_4 = { class: "auth-panel__brand" };
|
||
const _hoisted_5 = { class: "auth-panel__logo-wrap" };
|
||
const _hoisted_6 = { class: "auth-panel__meta" };
|
||
const _hoisted_7 = { class: "auth-panel__title-row" };
|
||
const _hoisted_8 = { class: "auth-panel__title" };
|
||
const _hoisted_9 = { class: "auth-panel__version-row" };
|
||
const _hoisted_10 = { class: "auth-panel__version-pill" };
|
||
const _hoisted_11 = { class: "auth-panel__footer" };
|
||
const _hoisted_12 = ["href"];
|
||
const _hoisted_13 = ["href"];
|
||
const _hoisted_14 = ["href"];
|
||
const _hoisted_15 = ["href"];
|
||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||
__name: "index",
|
||
setup(__props) {
|
||
const configStore = useConfigStore();
|
||
const loginBackgroundUrl = computed(() => {
|
||
var _a, _b;
|
||
return ((_b = (_a = configStore.configData) == null ? void 0 : _a.sys_login_background) == null ? void 0 : _b.config_value) || new URL("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100%25'%20height='100%25'%20viewBox='0%200%201400%20800'%3e%3cdefs%3e%3cstyle%3e%20@media%20(prefers-color-scheme:%20dark)%20{%20%23bg-layer%20{%20fill:%20url(%23bgDark);%20}%20%23soft-glow%20{%20fill:%20url(%23glowDark);%20}%20.accent-arc%20{%20stroke:%20rgba(118,%20156,%20255,%200.35);%20}%20.accent-dot%20{%20fill:%20rgba(154,%20188,%20255,%200.45);%20}%20}%20%3c/style%3e%3clinearGradient%20id='bgLight'%20x1='0%25'%20y1='0%25'%20x2='100%25'%20y2='100%25'%3e%3cstop%20offset='0%25'%20stop-color='%23f3f7ff'%20/%3e%3cstop%20offset='60%25'%20stop-color='%23e3edff'%20/%3e%3cstop%20offset='100%25'%20stop-color='%23d6e7ff'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='bgDark'%20x1='0%25'%20y1='0%25'%20x2='100%25'%20y2='100%25'%3e%3cstop%20offset='0%25'%20stop-color='%230b1324'%20/%3e%3cstop%20offset='60%25'%20stop-color='%23162135'%20/%3e%3cstop%20offset='100%25'%20stop-color='%231e2c44'%20/%3e%3c/linearGradient%3e%3cradialGradient%20id='glowLight'%20cx='20%25'%20cy='15%25'%20r='60%25'%3e%3cstop%20offset='0%25'%20stop-color='rgba(64,128,255,0.35)'%20/%3e%3cstop%20offset='40%25'%20stop-color='rgba(64,128,255,0.18)'%20/%3e%3cstop%20offset='100%25'%20stop-color='rgba(64,128,255,0)'%20/%3e%3c/radialGradient%3e%3cradialGradient%20id='glowDark'%20cx='20%25'%20cy='15%25'%20r='60%25'%3e%3cstop%20offset='0%25'%20stop-color='rgba(98,142,255,0.4)'%20/%3e%3cstop%20offset='50%25'%20stop-color='rgba(98,142,255,0.18)'%20/%3e%3cstop%20offset='100%25'%20stop-color='rgba(98,142,255,0)'%20/%3e%3c/radialGradient%3e%3cradialGradient%20id='glowSecondary'%20cx='80%25'%20cy='70%25'%20r='55%25'%3e%3cstop%20offset='0%25'%20stop-color='rgba(22,93,255,0.3)'%20/%3e%3cstop%20offset='50%25'%20stop-color='rgba(22,93,255,0.12)'%20/%3e%3cstop%20offset='100%25'%20stop-color='rgba(22,93,255,0)'%20/%3e%3c/radialGradient%3e%3clinearGradient%20id='meshLight'%20x1='0%25'%20y1='0%25'%20x2='100%25'%20y2='100%25'%3e%3cstop%20offset='0%25'%20stop-color='rgba(255,255,255,0.6)'%20/%3e%3cstop%20offset='35%25'%20stop-color='rgba(255,255,255,0.2)'%20/%3e%3cstop%20offset='100%25'%20stop-color='rgba(255,255,255,0)'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3crect%20id='bg-layer'%20width='100%25'%20height='100%25'%20fill='url(%23bgLight)'%20/%3e%3crect%20id='soft-glow'%20width='100%25'%20height='100%25'%20fill='url(%23glowLight)'%20/%3e%3crect%20width='100%25'%20height='100%25'%20fill='url(%23glowSecondary)'%20/%3e%3crect%20width='100%25'%20height='100%25'%20fill='url(%23meshLight)'%20/%3e%3c!--%20柔和块面光影,替代明显线条%20--%3e%3cg%20opacity='0.45'%3e%3crect%20x='-40'%20y='520'%20width='520'%20height='220'%20rx='180'%20fill='rgba(255,255,255,0.25)'%20/%3e%3crect%20x='760'%20y='90'%20width='520'%20height='210'%20rx='180'%20fill='rgba(255,255,255,0.22)'%20/%3e%3crect%20x='420'%20y='620'%20width='560'%20height='190'%20rx='180'%20fill='rgba(255,255,255,0.18)'%20/%3e%3c/g%3e%3c!--%20去掉点状噪声,仅保留大区域柔光%20--%3e%3c/svg%3e", import.meta.url).href;
|
||
});
|
||
const t = useI18n().t;
|
||
const component = ref("login");
|
||
const formComponents = {
|
||
login: defineAsyncComponent(() => __vitePreload(() => import("./Login.C_oFk9qn.js"), true ? __vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]) : void 0)),
|
||
register: defineAsyncComponent(() => __vitePreload(() => import("./Register.OcLvSvcl.js"), true ? __vite__mapDeps([11,1,2,3,4,5,6,7,8]) : void 0)),
|
||
resetPwd: defineAsyncComponent(() => __vitePreload(() => import("./ResetPwd.D74e_hLH.js"), true ? __vite__mapDeps([12,1,2,3,4,5,6,7,8]) : void 0))
|
||
};
|
||
const loginPreset = reactive({
|
||
username: "",
|
||
password: ""
|
||
});
|
||
configStore.getConfig();
|
||
onMounted(() => {
|
||
});
|
||
onBeforeUnmount(() => {
|
||
});
|
||
return (_ctx, _cache) => {
|
||
var _a, _b, _c, _d, _e, _f, _g, _h;
|
||
const _component_el_tooltip = ElTooltip;
|
||
const _component_LangSelect = _sfc_main$2;
|
||
const _component_el_image = ElImage;
|
||
const _component_QuestionFilled = resolveComponent("QuestionFilled");
|
||
const _component_el_icon = ElIcon;
|
||
const _component_el_text = ElText;
|
||
return openBlock(), createElementBlock("div", {
|
||
class: "auth-view",
|
||
style: normalizeStyle({ "--login-background-url": `url(${unref(loginBackgroundUrl)})` })
|
||
}, [
|
||
createBaseVNode("div", _hoisted_1, [
|
||
createVNode(_component_el_tooltip, {
|
||
content: unref(t)("login.themeToggle"),
|
||
placement: "bottom"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(CommonWrapper, null, {
|
||
default: withCtx(() => [
|
||
createVNode(_sfc_main$1)
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["content"]),
|
||
createVNode(_component_el_tooltip, {
|
||
content: unref(t)("login.languageToggle"),
|
||
placement: "bottom"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(CommonWrapper, null, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_LangSelect, { size: "text-20px" })
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["content"])
|
||
]),
|
||
createBaseVNode("div", _hoisted_2, [
|
||
_cache[4] || (_cache[4] = createStaticVNode('<section class="auth-feature" data-v-6f409234><div class="auth-feature__badge" data-v-6f409234><span class="auth-feature__dot" data-v-6f409234></span> Enterprise Ready </div><h1 class="auth-feature__title" data-v-6f409234>壹梵-后台管理系统</h1><p class="auth-feature__subtitle" data-v-6f409234> 提供安全、高效、可扩展的管理解决方案,助力企业数字化转型与业务增长。 </p><ul class="auth-feature__highlights" data-v-6f409234><li data-v-6f409234><span data-v-6f409234>⦿</span> 统一身份认证与权限管理 </li><li data-v-6f409234><span data-v-6f409234>⦿</span> 数据安全与操作审计 </li><li data-v-6f409234><span data-v-6f409234>⦿</span> 灵活扩展与高可用架构 </li></ul></section>', 1)),
|
||
createBaseVNode("section", _hoisted_3, [
|
||
createBaseVNode("div", _hoisted_4, [
|
||
createBaseVNode("div", _hoisted_5, [
|
||
createVNode(_component_el_image, {
|
||
src: ((_b = (_a = unref(configStore).configData) == null ? void 0 : _a.sys_web_logo) == null ? void 0 : _b.config_value) || "",
|
||
class: "auth-panel__logo"
|
||
}, null, 8, ["src"])
|
||
]),
|
||
createBaseVNode("div", _hoisted_6, [
|
||
createBaseVNode("div", _hoisted_7, [
|
||
createBaseVNode("span", _hoisted_8, toDisplayString(((_d = (_c = unref(configStore).configData) == null ? void 0 : _c.sys_web_title) == null ? void 0 : _d.config_value) || ""), 1),
|
||
createVNode(_component_el_tooltip, {
|
||
content: ((_f = (_e = unref(configStore).configData) == null ? void 0 : _e.sys_web_description) == null ? void 0 : _f.config_value) || "",
|
||
placement: "bottom"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_el_icon, { class: "cursor-help" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_QuestionFilled)
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["content"])
|
||
]),
|
||
createBaseVNode("div", _hoisted_9, [
|
||
_cache[3] || (_cache[3] = createBaseVNode("span", { class: "auth-panel__version-label" }, "Version", -1)),
|
||
createBaseVNode("span", _hoisted_10, " v" + toDisplayString(((_h = (_g = unref(configStore).configData) == null ? void 0 : _g.sys_web_version) == null ? void 0 : _h.config_value) || ""), 1)
|
||
])
|
||
])
|
||
]),
|
||
createVNode(Transition, {
|
||
name: "fade-slide",
|
||
mode: "out-in"
|
||
}, {
|
||
default: withCtx(() => [
|
||
(openBlock(), createBlock(resolveDynamicComponent(formComponents[unref(component)]), {
|
||
modelValue: unref(component),
|
||
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(component) ? component.value = $event : null),
|
||
"preset-username": unref(loginPreset).username,
|
||
"onUpdate:presetUsername": _cache[1] || (_cache[1] = ($event) => unref(loginPreset).username = $event),
|
||
"preset-password": unref(loginPreset).password,
|
||
"onUpdate:presetPassword": _cache[2] || (_cache[2] = ($event) => unref(loginPreset).password = $event),
|
||
class: "auth-panel__form"
|
||
}, null, 40, ["modelValue", "preset-username", "preset-password"]))
|
||
]),
|
||
_: 1
|
||
}),
|
||
createBaseVNode("footer", _hoisted_11, [
|
||
createVNode(_component_el_text, { size: "small" }, {
|
||
default: withCtx(() => {
|
||
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i, _j, _k, _l;
|
||
return [
|
||
createBaseVNode("a", {
|
||
href: ((_b2 = (_a2 = unref(configStore).configData) == null ? void 0 : _a2.sys_git_code) == null ? void 0 : _b2.config_value) || "",
|
||
target: "_blank"
|
||
}, toDisplayString(((_d2 = (_c2 = unref(configStore).configData) == null ? void 0 : _c2.sys_web_copyright) == null ? void 0 : _d2.config_value) || "") + " | ", 9, _hoisted_12),
|
||
createBaseVNode("a", {
|
||
href: ((_f2 = (_e2 = unref(configStore).configData) == null ? void 0 : _e2.sys_help_doc) == null ? void 0 : _f2.config_value) || "",
|
||
target: "_blank"
|
||
}, " 帮助 | ", 8, _hoisted_13),
|
||
createBaseVNode("a", {
|
||
href: ((_h2 = (_g2 = unref(configStore).configData) == null ? void 0 : _g2.sys_web_privacy) == null ? void 0 : _h2.config_value) || "",
|
||
target: "_blank"
|
||
}, " 隐私 | ", 8, _hoisted_14),
|
||
createBaseVNode("a", {
|
||
href: ((_j = (_i = unref(configStore).configData) == null ? void 0 : _i.sys_web_clause) == null ? void 0 : _j.config_value) || "",
|
||
target: "_blank"
|
||
}, " 条款 ", 8, _hoisted_15),
|
||
createTextVNode(" " + toDisplayString(((_l = (_k = unref(configStore).configData) == null ? void 0 : _k.sys_keep_record) == null ? void 0 : _l.config_value) || ""), 1)
|
||
];
|
||
}),
|
||
_: 1
|
||
})
|
||
])
|
||
])
|
||
])
|
||
], 4);
|
||
};
|
||
}
|
||
});
|
||
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6f409234"]]);
|
||
export {
|
||
index as default
|
||
};
|