feat: update frontend resource

This commit is contained in:
vran 2023-08-29 10:55:57 +08:00
parent 29c5231526
commit 1765e65daa
14 changed files with 14 additions and 14 deletions

View File

@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>databasir</title><script defer="defer" type="module" src="/js/chunk-vendors.661f96f0.js"></script><script defer="defer" type="module" src="/js/app.32c0a087.js"></script><link href="/css/chunk-vendors.113af7af.css" rel="stylesheet"><link href="/css/app.6e28da6e.css" rel="stylesheet"><script defer="defer" src="/js/chunk-vendors-legacy.fc4c9525.js" nomodule></script><script defer="defer" src="/js/app-legacy.99935580.js" nomodule></script></head><body><noscript><strong>We're sorry but databasir doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>databasir</title><script defer="defer" type="module" src="/js/chunk-vendors.661f96f0.js"></script><script defer="defer" type="module" src="/js/app.b6da2853.js"></script><link href="/css/chunk-vendors.113af7af.css" rel="stylesheet"><link href="/css/app.6e28da6e.css" rel="stylesheet"><script defer="defer" src="/js/chunk-vendors-legacy.fc4c9525.js" nomodule></script><script defer="defer" src="/js/app-legacy.1c6fe2cb.js" nomodule></script></head><body><noscript><strong>We're sorry but databasir doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
"use strict";(self["webpackChunkdatabasir"]=self["webpackChunkdatabasir"]||[]).push([[351],{54351:function(e,l,t){t.r(l),t.d(l,{default:function(){return S}});var a=t(66252);const o=(0,a.Uk)(" 系统邮箱设置 "),u=(0,a.Uk)(" : "),s=(0,a.Uk)("保存"),r=(0,a.Uk)("重置");function m(e,l,t,m,d,n){const p=(0,a.up)("box"),i=(0,a.up)("el-icon"),f=(0,a.up)("el-divider"),h=(0,a.up)("el-input"),c=(0,a.up)("el-form-item"),w=(0,a.up)("el-col"),S=(0,a.up)("el-switch"),V=(0,a.up)("el-button"),W=(0,a.up)("el-form"),_=(0,a.up)("el-card"),T=(0,a.up)("el-main"),b=(0,a.up)("el-container");return(0,a.wg)(),(0,a.j4)(b,null,{default:(0,a.w5)((()=>[(0,a.Wm)(T,null,{default:(0,a.w5)((()=>[(0,a.Wm)(_,{shadow:"hover",style:{"max-width":"600px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Wm)(p)])),_:1}),o])),_:1}),(0,a.Wm)(W,{model:d.form,"label-position":"top",rules:d.formRule,ref:"formRef",style:{"max-width":"900px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{label:"SMTP 用户名",prop:"username"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:d.form.username,"onUpdate:modelValue":l[0]||(l[0]=e=>d.form.username=e),placeholder:"请输入 SMTP 服务用户名"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(c,{label:"SMTP 密码",prop:"password"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:d.form.password,"onUpdate:modelValue":l[1]||(l[1]=e=>d.form.password=e),type:"password",placeholder:"请输入密码","show-password":""},null,8,["modelValue"])])),_:1}),(0,a.Wm)(c,{label:"发送邮箱",prop:"mailFrom"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:d.form.mailFrom,"onUpdate:modelValue":l[2]||(l[2]=e=>d.form.mailFrom=e),placeholder:"请输入邮箱账号"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(c,{label:"SMTP",prop:"smtpHost"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{span:12},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:d.form.smtpHost,"onUpdate:modelValue":l[3]||(l[3]=e=>d.form.smtpHost=e),placeholder:"SMTP Host"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(w,{span:1,style:{"text-align":"center"}},{default:(0,a.w5)((()=>[u])),_:1}),(0,a.Wm)(w,{span:6},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:d.form.smtpPort,"onUpdate:modelValue":l[4]||(l[4]=e=>d.form.smtpPort=e),placeholder:"SMTP Port"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(c,{label:"启用 SSL",prop:"useSSL"},{default:(0,a.w5)((()=>[(0,a.Wm)(S,{modelValue:d.form.useSSL,"onUpdate:modelValue":l[5]||(l[5]=e=>d.form.useSSL=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(c,{label:"启用 TLS",prop:"useTls"},{default:(0,a.w5)((()=>[(0,a.Wm)(S,{modelValue:d.form.useTls,"onUpdate:modelValue":l[6]||(l[6]=e=>d.form.useTls=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(c,{style:{"margin-top":"38px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(V,{type:"primary",onClick:l[7]||(l[7]=e=>n.onSubmit("formRef"))},{default:(0,a.w5)((()=>[s])),_:1}),(0,a.Wm)(V,{type:"danger",onClick:l[8]||(l[8]=e=>n.onReset())},{default:(0,a.w5)((()=>[r])),_:1})])),_:1})])),_:1},8,["model","rules"])])),_:1})])),_:1})])),_:1})}var d=t(63872);const n="/api/v1.0/settings",p=()=>d.Z.get(n+"/sys_email"),i=e=>d.Z.post(n+"/sys_email",e),f=()=>d.Z["delete"](n+"/sys_email");var h={data(){return{form:{smtpHost:null,smtpPort:null,username:null,mailFrom:null,password:null,useSSL:!1,useTls:!1},formRule:{username:[this.requiredInputValidRule("请输入 SMTP 服务用户名")],password:[this.requiredInputValidRule("请输入 SMTP 服务密码")],smtpHost:[this.requiredInputValidRule("请输入 SMTP 地址")],smtpPort:[this.requiredInputValidRule("请输入 SMTP 端口"),{min:1,max:65535,message:"端口有效值为 1~65535",trigger:"blur"}]}}},mounted(){this.fetchSysMail()},methods:{requiredInputValidRule(e){return{required:!0,message:e,trigger:"blur"}},async fetchSysMail(){const e=await p().then((e=>e.data));e&&(this.form=e)},onSubmit(){this.$refs.formRef.validate((e=>this.form.useTls&&this.form.useSSL?(this.$message.error("不能同时启用 SSL 和 TLS"),!1):e?(i(this.form).then((e=>{e.errCode||this.$message.success("更新成功")})),!0):(this.$message.error("请完善表单相关信息!"),!1)))},onReset(){this.$confirm("确认重置系统邮件吗?删除后数据将无法恢复","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{f().then((e=>{e.errCode||(this.form={},this.$message.success("重置成功"))}))}))}}},c=t(83744);const w=(0,c.Z)(h,[["render",m]]);var S=w}}]);
//# sourceMappingURL=351.d637eba7.js.map

File diff suppressed because one or more lines are too long

View File

@ -1,2 +0,0 @@
"use strict";(self["webpackChunkdatabasir"]=self["webpackChunkdatabasir"]||[]).push([[968],{89968:function(e,t,n){n.r(t),n.d(t,{default:function(){return V}});var r=n(66252),u=(0,r.Uk)(" 系统邮箱设置 "),l=(0,r.Uk)(" : "),o=(0,r.Uk)("保存"),a=(0,r.Uk)("重置");function m(e,t,n,m,i,s){var f=(0,r.up)("box"),d=(0,r.up)("el-icon"),p=(0,r.up)("el-divider"),c=(0,r.up)("el-input"),w=(0,r.up)("el-form-item"),h=(0,r.up)("el-col"),S=(0,r.up)("el-switch"),V=(0,r.up)("el-button"),W=(0,r.up)("el-form"),_=(0,r.up)("el-card"),g=(0,r.up)("el-main"),b=(0,r.up)("el-container");return(0,r.wg)(),(0,r.j4)(b,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(g,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(_,{shadow:"hover",style:{"max-width":"600px"}},{default:(0,r.w5)((function(){return[(0,r.Wm)(p,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(d,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(f)]})),_:1}),u]})),_:1}),(0,r.Wm)(W,{model:i.form,"label-position":"top",rules:i.formRule,ref:"formRef",style:{"max-width":"900px"}},{default:(0,r.w5)((function(){return[(0,r.Wm)(w,{label:"SMTP 用户名",prop:"username"},{default:(0,r.w5)((function(){return[(0,r.Wm)(c,{modelValue:i.form.username,"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.form.username=e}),placeholder:"请输入 SMTP 服务用户名"},null,8,["modelValue"])]})),_:1}),(0,r.Wm)(w,{label:"SMTP 密码",prop:"password"},{default:(0,r.w5)((function(){return[(0,r.Wm)(c,{modelValue:i.form.password,"onUpdate:modelValue":t[1]||(t[1]=function(e){return i.form.password=e}),type:"password",placeholder:"请输入密码","show-password":""},null,8,["modelValue"])]})),_:1}),(0,r.Wm)(w,{label:"发送邮箱",prop:"mailFrom"},{default:(0,r.w5)((function(){return[(0,r.Wm)(c,{modelValue:i.form.mailFrom,"onUpdate:modelValue":t[2]||(t[2]=function(e){return i.form.mailFrom=e}),placeholder:"请输入邮箱账号"},null,8,["modelValue"])]})),_:1}),(0,r.Wm)(w,{label:"SMTP",prop:"smtpHost"},{default:(0,r.w5)((function(){return[(0,r.Wm)(h,{span:12},{default:(0,r.w5)((function(){return[(0,r.Wm)(c,{modelValue:i.form.smtpHost,"onUpdate:modelValue":t[3]||(t[3]=function(e){return i.form.smtpHost=e}),placeholder:"SMTP Host"},null,8,["modelValue"])]})),_:1}),(0,r.Wm)(h,{span:1,style:{"text-align":"center"}},{default:(0,r.w5)((function(){return[l]})),_:1}),(0,r.Wm)(h,{span:6},{default:(0,r.w5)((function(){return[(0,r.Wm)(c,{modelValue:i.form.smtpPort,"onUpdate:modelValue":t[4]||(t[4]=function(e){return i.form.smtpPort=e}),placeholder:"SMTP Port"},null,8,["modelValue"])]})),_:1})]})),_:1}),(0,r.Wm)(w,{label:"启用 SSL",prop:"useSSL"},{default:(0,r.w5)((function(){return[(0,r.Wm)(S,{modelValue:i.form.useSSL,"onUpdate:modelValue":t[5]||(t[5]=function(e){return i.form.useSSL=e})},null,8,["modelValue"])]})),_:1}),(0,r.Wm)(w,{style:{"margin-top":"38px"}},{default:(0,r.w5)((function(){return[(0,r.Wm)(V,{type:"primary",onClick:t[6]||(t[6]=function(e){return s.onSubmit("formRef")})},{default:(0,r.w5)((function(){return[o]})),_:1}),(0,r.Wm)(V,{type:"danger",onClick:t[7]||(t[7]=function(e){return s.onReset()})},{default:(0,r.w5)((function(){return[a]})),_:1})]})),_:1})]})),_:1},8,["model","rules"])]})),_:1})]})),_:1})]})),_:1})}var i=n(48534),s=(n(35666),n(63872)),f="/api/v1.0/settings",d=function(){return s.Z.get(f+"/sys_email")},p=function(e){return s.Z.post(f+"/sys_email",e)},c=function(){return s.Z["delete"](f+"/sys_email")},w={data:function(){return{form:{smtpHost:null,smtpPort:null,username:null,mailFrom:null,password:null,useSSL:!1},formRule:{username:[this.requiredInputValidRule("请输入 SMTP 服务用户名")],password:[this.requiredInputValidRule("请输入 SMTP 服务密码")],smtpHost:[this.requiredInputValidRule("请输入 SMTP 地址")],smtpPort:[this.requiredInputValidRule("请输入 SMTP 端口"),{min:1,max:65535,message:"端口有效值为 1~65535",trigger:"blur"}]}}},mounted:function(){this.fetchSysMail()},methods:{requiredInputValidRule:function(e){return{required:!0,message:e,trigger:"blur"}},fetchSysMail:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d().then((function(e){return e.data}));case 2:n=t.sent,n&&(e.form=n);case 4:case"end":return t.stop()}}),t)})))()},onSubmit:function(){var e=this;this.$refs.formRef.validate((function(t){return t?(p(e.form).then((function(t){t.errCode||e.$message.success("更新成功")})),!0):(e.$message.error("请完善表单相关信息!"),!1)}))},onReset:function(){var e=this;this.$confirm("确认重置系统邮件吗?删除后数据将无法恢复","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){c().then((function(t){t.errCode||(e.form={},e.$message.success("重置成功"))}))}))}}},h=n(83744);const S=(0,h.Z)(w,[["render",m]]);var V=S}}]);
//# sourceMappingURL=968-legacy.60e0df48.js.map

File diff suppressed because one or more lines are too long

View File

@ -1,2 +0,0 @@
"use strict";(self["webpackChunkdatabasir"]=self["webpackChunkdatabasir"]||[]).push([[968],{89968:function(e,l,t){t.r(l),t.d(l,{default:function(){return S}});var a=t(66252);const o=(0,a.Uk)(" 系统邮箱设置 "),r=(0,a.Uk)(" : "),u=(0,a.Uk)("保存"),m=(0,a.Uk)("重置");function s(e,l,t,s,d,n){const p=(0,a.up)("box"),i=(0,a.up)("el-icon"),f=(0,a.up)("el-divider"),c=(0,a.up)("el-input"),h=(0,a.up)("el-form-item"),w=(0,a.up)("el-col"),S=(0,a.up)("el-switch"),V=(0,a.up)("el-button"),W=(0,a.up)("el-form"),_=(0,a.up)("el-card"),b=(0,a.up)("el-main"),g=(0,a.up)("el-container");return(0,a.wg)(),(0,a.j4)(g,null,{default:(0,a.w5)((()=>[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a.Wm)(_,{shadow:"hover",style:{"max-width":"600px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Wm)(p)])),_:1}),o])),_:1}),(0,a.Wm)(W,{model:d.form,"label-position":"top",rules:d.formRule,ref:"formRef",style:{"max-width":"900px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{label:"SMTP 用户名",prop:"username"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:d.form.username,"onUpdate:modelValue":l[0]||(l[0]=e=>d.form.username=e),placeholder:"请输入 SMTP 服务用户名"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(h,{label:"SMTP 密码",prop:"password"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:d.form.password,"onUpdate:modelValue":l[1]||(l[1]=e=>d.form.password=e),type:"password",placeholder:"请输入密码","show-password":""},null,8,["modelValue"])])),_:1}),(0,a.Wm)(h,{label:"发送邮箱",prop:"mailFrom"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:d.form.mailFrom,"onUpdate:modelValue":l[2]||(l[2]=e=>d.form.mailFrom=e),placeholder:"请输入邮箱账号"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(h,{label:"SMTP",prop:"smtpHost"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{span:12},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:d.form.smtpHost,"onUpdate:modelValue":l[3]||(l[3]=e=>d.form.smtpHost=e),placeholder:"SMTP Host"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(w,{span:1,style:{"text-align":"center"}},{default:(0,a.w5)((()=>[r])),_:1}),(0,a.Wm)(w,{span:6},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:d.form.smtpPort,"onUpdate:modelValue":l[4]||(l[4]=e=>d.form.smtpPort=e),placeholder:"SMTP Port"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(h,{label:"启用 SSL",prop:"useSSL"},{default:(0,a.w5)((()=>[(0,a.Wm)(S,{modelValue:d.form.useSSL,"onUpdate:modelValue":l[5]||(l[5]=e=>d.form.useSSL=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(h,{style:{"margin-top":"38px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(V,{type:"primary",onClick:l[6]||(l[6]=e=>n.onSubmit("formRef"))},{default:(0,a.w5)((()=>[u])),_:1}),(0,a.Wm)(V,{type:"danger",onClick:l[7]||(l[7]=e=>n.onReset())},{default:(0,a.w5)((()=>[m])),_:1})])),_:1})])),_:1},8,["model","rules"])])),_:1})])),_:1})])),_:1})}var d=t(63872);const n="/api/v1.0/settings",p=()=>d.Z.get(n+"/sys_email"),i=e=>d.Z.post(n+"/sys_email",e),f=()=>d.Z["delete"](n+"/sys_email");var c={data(){return{form:{smtpHost:null,smtpPort:null,username:null,mailFrom:null,password:null,useSSL:!1},formRule:{username:[this.requiredInputValidRule("请输入 SMTP 服务用户名")],password:[this.requiredInputValidRule("请输入 SMTP 服务密码")],smtpHost:[this.requiredInputValidRule("请输入 SMTP 地址")],smtpPort:[this.requiredInputValidRule("请输入 SMTP 端口"),{min:1,max:65535,message:"端口有效值为 1~65535",trigger:"blur"}]}}},mounted(){this.fetchSysMail()},methods:{requiredInputValidRule(e){return{required:!0,message:e,trigger:"blur"}},async fetchSysMail(){const e=await p().then((e=>e.data));e&&(this.form=e)},onSubmit(){this.$refs.formRef.validate((e=>e?(i(this.form).then((e=>{e.errCode||this.$message.success("更新成功")})),!0):(this.$message.error("请完善表单相关信息!"),!1)))},onReset(){this.$confirm("确认重置系统邮件吗?删除后数据将无法恢复","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{f().then((e=>{e.errCode||(this.form={},this.$message.success("重置成功"))}))}))}}},h=t(83744);const w=(0,h.Z)(c,[["render",s]]);var S=w}}]);
//# sourceMappingURL=968.b4cc67bb.js.map

File diff suppressed because one or more lines are too long

@ -1 +1 @@
Subproject commit 03b1d36965188e7010a55a2a661dcce6003289fe
Subproject commit 93603d0f82c1f03b514ee2ebd1f8c43e72104ffd