← Back
Editing: index-legacy6.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return o};var n,o={},i=Object.prototype,a=i.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(n){f=function(t,e,n){return t[e]=n}}function m(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new P(o||[]);return r(a,"_invoke",{value:E(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}o.wrap=m;var p="suspendedStart",g="suspendedYield",v="executing",h="completed",_={};function y(){}function b(){}function w(){}var x={};f(x,c,(function(){return this}));var k=Object.getPrototypeOf,C=k&&k(k(T([])));C&&C!==i&&a.call(C,c)&&(x=C);var z=w.prototype=y.prototype=Object.create(x);function V(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(e,n){function o(i,r,s,c){var l=d(e[i],e,r);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){o("next",t,s,c)}),(function(t){o("throw",t,s,c)})):n.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,c)}))}c(l.arg)}var i;r(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,i){o(t,e,n,i)}))}return i=i?i.then(a,a):a()}})}function E(t,e,o){var i=p;return function(a,r){if(i===v)throw Error("Generator is already running");if(i===h){if("throw"===a)throw r;return{value:n,done:!0}}for(o.method=a,o.arg=r;;){var s=o.delegate;if(s){var c=S(s,o);if(c){if(c===_)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===p)throw i=h,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=v;var l=d(t,e,o);if("normal"===l.type){if(i=o.done?h:g,l.arg===_)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i=h,o.method="throw",o.arg=l.arg)}}}function S(t,e){var o=e.method,i=t.iterator[o];if(i===n)return e.delegate=null,"throw"===o&&t.iterator.return&&(e.method="return",e.arg=n,S(t,e),"throw"===e.method)||"return"!==o&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+o+"' method")),_;var a=d(i,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,_;var r=a.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,_):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,_)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var o=e[c];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(a.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return r.next=r}}throw new TypeError(t(e)+" is not iterable")}return b.prototype=w,r(z,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:b,configurable:!0}),b.displayName=f(w,u,"GeneratorFunction"),o.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},o.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,u,"GeneratorFunction")),t.prototype=Object.create(z),t},o.awrap=function(t){return{__await:t}},V(L.prototype),f(L.prototype,l,(function(){return this})),o.AsyncIterator=L,o.async=function(t,e,n,i,a){void 0===a&&(a=Promise);var r=new L(m(t,e,n,i),a);return o.isGeneratorFunction(e)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},V(z),f(z,u,"Generator"),f(z,c,(function(){return this})),f(z,"toString",(function(){return"[object Generator]"})),o.keys=function(t){var e=Object(t),n=[];for(var o in e)n.push(o);return n.reverse(),function t(){for(;n.length;){var o=n.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},o.values=T,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(o,i){return s.type="throw",s.arg=t,e.next=o,i&&(e.method="next",e.arg=n),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var c=a.call(r,"catchLoc"),l=a.call(r,"finallyLoc");if(c&&l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=t,r.arg=e,i?(this.method="next",this.next=i.finallyLoc,_):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),_},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,o){return this.delegate={iterator:T(t),resultName:e,nextLoc:o},"next"===this.method&&(this.arg=n),_}},o}function n(t,e,n,o,i,a,r){try{var s=t[a](r),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(o,i)}function o(t){return function(){var e=this,o=arguments;return new Promise((function(i,a){var r=t.apply(e,o);function s(t){n(r,i,a,s,c,"next",t)}function c(t){n(r,i,a,s,c,"throw",t)}s(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./useStore-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./config-legacy.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var i,a,r,s,c,l,u,f,m,d,p,g,v,h,_,y,b,w,x,k,C,z,V,L,E,S,j,O,P,T;return{setters:[function(t){i=t.c,a=t.r,r=t.p,s=t.q,c=t.v,l=t.y,u=t.x,f=t.e,m=t.C,d=t.A,p=t.B,g=t.F,v=t.a_,h=t.J,_=t.K,y=t.az,b=t.f,w=t.D,x=t.b0,k=t.b1,C=t.b2,z=t.al},function(t){V=t.g},function(t){L=t.u,E=t.X,S=t.b,j=t.Y,O=t.s,P=t.p,T=t.e},null,null],execute:function(){var n={class:"ui-settings"},U={class:"config-panel"},G={class:"config-content"},I={class:"config-section"},N={class:"section-content"},F={class:"config-item"},q={class:"item-content"},A={key:0,class:"logo-preview"},B={class:"upload-actions"},D={class:"config-item"},Y={class:"item-content"},M={key:0,class:"logo-preview"},H={class:"upload-actions"},J={class:"config-section"},K={class:"section-content"},W={class:"config-item"},X={class:"item-content"},$={class:"color-presets"},Q=["onClick"],R={key:0,class:"preset-check"},Z={key:0,class:"preset-check"},tt={class:"upload-actions",style:{"margin-top":"15px"}},et={class:"config-item"},nt={class:"item-content"},ot={class:"upload-actions",style:{"margin-top":"10px"}},it={class:"config-section"},at={class:"section-content"},rt={class:"config-item"},st={class:"item-content"},ct={class:"switch-control",style:{"margin-bottom":"10px"}},lt={key:0},ut={class:"bg-preview"},ft={key:0,class:"text-center"},mt={key:1},dt={class:"upload-actions"},pt={key:0,class:"config-item"},gt={class:"item-content"},vt={class:"upload-actions",style:{"margin-top":"10px"}},ht={class:"config-item"},_t={class:"item-content"},yt={class:"upload-actions",style:{"margin-top":"10px"}},bt={class:"config-item"},wt={class:"item-content"},xt={class:"upload-actions",style:{"margin-top":"10px"}},kt={class:"config-item"},Ct={class:"item-content"},zt={class:"upload-actions",style:{"margin-top":"10px"}},Vt={class:"config-section"},Lt={class:"section-content"},Et={class:"config-item"},St={class:"item-content"},jt={class:"flex items-center"},Ot={class:"border-[1px] border-[#e5e5e5] rounded-[4px] p-[1rem] mt-[1rem] flex flex-col w-[25rem]"},Pt={class:"upload-actions",style:{"margin-top":"10px"}},Tt={class:"config-section"},Ut={class:"section-content"},Gt={class:"config-item"},It={class:"item-content"},Nt={class:"switch-control",style:{"margin-bottom":"10px"}},Ft={key:0},qt={key:0,class:"bg-preview"},At={key:0,class:"text-center"},Bt={key:1},Dt={class:"upload-actions"},Yt={class:"config-item"},Mt={class:"item-content"},Ht={class:"switch-control",style:{"margin-bottom":"10px"}},Jt={key:0},Kt={class:"bg-preview"},Wt={key:0,class:"text-center"},Xt={key:1},$t={class:"upload-actions"},Qt={key:0,class:"config-item"},Rt={class:"item-content"},Zt={class:"upload-actions",style:{"margin-top":"10px"}},te={class:"save-btn"},ee=i({__name:"index",setup:function(t){var i=L().globalTheme,T=V(),ee=T.getUIConfig,ne=T.saveUIConfig,oe=a({});Object.assign(E,{default:"#3c444d",light:"#ffffff",dark:"#141414",darkGreen:"#03905C",purple:"#A736FF",lightBlue:"#5C90F6"});var ie={favicon:"/static/favicon.ico",show_login_logo:!0,show_login_bg_images:!1,login_logo:"/static/icons/logo-green.svg",login_bg_images:"",login_bg_images_opacity:70,show_main_bg_images:!0,main_bg_images:"/static/images/bg-default.png",main_bg_images_opacity:20,main_content_opacity:90,main_shadow_color:"#000000",main_shadow_opacity:5,menu_logo:"/static/icons/logo-green.svg",menu_bg_opacity:100,theme_color:"#3c444d",theme_name:"default",home_state_font_size:24},ae=function(t){return function(e){var n=function(t){var e=t.lastIndexOf(".");return-1!==e?t.substring(e+1):"png"}(e.name),o="".concat(t,"_").concat(Date.now(),".").concat(n);return oe.value[t]={fileName:o,filePath:"/www/server/panel/BTPanel/static/temp/".concat(o)},{action:"upload",f_path:"/www/server/panel/BTPanel/static/temp",f_name:o,f_size:String(e.size),f_start:"0"}}},re=function(){return{"x-http-token":window.vite_public_request_token}},se=function(t){return!!t.type.startsWith("image/")||(S().error("只能上传图片文件!"),!1)},ce=function(t){var e=t.file,n=t.data,o=t.onSuccess,i=t.onError,a=new FormData;return j(),a.append("blob",e),n&&Object.keys(n).forEach((function(t){a.append(t,n[t])})),new Promise((function(t,e){var n="/files?action=upload";fetch(n,{method:"POST",headers:re(),body:a}).then((function(t){return t.json()})).then((function(a){if(a.status)o&&o(a),t(a);else{var r=new Error(a.msg||"上传失败");r.status=a.status,r.method="POST",r.url=n,S().error(a.msg||"上传失败"),i&&i(r),e(r)}})).catch((function(t){var o=t;o.status=0,o.method="POST",o.url=n,S().error("上传请求失败"),i&&i(o),e(o)}))}))},le=function(){var t=o(e().mark((function t(n,o){var a,r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.status){t.next=9;break}if(!oe.value[o]){t.next=9;break}return a=oe.value[o].fileName,r="/static/temp/".concat(a),i.value[o]=r,S().success("上传成功"),t.next=9,ue(["menu_logo","favicon"].includes(o));case 9:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),ue=y(o(e().mark((function t(){var n,o=arguments;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>0&&void 0!==o[0]&&o[0],t.next=3,ne("正在保存界面设置...");case 3:setTimeout((function(){n&&location.reload()}),1e3);case 4:case"end":return t.stop()}}),t)}))),200),fe=function(t,e){var n,o,a=!1;"light"===t?a=!0:"custom"===t&&e&&(a=!!(o=(n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null)&&(299*o.r+587*o.g+114*o.b)/1e3>230),a?"/static/icons/logo-white.svg"===i.value.menu_logo&&(i.value.menu_logo="/static/icons/logo-green.svg"):"/static/icons/logo-green.svg"===i.value.menu_logo&&(i.value.menu_logo="/static/icons/logo-white.svg")},me=function(){var t=o(e().mark((function t(n){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i.value.theme_name=n,i.value.theme_color=E[n]||E.default,fe(n),O(i.value.theme_color),t.next=6,ue(!1);case 6:S().success("颜色方案已应用");case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),de=function(t){t&&(i.value.theme_name="custom",i.value.theme_color=t,fe("custom",t),O(i.value.theme_color))},pe=function(t){t&&(i.value.main_shadow_color=t)},ge=function(){var t=o(e().mark((function t(n){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:return i.value.theme_name="custom",fe("custom",n),O(i.value.theme_color),t.next=7,ue(!1);case 7:S().success("自定义颜色已应用");case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ve=function(){var t=o(e().mark((function t(n){var o,a;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,P({title:"恢复默认设置",content:"确定要恢复".concat(he(n),"为默认值吗?")});case 3:return i.value[n]=ie[n],"theme_color"!==n&&"theme_name"!==n||(i.value.theme_name="default",O(i.value.theme_color),o=i.value.theme_name,a="custom"===o?i.value.theme_color:void 0,fe(o,a)),"login_bg_images"===n&&(i.value.show_bg_logo=!1),"boolean"!=typeof i.value["show_".concat(n)]||i.value[n]||(i.value["show_".concat(n)]=!1),n.includes("_opacity")&&(i.value[n]=ie[n]),t.next=10,ue(!0);case 10:S().success("".concat(he(n),"已恢复为默认值")),t.next=15;break;case 13:t.prev=13,t.t0=t.catch(0);case 15:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(e){return t.apply(this,arguments)}}(),he=function(t){return{menu_logo:"Logo",favicon:"网站图标",login_bg_images:"登录背景图片",login_logo:"登录logo图片",main_bg_images:"主界面背景图片",theme_color:"侧边栏颜色",theme_name:"颜色主题",menu_bg_opacity:"侧边栏背景透明度",main_content_opacity:"内容透明度",main_bg_images_opacity:"主界面背景图片透明度",login_bg_images_opacity:"登录背景透明度",main_shadow_color:"主界面阴影颜色",main_shadow_opacity:"主界面阴影透明度",home_state_font_size:"首页概览字体大小"}[t]||t},_e=function(){var t=o(e().mark((function t(){var n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,P({title:"恢复所有默认设置",content:"确定要恢复所有界面设置为默认值吗?此操作不可撤销。"});case 3:return Object.keys(ie).forEach((function(t){i.value[t]=ie[t]})),n=i.value.theme_name,o="custom"===n?i.value.theme_color:void 0,fe(n,o),O(i.value.theme_color),t.next=10,ue();case 10:S().success("所有界面设置已恢复为默认值"),t.next=15;break;case 13:t.prev=13,t.t0=t.catch(0);case 15:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}();return r(o(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ee("正在获取界面设置...");case 2:case"end":return t.stop()}}),t)})))),function(t,e){var o=b,a=w,r=x,y=k,V=C,L=z;return s(),c("div",n,[l("div",U,[l("div",G,[l("div",I,[e[42]||(e[42]=l("div",{class:"section-title"},"Logo设置",-1)),l("div",N,[l("div",F,[e[37]||(e[37]=l("div",{class:"item-label"},"Logo",-1)),l("div",q,[u(i).menu_logo?(s(),c("div",A,[f(o,{src:u(i).menu_logo,alt:"Logo"},null,8,["src"])])):m("",!0),e[36]||(e[36]=l("div",{class:"logo-tip"},"将会显示在左侧菜单栏顶部(建议图片大小:32px*32px,推荐使用SVG格式)",-1)),l("div",B,[f(r,{class:"avatar-uploader",action:"/files",data:ae("menu_logo"),headers:re(),"show-file-list":!1,"before-upload":se,"http-request":ce,"on-success":function(t){return le(t,"menu_logo")}},{default:d((function(){return[f(a,{size:"small"},{default:d((function(){return e[34]||(e[34]=[p("上传Logo")])})),_:1})]})),_:1},8,["data","headers","on-success"]),f(a,{size:"small",onClick:e[0]||(e[0]=function(t){return ve("menu_logo")})},{default:d((function(){return e[35]||(e[35]=[p("恢复默认")])})),_:1})])])]),l("div",D,[e[41]||(e[41]=l("div",{class:"item-label"},"网站图标",-1)),l("div",Y,[u(i).favicon?(s(),c("div",M,[f(o,{src:u(i).favicon,alt:"网站图标"},null,8,["src"])])):m("",!0),e[40]||(e[40]=l("div",{class:"logo-tip"},"将会显示在浏览器标签页(建议图片大小: 16px*16px,推荐使用ICO格式或PNG、SVG格式)",-1)),l("div",H,[f(r,{class:"avatar-uploader",action:"/files",data:ae("favicon"),headers:re(),"show-file-list":!1,"before-upload":se,"http-request":ce,"on-success":function(t){return le(t,"favicon")},accept:".ico,.png,.svg"},{default:d((function(){return[f(a,{size:"small"},{default:d((function(){return e[38]||(e[38]=[p("上传图标")])})),_:1})]})),_:1},8,["data","headers","on-success"]),f(a,{size:"small",onClick:e[1]||(e[1]=function(t){return ve("favicon")})},{default:d((function(){return e[39]||(e[39]=[p("恢复默认")])})),_:1})])])])])]),l("div",J,[e[51]||(e[51]=l("div",{class:"section-title"},"侧边栏设置",-1)),l("div",K,[l("div",W,[e[46]||(e[46]=l("div",{class:"item-label"},"颜色方案",-1)),l("div",X,[l("div",$,[(s(!0),c(g,null,v(u(E),(function(t,e){return s(),c("div",{key:e,class:h(["color-preset-item",{active:u(i).theme_name===String(e)}]),style:_({backgroundColor:t}),onClick:function(t){return me(String(e))}},[u(i).theme_name===String(e)?(s(),c("div",R,"✓")):m("",!0)],14,Q)})),128)),l("div",{class:h(["color-preset-item custom-color",{active:"custom"===u(i).theme_name}])},[f(y,{modelValue:u(i).theme_color,"onUpdate:modelValue":e[2]||(e[2]=function(t){return u(i).theme_color=t}),size:"default",onChange:ge,onActiveChange:de},null,8,["modelValue"]),e[43]||(e[43]=l("div",{class:"custom-label"},"自定义",-1)),"custom"===u(i).theme_name?(s(),c("div",Z,"✓")):m("",!0)],2)]),e[45]||(e[45]=l("div",{class:"logo-tip"},"选择预设的颜色方案或自定义颜色,选择后会立即生效",-1)),l("div",tt,[f(a,{size:"small",onClick:e[3]||(e[3]=function(t){return ve("theme_color")})},{default:d((function(){return e[44]||(e[44]=[p("恢复默认")])})),_:1})])])]),l("div",et,[e[50]||(e[50]=l("div",{class:"item-label"},"侧边栏背景透明度",-1)),l("div",nt,[f(V,{modelValue:u(i).menu_bg_opacity,"onUpdate:modelValue":e[4]||(e[4]=function(t){return u(i).menu_bg_opacity=t}),min:1,max:100,step:5,"show-input":"",style:{width:"300px"}},null,8,["modelValue"]),e[49]||(e[49]=l("span",{class:"logo-tip"},"(1-100,数值越小越透明)",-1)),l("div",ot,[f(a,{size:"small",onClick:e[5]||(e[5]=function(t){return u(ue)(!1)})},{default:d((function(){return e[47]||(e[47]=[p("保存")])})),_:1}),f(a,{class:"!ml-0",size:"small",onClick:e[6]||(e[6]=function(t){return ve("menu_bg_opacity")})},{default:d((function(){return e[48]||(e[48]=[p("恢复默认")])})),_:1})])])])])]),l("div",it,[e[72]||(e[72]=l("div",{class:"section-title"},"主界面背景设置",-1)),l("div",at,[l("div",rt,[e[56]||(e[56]=l("div",{class:"item-label"},"主界面背景图片",-1)),l("div",st,[l("div",ct,[f(L,{modelValue:u(i).show_main_bg_images,"onUpdate:modelValue":e[7]||(e[7]=function(t){return u(i).show_main_bg_images=t}),"active-text":"显示","inactive-text":"隐藏","inline-prompt":"",onChange:e[8]||(e[8]=function(t){return u(ue)(!1)})},null,8,["modelValue"])]),u(i).show_main_bg_images?(s(),c("div",lt,[l("div",ut,[f(o,{src:u(i).main_bg_images,alt:"主界面背景图片"},{error:d((function(){return[u(i).main_bg_images?(s(),c("div",ft,e[52]||(e[52]=[l("div",null,"加载失败",-1),l("div",null,"请重新上传",-1)]))):(s(),c("div",mt,"请上传图片"))]})),_:1},8,["src"])]),e[55]||(e[55]=l("div",{class:"logo-tip"},"将会显示在主界面背景(建议图片大小: 1920px*1080px,推荐png格式,大小不建议超过2MB,过大可能会导致页面加载过慢!)",-1)),l("div",dt,[f(r,{class:"avatar-uploader",action:"/files",data:ae("main_bg_images"),headers:re(),"show-file-list":!1,"before-upload":se,"http-request":ce,"on-success":function(t){return le(t,"main_bg_images")}},{default:d((function(){return[f(a,{size:"small"},{default:d((function(){return e[53]||(e[53]=[p("上传图片")])})),_:1})]})),_:1},8,["data","headers","on-success"]),f(a,{size:"small",onClick:e[9]||(e[9]=function(t){return ve("main_bg_images")})},{default:d((function(){return e[54]||(e[54]=[p("恢复默认")])})),_:1})])])):m("",!0)])]),u(i).show_main_bg_images?(s(),c("div",pt,[e[60]||(e[60]=l("div",{class:"item-label"},"背景图片透明度",-1)),l("div",gt,[f(V,{modelValue:u(i).main_bg_images_opacity,"onUpdate:modelValue":e[10]||(e[10]=function(t){return u(i).main_bg_images_opacity=t}),min:1,max:100,step:5,"show-input":"",style:{width:"300px"}},null,8,["modelValue"]),e[59]||(e[59]=l("span",{class:"logo-tip"},"(1-100,数值越小越透明)",-1)),l("div",vt,[f(a,{size:"small",onClick:e[11]||(e[11]=function(t){return u(ue)(!1)})},{default:d((function(){return e[57]||(e[57]=[p("保存")])})),_:1}),f(a,{class:"!ml-0",size:"small",onClick:e[12]||(e[12]=function(t){return ve("main_bg_images_opacity")})},{default:d((function(){return e[58]||(e[58]=[p("恢复默认")])})),_:1})])])])):m("",!0),l("div",ht,[e[64]||(e[64]=l("div",{class:"item-label"},"内容透明度",-1)),l("div",_t,[f(V,{modelValue:u(i).main_content_opacity,"onUpdate:modelValue":e[13]||(e[13]=function(t){return u(i).main_content_opacity=t}),min:1,max:100,step:5,"show-input":"",style:{width:"300px"}},null,8,["modelValue"]),e[63]||(e[63]=l("span",{class:"logo-tip"},"(1-100,数值越小越透明)",-1)),l("div",yt,[f(a,{size:"small",onClick:e[14]||(e[14]=function(t){return u(ue)(!1)})},{default:d((function(){return e[61]||(e[61]=[p("保存")])})),_:1}),f(a,{class:"!ml-0",size:"small",onClick:e[15]||(e[15]=function(t){return ve("main_content_opacity")})},{default:d((function(){return e[62]||(e[62]=[p("恢复默认")])})),_:1})])])]),l("div",bt,[e[67]||(e[67]=l("div",{class:"item-label"},"阴影颜色",-1)),l("div",wt,[f(y,{modelValue:u(i).main_shadow_color,"onUpdate:modelValue":e[16]||(e[16]=function(t){return u(i).main_shadow_color=t}),onChange:e[17]||(e[17]=function(t){return u(ue)(!1)}),onActiveChange:pe},null,8,["modelValue"]),e[66]||(e[66]=l("span",{class:"logo-tip"},"(设置主界面内容的阴影颜色)",-1)),l("div",xt,[f(a,{class:"!ml-0",size:"small",onClick:e[18]||(e[18]=function(t){return ve("main_shadow_color")})},{default:d((function(){return e[65]||(e[65]=[p("恢复默认")])})),_:1})])])]),l("div",kt,[e[71]||(e[71]=l("div",{class:"item-label"},"阴影透明度",-1)),l("div",Ct,[f(V,{modelValue:u(i).main_shadow_opacity,"onUpdate:modelValue":e[19]||(e[19]=function(t){return u(i).main_shadow_opacity=t}),min:0,max:100,step:1,"show-input":"",style:{width:"300px"}},null,8,["modelValue"]),e[70]||(e[70]=l("span",{class:"logo-tip"},"(0-100,数值越大阴影越浓)",-1)),l("div",zt,[f(a,{size:"small",onClick:e[20]||(e[20]=function(t){return u(ue)(!1)})},{default:d((function(){return e[68]||(e[68]=[p("保存")])})),_:1}),f(a,{class:"!ml-0",size:"small",onClick:e[21]||(e[21]=function(t){return ve("main_shadow_opacity")})},{default:d((function(){return e[69]||(e[69]=[p("恢复默认")])})),_:1})])])])])]),l("div",Vt,[e[78]||(e[78]=l("div",{class:"section-title"},"首页设置",-1)),l("div",Lt,[l("div",Et,[e[77]||(e[77]=l("div",{class:"item-label"},"概览字体大小",-1)),l("div",St,[l("div",jt,[f(V,{modelValue:u(i).home_state_font_size,"onUpdate:modelValue":e[22]||(e[22]=function(t){return u(i).home_state_font_size=t}),min:12,max:50,step:1,"show-input":"",style:{width:"300px"}},null,8,["modelValue"])]),e[76]||(e[76]=l("span",{class:"logo-tip"},"(12-50,数值越大字体越大)",-1)),l("span",Ot,[e[73]||(e[73]=l("span",{class:"pb-[.2rem] text-[1.4rem] font-alibaba-semibold"}," 负载 ",-1)),l("span",{class:"text-[#333] font-alibaba-heavy whitespace-nowrap",style:_({fontSize:"".concat(u(i).home_state_font_size,"px")})}," 运行流畅 ",4)]),l("div",Pt,[f(a,{size:"small",onClick:e[23]||(e[23]=function(t){return u(ue)(!1)})},{default:d((function(){return e[74]||(e[74]=[p("保存")])})),_:1}),f(a,{class:"!ml-0",size:"small",onClick:e[24]||(e[24]=function(t){return ve("home_state_font_size")})},{default:d((function(){return e[75]||(e[75]=[p("恢复默认")])})),_:1})])])])])]),l("div",Tt,[e[93]||(e[93]=l("div",{class:"section-title"},"登录界面设置",-1)),l("div",Ut,[l("div",Gt,[e[83]||(e[83]=l("div",{class:"item-label"},"登录logo图片",-1)),l("div",It,[l("div",Nt,[f(L,{modelValue:u(i).show_login_logo,"onUpdate:modelValue":e[25]||(e[25]=function(t){return u(i).show_login_logo=t}),"active-text":"显示","inactive-text":"隐藏","inline-prompt":"",onChange:e[26]||(e[26]=function(t){return u(ue)(!1)})},null,8,["modelValue"])]),u(i).show_login_logo?(s(),c("div",Ft,[u(i).login_logo?(s(),c("div",qt,[f(o,{src:u(i).login_logo,alt:"登录logo图片"},{error:d((function(){return[u(i).login_logo?(s(),c("div",At,e[79]||(e[79]=[l("div",null,"加载失败",-1),l("div",null,"请重新上传",-1)]))):(s(),c("div",Bt,"请上传图片"))]})),_:1},8,["src"])])):m("",!0),e[82]||(e[82]=l("div",{class:"logo-tip"},"将会显示在登录页面背景(建议图片大小: 64px*64px,推荐svg格式)",-1)),l("div",Dt,[f(r,{class:"avatar-uploader",action:"/files",data:ae("login_logo"),headers:re(),"show-file-list":!1,"before-upload":se,"http-request":ce,"on-success":function(t){return le(t,"login_logo")}},{default:d((function(){return[f(a,{size:"small"},{default:d((function(){return e[80]||(e[80]=[p("上传图片")])})),_:1})]})),_:1},8,["data","headers","on-success"]),f(a,{size:"small",onClick:e[27]||(e[27]=function(t){return ve("login_logo")})},{default:d((function(){return e[81]||(e[81]=[p("恢复默认")])})),_:1})])])):m("",!0)])]),l("div",Yt,[e[88]||(e[88]=l("div",{class:"item-label"},"登录背景图片",-1)),l("div",Mt,[l("div",Ht,[f(L,{modelValue:u(i).show_login_bg_images,"onUpdate:modelValue":e[28]||(e[28]=function(t){return u(i).show_login_bg_images=t}),"active-text":"显示","inactive-text":"隐藏","inline-prompt":"",onChange:e[29]||(e[29]=function(t){return u(ue)(!1)})},null,8,["modelValue"])]),u(i).show_login_bg_images?(s(),c("div",Jt,[l("div",Kt,[f(o,{src:u(i).login_bg_images,alt:"登录背景图片"},{error:d((function(){return[u(i).login_bg_images?(s(),c("div",Wt,e[84]||(e[84]=[l("div",null,"加载失败",-1),l("div",null,"请重新上传",-1)]))):(s(),c("div",Xt,"请上传图片"))]})),_:1},8,["src"])]),e[87]||(e[87]=l("div",{class:"logo-tip"},"将会显示在登录页面背景(建议图片大小: 1920px*1080px,推荐png格式,大小不建议超过2MB,过大可能会导致页面加载过慢!)",-1)),l("div",$t,[f(r,{class:"avatar-uploader",action:"/files",data:ae("login_bg_images"),headers:re(),"show-file-list":!1,"before-upload":se,"http-request":ce,"on-success":function(t){return le(t,"login_bg_images")}},{default:d((function(){return[f(a,{size:"small"},{default:d((function(){return e[85]||(e[85]=[p("上传图片")])})),_:1})]})),_:1},8,["data","headers","on-success"]),f(a,{size:"small",onClick:e[30]||(e[30]=function(t){return ve("login_bg_images")})},{default:d((function(){return e[86]||(e[86]=[p("恢复默认")])})),_:1})])])):m("",!0)])]),u(i).show_login_bg_images?(s(),c("div",Qt,[e[92]||(e[92]=l("div",{class:"item-label"},"登录背景透明度",-1)),l("div",Rt,[f(V,{modelValue:u(i).login_bg_images_opacity,"onUpdate:modelValue":e[31]||(e[31]=function(t){return u(i).login_bg_images_opacity=t}),min:1,max:100,step:5,"show-input":"",style:{width:"300px"}},null,8,["modelValue"]),e[91]||(e[91]=l("span",{class:"logo-tip"},"(1-100,数值越小越透明)",-1)),l("div",Zt,[f(a,{size:"small",onClick:e[32]||(e[32]=function(t){return u(ue)(!1)})},{default:d((function(){return e[89]||(e[89]=[p("保存")])})),_:1}),f(a,{class:"!ml-0",size:"small",onClick:e[33]||(e[33]=function(t){return ve("login_bg_images_opacity")})},{default:d((function(){return e[90]||(e[90]=[p("恢复默认")])})),_:1})])])])):m("",!0)])]),l("div",te,[f(a,{onClick:_e},{default:d((function(){return e[94]||(e[94]=[p("恢复所有默认设置")])})),_:1})])])])])}}});t("default",T(ee,[["__scopeId","data-v-ba266fd4"]]))}}}))}();
Save File
Cancel