Files
aaPanel/BTPanel/static/vite/js/useTableColumns-legacy.js
T
Jack 1459724ba3 Update to 7.10.0
[+] Add Mail Server to the left menu.
[+] Add Mail Server - WebMail (requires Mail Server upgrade 5.1)
[+] Add WP Toolkit Plugin, Theme installation.
[+] Add Mail Server Login info.
[+] Add Mail Server WebMail One-click Login (requires Mail Server upgrade 5.2).
[+] Redesigned Security - Firewall.

[*] Optimized Mass Mail sending speed.
[*] Optimized the CPU usage problem of aaPanel startup service.

[-] Fix apache application, renew SSL issue.
[-] Fix Let's Encrypt account registeration failed.
[-] Fix openlitespeed using capital letters on domain name caused the website cannot be accessed issue.
[-] Fix problem of failure to reset root password in some versions of MariaDB.
[-] Fix an error in modifying Permission in some cases of MySQL.
[-] Fix the Website category display problem.
2024-08-09 09:57:59 +08:00

8 lines
16 KiB
JavaScript

System.register(["./index-legacy.js?v=1723125373998","./vue-legacy.js?v=1723125373998","./Progress-legacy.js?v=1723125373998","./Switch-legacy.js?v=1723125373998","./Ellipsis-legacy.js?v=1723125373998"],(function(t,e){"use strict";var n,o,r,i,a,u,c,l,s,d,f,p,y,h,m,v,b,g,x,k,w,S,C,_,E,T,j,P,A,L,W,O,R,B,q,M,N,V,z,$,I,F;return{setters:[t=>{n=t.ao,o=t.N,r=t.L,i=t.e,a=t.bb,u=t.v,c=t.a,l=t.aZ,s=t.G,d=t.p,f=t.a2,p=t._,y=t.bt,t.be,h=t.bd,m=t.n,v=t.U,b=t.h,g=t.z},t=>{x=t.l,k=t.ad,w=t.k,S=t.W,C=t.S,_=t.U,E=t.V,T=t.q,j=t.a3,P=t.Z,A=t.P,L=t._,W=t.a1,O=t.ap,R=t.B,B=t.ar,q=t.b,M=t.aj,N=t.F,V=t.r,z=t.ae},t=>{$=t._},t=>{I=t._},t=>{F=t._}],execute:function(){var H=document.createElement("style");H.textContent=".bt-table-input[data-v-04feea87]{width:100%;height:22px;padding:0;outline-offset:2px;border:1px solid transparent;background:transparent;white-space:pre-line;color:#666}.bt-table-input[data-v-04feea87]:hover,.bt-table-input[data-v-04feea87]:focus{border:1px solid #20a53a;background-color:#fff}\n",document.head.appendChild(H),t({a:function(t){const{key:e="ps"}=t;return{key:e,title:t.title||"Note",width:t.width,minWidth:t.minWidth||120,render:n=>A(G,{value:n[e],onBlur:async(o,r)=>{const i=n[e];if(i!==o)try{await t.onBlur(o,n),n[e]=o}catch(a){r.target.value=i}}},null)}},b:function(t){return{key:t.key||"action",title:t.title||"OPT",align:t.align||"right",width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,render:(e,n)=>A(Z,{options:t.options?.(e,n)||[]},null)}},d:function(t){return{key:t.key||"status",title:t.title||"Status",width:t.width,minWidth:70,render:e=>A(Y,{value:e.status,"checked-title":t.checkedLabel||"Running","unchecked-title":t.uncheckedLabel||"Stop",onClick:n=>{t.confirm&&b(t.confirm(n,e))}},null)}},e:function(t={}){const e=z();return{key:t.key||"path",title:t.title||"Document Root",width:t.width,minWidth:t.minWidth||120,ellipsis:{tooltip:!0},render:t=>A("a",{class:"text-primary hover:text-primary-hover",href:"javascript:;",onClick:()=>{v("Path",t.path),e.push("/files")}},[t.path])}},f:function(t={}){const e=t.key||"password";return{key:e,title:t.title||"Password",width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,render:t=>{const n=t[e];return A(ot,{value:g(n)?n:""},null)}}},h:function(t){const{key:e="status"}=t;return{key:t.key||"Caching(nginx)",title:t.title||"Caching(nginx)",width:t.width,minWidth:70,render:n=>A(Q,{disabled:t.disabled,tips:t.tips,value:n[e],onClick:e=>{t.onClick(e,n)}},null)}},u:function(t={}){return{key:t.key||"quota",title:t.title||"Quota",width:t.width||"8%",minWidth:t.minWidth||100,maxWidth:t.maxWidth||120,render:e=>A(D,{type:t.type||"",data:e,callback:t.callback},null)}}});const U={class:"leading-20px"},D=x({__name:"index",props:{type:{default:"site"},data:{},callback:{}},setup(t){const{t:c}=k(),l=t,s=w((()=>{const{data:t}=l,{quota:e}=t;return!e.size})),d=w((()=>{if(s.value)return 0;const{data:t}=l,e=n(t,"quota.used",0);let o=n(t,"quota.size",0);return o=1024*o*1024,0===o?0:e/o*100})),f=w((()=>{const{data:t}=l,e=n(t,"quota.used",0);return o(e)})),p=w((()=>{const{data:t}=l;return`${n(t,"quota.size",0).toFixed(2)} MB`})),y=w((()=>d.value<90?"success":"error")),h=new Map([["site","Site"],["ftp","FTP"],["database","Database"]]),m=()=>{r({title:`${h.get(l.type)||""} ${c("Public.Components.index_15")} [${l.data.name}]`,width:480,minHeight:222,footer:!0,data:{type:l.type,info:l.data,callback:l.callback},component:W((()=>u((()=>e.import("./quota-config-legacy.js?v=1723125373998")),void 0)))})};return(t,e)=>{const n=i,o=$,r=a;return S(s)?(C(),_(n,{key:0,onClick:m},{default:E((()=>[T(j(t.$t("Public.Components.index_12")),1)])),_:1})):(C(),P("div",{key:1,class:"cursor-pointer",onClick:m},[A(r,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:E((()=>[A(o,{type:"line",status:S(y),percentage:S(d),height:12,"border-radius":2,"show-indicator":!1},null,8,["status","percentage"])])),default:E((()=>[L("div",U,[L("p",null,j(t.$t("Public.Components.index_13"))+": "+j(S(f)),1),L("p",null,j(t.$t("Public.Components.index_13"))+": "+j(S(p)),1),L("p",null,j(t.$t("Public.Components.index_14")),1)])])),_:1})]))}}}),G=c(x({__name:"index",props:{value:{default:""},onUpdateValue:{},onBlur:{}},setup(t){const e=t,n=O(e,"value"),o=t=>{const n=t.target;e?.onBlur?.(n.value||"",t)};return(t,e)=>R((C(),P("input",{"onUpdate:modelValue":e[0]||(e[0]=t=>q(n)?n.value=t:null),class:"bt-table-input",onBlur:o},null,544)),[[B,S(n)]])}}),[["__scopeId","data-v-04feea87"]]),Y=t("g",x({__name:"index",props:{value:{type:[Number,String,Boolean,null],default:"1"},checkedValue:{type:[Number,String,Boolean],default:"1"},uncheckedValue:{type:[Number,String,Boolean],default:"0"},checkedTitle:{default:"Running"},uncheckedTitle:{default:"Stopped"},onClick:{default:void 0}},setup(t){const e=t,n=()=>{const{value:t,checkedValue:n,uncheckedValue:o,onClick:r}=e;r&&l(r,t===n?o:n)};return(t,e)=>{const o=s;return C(),_(o,{class:M(["items-center cursor-pointer",t.value===t.checkedValue?"text-primary":"text-error"]),size:0,inline:!0,onClick:n},{default:E((()=>[L("span",null,j(t.value===t.checkedValue?t.checkedTitle:t.uncheckedTitle),1),L("span",{class:M(["iconfont mt-1px","icon-"+(t.value===t.checkedValue?"start":"stop")])},null,2)])),_:1},8,["class"])}}})),Z=t("B",x({name:"BtLinkGroup",props:{options:{type:Array,default:()=>[]}},render(){return A("div",{class:"inline-flex items-center"},[this.options.filter((t=>void 0===t.show||t.show)).map(((t,e)=>{const n=t.linkType||"default";return A(N,null,[0!==e?A(d,{class:"mx-4px!",vertical:!0},null):"","default"===n?A(i,{disabled:t.disabled||!1,type:t.type,width:t.width||"auto",onClick:()=>{t.onClick?.()}},{default:()=>[t.label]}):"","dropdown"===n?A(f,t.dropdown||{},{default:()=>[A(i,{disabled:t.disabled||!1,onClick:()=>{t.onClick?.()}},{default:()=>[t.label,A(p,{name:"base-arrow-bottom",size:"13"},null)]})]}):""])}))])}})),Q=x({__name:"index",props:{disabled:{type:Boolean,default:!1},tips:{},value:{type:[Boolean,String],default:!1},onClick:{}},setup(t){let e=V(!0);const n=t;"string"==typeof n.value?e.value=!!n.value:e.value=n.value;const o=()=>{const{onClick:t}=n;t&&l(t,e.value)};return(t,n)=>{const r=I,i=y;return C(),_(i,{trigger:"hover",disabled:!(t.disabled&&S(e))},{trigger:E((()=>[A(r,{size:"small",value:S(e),"onUpdate:value":[n[0]||(n[0]=t=>q(e)?e.value=t:e=t),o],disabled:t.disabled&&S(e)},null,8,["value","disabled"])])),default:E((()=>[T(" "+j(t.tips),1)])),_:1},8,["disabled"])}}});var X={exports:{}};
/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/!function(t,e){var n;n=function(){return function(){var t={686:function(t,e,n){n.d(e,{default:function(){return w}});var o=n(279),r=n.n(o),i=n(370),a=n.n(i),u=n(817),c=n.n(u);function l(t){try{return document.execCommand(t)}catch(e){return!1}}var s=function(t){var e=c()(t);return l("cut"),e},d=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(o,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var o=c()(n);return l("copy"),n.remove(),o},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=d(t.value,e):(n=c()(t),l("copy")),n};function p(t){return p="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},p(t)}var y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,r=t.target,i=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==p(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?f(i,{container:o}):r?"cut"===n?s(r):f(r,{container:o}):void 0};function h(t){return h="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},h(t)}function m(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,n)}}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function x(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(i,t);var e,n,o,r=b(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=r.call(this)).resolveOptions(e),n.listenClick(t),n}return e=i,n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",o=y({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(o?"success":"error",{action:n,text:o,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return x("action",t)}},{key:"defaultTarget",value:function(t){var e=x("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return x("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(t,e)}},{key:"cut",value:function(t){return s(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&m(e.prototype,n),o&&m(e,o),i}(r()),w=k},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var o=n(828);function r(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,r){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&r.call(t,n)}}t.exports=function(t,e,n,o,i){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return r(t,e,n,o,i)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var o=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!o.string(e))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(o.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(o.string(t))return function(t,e,n){return r(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=n()}(X);const J=h(X.exports),K=t("c",(t=>({toClipboard:(t,e)=>new Promise(((n,o)=>{const r=document.createElement("button"),i=new J(r,{text:()=>t,action:()=>"copy",container:void 0!==e?e:document.body});i.on("success",(t=>{i.destroy(),n(t)})),i.on("error",(t=>{i.destroy(),o(t)})),document.body.appendChild(r),r.click(),document.body.removeChild(r)}))}))),tt={class:"flex"},et={class:"w-0 flex-1 flex items-center"},nt={class:"min-w-0"},ot=t("_",x({__name:"index",props:{value:{default:""}},setup(t){const{t:e}=k(),n=t,o=V(!1),r=w((()=>o.value?n.value:"**********")),i=w((()=>o.value?"icon-eye-close":"icon-browse")),a=()=>{o.value=!o.value},{toClipboard:u}=K(),c=async()=>{try{await u(`${n.value}`),m.success(e("Public.Components.index_4"))}catch(t){m.success(e("Public.Components.index_5"))}};return(t,e)=>{const n=F,o=p;return C(),P("div",tt,[L("div",et,[L("div",nt,[A(n,{class:"max-w-full",tooltip:{contentStyle:{maxWidth:"200px"}}},{default:E((()=>[T(j(S(r)),1)])),_:1})]),L("div",{class:"ml-6px text-15px cursor-pointer",title:"Show",onClick:a},[L("i",{class:M(["iconfont",S(i)])},null,2)]),L("button",{class:"reset ml-6px text-15px cursor-pointer text-#333",title:"Copy",onClick:c},[A(o,{name:"common-copy"})])])])}}}))}}}));