auto-vue-basic 0.0.50 → 0.0.51
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/dist/auto-vue-basic.es.js +4 -4
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/index.css +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -8
@@ -1364,7 +1364,7 @@ const al = /* @__PURE__ */ q({
|
|
1364
1364
|
row: o
|
1365
1365
|
}) => {
|
1366
1366
|
var r;
|
1367
|
-
return l(K, null, [(r = o.menu) == null ? void 0 : r.
|
1367
|
+
return l(K, null, [(r = o.menu) == null ? void 0 : r.translate]);
|
1368
1368
|
}
|
1369
1369
|
},
|
1370
1370
|
{
|
@@ -1717,7 +1717,7 @@ const al = /* @__PURE__ */ q({
|
|
1717
1717
|
for (const [g, V] of v)
|
1718
1718
|
h[g] = V;
|
1719
1719
|
return h;
|
1720
|
-
}, dl = /* @__PURE__ */ Ue(rl, [["__scopeId", "data-v-
|
1720
|
+
}, dl = /* @__PURE__ */ Ue(rl, [["__scopeId", "data-v-487a9d12"]]), sl = /* @__PURE__ */ q({
|
1721
1721
|
__name: "RoleFormModal",
|
1722
1722
|
emits: ["refresh"],
|
1723
1723
|
setup(R, { expose: v, emit: h }) {
|
@@ -2952,7 +2952,7 @@ const al = /* @__PURE__ */ q({
|
|
2952
2952
|
ye.gen({
|
2953
2953
|
id: h.ssl.id
|
2954
2954
|
}).then((_) => {
|
2955
|
-
console.
|
2955
|
+
console.warn("Res:", _);
|
2956
2956
|
});
|
2957
2957
|
}
|
2958
2958
|
function u() {
|
@@ -3169,7 +3169,7 @@ const al = /* @__PURE__ */ q({
|
|
3169
3169
|
});
|
3170
3170
|
};
|
3171
3171
|
}
|
3172
|
-
}), kl = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-
|
3172
|
+
}), kl = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-c1583c5b"]]), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3173
3173
|
__proto__: null,
|
3174
3174
|
default: kl
|
3175
3175
|
}, Symbol.toStringTag, { value: "Module" })), ke = {
|
@@ -1 +1 @@
|
|
1
|
-
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("auto-vue-manual")):typeof define=="function"&&define.amd?define(["exports","vue","auto-vue-manual"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L.AutoVueBasic={},L.Vue,L["auto-vue-manual"]))})(this,function(L,e,l){"use strict";const P=l.createAutoApi("admin",{},"key"),q=l.createAutoApi("role",{},"key"),le=e.defineComponent({__name:"AdminFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={key:"",username:"",password:"",phone:"",email:"",language:"zh-CN",remark:"",roles:[]},{modal:f,title:s,form:d,formData:p,requesting:t,executing:g,open:a,modify:c,submit:i,closed:w}=l.useForm(b,h,P),k={username:[{required:!0,message:l.Translate("base.placeholder.input base.username"),trigger:"blur"}],phone:[{required:!0,validator:l.RulesUtils.phoneRule,message:l.Translate("base.placeholder.input base.phone"),trigger:"blur"}],password:[{required:!1,message:l.Translate("base.placeholder.input base.password"),trigger:"blur"}],email:[{required:!0,message:l.Translate("base.placeholder.input base.email"),trigger:"blur"}],language:[{required:!0,message:l.Translate("base.placeholder.select base.language"),trigger:"change"}],roles:[{required:!0,type:"Array",message:l.Translate("base.placeholder.select menu.Role"),trigger:"change"}]},x=e.ref([]),r=async()=>{const n=await q.list();x.value=Array.isArray(n==null?void 0:n.data)?n.data:[]};return e.onBeforeMount(async()=>{await r()}),T({open:a,modify:c}),(n,o)=>{const C=e.resolveComponent("el-input"),m=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),U=e.resolveComponent("el-checkbox"),y=e.resolveComponent("el-checkbox-group"),A=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(f),"onUpdate:modelValue":o[7]||(o[7]=B=>e.isRef(f)?f.value=B:null),title:e.unref(s)(),width:"600px",executing:e.unref(g),onClosed:e.unref(w),onSubmit:e.unref(i)},{default:e.withCtx(()=>[e.createVNode(A,{ref_key:"form",ref:d,model:e.unref(p),"label-width":"auto",rules:k,disabled:e.unref(t)||e.unref(g)},{default:e.withCtx(()=>[e.createVNode(m,{label:e.unref(l.Translate)("base.username"),prop:"username"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).username,"onUpdate:modelValue":o[0]||(o[0]=B=>e.unref(p).username=B),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.phone"),prop:"phone"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).phone,"onUpdate:modelValue":o[1]||(o[1]=B=>e.unref(p).phone=B),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.password"),prop:"password",required:!e.unref(p).key},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).password,"onUpdate:modelValue":o[2]||(o[2]=B=>e.unref(p).password=B),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label","required"]),e.createVNode(m,{label:e.unref(l.Translate)("base.email"),prop:"email"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).email,"onUpdate:modelValue":o[3]||(o[3]=B=>e.unref(p).email=B),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.language"),prop:"language"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(p).language,"onUpdate:modelValue":o[4]||(o[4]=B=>e.unref(p).language=B)},{default:e.withCtx(()=>[e.createVNode(R,{value:"zh-CN"},{default:e.withCtx(()=>o[8]||(o[8]=[e.createTextVNode("zh-CN")])),_:1,__:[8]}),e.createVNode(R,{value:"en-US"},{default:e.withCtx(()=>o[9]||(o[9]=[e.createTextVNode("en-US")])),_:1,__:[9]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("menu.Role"),prop:"roles"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(p).roles,"onUpdate:modelValue":o[5]||(o[5]=B=>e.unref(p).roles=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,B=>(e.openBlock(),e.createBlock(U,{key:B.key,value:B.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.translate),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).remark,"onUpdate:modelValue":o[6]||(o[6]=B=>e.unref(p).remark=B),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),z=e.defineComponent({__name:"index",setup(N){const T={keyword:""},_=[{label:l.Translate("base.avatar"),prop:"avatar",width:60,render:({row:c})=>e.createVNode(l.BasicAvatar,{src:c.avatar},null)},{label:l.Translate("base.user"),width:200,align:"left",render:({row:c})=>e.createVNode(e.resolveComponent("el-space"),{direction:"vertical",alignment:"start"},{default:()=>[e.createVNode("div",null,[c.username]),e.createVNode("div",null,[c.email])]})},{label:l.Translate("base.phone"),prop:"phone",width:140},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.login_at"),prop:"login_at",width:160},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:c})=>e.createVNode(l.ModifyButton,{onModify:()=>a({key:c.key})},null)}],{requesting:b}=l.useLoading(P),{tableRef:h,formModalRef:f,keyword:s,search:d,reset:p,refresh:t,openFormModal:g,editFormModal:a}=l.useCrudPage(T);return(c,i)=>{const w=e.resolveComponent("el-input"),k=e.resolveComponent("el-space"),x=e.resolveComponent("el-page-header"),r=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(r,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(x,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(p)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(g)},null,8,["onOpen"])]),content:e.withCtx(()=>[e.createVNode(k,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(w,{class:"basic-search-input",modelValue:e.unref(s).keyword,"onUpdate:modelValue":i[0]||(i[0]=n=>e.unref(s).keyword=n),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:i[1]||(i[1]=e.withKeys(n=>e.unref(d)(),["enter"])),onClear:i[2]||(i[2]=n=>e.unref(d)())},null,8,["modelValue","placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:i[3]||(i[3]=n=>e.unref(d)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(P).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(s),autoSearch:""},null,8,["url","search-param"]),e.createVNode(le,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(t)},null,8,["onRefresh"])]),_:1})}}}),re=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),$=l.createAutoApi("translation",{},"key"),te=e.defineComponent({__name:"LangFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,key:"",module:"",language:"",result:"",remark:""},f={module:[{required:!0,message:l.Translate("language.placeholder.module"),trigger:"blur"}],key:[{required:!0,message:l.Translate("language.placeholder.key"),trigger:"blur"}],language:[{required:!0,message:l.Translate("language.placeholder.language"),trigger:"change"}],result:[{required:!0,message:l.Translate("language.placeholder.result"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,$);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-input"),o=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-radio-button"),m=e.resolveComponent("el-radio-group"),R=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[5]||(r[5]=V=>e.isRef(s)?s.value=V:null),title:e.unref(d)(),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(R,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("language.module"),prop:"module",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).module,"onUpdate:modelValue":r[0]||(r[0]=V=>e.unref(t).module=V),placeholder:e.unref(l.Translate)("language.placeholder.module")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("language.key"),prop:"key",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).key,"onUpdate:modelValue":r[1]||(r[1]=V=>e.unref(t).key=V),placeholder:e.unref(l.Translate)("language.placeholder.key")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("language.language"),prop:"language",required:""},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:e.unref(t).language,"onUpdate:modelValue":r[2]||(r[2]=V=>e.unref(t).language=V)},{default:e.withCtx(()=>[e.createVNode(C,{label:"zh-CN"},{default:e.withCtx(()=>r[6]||(r[6]=[e.createTextVNode("zh-CN")])),_:1,__:[6]}),e.createVNode(C,{label:"en-US"},{default:e.withCtx(()=>r[7]||(r[7]=[e.createTextVNode("en-US")])),_:1,__:[7]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("language.result"),prop:"result",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).result,"onUpdate:modelValue":r[3]||(r[3]=V=>e.unref(t).result=V),placeholder:e.unref(l.Translate)("language.placeholder.result")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[4]||(r[4]=V=>e.unref(t).remark=V),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),j=e.defineComponent({__name:"index",setup(N){const T={keyword:"",status:0},_=[{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.language"),prop:"language",width:100},{label:l.Translate("base.key"),prop:"key",width:200},{label:l.Translate("base.result"),prop:"result",width:200},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:$.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:c})=>e.createVNode(l.ModifyButton,{onModify:()=>a({id:c.id})},null)}],{requesting:b}=l.useLoading($),{tableRef:h,formModalRef:f,keyword:s,search:d,reset:p,refresh:t,openFormModal:g,editFormModal:a}=l.useCrudPage(T);return(c,i)=>{const w=e.resolveComponent("el-input"),k=e.resolveComponent("el-radio-button"),x=e.resolveComponent("el-radio-group"),r=e.resolveComponent("el-space"),n=e.resolveComponent("el-page-header"),o=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(o,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(n,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(p)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(g)},null,8,["onOpen"])]),content:e.withCtx(()=>[e.createVNode(r,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(w,{class:"basic-search-input",modelValue:e.unref(s).keyword,"onUpdate:modelValue":i[0]||(i[0]=C=>e.unref(s).keyword=C),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:i[1]||(i[1]=e.withKeys(C=>e.unref(d)(),["enter"])),onClear:i[2]||(i[2]=C=>e.unref(d)())},null,8,["modelValue","placeholder"]),e.createVNode(x,{modelValue:e.unref(s).status,"onUpdate:modelValue":i[3]||(i[3]=C=>e.unref(s).status=C),onChange:i[4]||(i[4]=C=>e.unref(d)())},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],C=>e.createVNode(k,{key:C,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${C}`),value:C},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:i[5]||(i[5]=C=>e.unref(d)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref($).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(s),autoSearch:""},null,8,["url","search-param"]),e.createVNode(te,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(t)},null,8,["onRefresh"])]),_:1})}}}),ne=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),I={tops:"tops",rules:"rules"},S=l.AutoApiUtils.createAutoApi("menu",I,"id",Object.keys(I),[],["TOP_MENU_LIST","MENU_LIST"]),K=l.createAutoApi("rule",{},"key");/*! Element Plus Icons Vue v2.3.1 */var oe=e.defineComponent({name:"Key",__name:"key",setup(N){return(T,_)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),ae=oe;const de=e.defineComponent({__name:"TopMenuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{emit:T}){const _=T,b=N,{requesting:h}=l.useLoading(S),{value:f,options:s,change:d,refresh:p,filterOptions:t}=l.useSelect(e.toRef(b,"modelValue"),_,{key:"TOP_MENU_LIST",api:S,url:S.urls.tops,isArray:!0});return(g,a)=>{const c=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(c,{class:"w-full",modelValue:e.unref(f),"onUpdate:modelValue":a[1]||(a[1]=i=>e.isRef(f)?f.value=i:null),options:e.unref(s),multiple:N.multiple,disabled:e.unref(h),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(t),onChange:e.unref(d)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(h),onRefresh:a[0]||(a[0]=i=>e.unref(p)(!0))},null,8,["loading"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),se=e.defineComponent({__name:"MenuFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,menu_id:0,module:"",sort:0,name:"",en_name:"",url:"",component:"",icon:"",remark:"",meta:{active:"",icon:"",title:"",affix:!1,full:!1,hide:!1,keep_alive:!1,link:!1}},f={sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],module:[{required:!0,message:l.Translate("base.placeholder.input menu.module"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],url:[{required:!0,message:l.Translate("base.placeholder.input base.url"),trigger:"blur"}],component:[{required:!0,message:l.Translate("base.placeholder.input menu.component"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,S);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-col"),C=e.resolveComponent("el-input-number"),m=e.resolveComponent("el-row"),R=e.resolveComponent("el-input"),V=e.resolveComponent("el-switch"),U=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[17]||(r[17]=y=>e.isRef(s)?s.value=y:null),title:e.unref(d)(),width:"1000px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(U,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(m,{gutter:20},{default:e.withCtx(()=>[e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(m,{gutter:10},{default:e.withCtx(()=>[e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("base.parent"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(t).menu_id,"onUpdate:modelValue":r[0]||(r[0]=y=>e.unref(t).menu_id=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(C,{class:"w-full",modelValue:e.unref(t).sort,"onUpdate:modelValue":r[1]||(r[1]=y=>e.unref(t).sort=y),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(n,{label:e.unref(l.Translate)("menu.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).module,"onUpdate:modelValue":r[2]||(r[2]=y=>e.unref(t).module=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[3]||(r[3]=y=>e.unref(t).name=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).en_name,"onUpdate:modelValue":r[4]||(r[4]=y=>e.unref(t).en_name=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("menu.component"),prop:"component"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).component,"onUpdate:modelValue":r[5]||(r[5]=y=>e.unref(t).component=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.url"),prop:"url"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).url,"onUpdate:modelValue":r[6]||(r[6]=y=>e.unref(t).url=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[7]||(r[7]=y=>e.unref(t).remark=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("base.icon"),prop:"icon"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).icon,"onUpdate:modelValue":r[8]||(r[8]=y=>e.unref(t).icon=y),placeholder:e.unref(l.Translate)("base.placeholder.input"),onInput:r[9]||(r[9]=y=>{e.unref(t).meta.icon=y})},{prepend:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass("iconfont "+e.unref(t).icon)},null,2)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.title"),prop:"meta.title"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).meta.title,"onUpdate:modelValue":r[10]||(r[10]=y=>e.unref(t).meta.title=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("menu.active"),prop:"meta.active"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).meta.active,"onUpdate:modelValue":r[11]||(r[11]=y=>e.unref(t).meta.active=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,null,{default:e.withCtx(()=>[e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.link"),prop:"meta.link"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.link,"onUpdate:modelValue":r[12]||(r[12]=y=>e.unref(t).meta.link=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.keep_alive"),prop:"meta.keep_alive"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.keep_alive,"onUpdate:modelValue":r[13]||(r[13]=y=>e.unref(t).meta.keep_alive=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.hide"),prop:"meta.hide"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.hide,"onUpdate:modelValue":r[14]||(r[14]=y=>e.unref(t).meta.hide=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.full"),prop:"meta.full"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.full,"onUpdate:modelValue":r[15]||(r[15]=y=>e.unref(t).meta.full=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.affix"),prop:"meta.affix"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.affix,"onUpdate:modelValue":r[16]||(r[16]=y=>e.unref(t).meta.affix=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),ie=e.defineComponent({__name:"MenuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{emit:T}){const _=T,b=N,{requesting:h}=l.useLoading(S),{value:f,options:s,change:d,refresh:p,filterOptions:t}=l.useSelect(e.toRef(b,"modelValue"),_,{key:"MENU_LIST",api:S,isArray:!0});return(g,a)=>{const c=e.resolveComponent("el-space"),i=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(i,{class:"w-full",modelValue:e.unref(f),"onUpdate:modelValue":a[1]||(a[1]=w=>e.isRef(f)?f.value=w:null),options:e.unref(s),multiple:N.multiple,disabled:e.unref(h),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(t),onChange:e.unref(d)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(h),onRefresh:a[0]||(a[0]=w=>e.unref(p)(!0))},null,8,["loading"])]),default:e.withCtx(({item:w})=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(`icon iconfont ${w.icon}`)},null,2),e.createElementVNode("span",null,e.toDisplayString(w.translate),1)]),_:2},1024)]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),pe=e.defineComponent({__name:"MenuRuleFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={key:"",menu_id:0,sort:0,name:"",en_name:"",urls:"",remark:""},f={menu_id:[{required:!0,type:"number",message:l.Translate("base.placeholder.select menu.Menu"),trigger:"blur"}],sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],urls:[{required:!0,message:l.Translate("base.placeholder.input menu.rules"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,K);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-input-number"),C=e.resolveComponent("el-input"),m=e.resolveComponent("el-col"),R=e.resolveComponent("el-row"),V=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[6]||(r[6]=U=>e.isRef(s)?s.value=U:null),title:e.unref(d)("menu.rules"),width:"1000px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(V,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(R,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:10},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.Menu"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(ie,{modelValue:e.unref(t).menu_id,"onUpdate:modelValue":r[0]||(r[0]=U=>e.unref(t).menu_id=U)},null,8,["modelValue"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(o,{class:"w-full",modelValue:e.unref(t).sort,"onUpdate:modelValue":r[1]||(r[1]=U=>e.unref(t).sort=U),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[2]||(r[2]=U=>e.unref(t).name=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(t).en_name,"onUpdate:modelValue":r[3]||(r[3]=U=>e.unref(t).en_name=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[4]||(r[4]=U=>e.unref(t).remark=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(m,{span:14},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.rules"),prop:"urls"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(t).urls,"onUpdate:modelValue":r[5]||(r[5]=U=>e.unref(t).urls=U),type:"textarea",rows:11,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}});function Y(N){return typeof N=="function"||Object.prototype.toString.call(N)==="[object Object]"&&!e.isVNode(N)}const W=e.defineComponent({__name:"index",setup(N){const T={keyword:"",status:0},_=e.ref(""),b=[{label:l.Translate("base.sort"),prop:"sort",width:60},{label:l.Translate("base.icon"),prop:"icon",width:60,render:({row:r})=>e.createVNode("span",{class:"iconfont "+r.icon,style:"font-size: 16px;"},null)},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.parent"),prop:"parent",width:120,render:({row:r})=>{var n;return e.createVNode(e.Fragment,null,[(n=r.menu)==null?void 0:n.name])}},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.url"),prop:"url",align:"left",width:200},{label:l.Translate("menu.component"),prop:"component",align:"left",width:200},{label:l.Translate("menu.rules"),prop:"rules",width:0,align:"left",render:({row:r})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>{var n;return[(n=r.rules)==null?void 0:n.map(o=>e.createVNode(e.resolveComponent("el-popover"),{visible:_.value===o.key,title:l.Translate("message.title.warning"),placement:"top-end",width:220},{reference:()=>e.createVNode(e.resolveComponent("el-tag"),{class:"cursor-pointer",closable:!0,key:o.key,onClick:()=>k({key:o.key}),onClose:()=>_.value=o.key},{default:()=>[o.translate]}),default:()=>{let C,m;return e.createVNode("div",null,[e.createVNode("p",null,null),e.createVNode("p",null,[`${l.Translate("base.confirm base.delete menu.rules")}: ${r.translate}-${o.translate} ?`]),e.createVNode("div",{style:"text-align: right; margin: 0"},[e.createVNode(e.resolveComponent("el-button"),{size:"small",text:!0,onClick:()=>_.value=""},Y(C=l.Translate("base.cancel"))?C:{default:()=>[C]}),e.createVNode(e.resolveComponent("el-button"),{size:"small",type:"danger",onClick:()=>x(o.key)},Y(m=l.Translate("base.confirm"))?m:{default:()=>[m]})])])}}))]}})},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:S.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:r})=>e.createVNode(l.ModifyButton,{size:"default",onModify:()=>c({id:r.id})},null)}],{requesting:h}=l.useLoading(S),{tableRef:f,formModalRef:s,keyword:d,search:p,refresh:t,reset:g,openFormModal:a,editFormModal:c}=l.useCrudPage(T),{formModalRef:i,openFormModal:w,editFormModal:k}=l.useCrudPage(),x=r=>{K[l.DEFAULT_REMOVE_KEY]({key:r}).then(()=>{_.value="",t()})};return(r,n)=>{const o=e.resolveComponent("el-button"),C=e.resolveComponent("el-input"),m=e.resolveComponent("el-radio-button"),R=e.resolveComponent("el-radio-group"),V=e.resolveComponent("el-space"),U=e.resolveComponent("el-page-header"),y=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(y,{class:"basic-card flex-full","body-class":"flex-1",onClick:n[5]||(n[5]=()=>_.value="")},{header:e.withCtx(()=>[e.createVNode(U,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(h),onRefresh:e.unref(g)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(a)},null,8,["onOpen"]),e.createVNode(o,{circle:"",icon:e.unref(ae),onClick:e.unref(w)},null,8,["icon","onClick"])]),content:e.withCtx(()=>[e.createVNode(V,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(C,{class:"basic-search-input",modelValue:e.unref(d).keyword,"onUpdate:modelValue":n[0]||(n[0]=A=>e.unref(d).keyword=A),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:n[1]||(n[1]=e.withKeys(A=>e.unref(p)(),["enter"])),onClear:n[2]||(n[2]=A=>e.unref(p)())},null,8,["modelValue","placeholder"]),e.createVNode(R,{modelValue:e.unref(d).status,"onUpdate:modelValue":n[3]||(n[3]=A=>e.unref(d).status=A),onChange:n[4]||(n[4]=A=>e.unref(p)())},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],A=>e.createVNode(m,{key:A,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${A}`),value:A},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(h),onSearch:e.unref(p)},null,8,["disabled","onSearch"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:f,size:"small",columns:b,url:e.unref(S).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(d),autoSearch:""},null,8,["url","search-param"]),e.createVNode(se,{ref_key:"formModalRef",ref:s,onRefresh:e.unref(t)},null,8,["onRefresh"]),e.createVNode(pe,{ref_key:"ruleFormModalRef",ref:i,onRefresh:e.unref(t)},null,8,["onRefresh"])]),_:1})}}}),me=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),fe={class:"rule-check"},ce={style:{width:"80px","line-height":"36px"}},be=e.defineComponent({__name:"RulesCheck",props:{modelValue:{type:Array,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(N,{expose:T,emit:_}){const{requesting:b}=l.useLoading(S),h=N,f=_,s=e.ref(!1),d=e.reactive({checkAll:!1,indeterminate:!1,MenuAll:{},MenuList:{},MenuIndeterminate:{}}),{options:p,refresh:t}=l.useSelect(e.toRef(h,"modelValue"),f,{key:"RULE_CHECK",api:S,url:S.urls.rules,isArray:!0},!1);function g(){p.value.forEach(x=>{var r;(r=x.rules)!=null&&r.length&&(d.MenuAll[x.id]=!1,d.MenuIndeterminate[x.id]=!1,d.MenuList[x.id]=[])})}function a(x){p.value.forEach(r=>{var n;(n=r.rules)!=null&&n.length&&(d.MenuList[r.id]=x?r.rules.map(o=>o.key):[])}),i()}function c(x,r){const n=p.value.find(o=>o.id===r);d.MenuList[r]=x&&n?n.rules.map(o=>o.key):[],i()}function i(){p.value.forEach(x=>{var o,C;const r=((o=x.rules)==null?void 0:o.length)||0,n=((C=d.MenuList[x.id])==null?void 0:C.length)||0;d.MenuAll[x.id]=n===r&&r>0,d.MenuIndeterminate[x.id]=n>0&&n<r}),d.checkAll=Object.values(d.MenuAll).every(Boolean),d.indeterminate=!d.checkAll&&Object.values(d.MenuList).some(x=>x.length>0),f("update:modelValue",Object.values(d.MenuList).flat())}function w(){d.checkAll=!1,d.indeterminate=!1,d.MenuAll={},d.MenuList={},d.MenuIndeterminate={},g(),f("update:modelValue",[]),s.value=!1}function k(x){var r;if(Array.isArray(p.value)&&p.value.length>0){for(let n of p.value)if(Array.isArray(n.rules)&&n.rules.length>0)for(let o of n.rules)x.some(C=>C===o.key)&&(d.MenuList[n.id]=(((r=d.MenuList)==null?void 0:r[n.id])||[]).concat([o.key]));i(),s.value=!0}}return e.onMounted(async()=>{var x;(x=p.value)!=null&&x.length||await t(),!s.value&&h.modelValue&&k(h.modelValue)}),e.watch(()=>h.modelValue,x=>{e.nextTick(()=>{var r;s.value||!((r=p.value)!=null&&r.length)||x&&x.length>0&&k(x)})},{deep:!0,immediate:!0}),T({generateOption:k,cleanChecked:w}),(x,r)=>{const n=e.resolveComponent("el-checkbox"),o=e.resolveComponent("el-space"),C=e.resolveComponent("el-text"),m=e.resolveComponent("el-divider"),R=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(o,{style:{"margin-bottom":"6px"}},{default:e.withCtx(()=>[e.createVNode(n,{"model-value":d.checkAll,indeterminate:d.indeterminate,id:"all",disabled:N.disabled,onChange:a},{default:e.withCtx(()=>r[1]||(r[1]=[e.createElementVNode("span",null,"全选",-1)])),_:1,__:[1]},8,["model-value","indeterminate","disabled"]),e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),text:"",size:"small",onRefresh:r[0]||(r[0]=V=>e.unref(t)(!0))},null,8,["loading"])]),_:1}),e.createVNode(o,{direction:"vertical",alignment:"start",class:"rule-check-content"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),V=>(e.openBlock(),e.createElementBlock("div",{key:V.id},[e.createVNode(o,{direction:"horizontal",size:2},{default:e.withCtx(()=>[e.createVNode(n,{style:{"min-width":"150px"},"model-value":d.MenuAll[V.id],disabled:N.disabled||!V.rules||V.rules.length<=0,indeterminate:d.MenuIndeterminate[V.id],onChange:U=>c(U,V.id)},{default:e.withCtx(()=>[e.createVNode(C,{style:{"font-size":"15px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.translate),1)]),_:2},1024)]),_:2},1032,["model-value","disabled","indeterminate","onChange"]),e.createVNode(m,{direction:"vertical"}),V.rules?(e.openBlock(),e.createBlock(R,{key:0,modelValue:d.MenuList[V.id],"onUpdate:modelValue":U=>d.MenuList[V.id]=U,disabled:N.disabled,style:{margin:"auto"},onChange:i},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.rules,U=>(e.openBlock(),e.createBlock(n,{key:U.key,value:U.key},{default:e.withCtx(()=>[e.createElementVNode("div",ce,e.toDisplayString(U.translate),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1})])}}}),G=(N,T)=>{const _=N.__vccOpts||N;for(const[b,h]of T)_[b]=h;return _},_e=G(be,[["__scopeId","data-v-fcb04ec2"]]),he=e.defineComponent({__name:"RoleFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h=e.ref(),f={key:"",module:"",sort:0,name:"",en_name:"",remark:"",rules:[]},s={name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}]},{modal:d,title:p,form:t,formData:g,requesting:a,executing:c,open:i,modify:w,submit:k,closed:x}=l.useForm(b,f,q),r=()=>{var n;(n=h.value)==null||n.cleanChecked(),x()};return T({open:i,modify:w}),(n,o)=>{const C=e.resolveComponent("el-input"),m=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-col"),V=e.resolveComponent("el-input-number"),U=e.resolveComponent("el-row"),y=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(d),"onUpdate:modelValue":o[6]||(o[6]=A=>e.isRef(d)?d.value=A:null),title:e.unref(p)(),width:"1000px",executing:e.unref(c),onClosed:r,onSubmit:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(y,{ref_key:"form",ref:t,model:e.unref(g),"label-width":"auto",rules:s,disabled:e.unref(a)||e.unref(c)},{default:e.withCtx(()=>[e.createVNode(U,{gutter:20},{default:e.withCtx(()=>[e.createVNode(R,{span:12},{default:e.withCtx(()=>[e.createVNode(m,{label:e.unref(l.Translate)("base.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(g).module,"onUpdate:modelValue":o[0]||(o[0]=A=>e.unref(g).module=A),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(R,{span:12},{default:e.withCtx(()=>[e.createVNode(m,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(V,{class:"w-full",modelValue:e.unref(g).sort,"onUpdate:modelValue":o[1]||(o[1]=A=>e.unref(g).sort=A),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(m,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(g).name,"onUpdate:modelValue":o[2]||(o[2]=A=>e.unref(g).name=A),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(g).en_name,"onUpdate:modelValue":o[3]||(o[3]=A=>e.unref(g).en_name=A),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(g).remark,"onUpdate:modelValue":o[4]||(o[4]=A=>e.unref(g).remark=A),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("menu.rules"),prop:"rules"},{default:e.withCtx(()=>[e.createVNode(_e,{ref_key:"rulesCheck",ref:h,modelValue:e.unref(g).rules,"onUpdate:modelValue":o[5]||(o[5]=A=>e.unref(g).rules=A),disabled:e.unref(a)||e.unref(c)},null,8,["modelValue","disabled"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onSubmit"])}}}),H=e.defineComponent({__name:"index",setup(N){const T={keyword:""},_=[{label:l.Translate("base.sort"),prop:"sort",width:80},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:180},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:c})=>e.createVNode(l.ModifyButton,{onModify:()=>a({key:c.key})},null)}],{requesting:b}=l.useLoading(q),{tableRef:h,formModalRef:f,keyword:s,search:d,reset:p,refresh:t,openFormModal:g,editFormModal:a}=l.useCrudPage(T);return(c,i)=>{const w=e.resolveComponent("el-input"),k=e.resolveComponent("el-space"),x=e.resolveComponent("el-page-header"),r=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(r,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(x,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(p)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(g)},null,8,["onOpen"])]),content:e.withCtx(()=>[e.createVNode(k,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(w,{class:"basic-search-input",modelValue:e.unref(s).keyword,"onUpdate:modelValue":i[0]||(i[0]=n=>e.unref(s).keyword=n),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:i[1]||(i[1]=e.withKeys(n=>e.unref(d)(),["enter"])),onClear:i[2]||(i[2]=n=>e.unref(d)())},null,8,["modelValue","placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:i[3]||(i[3]=n=>e.unref(d)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(q).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(s),autoSearch:""},null,8,["url","search-param"]),e.createVNode(he,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(t)},null,8,["onRefresh"])]),_:1})}}}),ge=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"})),D=l.createAutoApi("site",{check:"check"},"id",["check"],[]),E=l.createAutoApi("domain",{},"id",[],[]),Q=e.defineComponent({__name:"DomainSelect",props:{modelValue:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{expose:T,emit:_}){const b=_,h=N,{requesting:f}=l.useLoading(E),{key:s,options:d,refresh:p,change:t}=l.useSelect(e.toRef(h,"modelValue"),b,{key:"DOMAIN_LIST",api:E,isArray:!0});return T({refresh:p}),(g,a)=>{const c=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(c,{modelValue:e.unref(s),"onUpdate:modelValue":a[0]||(a[0]=i=>e.isRef(s)?s.value=i:null),options:e.unref(d),disabled:N.disabled||e.unref(f),placeholder:e.unref(l.Translate)("base.select config.domain"),onChange:e.unref(t)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(f),onRefresh:e.unref(p)},null,8,["loading","onRefresh"])]),_:1},8,["modelValue","options","disabled","placeholder","onChange"])}}}),Ce=e.defineComponent({__name:"SiteFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,domain_id:0,prefix:"",name:"",en_name:"",dns:"",git:"",status:1,remark:""},f={domain_id:[{required:!0,message:l.Translate("base.placeholder.input config.domain"),trigger:"blur"}],prefix:[{required:!0,message:l.Translate("base.placeholder.input base.prefix"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,D);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-input"),C=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[7]||(r[7]=m=>e.isRef(s)?s.value=m:null),title:e.unref(d)("config.site"),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(C,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(n,{prop:"domain_id",label:e.unref(l.Translate)("config.domain")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:e.unref(t).domain_id,"onUpdate:modelValue":r[0]||(r[0]=m=>e.unref(t).domain_id=m),disabled:e.unref(a)},null,8,["modelValue","disabled"])]),_:1},8,["label"]),e.createVNode(n,{prop:"prefix",label:e.unref(l.Translate)("config.prefix")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).prefix,"onUpdate:modelValue":r[1]||(r[1]=m=>e.unref(t).prefix=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"name",label:e.unref(l.Translate)("base.name")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[2]||(r[2]=m=>e.unref(t).name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"en_name",label:e.unref(l.Translate)("base.en_name")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).en_name,"onUpdate:modelValue":r[3]||(r[3]=m=>e.unref(t).en_name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"dns",label:e.unref(l.Translate)("config.dns")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).dns,"onUpdate:modelValue":r[4]||(r[4]=m=>e.unref(t).dns=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"git",label:e.unref(l.Translate)("config.git")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).git,"onUpdate:modelValue":r[5]||(r[5]=m=>e.unref(t).git=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"remark",label:e.unref(l.Translate)("base.remark")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[6]||(r[6]=m=>e.unref(t).remark=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),O=l.createAutoApi("domain_provider",{},"id",[],[]),Te=e.defineComponent({__name:"DomainProviderSelect",props:{modelValue:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{expose:T,emit:_}){const b=_,h=N,{requesting:f}=l.useLoading(O),{key:s,options:d,refresh:p,change:t}=l.useSelect(e.toRef(h,"modelValue"),b,{key:"DOMAIN_PROVIDER_LIST",api:O,isArray:!0});return T({refresh:p}),(g,a)=>{const c=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(c,{modelValue:e.unref(s),"onUpdate:modelValue":a[0]||(a[0]=i=>e.isRef(s)?s.value=i:null),options:e.unref(d),disabled:N.disabled||e.unref(f),placeholder:e.unref(l.Translate)("base.select config.domain config.provider"),onChange:e.unref(t)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(f),onRefresh:e.unref(p)},null,8,["loading","onRefresh"])]),_:1},8,["modelValue","options","disabled","placeholder","onChange"])}}}),xe=e.defineComponent({__name:"DomainFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,provider_id:0,name:"",expired_at:"",status:1,remark:""},f={provider_id:[{required:!0,message:l.Translate("base.placeholder.input config.domain config.provider"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,E);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-input"),C=e.resolveComponent("el-date-picker"),m=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[4]||(r[4]=R=>e.isRef(s)?s.value=R:null),title:e.unref(d)("config.domain"),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(m,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(n,{prop:"provider_id",label:e.unref(l.Translate)("config.provider")},{default:e.withCtx(()=>[e.createVNode(Te,{modelValue:e.unref(t).provider_id,"onUpdate:modelValue":r[0]||(r[0]=R=>e.unref(t).provider_id=R),disabled:e.unref(a)},null,8,["modelValue","disabled"])]),_:1},8,["label"]),e.createVNode(n,{prop:"name",label:e.unref(l.Translate)("base.name")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[1]||(r[1]=R=>e.unref(t).name=R),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"expired_at",required:"",label:e.unref(l.Translate)("base.expired_at")},{default:e.withCtx(()=>[e.createVNode(C,{type:"date",style:{width:"100%"},modelValue:e.unref(t).expired_at,"onUpdate:modelValue":r[2]||(r[2]=R=>e.unref(t).expired_at=R),disabled:e.unref(a),"value-format":e.unref(l.TimeUtils).DATE_VALUE_FORMAT,format:e.unref(l.TimeUtils).DATE_FORMAT,placeholder:e.unref(l.Translate)("base.placeholder.select")},null,8,["modelValue","disabled","value-format","format","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"remark",label:e.unref(l.Translate)("base.remark")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[3]||(r[3]=R=>e.unref(t).remark=R),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),we=e.defineComponent({__name:"SiteSelect",props:{modelValue:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{expose:T,emit:_}){const b=_,h=N,{requesting:f}=l.useLoading(D),{key:s,options:d,refresh:p,change:t}=l.useSelect(e.toRef(h,"modelValue"),b,{key:"SITE_LIST",api:D,isArray:!0,formatOptions:g=>g.map(a=>{var c;return{label:a.prefix+"."+((c=a.domain)==null?void 0:c.name),value:a.id}})});return T({refresh:p}),(g,a)=>{const c=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(c,{modelValue:e.unref(s),"onUpdate:modelValue":a[0]||(a[0]=i=>e.isRef(s)?s.value=i:null),options:e.unref(d),disabled:N.disabled||e.unref(f),placeholder:e.unref(l.Translate)("base.select config.domain"),onChange:e.unref(t)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(f),onRefresh:e.unref(p)},null,8,["loading","onRefresh"])]),_:1},8,["modelValue","options","disabled","placeholder","onChange"])}}}),Ne=e.defineComponent({__name:"SSLFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,domain_id:0,site_id:0,name:"",path:"",email:"",encryption:"",remark:""},f={domain_id:[{required:!0,message:l.Translate("base.placeholder.select config.domain "),trigger:"blur"}],site_id:[{required:!0,message:l.Translate("base.placeholder.select config.site "),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],path:[{required:!0,message:l.Translate("base.placeholder.input base.path"),trigger:"blur"}],email:[{required:!0,message:l.Translate("base.placeholder.input base.email"),trigger:"blur"}],encryption:[{required:!0,message:l.Translate("base.placeholder.input config.encryption"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,E);return T({open:c,modify:i,formData:t}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-input"),C=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[7]||(r[7]=m=>e.isRef(s)?s.value=m:null),title:e.unref(d)("config.domain"),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(C,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(n,{prop:"domain_id",label:e.unref(l.Translate)("config.domain")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:e.unref(t).domain_id,"onUpdate:modelValue":r[0]||(r[0]=m=>e.unref(t).domain_id=m),disabled:e.unref(a)},null,8,["modelValue","disabled"])]),_:1},8,["label"]),e.createVNode(n,{prop:"site_id",label:e.unref(l.Translate)("config.site")},{default:e.withCtx(()=>[e.createVNode(we,{modelValue:e.unref(t).site_id,"onUpdate:modelValue":r[1]||(r[1]=m=>e.unref(t).site_id=m),disabled:e.unref(a)||e.unref(t).domain_id>0},null,8,["modelValue","disabled"])]),_:1},8,["label"]),e.createVNode(n,{prop:"name",label:e.unref(l.Translate)("base.name")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[2]||(r[2]=m=>e.unref(t).name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"path",label:e.unref(l.Translate)("base.path")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).path,"onUpdate:modelValue":r[3]||(r[3]=m=>e.unref(t).path=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"email",label:e.unref(l.Translate)("base.email")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).email,"onUpdate:modelValue":r[4]||(r[4]=m=>e.unref(t).email=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"encryption",label:e.unref(l.Translate)("config.encryption")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).encryption,"onUpdate:modelValue":r[5]||(r[5]=m=>e.unref(t).encryption=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"remark",label:e.unref(l.Translate)("base.remark")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[6]||(r[6]=m=>e.unref(t).remark=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),ke=e.defineComponent({__name:"DomainProviderFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,name:"",en_name:"",key:"",secret:"",end_point:"",status:1,remark:""},f={name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"},key:{required:!0,message:l.Translate("base.placeholder.input base.key"),trigger:"blur"},secret:{required:!0,message:l.Translate("base.placeholder.input config.secret"),trigger:"blur"},end_point:{required:!0,message:l.Translate("base.placeholder.input config.endpoint"),trigger:"blur"}},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,O);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-input"),o=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[6]||(r[6]=m=>e.isRef(s)?s.value=m:null),title:e.unref(d)("config.domain"),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(C,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(o,{prop:"name",label:e.unref(l.Translate)("base.name")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[0]||(r[0]=m=>e.unref(t).name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"en_name",label:e.unref(l.Translate)("base.en_name")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).en_name,"onUpdate:modelValue":r[1]||(r[1]=m=>e.unref(t).en_name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"key",label:e.unref(l.Translate)("base.key")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).key,"onUpdate:modelValue":r[2]||(r[2]=m=>e.unref(t).key=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"secret",label:e.unref(l.Translate)("config.secret")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).secret,"onUpdate:modelValue":r[3]||(r[3]=m=>e.unref(t).secret=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"end_point",label:e.unref(l.Translate)("config.end_point")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).end_point,"onUpdate:modelValue":r[4]||(r[4]=m=>e.unref(t).end_point=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"remark",label:e.unref(l.Translate)("base.remark")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[5]||(r[5]=m=>e.unref(t).remark=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),ye=e.defineComponent({__name:"DomainProviderTableDrawer",setup(N,{expose:T}){const{requesting:_}=l.useLoading(O),b=e.ref(!1),{tableRef:h,formModalRef:f,refresh:s,openFormModal:d,editFormModal:p}=l.useCrudPage({}),t=[{prop:"name",label:l.Translate("base.name"),width:0,minWidth:140},{prop:"en_name",label:l.Translate("base.en_name"),width:120},{prop:"actions",label:l.Translate("base.action"),width:60,align:"center",render:({rowData:a})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>[e.createVNode(l.ModifyButton,{icon:"icon-edit",t:"",onModify:()=>p({id:a.id})},null)]})}];return T({open:()=>{b.value=!0}}),(a,c)=>{const i=e.resolveComponent("el-page-header");return e.openBlock(),e.createBlock(e.unref(l.BasicDrawer),{modelValue:b.value,"onUpdate:modelValue":c[0]||(c[0]=w=>b.value=w),width:"400px","show-close":!1,class:"basic-drawer"},{title:e.withCtx(()=>[e.createVNode(i,{icon:""},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(l.Translate)("config.domain config.provider")),1)]),content:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s),size:"default",loading:e.unref(_)},null,8,["onRefresh","loading"])]),extra:e.withCtx(()=>[e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(d)},null,8,["onOpen"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small","row-key":"id",url:e.unref(O).urls.list,columns:t,loading:e.unref(_)},null,8,["url","loading"]),e.createVNode(ke,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(s)},null,8,["onRefresh"])]),_:1},8,["modelValue"])}}}),Ve=e.defineComponent({__name:"DomainTableDrawer",setup(N,{expose:T}){const{requesting:_}=l.useLoading(E),b=e.ref(!1),{tableRef:h,formModalRef:f,refresh:s,openFormModal:d,editFormModal:p}=l.useCrudPage(),{formModalRef:t,openFormModal:g,editFormModal:a}=l.useCrudPage(),{formModalRef:c,openFormModal:i}=l.useCrudPage(),w=[{prop:"provider",label:l.Translate("config.domain config.provider"),width:120,cellRenderer:({rowData:x})=>e.createVNode(e.resolveComponent("el-text"),null,{default:()=>{var r;return[(r=x.provider)==null?void 0:r.name]}})},{prop:"name",label:l.Translate("base.name"),width:0,minWidth:120},{prop:"expired_text",label:l.Translate("base.expired_at"),width:160},{prop:"actions",label:l.Translate("base.action"),width:100,align:"center",render:({rowData:x})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>[e.createVNode(l.ModifyButton,{icon:"icon-edit",t:"",onModify:()=>p({id:x.id})},null),e.createVNode(l.OpenButton,{icon:"icon-safetycertificate-f",type:"primary",size:"small",link:!0,onOpen:()=>{var r;x.ssl&&x.ssl.id?a({id:(r=x.ssl)==null?void 0:r.id}):(t.value.formData.domain_id=x.id,t.value.formData.site_id=0,g())}},null)]})}];return T({open:()=>{b.value=!0}}),(x,r)=>{const n=e.resolveComponent("el-space"),o=e.resolveComponent("el-page-header");return e.openBlock(),e.createBlock(e.unref(l.BasicDrawer),{modelValue:b.value,"onUpdate:modelValue":r[0]||(r[0]=C=>b.value=C),width:"600px","show-close":!1,class:"basic-drawer"},{title:e.withCtx(()=>[e.createVNode(o,{icon:""},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(l.Translate)("config.domain")),1)]),content:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s),size:"default",loading:e.unref(_)},null,8,["onRefresh","loading"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(d)},null,8,["onOpen"])]),extra:e.withCtx(()=>[e.createVNode(n,{class:"w-full extra-tool",alignment:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(i),type:"danger"},null,8,["onOpen"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small","row-key":"id",url:e.unref(E).urls.list,columns:w,loading:e.unref(_)},null,8,["url","loading"]),e.createVNode(xe,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(Ne,{ref_key:"sslFormModalRef",ref:t,onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(ye,{ref_key:"providerTableDrawerRef",ref:c},null,512)]),_:1},8,["modelValue"])}}}),J=l.createAutoApi("SSLLog",{},"id",[],[]),X=l.createAutoApi("SSL",{gen:"gen"},"id",[],["gen"]),Re=e.defineComponent({__name:"SSLLogTableDrawer",props:{ssl:{type:Object,default:()=>({})}},setup(N,{expose:T}){const _=N,{requesting:b,executing:h}=l.useLoading([J,X]),f=e.ref(!1),{tableRef:s,refresh:d}=l.useCrudPage(),p=[{prop:"status_text",label:l.Translate("base.status"),width:100},{prop:"at",label:l.Translate("base.time"),width:180},{prop:"type_text",label:l.Translate("base.type"),width:80},{prop:"result",label:l.Translate("base.result"),width:0}],t=()=>{f.value=!0};function g(){X.gen({id:_.ssl.id}).then(c=>{console.log("Res:",c)})}function a(){const c=l.AssetsUtils.getDownloadUrl(_.ssl.path+".zip");fetch(c).then(i=>i.blob()).then(i=>{let w=URL.createObjectURL(i),k=document.createElement("a");k.style.display="none",k.href=w,k.download=_.ssl.name+".zip",k.click(),URL.revokeObjectURL(i)})}return T({open:t}),(c,i)=>{const w=e.resolveComponent("el-page-header");return e.openBlock(),e.createBlock(e.unref(l.BasicDrawer),{modelValue:f.value,"onUpdate:modelValue":i[0]||(i[0]=k=>f.value=k),width:"600px","show-close":!1,class:"basic-drawer"},{title:e.withCtx(()=>[e.createVNode(w,{icon:""},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(l.Translate)("config.ssl base.log")),1)]),content:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(d),size:"default",loading:e.unref(b)},null,8,["onRefresh","loading"])]),extra:e.withCtx(()=>[e.createVNode(e.unref(l.RequestButton),{size:"default",type:"danger",icon:"icon-key",loading:e.unref(h),onClick:g},null,8,["loading"]),e.createVNode(e.unref(l.RequestButton),{size:"default",type:"primary",icon:"icon-cloud-download",loading:e.unref(h),onClick:a},null,8,["loading"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:s,size:"small","row-key":"id",url:e.unref(J).urls.search,columns:p,loading:e.unref(b)},null,8,["url","loading"])]),_:1},8,["modelValue"])}}}),Z=G(e.defineComponent({__name:"index",setup(N){const T=e.ref(),{requesting:_,executing:b}=l.useLoading(D),{tableRef:h,formModalRef:f,reset:s,refresh:d,openFormModal:p,editFormModal:t}=l.useCrudPage(),{formModalRef:g,openFormModal:a}=l.useCrudPage(),{formModalRef:c,openFormModal:i}=l.useCrudPage(),w=[{prop:"domain.name",label:l.Translate("config.domain"),width:129,type:"copy"},{prop:"name",label:l.Translate("base.name"),width:100},{prop:"dns",label:l.Translate("config.dns"),width:160,type:"copy"},{prop:"git",label:l.Translate("config.git"),width:300,type:"copy"},{prop:"expired_at",label:l.Translate("config.ssl base.expired_at"),align:"center",width:140,cellRenderer:({rowData:r})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>[e.createVNode(e.resolveComponent("el-text"),null,{default:()=>{var n;return[(n=r.ssl)==null?void 0:n.renewal_days,e.createTextVNode(" 天")]}}),e.createVNode(e.resolveComponent("el-button"),{size:"small",type:"primary",text:!0,onClick:n=>{n.stopPropagation(),r.ssl&&r.ssl.id&&(T.value=r.ssl,i())}},{default:()=>[e.createVNode("span",{class:"icon iconfont icon-reloadtime"},null)]})]})},{prop:"remark",label:l.Translate("base.remark"),width:0,minWidth:160},{prop:"operation",label:l.Translate("base.action"),width:100,align:"center",cellRenderer:({rowData:r})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>[e.createVNode(l.ModifyButton,{icon:"icon-edit",t:"",onModify:()=>t({id:r.id})},null),e.createVNode(l.RequestButton,{icon:"icon-securityscan",type:"primary",size:"small",link:!0,disabled:b.value,loading:k.value==r.id&&b.value,onClick:()=>x(r)},null)]})}],k=e.ref(0),x=r=>{k.value=r.id,D.check({id:r.id}).then(n=>{n.data&&(l.notification(n),d())}).finally(()=>{k.value=0})};return(r,n)=>{const o=e.resolveComponent("el-space"),C=e.resolveComponent("el-page-header"),m=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(m,{"body-style":{padding:"12px",height:"450px"},"body-class":"flex-1",class:"config-card"},{header:e.withCtx(()=>[e.createVNode(C,{icon:""},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(l.Translate)("config.keys.sites")),1)]),content:e.withCtx(()=>[e.createVNode(o,{alignment:"center",style:{height:"32px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(_),onRefresh:e.unref(s)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(p)},null,8,["onOpen"])]),_:1})]),extra:e.withCtx(()=>[e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(a),icon:"icon-compass"},null,8,["onOpen"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small","row-key":"id",url:e.unref(D).urls[e.unref(l.DEFAULT_LIST_URL)],"auto-search":"",columns:w},null,8,["url"]),e.createVNode(Ce,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(d)},null,8,["onRefresh"]),e.createVNode(Ve,{ref_key:"domainTableDrawerRef",ref:g},null,512),e.createVNode(Re,{ref_key:"sslLogTableDrawerRef",ref:c},null,512)]),_:1})}}}),[["__scopeId","data-v-b6eb2981"]]),Ue=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"})),u={request:"request",error:"error",sql:"SQL"},F=l.AutoApiUtils.createAutoApi("log",u,"id",Object.keys(u),[],[]),M=e.defineComponent({__name:"index",setup(N){const T={dates:[l.TimeUtils.getCurrentHour().format(l.TimeUtils.DATE_VALUE_FORMAT),l.TimeUtils.getCurrentHour(1).format(l.TimeUtils.DATE_VALUE_FORMAT)]},_=[{label:l.Translate("base.sort"),type:"index",width:60},{label:l.Translate("base.time"),prop:"time",width:180,render:({rowData:p})=>e.createVNode(e.Fragment,null,[l.TimeUtils.formatDate(p.time)])},{label:l.Translate("base.url"),prop:"url",align:"left",width:200}],{requesting:b}=l.useLoading(F),{tableRef:h,keyword:f,search:s,reset:d}=l.useCrudPage(T);return(p,t)=>{const g=e.resolveComponent("el-date-picker"),a=e.resolveComponent("el-space"),c=e.resolveComponent("el-page-header"),i=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(i,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(c,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(d)},null,8,["loading","onRefresh"])]),content:e.withCtx(()=>[e.createVNode(a,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(f).dates,"onUpdate:modelValue":t[0]||(t[0]=w=>e.unref(f).dates=w),class:"basic-search-datetimerange","value-format":e.unref(l.TimeUtils).DATE_HOUR_FORMAT,format:e.unref(l.TimeUtils).DATE_SHOW_FORMAT,type:"datetimerange","range-separator":"-","start-placeholder":e.unref(l.Translate)("base.start_at"),"end-placeholder":e.unref(l.Translate)("base.end_at"),clearable:!1,onChange:t[1]||(t[1]=w=>e.unref(s)())},null,8,["modelValue","value-format","format","start-placeholder","end-placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:t[2]||(t[2]=w=>e.unref(s)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(F).urls.request,"search-param":e.unref(f),autoSearch:""},null,8,["url","search-param"])]),_:1})}}}),Ae=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),v=e.defineComponent({__name:"index",setup(N){const T={dates:[l.TimeUtils.getCurrentDate(-7).format(l.TimeUtils.DATE_VALUE_FORMAT),l.TimeUtils.getCurrentDate(0).format(l.TimeUtils.DATE_VALUE_FORMAT)]},_=[{label:l.Translate("base.sort"),type:"index",width:60},{label:l.Translate("base.time"),prop:"time",width:180,render:({rowData:p})=>e.createVNode(e.Fragment,null,[l.TimeUtils.formatDate(p.time)])},{label:l.Translate("base.url"),prop:"url",align:"left",width:200}],{requesting:b}=l.useLoading(F),{tableRef:h,keyword:f,search:s,reset:d}=l.useCrudPage(T);return(p,t)=>{const g=e.resolveComponent("el-date-picker"),a=e.resolveComponent("el-space"),c=e.resolveComponent("el-page-header"),i=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(i,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(c,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(d)},null,8,["loading","onRefresh"])]),content:e.withCtx(()=>[e.createVNode(a,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(f).dates,"onUpdate:modelValue":t[0]||(t[0]=w=>e.unref(f).dates=w),class:"basic-search-daterange","value-format":e.unref(l.TimeUtils).DATE_VALUE_FORMAT,format:e.unref(l.TimeUtils).DATE_FORMAT,type:"daterange","range-separator":"-","start-placeholder":e.unref(l.Translate)("base.start_at"),"end-placeholder":e.unref(l.Translate)("base.end_at"),clearable:!1,onChange:t[1]||(t[1]=w=>e.unref(s)())},null,8,["modelValue","value-format","format","start-placeholder","end-placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:t[2]||(t[2]=w=>e.unref(s)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(F).urls.error,"search-param":e.unref(f),autoSearch:""},null,8,["url","search-param"])]),_:1})}}}),Be=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),ee=e.defineComponent({__name:"index",setup(N){const T={dates:[l.TimeUtils.getCurrentDate(-7).format(l.TimeUtils.DATE_VALUE_FORMAT),l.TimeUtils.getCurrentDate().format(l.TimeUtils.DATE_VALUE_FORMAT)]},_=[{label:l.Translate("base.sort"),type:"index",width:60},{label:l.Translate("base.time"),prop:"time",width:180,render:({rowData:p})=>e.createVNode(e.Fragment,null,[l.TimeUtils.formatDate(p.time)])},{label:l.Translate("base.url"),prop:"url",align:"left",width:200}],{requesting:b}=l.useLoading(F),{tableRef:h,keyword:f,search:s,reset:d}=l.useCrudPage(T);return(p,t)=>{const g=e.resolveComponent("el-date-picker"),a=e.resolveComponent("el-space"),c=e.resolveComponent("el-page-header"),i=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(i,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(c,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(d)},null,8,["loading","onRefresh"])]),content:e.withCtx(()=>[e.createVNode(a,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(f).dates,"onUpdate:modelValue":t[0]||(t[0]=w=>e.unref(f).dates=w),class:"basic-search-daterange","value-format":e.unref(l.TimeUtils).DATE_HOUR_FORMAT,format:e.unref(l.TimeUtils).DATE_FORMAT,type:"daterange","range-separator":"-","start-placeholder":e.unref(l.Translate)("base.start_at"),"end-placeholder":e.unref(l.Translate)("base.end_at"),clearable:!1,onChange:t[1]||(t[1]=w=>e.unref(s)())},null,8,["modelValue","value-format","format","start-placeholder","end-placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:t[2]||(t[2]=w=>e.unref(s)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(F).urls.sql,"search-param":e.unref(f),autoSearch:""},null,8,["url","search-param"])]),_:1})}}}),Le=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"})),Se=()=>Promise.resolve().then(()=>Ae),De=()=>Promise.resolve().then(()=>Be),Ee=()=>Promise.resolve().then(()=>Le),Fe=[{path:l.REQUEST_LOG_URL,name:"RequestLog",component:Se,meta:{title:l.Translate("menu.RequestLog")}},{path:l.ERROR_LOG_URL,name:"ErrorLog",component:De,meta:{title:l.Translate("menu.ErrorLog")}},{path:l.SQL_LOG_URL,name:"SqlLog",component:Ee,meta:{title:l.Translate("menu.SqlLog")}}],Oe={install:N=>{Reflect.ownKeys(N._context.provides).some(T=>String(T)==="Symbol(pinia)")||console.warn("Pinia is not provided. Please install and provide Pinia in your app."),console.warn(Reflect.ownKeys(N._context.provides))},version:"__VERSION__"},qe=Object.assign({"./views/admin/index.vue":re,"./views/language/index.vue":ne,"./views/menu/index.vue":me,"./views/role/index.vue":ge,"./views/site/index.vue":Ue});L.AdminsPage=z,L.ErrorLogsPage=v,L.LanguagesPage=j,L.LogRoutes=Fe,L.MenusPage=W,L.RequestLogsPage=M,L.RolesPage=H,L.SQLLogsPage=ee,L.SitePage=Z,L.basicModules=qe,L.default=Oe,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
1
|
+
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("auto-vue-manual")):typeof define=="function"&&define.amd?define(["exports","vue","auto-vue-manual"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L.AutoVueBasic={},L.Vue,L["auto-vue-manual"]))})(this,function(L,e,l){"use strict";const P=l.createAutoApi("admin",{},"key"),q=l.createAutoApi("role",{},"key"),le=e.defineComponent({__name:"AdminFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={key:"",username:"",password:"",phone:"",email:"",language:"zh-CN",remark:"",roles:[]},{modal:f,title:s,form:d,formData:p,requesting:t,executing:g,open:a,modify:c,submit:i,closed:w}=l.useForm(b,h,P),k={username:[{required:!0,message:l.Translate("base.placeholder.input base.username"),trigger:"blur"}],phone:[{required:!0,validator:l.RulesUtils.phoneRule,message:l.Translate("base.placeholder.input base.phone"),trigger:"blur"}],password:[{required:!1,message:l.Translate("base.placeholder.input base.password"),trigger:"blur"}],email:[{required:!0,message:l.Translate("base.placeholder.input base.email"),trigger:"blur"}],language:[{required:!0,message:l.Translate("base.placeholder.select base.language"),trigger:"change"}],roles:[{required:!0,type:"Array",message:l.Translate("base.placeholder.select menu.Role"),trigger:"change"}]},x=e.ref([]),r=async()=>{const n=await q.list();x.value=Array.isArray(n==null?void 0:n.data)?n.data:[]};return e.onBeforeMount(async()=>{await r()}),T({open:a,modify:c}),(n,o)=>{const C=e.resolveComponent("el-input"),m=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),U=e.resolveComponent("el-checkbox"),y=e.resolveComponent("el-checkbox-group"),A=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(f),"onUpdate:modelValue":o[7]||(o[7]=B=>e.isRef(f)?f.value=B:null),title:e.unref(s)(),width:"600px",executing:e.unref(g),onClosed:e.unref(w),onSubmit:e.unref(i)},{default:e.withCtx(()=>[e.createVNode(A,{ref_key:"form",ref:d,model:e.unref(p),"label-width":"auto",rules:k,disabled:e.unref(t)||e.unref(g)},{default:e.withCtx(()=>[e.createVNode(m,{label:e.unref(l.Translate)("base.username"),prop:"username"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).username,"onUpdate:modelValue":o[0]||(o[0]=B=>e.unref(p).username=B),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.phone"),prop:"phone"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).phone,"onUpdate:modelValue":o[1]||(o[1]=B=>e.unref(p).phone=B),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.password"),prop:"password",required:!e.unref(p).key},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).password,"onUpdate:modelValue":o[2]||(o[2]=B=>e.unref(p).password=B),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label","required"]),e.createVNode(m,{label:e.unref(l.Translate)("base.email"),prop:"email"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).email,"onUpdate:modelValue":o[3]||(o[3]=B=>e.unref(p).email=B),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.language"),prop:"language"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(p).language,"onUpdate:modelValue":o[4]||(o[4]=B=>e.unref(p).language=B)},{default:e.withCtx(()=>[e.createVNode(R,{value:"zh-CN"},{default:e.withCtx(()=>o[8]||(o[8]=[e.createTextVNode("zh-CN")])),_:1,__:[8]}),e.createVNode(R,{value:"en-US"},{default:e.withCtx(()=>o[9]||(o[9]=[e.createTextVNode("en-US")])),_:1,__:[9]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("menu.Role"),prop:"roles"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(p).roles,"onUpdate:modelValue":o[5]||(o[5]=B=>e.unref(p).roles=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,B=>(e.openBlock(),e.createBlock(U,{key:B.key,value:B.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.translate),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(p).remark,"onUpdate:modelValue":o[6]||(o[6]=B=>e.unref(p).remark=B),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),z=e.defineComponent({__name:"index",setup(N){const T={keyword:""},_=[{label:l.Translate("base.avatar"),prop:"avatar",width:60,render:({row:c})=>e.createVNode(l.BasicAvatar,{src:c.avatar},null)},{label:l.Translate("base.user"),width:200,align:"left",render:({row:c})=>e.createVNode(e.resolveComponent("el-space"),{direction:"vertical",alignment:"start"},{default:()=>[e.createVNode("div",null,[c.username]),e.createVNode("div",null,[c.email])]})},{label:l.Translate("base.phone"),prop:"phone",width:140},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.login_at"),prop:"login_at",width:160},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:c})=>e.createVNode(l.ModifyButton,{onModify:()=>a({key:c.key})},null)}],{requesting:b}=l.useLoading(P),{tableRef:h,formModalRef:f,keyword:s,search:d,reset:p,refresh:t,openFormModal:g,editFormModal:a}=l.useCrudPage(T);return(c,i)=>{const w=e.resolveComponent("el-input"),k=e.resolveComponent("el-space"),x=e.resolveComponent("el-page-header"),r=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(r,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(x,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(p)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(g)},null,8,["onOpen"])]),content:e.withCtx(()=>[e.createVNode(k,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(w,{class:"basic-search-input",modelValue:e.unref(s).keyword,"onUpdate:modelValue":i[0]||(i[0]=n=>e.unref(s).keyword=n),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:i[1]||(i[1]=e.withKeys(n=>e.unref(d)(),["enter"])),onClear:i[2]||(i[2]=n=>e.unref(d)())},null,8,["modelValue","placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:i[3]||(i[3]=n=>e.unref(d)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(P).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(s),autoSearch:""},null,8,["url","search-param"]),e.createVNode(le,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(t)},null,8,["onRefresh"])]),_:1})}}}),re=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),$=l.createAutoApi("translation",{},"key"),te=e.defineComponent({__name:"LangFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,key:"",module:"",language:"",result:"",remark:""},f={module:[{required:!0,message:l.Translate("language.placeholder.module"),trigger:"blur"}],key:[{required:!0,message:l.Translate("language.placeholder.key"),trigger:"blur"}],language:[{required:!0,message:l.Translate("language.placeholder.language"),trigger:"change"}],result:[{required:!0,message:l.Translate("language.placeholder.result"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,$);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-input"),o=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-radio-button"),m=e.resolveComponent("el-radio-group"),R=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[5]||(r[5]=V=>e.isRef(s)?s.value=V:null),title:e.unref(d)(),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(R,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("language.module"),prop:"module",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).module,"onUpdate:modelValue":r[0]||(r[0]=V=>e.unref(t).module=V),placeholder:e.unref(l.Translate)("language.placeholder.module")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("language.key"),prop:"key",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).key,"onUpdate:modelValue":r[1]||(r[1]=V=>e.unref(t).key=V),placeholder:e.unref(l.Translate)("language.placeholder.key")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("language.language"),prop:"language",required:""},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:e.unref(t).language,"onUpdate:modelValue":r[2]||(r[2]=V=>e.unref(t).language=V)},{default:e.withCtx(()=>[e.createVNode(C,{label:"zh-CN"},{default:e.withCtx(()=>r[6]||(r[6]=[e.createTextVNode("zh-CN")])),_:1,__:[6]}),e.createVNode(C,{label:"en-US"},{default:e.withCtx(()=>r[7]||(r[7]=[e.createTextVNode("en-US")])),_:1,__:[7]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("language.result"),prop:"result",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).result,"onUpdate:modelValue":r[3]||(r[3]=V=>e.unref(t).result=V),placeholder:e.unref(l.Translate)("language.placeholder.result")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[4]||(r[4]=V=>e.unref(t).remark=V),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),j=e.defineComponent({__name:"index",setup(N){const T={keyword:"",status:0},_=[{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.language"),prop:"language",width:100},{label:l.Translate("base.key"),prop:"key",width:200},{label:l.Translate("base.result"),prop:"result",width:200},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:$.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:c})=>e.createVNode(l.ModifyButton,{onModify:()=>a({id:c.id})},null)}],{requesting:b}=l.useLoading($),{tableRef:h,formModalRef:f,keyword:s,search:d,reset:p,refresh:t,openFormModal:g,editFormModal:a}=l.useCrudPage(T);return(c,i)=>{const w=e.resolveComponent("el-input"),k=e.resolveComponent("el-radio-button"),x=e.resolveComponent("el-radio-group"),r=e.resolveComponent("el-space"),n=e.resolveComponent("el-page-header"),o=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(o,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(n,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(p)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(g)},null,8,["onOpen"])]),content:e.withCtx(()=>[e.createVNode(r,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(w,{class:"basic-search-input",modelValue:e.unref(s).keyword,"onUpdate:modelValue":i[0]||(i[0]=C=>e.unref(s).keyword=C),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:i[1]||(i[1]=e.withKeys(C=>e.unref(d)(),["enter"])),onClear:i[2]||(i[2]=C=>e.unref(d)())},null,8,["modelValue","placeholder"]),e.createVNode(x,{modelValue:e.unref(s).status,"onUpdate:modelValue":i[3]||(i[3]=C=>e.unref(s).status=C),onChange:i[4]||(i[4]=C=>e.unref(d)())},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],C=>e.createVNode(k,{key:C,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${C}`),value:C},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:i[5]||(i[5]=C=>e.unref(d)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref($).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(s),autoSearch:""},null,8,["url","search-param"]),e.createVNode(te,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(t)},null,8,["onRefresh"])]),_:1})}}}),ne=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),I={tops:"tops",rules:"rules"},S=l.AutoApiUtils.createAutoApi("menu",I,"id",Object.keys(I),[],["TOP_MENU_LIST","MENU_LIST"]),K=l.createAutoApi("rule",{},"key");/*! Element Plus Icons Vue v2.3.1 */var oe=e.defineComponent({name:"Key",__name:"key",setup(N){return(T,_)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),ae=oe;const de=e.defineComponent({__name:"TopMenuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{emit:T}){const _=T,b=N,{requesting:h}=l.useLoading(S),{value:f,options:s,change:d,refresh:p,filterOptions:t}=l.useSelect(e.toRef(b,"modelValue"),_,{key:"TOP_MENU_LIST",api:S,url:S.urls.tops,isArray:!0});return(g,a)=>{const c=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(c,{class:"w-full",modelValue:e.unref(f),"onUpdate:modelValue":a[1]||(a[1]=i=>e.isRef(f)?f.value=i:null),options:e.unref(s),multiple:N.multiple,disabled:e.unref(h),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(t),onChange:e.unref(d)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(h),onRefresh:a[0]||(a[0]=i=>e.unref(p)(!0))},null,8,["loading"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),se=e.defineComponent({__name:"MenuFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,menu_id:0,module:"",sort:0,name:"",en_name:"",url:"",component:"",icon:"",remark:"",meta:{active:"",icon:"",title:"",affix:!1,full:!1,hide:!1,keep_alive:!1,link:!1}},f={sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],module:[{required:!0,message:l.Translate("base.placeholder.input menu.module"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],url:[{required:!0,message:l.Translate("base.placeholder.input base.url"),trigger:"blur"}],component:[{required:!0,message:l.Translate("base.placeholder.input menu.component"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,S);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-col"),C=e.resolveComponent("el-input-number"),m=e.resolveComponent("el-row"),R=e.resolveComponent("el-input"),V=e.resolveComponent("el-switch"),U=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[17]||(r[17]=y=>e.isRef(s)?s.value=y:null),title:e.unref(d)(),width:"1000px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(U,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(m,{gutter:20},{default:e.withCtx(()=>[e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(m,{gutter:10},{default:e.withCtx(()=>[e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("base.parent"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(t).menu_id,"onUpdate:modelValue":r[0]||(r[0]=y=>e.unref(t).menu_id=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(C,{class:"w-full",modelValue:e.unref(t).sort,"onUpdate:modelValue":r[1]||(r[1]=y=>e.unref(t).sort=y),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(n,{label:e.unref(l.Translate)("menu.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).module,"onUpdate:modelValue":r[2]||(r[2]=y=>e.unref(t).module=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[3]||(r[3]=y=>e.unref(t).name=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).en_name,"onUpdate:modelValue":r[4]||(r[4]=y=>e.unref(t).en_name=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("menu.component"),prop:"component"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).component,"onUpdate:modelValue":r[5]||(r[5]=y=>e.unref(t).component=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.url"),prop:"url"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).url,"onUpdate:modelValue":r[6]||(r[6]=y=>e.unref(t).url=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[7]||(r[7]=y=>e.unref(t).remark=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("base.icon"),prop:"icon"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).icon,"onUpdate:modelValue":r[8]||(r[8]=y=>e.unref(t).icon=y),placeholder:e.unref(l.Translate)("base.placeholder.input"),onInput:r[9]||(r[9]=y=>{e.unref(t).meta.icon=y})},{prepend:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass("iconfont "+e.unref(t).icon)},null,2)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.title"),prop:"meta.title"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).meta.title,"onUpdate:modelValue":r[10]||(r[10]=y=>e.unref(t).meta.title=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("menu.active"),prop:"meta.active"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(t).meta.active,"onUpdate:modelValue":r[11]||(r[11]=y=>e.unref(t).meta.active=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,null,{default:e.withCtx(()=>[e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.link"),prop:"meta.link"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.link,"onUpdate:modelValue":r[12]||(r[12]=y=>e.unref(t).meta.link=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.keep_alive"),prop:"meta.keep_alive"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.keep_alive,"onUpdate:modelValue":r[13]||(r[13]=y=>e.unref(t).meta.keep_alive=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.hide"),prop:"meta.hide"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.hide,"onUpdate:modelValue":r[14]||(r[14]=y=>e.unref(t).meta.hide=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.full"),prop:"meta.full"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.full,"onUpdate:modelValue":r[15]||(r[15]=y=>e.unref(t).meta.full=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(o,{span:12},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.affix"),prop:"meta.affix"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(t).meta.affix,"onUpdate:modelValue":r[16]||(r[16]=y=>e.unref(t).meta.affix=y)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),ie=e.defineComponent({__name:"MenuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{emit:T}){const _=T,b=N,{requesting:h}=l.useLoading(S),{value:f,options:s,change:d,refresh:p,filterOptions:t}=l.useSelect(e.toRef(b,"modelValue"),_,{key:"MENU_LIST",api:S,isArray:!0});return(g,a)=>{const c=e.resolveComponent("el-space"),i=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(i,{class:"w-full",modelValue:e.unref(f),"onUpdate:modelValue":a[1]||(a[1]=w=>e.isRef(f)?f.value=w:null),options:e.unref(s),multiple:N.multiple,disabled:e.unref(h),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(t),onChange:e.unref(d)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(h),onRefresh:a[0]||(a[0]=w=>e.unref(p)(!0))},null,8,["loading"])]),default:e.withCtx(({item:w})=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(`icon iconfont ${w.icon}`)},null,2),e.createElementVNode("span",null,e.toDisplayString(w.translate),1)]),_:2},1024)]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),pe=e.defineComponent({__name:"MenuRuleFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={key:"",menu_id:0,sort:0,name:"",en_name:"",urls:"",remark:""},f={menu_id:[{required:!0,type:"number",message:l.Translate("base.placeholder.select menu.Menu"),trigger:"blur"}],sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],urls:[{required:!0,message:l.Translate("base.placeholder.input menu.rules"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,K);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-input-number"),C=e.resolveComponent("el-input"),m=e.resolveComponent("el-col"),R=e.resolveComponent("el-row"),V=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[6]||(r[6]=U=>e.isRef(s)?s.value=U:null),title:e.unref(d)("menu.rules"),width:"1000px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(V,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(R,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:10},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.Menu"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(ie,{modelValue:e.unref(t).menu_id,"onUpdate:modelValue":r[0]||(r[0]=U=>e.unref(t).menu_id=U)},null,8,["modelValue"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(o,{class:"w-full",modelValue:e.unref(t).sort,"onUpdate:modelValue":r[1]||(r[1]=U=>e.unref(t).sort=U),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[2]||(r[2]=U=>e.unref(t).name=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(t).en_name,"onUpdate:modelValue":r[3]||(r[3]=U=>e.unref(t).en_name=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[4]||(r[4]=U=>e.unref(t).remark=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(m,{span:14},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("menu.rules"),prop:"urls"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(t).urls,"onUpdate:modelValue":r[5]||(r[5]=U=>e.unref(t).urls=U),type:"textarea",rows:11,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}});function Y(N){return typeof N=="function"||Object.prototype.toString.call(N)==="[object Object]"&&!e.isVNode(N)}const W=e.defineComponent({__name:"index",setup(N){const T={keyword:"",status:0},_=e.ref(""),b=[{label:l.Translate("base.sort"),prop:"sort",width:60},{label:l.Translate("base.icon"),prop:"icon",width:60,render:({row:r})=>e.createVNode("span",{class:"iconfont "+r.icon,style:"font-size: 16px;"},null)},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.parent"),prop:"parent",width:120,render:({row:r})=>{var n;return e.createVNode(e.Fragment,null,[(n=r.menu)==null?void 0:n.translate])}},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.url"),prop:"url",align:"left",width:200},{label:l.Translate("menu.component"),prop:"component",align:"left",width:200},{label:l.Translate("menu.rules"),prop:"rules",width:0,align:"left",render:({row:r})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>{var n;return[(n=r.rules)==null?void 0:n.map(o=>e.createVNode(e.resolveComponent("el-popover"),{visible:_.value===o.key,title:l.Translate("message.title.warning"),placement:"top-end",width:220},{reference:()=>e.createVNode(e.resolveComponent("el-tag"),{class:"cursor-pointer",closable:!0,key:o.key,onClick:()=>k({key:o.key}),onClose:()=>_.value=o.key},{default:()=>[o.translate]}),default:()=>{let C,m;return e.createVNode("div",null,[e.createVNode("p",null,null),e.createVNode("p",null,[`${l.Translate("base.confirm base.delete menu.rules")}: ${r.translate}-${o.translate} ?`]),e.createVNode("div",{style:"text-align: right; margin: 0"},[e.createVNode(e.resolveComponent("el-button"),{size:"small",text:!0,onClick:()=>_.value=""},Y(C=l.Translate("base.cancel"))?C:{default:()=>[C]}),e.createVNode(e.resolveComponent("el-button"),{size:"small",type:"danger",onClick:()=>x(o.key)},Y(m=l.Translate("base.confirm"))?m:{default:()=>[m]})])])}}))]}})},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:S.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:r})=>e.createVNode(l.ModifyButton,{size:"default",onModify:()=>c({id:r.id})},null)}],{requesting:h}=l.useLoading(S),{tableRef:f,formModalRef:s,keyword:d,search:p,refresh:t,reset:g,openFormModal:a,editFormModal:c}=l.useCrudPage(T),{formModalRef:i,openFormModal:w,editFormModal:k}=l.useCrudPage(),x=r=>{K[l.DEFAULT_REMOVE_KEY]({key:r}).then(()=>{_.value="",t()})};return(r,n)=>{const o=e.resolveComponent("el-button"),C=e.resolveComponent("el-input"),m=e.resolveComponent("el-radio-button"),R=e.resolveComponent("el-radio-group"),V=e.resolveComponent("el-space"),U=e.resolveComponent("el-page-header"),y=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(y,{class:"basic-card flex-full","body-class":"flex-1",onClick:n[5]||(n[5]=()=>_.value="")},{header:e.withCtx(()=>[e.createVNode(U,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(h),onRefresh:e.unref(g)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(a)},null,8,["onOpen"]),e.createVNode(o,{circle:"",icon:e.unref(ae),onClick:e.unref(w)},null,8,["icon","onClick"])]),content:e.withCtx(()=>[e.createVNode(V,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(C,{class:"basic-search-input",modelValue:e.unref(d).keyword,"onUpdate:modelValue":n[0]||(n[0]=A=>e.unref(d).keyword=A),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:n[1]||(n[1]=e.withKeys(A=>e.unref(p)(),["enter"])),onClear:n[2]||(n[2]=A=>e.unref(p)())},null,8,["modelValue","placeholder"]),e.createVNode(R,{modelValue:e.unref(d).status,"onUpdate:modelValue":n[3]||(n[3]=A=>e.unref(d).status=A),onChange:n[4]||(n[4]=A=>e.unref(p)())},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],A=>e.createVNode(m,{key:A,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${A}`),value:A},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(h),onSearch:e.unref(p)},null,8,["disabled","onSearch"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:f,size:"small",columns:b,url:e.unref(S).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(d),autoSearch:""},null,8,["url","search-param"]),e.createVNode(se,{ref_key:"formModalRef",ref:s,onRefresh:e.unref(t)},null,8,["onRefresh"]),e.createVNode(pe,{ref_key:"ruleFormModalRef",ref:i,onRefresh:e.unref(t)},null,8,["onRefresh"])]),_:1})}}}),me=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),fe={class:"rule-check"},ce={style:{width:"80px","line-height":"36px"}},be=e.defineComponent({__name:"RulesCheck",props:{modelValue:{type:Array,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(N,{expose:T,emit:_}){const{requesting:b}=l.useLoading(S),h=N,f=_,s=e.ref(!1),d=e.reactive({checkAll:!1,indeterminate:!1,MenuAll:{},MenuList:{},MenuIndeterminate:{}}),{options:p,refresh:t}=l.useSelect(e.toRef(h,"modelValue"),f,{key:"RULE_CHECK",api:S,url:S.urls.rules,isArray:!0},!1);function g(){p.value.forEach(x=>{var r;(r=x.rules)!=null&&r.length&&(d.MenuAll[x.id]=!1,d.MenuIndeterminate[x.id]=!1,d.MenuList[x.id]=[])})}function a(x){p.value.forEach(r=>{var n;(n=r.rules)!=null&&n.length&&(d.MenuList[r.id]=x?r.rules.map(o=>o.key):[])}),i()}function c(x,r){const n=p.value.find(o=>o.id===r);d.MenuList[r]=x&&n?n.rules.map(o=>o.key):[],i()}function i(){p.value.forEach(x=>{var o,C;const r=((o=x.rules)==null?void 0:o.length)||0,n=((C=d.MenuList[x.id])==null?void 0:C.length)||0;d.MenuAll[x.id]=n===r&&r>0,d.MenuIndeterminate[x.id]=n>0&&n<r}),d.checkAll=Object.values(d.MenuAll).every(Boolean),d.indeterminate=!d.checkAll&&Object.values(d.MenuList).some(x=>x.length>0),f("update:modelValue",Object.values(d.MenuList).flat())}function w(){d.checkAll=!1,d.indeterminate=!1,d.MenuAll={},d.MenuList={},d.MenuIndeterminate={},g(),f("update:modelValue",[]),s.value=!1}function k(x){var r;if(Array.isArray(p.value)&&p.value.length>0){for(let n of p.value)if(Array.isArray(n.rules)&&n.rules.length>0)for(let o of n.rules)x.some(C=>C===o.key)&&(d.MenuList[n.id]=(((r=d.MenuList)==null?void 0:r[n.id])||[]).concat([o.key]));i(),s.value=!0}}return e.onMounted(async()=>{var x;(x=p.value)!=null&&x.length||await t(),!s.value&&h.modelValue&&k(h.modelValue)}),e.watch(()=>h.modelValue,x=>{e.nextTick(()=>{var r;s.value||!((r=p.value)!=null&&r.length)||x&&x.length>0&&k(x)})},{deep:!0,immediate:!0}),T({generateOption:k,cleanChecked:w}),(x,r)=>{const n=e.resolveComponent("el-checkbox"),o=e.resolveComponent("el-space"),C=e.resolveComponent("el-text"),m=e.resolveComponent("el-divider"),R=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(o,{style:{"margin-bottom":"6px"}},{default:e.withCtx(()=>[e.createVNode(n,{"model-value":d.checkAll,indeterminate:d.indeterminate,id:"all",disabled:N.disabled,onChange:a},{default:e.withCtx(()=>r[1]||(r[1]=[e.createElementVNode("span",null,"全选",-1)])),_:1,__:[1]},8,["model-value","indeterminate","disabled"]),e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),text:"",size:"small",onRefresh:r[0]||(r[0]=V=>e.unref(t)(!0))},null,8,["loading"])]),_:1}),e.createVNode(o,{direction:"vertical",alignment:"start",class:"rule-check-content"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),V=>(e.openBlock(),e.createElementBlock("div",{key:V.id},[e.createVNode(o,{direction:"horizontal",size:2},{default:e.withCtx(()=>[e.createVNode(n,{style:{"min-width":"150px"},"model-value":d.MenuAll[V.id],disabled:N.disabled||!V.rules||V.rules.length<=0,indeterminate:d.MenuIndeterminate[V.id],onChange:U=>c(U,V.id)},{default:e.withCtx(()=>[e.createVNode(C,{style:{"font-size":"15px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.translate),1)]),_:2},1024)]),_:2},1032,["model-value","disabled","indeterminate","onChange"]),e.createVNode(m,{direction:"vertical"}),V.rules?(e.openBlock(),e.createBlock(R,{key:0,modelValue:d.MenuList[V.id],"onUpdate:modelValue":U=>d.MenuList[V.id]=U,disabled:N.disabled,style:{margin:"auto"},onChange:i},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.rules,U=>(e.openBlock(),e.createBlock(n,{key:U.key,value:U.key},{default:e.withCtx(()=>[e.createElementVNode("div",ce,e.toDisplayString(U.translate),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1})])}}}),G=(N,T)=>{const _=N.__vccOpts||N;for(const[b,h]of T)_[b]=h;return _},_e=G(be,[["__scopeId","data-v-487a9d12"]]),he=e.defineComponent({__name:"RoleFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h=e.ref(),f={key:"",module:"",sort:0,name:"",en_name:"",remark:"",rules:[]},s={name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}]},{modal:d,title:p,form:t,formData:g,requesting:a,executing:c,open:i,modify:w,submit:k,closed:x}=l.useForm(b,f,q),r=()=>{var n;(n=h.value)==null||n.cleanChecked(),x()};return T({open:i,modify:w}),(n,o)=>{const C=e.resolveComponent("el-input"),m=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-col"),V=e.resolveComponent("el-input-number"),U=e.resolveComponent("el-row"),y=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(d),"onUpdate:modelValue":o[6]||(o[6]=A=>e.isRef(d)?d.value=A:null),title:e.unref(p)(),width:"1000px",executing:e.unref(c),onClosed:r,onSubmit:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(y,{ref_key:"form",ref:t,model:e.unref(g),"label-width":"auto",rules:s,disabled:e.unref(a)||e.unref(c)},{default:e.withCtx(()=>[e.createVNode(U,{gutter:20},{default:e.withCtx(()=>[e.createVNode(R,{span:12},{default:e.withCtx(()=>[e.createVNode(m,{label:e.unref(l.Translate)("base.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(g).module,"onUpdate:modelValue":o[0]||(o[0]=A=>e.unref(g).module=A),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(R,{span:12},{default:e.withCtx(()=>[e.createVNode(m,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(V,{class:"w-full",modelValue:e.unref(g).sort,"onUpdate:modelValue":o[1]||(o[1]=A=>e.unref(g).sort=A),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(m,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(g).name,"onUpdate:modelValue":o[2]||(o[2]=A=>e.unref(g).name=A),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(g).en_name,"onUpdate:modelValue":o[3]||(o[3]=A=>e.unref(g).en_name=A),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(g).remark,"onUpdate:modelValue":o[4]||(o[4]=A=>e.unref(g).remark=A),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(m,{label:e.unref(l.Translate)("menu.rules"),prop:"rules"},{default:e.withCtx(()=>[e.createVNode(_e,{ref_key:"rulesCheck",ref:h,modelValue:e.unref(g).rules,"onUpdate:modelValue":o[5]||(o[5]=A=>e.unref(g).rules=A),disabled:e.unref(a)||e.unref(c)},null,8,["modelValue","disabled"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onSubmit"])}}}),H=e.defineComponent({__name:"index",setup(N){const T={keyword:""},_=[{label:l.Translate("base.sort"),prop:"sort",width:80},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:180},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:c})=>e.createVNode(l.ModifyButton,{onModify:()=>a({key:c.key})},null)}],{requesting:b}=l.useLoading(q),{tableRef:h,formModalRef:f,keyword:s,search:d,reset:p,refresh:t,openFormModal:g,editFormModal:a}=l.useCrudPage(T);return(c,i)=>{const w=e.resolveComponent("el-input"),k=e.resolveComponent("el-space"),x=e.resolveComponent("el-page-header"),r=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(r,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(x,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(p)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(g)},null,8,["onOpen"])]),content:e.withCtx(()=>[e.createVNode(k,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(w,{class:"basic-search-input",modelValue:e.unref(s).keyword,"onUpdate:modelValue":i[0]||(i[0]=n=>e.unref(s).keyword=n),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:i[1]||(i[1]=e.withKeys(n=>e.unref(d)(),["enter"])),onClear:i[2]||(i[2]=n=>e.unref(d)())},null,8,["modelValue","placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:i[3]||(i[3]=n=>e.unref(d)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(q).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(s),autoSearch:""},null,8,["url","search-param"]),e.createVNode(he,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(t)},null,8,["onRefresh"])]),_:1})}}}),ge=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"})),D=l.createAutoApi("site",{check:"check"},"id",["check"],[]),E=l.createAutoApi("domain",{},"id",[],[]),Q=e.defineComponent({__name:"DomainSelect",props:{modelValue:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{expose:T,emit:_}){const b=_,h=N,{requesting:f}=l.useLoading(E),{key:s,options:d,refresh:p,change:t}=l.useSelect(e.toRef(h,"modelValue"),b,{key:"DOMAIN_LIST",api:E,isArray:!0});return T({refresh:p}),(g,a)=>{const c=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(c,{modelValue:e.unref(s),"onUpdate:modelValue":a[0]||(a[0]=i=>e.isRef(s)?s.value=i:null),options:e.unref(d),disabled:N.disabled||e.unref(f),placeholder:e.unref(l.Translate)("base.select config.domain"),onChange:e.unref(t)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(f),onRefresh:e.unref(p)},null,8,["loading","onRefresh"])]),_:1},8,["modelValue","options","disabled","placeholder","onChange"])}}}),Ce=e.defineComponent({__name:"SiteFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,domain_id:0,prefix:"",name:"",en_name:"",dns:"",git:"",status:1,remark:""},f={domain_id:[{required:!0,message:l.Translate("base.placeholder.input config.domain"),trigger:"blur"}],prefix:[{required:!0,message:l.Translate("base.placeholder.input base.prefix"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,D);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-input"),C=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[7]||(r[7]=m=>e.isRef(s)?s.value=m:null),title:e.unref(d)("config.site"),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(C,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(n,{prop:"domain_id",label:e.unref(l.Translate)("config.domain")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:e.unref(t).domain_id,"onUpdate:modelValue":r[0]||(r[0]=m=>e.unref(t).domain_id=m),disabled:e.unref(a)},null,8,["modelValue","disabled"])]),_:1},8,["label"]),e.createVNode(n,{prop:"prefix",label:e.unref(l.Translate)("config.prefix")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).prefix,"onUpdate:modelValue":r[1]||(r[1]=m=>e.unref(t).prefix=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"name",label:e.unref(l.Translate)("base.name")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[2]||(r[2]=m=>e.unref(t).name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"en_name",label:e.unref(l.Translate)("base.en_name")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).en_name,"onUpdate:modelValue":r[3]||(r[3]=m=>e.unref(t).en_name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"dns",label:e.unref(l.Translate)("config.dns")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).dns,"onUpdate:modelValue":r[4]||(r[4]=m=>e.unref(t).dns=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"git",label:e.unref(l.Translate)("config.git")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).git,"onUpdate:modelValue":r[5]||(r[5]=m=>e.unref(t).git=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"remark",label:e.unref(l.Translate)("base.remark")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[6]||(r[6]=m=>e.unref(t).remark=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),O=l.createAutoApi("domain_provider",{},"id",[],[]),Te=e.defineComponent({__name:"DomainProviderSelect",props:{modelValue:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{expose:T,emit:_}){const b=_,h=N,{requesting:f}=l.useLoading(O),{key:s,options:d,refresh:p,change:t}=l.useSelect(e.toRef(h,"modelValue"),b,{key:"DOMAIN_PROVIDER_LIST",api:O,isArray:!0});return T({refresh:p}),(g,a)=>{const c=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(c,{modelValue:e.unref(s),"onUpdate:modelValue":a[0]||(a[0]=i=>e.isRef(s)?s.value=i:null),options:e.unref(d),disabled:N.disabled||e.unref(f),placeholder:e.unref(l.Translate)("base.select config.domain config.provider"),onChange:e.unref(t)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(f),onRefresh:e.unref(p)},null,8,["loading","onRefresh"])]),_:1},8,["modelValue","options","disabled","placeholder","onChange"])}}}),xe=e.defineComponent({__name:"DomainFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,provider_id:0,name:"",expired_at:"",status:1,remark:""},f={provider_id:[{required:!0,message:l.Translate("base.placeholder.input config.domain config.provider"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,E);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-input"),C=e.resolveComponent("el-date-picker"),m=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[4]||(r[4]=R=>e.isRef(s)?s.value=R:null),title:e.unref(d)("config.domain"),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(m,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(n,{prop:"provider_id",label:e.unref(l.Translate)("config.provider")},{default:e.withCtx(()=>[e.createVNode(Te,{modelValue:e.unref(t).provider_id,"onUpdate:modelValue":r[0]||(r[0]=R=>e.unref(t).provider_id=R),disabled:e.unref(a)},null,8,["modelValue","disabled"])]),_:1},8,["label"]),e.createVNode(n,{prop:"name",label:e.unref(l.Translate)("base.name")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[1]||(r[1]=R=>e.unref(t).name=R),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"expired_at",required:"",label:e.unref(l.Translate)("base.expired_at")},{default:e.withCtx(()=>[e.createVNode(C,{type:"date",style:{width:"100%"},modelValue:e.unref(t).expired_at,"onUpdate:modelValue":r[2]||(r[2]=R=>e.unref(t).expired_at=R),disabled:e.unref(a),"value-format":e.unref(l.TimeUtils).DATE_VALUE_FORMAT,format:e.unref(l.TimeUtils).DATE_FORMAT,placeholder:e.unref(l.Translate)("base.placeholder.select")},null,8,["modelValue","disabled","value-format","format","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"remark",label:e.unref(l.Translate)("base.remark")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[3]||(r[3]=R=>e.unref(t).remark=R),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),we=e.defineComponent({__name:"SiteSelect",props:{modelValue:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(N,{expose:T,emit:_}){const b=_,h=N,{requesting:f}=l.useLoading(D),{key:s,options:d,refresh:p,change:t}=l.useSelect(e.toRef(h,"modelValue"),b,{key:"SITE_LIST",api:D,isArray:!0,formatOptions:g=>g.map(a=>{var c;return{label:a.prefix+"."+((c=a.domain)==null?void 0:c.name),value:a.id}})});return T({refresh:p}),(g,a)=>{const c=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(c,{modelValue:e.unref(s),"onUpdate:modelValue":a[0]||(a[0]=i=>e.isRef(s)?s.value=i:null),options:e.unref(d),disabled:N.disabled||e.unref(f),placeholder:e.unref(l.Translate)("base.select config.domain"),onChange:e.unref(t)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.InlineRefreshButton),{loading:e.unref(f),onRefresh:e.unref(p)},null,8,["loading","onRefresh"])]),_:1},8,["modelValue","options","disabled","placeholder","onChange"])}}}),Ne=e.defineComponent({__name:"SSLFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,domain_id:0,site_id:0,name:"",path:"",email:"",encryption:"",remark:""},f={domain_id:[{required:!0,message:l.Translate("base.placeholder.select config.domain "),trigger:"blur"}],site_id:[{required:!0,message:l.Translate("base.placeholder.select config.site "),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],path:[{required:!0,message:l.Translate("base.placeholder.input base.path"),trigger:"blur"}],email:[{required:!0,message:l.Translate("base.placeholder.input base.email"),trigger:"blur"}],encryption:[{required:!0,message:l.Translate("base.placeholder.input config.encryption"),trigger:"blur"}]},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,E);return T({open:c,modify:i,formData:t}),(x,r)=>{const n=e.resolveComponent("el-form-item"),o=e.resolveComponent("el-input"),C=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[7]||(r[7]=m=>e.isRef(s)?s.value=m:null),title:e.unref(d)("config.domain"),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(C,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(n,{prop:"domain_id",label:e.unref(l.Translate)("config.domain")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:e.unref(t).domain_id,"onUpdate:modelValue":r[0]||(r[0]=m=>e.unref(t).domain_id=m),disabled:e.unref(a)},null,8,["modelValue","disabled"])]),_:1},8,["label"]),e.createVNode(n,{prop:"site_id",label:e.unref(l.Translate)("config.site")},{default:e.withCtx(()=>[e.createVNode(we,{modelValue:e.unref(t).site_id,"onUpdate:modelValue":r[1]||(r[1]=m=>e.unref(t).site_id=m),disabled:e.unref(a)||e.unref(t).domain_id>0},null,8,["modelValue","disabled"])]),_:1},8,["label"]),e.createVNode(n,{prop:"name",label:e.unref(l.Translate)("base.name")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[2]||(r[2]=m=>e.unref(t).name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"path",label:e.unref(l.Translate)("base.path")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).path,"onUpdate:modelValue":r[3]||(r[3]=m=>e.unref(t).path=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"email",label:e.unref(l.Translate)("base.email")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).email,"onUpdate:modelValue":r[4]||(r[4]=m=>e.unref(t).email=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"encryption",label:e.unref(l.Translate)("config.encryption")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).encryption,"onUpdate:modelValue":r[5]||(r[5]=m=>e.unref(t).encryption=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{prop:"remark",label:e.unref(l.Translate)("base.remark")},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[6]||(r[6]=m=>e.unref(t).remark=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),ke=e.defineComponent({__name:"DomainProviderFormModal",emits:["refresh"],setup(N,{expose:T,emit:_}){const b=_,h={id:0,name:"",en_name:"",key:"",secret:"",end_point:"",status:1,remark:""},f={name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"},key:{required:!0,message:l.Translate("base.placeholder.input base.key"),trigger:"blur"},secret:{required:!0,message:l.Translate("base.placeholder.input config.secret"),trigger:"blur"},end_point:{required:!0,message:l.Translate("base.placeholder.input config.endpoint"),trigger:"blur"}},{modal:s,title:d,form:p,formData:t,requesting:g,executing:a,open:c,modify:i,submit:w,closed:k}=l.useForm(b,h,O);return T({open:c,modify:i}),(x,r)=>{const n=e.resolveComponent("el-input"),o=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":r[6]||(r[6]=m=>e.isRef(s)?s.value=m:null),title:e.unref(d)("config.domain"),width:"600px",executing:e.unref(a),onClosed:e.unref(k),onSubmit:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(C,{ref_key:"form",ref:p,model:e.unref(t),"label-width":"auto",rules:f,disabled:e.unref(g)||e.unref(a)},{default:e.withCtx(()=>[e.createVNode(o,{prop:"name",label:e.unref(l.Translate)("base.name")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).name,"onUpdate:modelValue":r[0]||(r[0]=m=>e.unref(t).name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"en_name",label:e.unref(l.Translate)("base.en_name")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).en_name,"onUpdate:modelValue":r[1]||(r[1]=m=>e.unref(t).en_name=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"key",label:e.unref(l.Translate)("base.key")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).key,"onUpdate:modelValue":r[2]||(r[2]=m=>e.unref(t).key=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"secret",label:e.unref(l.Translate)("config.secret")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).secret,"onUpdate:modelValue":r[3]||(r[3]=m=>e.unref(t).secret=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"end_point",label:e.unref(l.Translate)("config.end_point")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).end_point,"onUpdate:modelValue":r[4]||(r[4]=m=>e.unref(t).end_point=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{prop:"remark",label:e.unref(l.Translate)("base.remark")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:e.unref(t).remark,"onUpdate:modelValue":r[5]||(r[5]=m=>e.unref(t).remark=m),disabled:e.unref(a),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),ye=e.defineComponent({__name:"DomainProviderTableDrawer",setup(N,{expose:T}){const{requesting:_}=l.useLoading(O),b=e.ref(!1),{tableRef:h,formModalRef:f,refresh:s,openFormModal:d,editFormModal:p}=l.useCrudPage({}),t=[{prop:"name",label:l.Translate("base.name"),width:0,minWidth:140},{prop:"en_name",label:l.Translate("base.en_name"),width:120},{prop:"actions",label:l.Translate("base.action"),width:60,align:"center",render:({rowData:a})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>[e.createVNode(l.ModifyButton,{icon:"icon-edit",t:"",onModify:()=>p({id:a.id})},null)]})}];return T({open:()=>{b.value=!0}}),(a,c)=>{const i=e.resolveComponent("el-page-header");return e.openBlock(),e.createBlock(e.unref(l.BasicDrawer),{modelValue:b.value,"onUpdate:modelValue":c[0]||(c[0]=w=>b.value=w),width:"400px","show-close":!1,class:"basic-drawer"},{title:e.withCtx(()=>[e.createVNode(i,{icon:""},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(l.Translate)("config.domain config.provider")),1)]),content:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s),size:"default",loading:e.unref(_)},null,8,["onRefresh","loading"])]),extra:e.withCtx(()=>[e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(d)},null,8,["onOpen"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small","row-key":"id",url:e.unref(O).urls.list,columns:t,loading:e.unref(_)},null,8,["url","loading"]),e.createVNode(ke,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(s)},null,8,["onRefresh"])]),_:1},8,["modelValue"])}}}),Ve=e.defineComponent({__name:"DomainTableDrawer",setup(N,{expose:T}){const{requesting:_}=l.useLoading(E),b=e.ref(!1),{tableRef:h,formModalRef:f,refresh:s,openFormModal:d,editFormModal:p}=l.useCrudPage(),{formModalRef:t,openFormModal:g,editFormModal:a}=l.useCrudPage(),{formModalRef:c,openFormModal:i}=l.useCrudPage(),w=[{prop:"provider",label:l.Translate("config.domain config.provider"),width:120,cellRenderer:({rowData:x})=>e.createVNode(e.resolveComponent("el-text"),null,{default:()=>{var r;return[(r=x.provider)==null?void 0:r.name]}})},{prop:"name",label:l.Translate("base.name"),width:0,minWidth:120},{prop:"expired_text",label:l.Translate("base.expired_at"),width:160},{prop:"actions",label:l.Translate("base.action"),width:100,align:"center",render:({rowData:x})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>[e.createVNode(l.ModifyButton,{icon:"icon-edit",t:"",onModify:()=>p({id:x.id})},null),e.createVNode(l.OpenButton,{icon:"icon-safetycertificate-f",type:"primary",size:"small",link:!0,onOpen:()=>{var r;x.ssl&&x.ssl.id?a({id:(r=x.ssl)==null?void 0:r.id}):(t.value.formData.domain_id=x.id,t.value.formData.site_id=0,g())}},null)]})}];return T({open:()=>{b.value=!0}}),(x,r)=>{const n=e.resolveComponent("el-space"),o=e.resolveComponent("el-page-header");return e.openBlock(),e.createBlock(e.unref(l.BasicDrawer),{modelValue:b.value,"onUpdate:modelValue":r[0]||(r[0]=C=>b.value=C),width:"600px","show-close":!1,class:"basic-drawer"},{title:e.withCtx(()=>[e.createVNode(o,{icon:""},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(l.Translate)("config.domain")),1)]),content:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s),size:"default",loading:e.unref(_)},null,8,["onRefresh","loading"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(d)},null,8,["onOpen"])]),extra:e.withCtx(()=>[e.createVNode(n,{class:"w-full extra-tool",alignment:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(i),type:"danger"},null,8,["onOpen"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small","row-key":"id",url:e.unref(E).urls.list,columns:w,loading:e.unref(_)},null,8,["url","loading"]),e.createVNode(xe,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(Ne,{ref_key:"sslFormModalRef",ref:t,onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(ye,{ref_key:"providerTableDrawerRef",ref:c},null,512)]),_:1},8,["modelValue"])}}}),J=l.createAutoApi("SSLLog",{},"id",[],[]),X=l.createAutoApi("SSL",{gen:"gen"},"id",[],["gen"]),Re=e.defineComponent({__name:"SSLLogTableDrawer",props:{ssl:{type:Object,default:()=>({})}},setup(N,{expose:T}){const _=N,{requesting:b,executing:h}=l.useLoading([J,X]),f=e.ref(!1),{tableRef:s,refresh:d}=l.useCrudPage(),p=[{prop:"status_text",label:l.Translate("base.status"),width:100},{prop:"at",label:l.Translate("base.time"),width:180},{prop:"type_text",label:l.Translate("base.type"),width:80},{prop:"result",label:l.Translate("base.result"),width:0}],t=()=>{f.value=!0};function g(){X.gen({id:_.ssl.id}).then(c=>{console.warn("Res:",c)})}function a(){const c=l.AssetsUtils.getDownloadUrl(_.ssl.path+".zip");fetch(c).then(i=>i.blob()).then(i=>{let w=URL.createObjectURL(i),k=document.createElement("a");k.style.display="none",k.href=w,k.download=_.ssl.name+".zip",k.click(),URL.revokeObjectURL(i)})}return T({open:t}),(c,i)=>{const w=e.resolveComponent("el-page-header");return e.openBlock(),e.createBlock(e.unref(l.BasicDrawer),{modelValue:f.value,"onUpdate:modelValue":i[0]||(i[0]=k=>f.value=k),width:"600px","show-close":!1,class:"basic-drawer"},{title:e.withCtx(()=>[e.createVNode(w,{icon:""},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(l.Translate)("config.ssl base.log")),1)]),content:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(d),size:"default",loading:e.unref(b)},null,8,["onRefresh","loading"])]),extra:e.withCtx(()=>[e.createVNode(e.unref(l.RequestButton),{size:"default",type:"danger",icon:"icon-key",loading:e.unref(h),onClick:g},null,8,["loading"]),e.createVNode(e.unref(l.RequestButton),{size:"default",type:"primary",icon:"icon-cloud-download",loading:e.unref(h),onClick:a},null,8,["loading"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:s,size:"small","row-key":"id",url:e.unref(J).urls.search,columns:p,loading:e.unref(b)},null,8,["url","loading"])]),_:1},8,["modelValue"])}}}),Z=G(e.defineComponent({__name:"index",setup(N){const T=e.ref(),{requesting:_,executing:b}=l.useLoading(D),{tableRef:h,formModalRef:f,reset:s,refresh:d,openFormModal:p,editFormModal:t}=l.useCrudPage(),{formModalRef:g,openFormModal:a}=l.useCrudPage(),{formModalRef:c,openFormModal:i}=l.useCrudPage(),w=[{prop:"domain.name",label:l.Translate("config.domain"),width:129,type:"copy"},{prop:"name",label:l.Translate("base.name"),width:100},{prop:"dns",label:l.Translate("config.dns"),width:160,type:"copy"},{prop:"git",label:l.Translate("config.git"),width:300,type:"copy"},{prop:"expired_at",label:l.Translate("config.ssl base.expired_at"),align:"center",width:140,cellRenderer:({rowData:r})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>[e.createVNode(e.resolveComponent("el-text"),null,{default:()=>{var n;return[(n=r.ssl)==null?void 0:n.renewal_days,e.createTextVNode(" 天")]}}),e.createVNode(e.resolveComponent("el-button"),{size:"small",type:"primary",text:!0,onClick:n=>{n.stopPropagation(),r.ssl&&r.ssl.id&&(T.value=r.ssl,i())}},{default:()=>[e.createVNode("span",{class:"icon iconfont icon-reloadtime"},null)]})]})},{prop:"remark",label:l.Translate("base.remark"),width:0,minWidth:160},{prop:"operation",label:l.Translate("base.action"),width:100,align:"center",cellRenderer:({rowData:r})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>[e.createVNode(l.ModifyButton,{icon:"icon-edit",t:"",onModify:()=>t({id:r.id})},null),e.createVNode(l.RequestButton,{icon:"icon-securityscan",type:"primary",size:"small",link:!0,disabled:b.value,loading:k.value==r.id&&b.value,onClick:()=>x(r)},null)]})}],k=e.ref(0),x=r=>{k.value=r.id,D.check({id:r.id}).then(n=>{n.data&&(l.notification(n),d())}).finally(()=>{k.value=0})};return(r,n)=>{const o=e.resolveComponent("el-space"),C=e.resolveComponent("el-page-header"),m=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(m,{"body-style":{padding:"12px",height:"450px"},"body-class":"flex-1",class:"config-card"},{header:e.withCtx(()=>[e.createVNode(C,{icon:""},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(l.Translate)("config.keys.sites")),1)]),content:e.withCtx(()=>[e.createVNode(o,{alignment:"center",style:{height:"32px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(_),onRefresh:e.unref(s)},null,8,["loading","onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(p)},null,8,["onOpen"])]),_:1})]),extra:e.withCtx(()=>[e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(a),icon:"icon-compass"},null,8,["onOpen"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small","row-key":"id",url:e.unref(D).urls[e.unref(l.DEFAULT_LIST_URL)],"auto-search":"",columns:w},null,8,["url"]),e.createVNode(Ce,{ref_key:"formModalRef",ref:f,onRefresh:e.unref(d)},null,8,["onRefresh"]),e.createVNode(Ve,{ref_key:"domainTableDrawerRef",ref:g},null,512),e.createVNode(Re,{ref_key:"sslLogTableDrawerRef",ref:c},null,512)]),_:1})}}}),[["__scopeId","data-v-c1583c5b"]]),Ue=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"})),u={request:"request",error:"error",sql:"SQL"},F=l.AutoApiUtils.createAutoApi("log",u,"id",Object.keys(u),[],[]),M=e.defineComponent({__name:"index",setup(N){const T={dates:[l.TimeUtils.getCurrentHour().format(l.TimeUtils.DATE_VALUE_FORMAT),l.TimeUtils.getCurrentHour(1).format(l.TimeUtils.DATE_VALUE_FORMAT)]},_=[{label:l.Translate("base.sort"),type:"index",width:60},{label:l.Translate("base.time"),prop:"time",width:180,render:({rowData:p})=>e.createVNode(e.Fragment,null,[l.TimeUtils.formatDate(p.time)])},{label:l.Translate("base.url"),prop:"url",align:"left",width:200}],{requesting:b}=l.useLoading(F),{tableRef:h,keyword:f,search:s,reset:d}=l.useCrudPage(T);return(p,t)=>{const g=e.resolveComponent("el-date-picker"),a=e.resolveComponent("el-space"),c=e.resolveComponent("el-page-header"),i=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(i,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(c,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(d)},null,8,["loading","onRefresh"])]),content:e.withCtx(()=>[e.createVNode(a,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(f).dates,"onUpdate:modelValue":t[0]||(t[0]=w=>e.unref(f).dates=w),class:"basic-search-datetimerange","value-format":e.unref(l.TimeUtils).DATE_HOUR_FORMAT,format:e.unref(l.TimeUtils).DATE_SHOW_FORMAT,type:"datetimerange","range-separator":"-","start-placeholder":e.unref(l.Translate)("base.start_at"),"end-placeholder":e.unref(l.Translate)("base.end_at"),clearable:!1,onChange:t[1]||(t[1]=w=>e.unref(s)())},null,8,["modelValue","value-format","format","start-placeholder","end-placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:t[2]||(t[2]=w=>e.unref(s)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(F).urls.request,"search-param":e.unref(f),autoSearch:""},null,8,["url","search-param"])]),_:1})}}}),Ae=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),v=e.defineComponent({__name:"index",setup(N){const T={dates:[l.TimeUtils.getCurrentDate(-7).format(l.TimeUtils.DATE_VALUE_FORMAT),l.TimeUtils.getCurrentDate(0).format(l.TimeUtils.DATE_VALUE_FORMAT)]},_=[{label:l.Translate("base.sort"),type:"index",width:60},{label:l.Translate("base.time"),prop:"time",width:180,render:({rowData:p})=>e.createVNode(e.Fragment,null,[l.TimeUtils.formatDate(p.time)])},{label:l.Translate("base.url"),prop:"url",align:"left",width:200}],{requesting:b}=l.useLoading(F),{tableRef:h,keyword:f,search:s,reset:d}=l.useCrudPage(T);return(p,t)=>{const g=e.resolveComponent("el-date-picker"),a=e.resolveComponent("el-space"),c=e.resolveComponent("el-page-header"),i=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(i,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(c,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(d)},null,8,["loading","onRefresh"])]),content:e.withCtx(()=>[e.createVNode(a,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(f).dates,"onUpdate:modelValue":t[0]||(t[0]=w=>e.unref(f).dates=w),class:"basic-search-daterange","value-format":e.unref(l.TimeUtils).DATE_VALUE_FORMAT,format:e.unref(l.TimeUtils).DATE_FORMAT,type:"daterange","range-separator":"-","start-placeholder":e.unref(l.Translate)("base.start_at"),"end-placeholder":e.unref(l.Translate)("base.end_at"),clearable:!1,onChange:t[1]||(t[1]=w=>e.unref(s)())},null,8,["modelValue","value-format","format","start-placeholder","end-placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:t[2]||(t[2]=w=>e.unref(s)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(F).urls.error,"search-param":e.unref(f),autoSearch:""},null,8,["url","search-param"])]),_:1})}}}),Be=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),ee=e.defineComponent({__name:"index",setup(N){const T={dates:[l.TimeUtils.getCurrentDate(-7).format(l.TimeUtils.DATE_VALUE_FORMAT),l.TimeUtils.getCurrentDate().format(l.TimeUtils.DATE_VALUE_FORMAT)]},_=[{label:l.Translate("base.sort"),type:"index",width:60},{label:l.Translate("base.time"),prop:"time",width:180,render:({rowData:p})=>e.createVNode(e.Fragment,null,[l.TimeUtils.formatDate(p.time)])},{label:l.Translate("base.url"),prop:"url",align:"left",width:200}],{requesting:b}=l.useLoading(F),{tableRef:h,keyword:f,search:s,reset:d}=l.useCrudPage(T);return(p,t)=>{const g=e.resolveComponent("el-date-picker"),a=e.resolveComponent("el-space"),c=e.resolveComponent("el-page-header"),i=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(i,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(c,{class:"basic-header"},{title:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(b),onRefresh:e.unref(d)},null,8,["loading","onRefresh"])]),content:e.withCtx(()=>[e.createVNode(a,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(f).dates,"onUpdate:modelValue":t[0]||(t[0]=w=>e.unref(f).dates=w),class:"basic-search-daterange","value-format":e.unref(l.TimeUtils).DATE_HOUR_FORMAT,format:e.unref(l.TimeUtils).DATE_FORMAT,type:"daterange","range-separator":"-","start-placeholder":e.unref(l.Translate)("base.start_at"),"end-placeholder":e.unref(l.Translate)("base.end_at"),clearable:!1,onChange:t[1]||(t[1]=w=>e.unref(s)())},null,8,["modelValue","value-format","format","start-placeholder","end-placeholder"]),e.createVNode(e.unref(l.SearchButton),{disabled:e.unref(b),onSearch:t[2]||(t[2]=w=>e.unref(s)())},null,8,["disabled"])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTableList),{ref_key:"tableRef",ref:h,size:"small",columns:_,url:e.unref(F).urls.sql,"search-param":e.unref(f),autoSearch:""},null,8,["url","search-param"])]),_:1})}}}),Le=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"})),Se=()=>Promise.resolve().then(()=>Ae),De=()=>Promise.resolve().then(()=>Be),Ee=()=>Promise.resolve().then(()=>Le),Fe=[{path:l.REQUEST_LOG_URL,name:"RequestLog",component:Se,meta:{title:l.Translate("menu.RequestLog")}},{path:l.ERROR_LOG_URL,name:"ErrorLog",component:De,meta:{title:l.Translate("menu.ErrorLog")}},{path:l.SQL_LOG_URL,name:"SqlLog",component:Ee,meta:{title:l.Translate("menu.SqlLog")}}],Oe={install:N=>{Reflect.ownKeys(N._context.provides).some(T=>String(T)==="Symbol(pinia)")||console.warn("Pinia is not provided. Please install and provide Pinia in your app."),console.warn(Reflect.ownKeys(N._context.provides))},version:"__VERSION__"},qe=Object.assign({"./views/admin/index.vue":re,"./views/language/index.vue":ne,"./views/menu/index.vue":me,"./views/role/index.vue":ge,"./views/site/index.vue":Ue});L.AdminsPage=z,L.ErrorLogsPage=v,L.LanguagesPage=j,L.LogRoutes=Fe,L.MenusPage=W,L.RequestLogsPage=M,L.RolesPage=H,L.SQLLogsPage=ee,L.SitePage=Z,L.basicModules=qe,L.default=Oe,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.rule-check[data-v-
|
1
|
+
.rule-check[data-v-487a9d12]{width:100%;border-radius:4px}.rule-check-content[data-v-487a9d12]{height:360px;overflow-y:auto}.rule-check-content[data-v-487a9d12]::-webkit-scrollbar{display:none}.config-card[data-v-c1583c5b]{margin-bottom:12px;border-radius:8px}.config-card[data-v-c1583c5b] .el-card__header{padding:12px 20px}.config-card .logo[data-v-c1583c5b],.config-card .transparent-background[data-v-c1583c5b]{background-color:transparent}.config-card .title[data-v-c1583c5b]{font-size:18px}
|
package/dist/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const __VERSION__ = "0.0.
|
1
|
+
export const __VERSION__ = "0.0.50'
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "auto-vue-basic",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.51",
|
4
4
|
"type": "module",
|
5
5
|
"main": "./dist/auto-vue-basic.umd.js",
|
6
6
|
"module": "./dist/auto-vue-basic.es.js",
|
@@ -11,18 +11,17 @@
|
|
11
11
|
"scripts": {
|
12
12
|
"dev": "vite --port 9000",
|
13
13
|
"dev:5173": "vite --port 5173",
|
14
|
-
"build:pub": "npm run build && npm run publish:latest",
|
14
|
+
"build:pub": "npm run lint:fix && npm run build && npm run publish:latest",
|
15
15
|
"build": "rm -rf dist && vite build --config vite.config.ts && echo 'export const __VERSION__ = \"'$(npm pkg get version | tr -d '\"')\"'\" > dist/version.js",
|
16
16
|
"publish:latest": "npm version patch --no-git-tag-version && npm publish",
|
17
17
|
"update:auto": "npm uni auto-vue-manual && npm i auto-vue-manual && npm list auto-vue-manual && npm run update:pkg",
|
18
18
|
"update:pkg": "npm view auto-vue-manual version | xargs -I {} npm pkg set peerDependencies.auto-vue-manual='>='{}",
|
19
19
|
"lint": "eslint . --ext .js,.ts,.vue",
|
20
|
-
"lint:fix": "eslint . --ext .js,.ts,.vue --fix"
|
21
|
-
"format": "prettier --write ."
|
20
|
+
"lint:fix": "eslint . --ext .js,.ts,.vue --fix --max-warnings=0"
|
22
21
|
},
|
23
22
|
"dependencies": {
|
24
23
|
"@element-plus/icons-vue": "^2.3.1",
|
25
|
-
"auto-vue-manual": ">=0.2.
|
24
|
+
"auto-vue-manual": ">=0.2.18",
|
26
25
|
"axios": "^1.7.9",
|
27
26
|
"element-plus": "^2.9.3",
|
28
27
|
"mitt": "^3.0.1",
|
@@ -41,8 +40,6 @@
|
|
41
40
|
"@vue/runtime-dom": "^3.5.13",
|
42
41
|
"@vue/tsconfig": "^0.7.0",
|
43
42
|
"eslint": "^9.31.0",
|
44
|
-
"eslint-config-prettier": "^10.1.5",
|
45
|
-
"eslint-plugin-prettier": "^5.5.1",
|
46
43
|
"eslint-plugin-unused-imports": "^4.1.4",
|
47
44
|
"eslint-plugin-vue": "^10.3.0",
|
48
45
|
"pinia": "^2.3.0",
|
@@ -60,7 +57,7 @@
|
|
60
57
|
},
|
61
58
|
"peerDependencies": {
|
62
59
|
"@element-plus/icons-vue": "^2.3.1",
|
63
|
-
"auto-vue-manual": ">=0.2.
|
60
|
+
"auto-vue-manual": ">=0.2.18",
|
64
61
|
"element-plus": "^2.9.3",
|
65
62
|
"sass": "^1.77.6",
|
66
63
|
"sass-loader": "^16.0.4",
|