mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-27 20:04:50 +02:00
[+] 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.
9 lines
16 KiB
JavaScript
9 lines
16 KiB
JavaScript
const __vite__fileDeps=["js/quota-config.js?v=1723125373998","js/index73.js?v=1723125373998","js/index.js?v=1723125373998","js/vue.js?v=1723125373998","js/pinia.js?v=1723125373998","css/index42.css?v=1723125373998","js/index.vue_vue_type_script_setup_true_lang6.js?v=1723125373998","js/InputGroupLabel.js?v=1723125373998","js/InputGroup.js?v=1723125373998"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
import{ao as t,N as e,L as n,e as o,bb as r,v as i,a,aZ as u,G as l,p as c,a2 as s,_ as d,bt as f,be as p,bd as y,n as h,U as m,h as v,z as b}from"./index.js?v=1723125373998";import{l as g,ad as x,k,W as w,S,U as _,V as C,q as E,a3 as T,Z as P,P as j,_ as A,a1 as L,ap as O,B as W,ar as R,b as B,aj as q,F as M,r as N,ae as V}from"./vue.js?v=1723125373998";import{_ as z}from"./Progress.js?v=1723125373998";import{_ as I}from"./Switch.js?v=1723125373998";import{_ as F}from"./Ellipsis.js?v=1723125373998";const H={class:"leading-20px"},U=g({__name:"index",props:{type:{default:"site"},data:{},callback:{}},setup(a){const{t:u}=x(),l=a,c=k((()=>{const{data:t}=l,{quota:e}=t;return!e.size})),s=k((()=>{if(c.value)return 0;const{data:e}=l,n=t(e,"quota.used",0);let o=t(e,"quota.size",0);return o=1024*o*1024,0===o?0:n/o*100})),d=k((()=>{const{data:n}=l,o=t(n,"quota.used",0);return e(o)})),f=k((()=>{const{data:e}=l,n=t(e,"quota.size",0);return"".concat(n.toFixed(2)," MB")})),p=k((()=>s.value<90?"success":"error")),y=new Map([["site","Site"],["ftp","FTP"],["database","Database"]]),h=()=>{n({title:"".concat(y.get(l.type)||""," ").concat(u("Public.Components.index_15")," [").concat(l.data.name,"]"),width:480,minHeight:222,footer:!0,data:{type:l.type,info:l.data,callback:l.callback},component:L((()=>i((()=>import("./quota-config.js?v=1723125373998")),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))))})};return(t,e)=>{const n=o,i=z,a=r;return w(c)?(S(),_(n,{key:0,onClick:h},{default:C((()=>[E(T(t.$t("Public.Components.index_12")),1)])),_:1})):(S(),P("div",{key:1,class:"cursor-pointer",onClick:h},[j(a,{placement:"bottom-start","arrow-point-to-center":!0},{trigger:C((()=>[j(i,{type:"line",status:w(p),percentage:w(s),height:12,"border-radius":2,"show-indicator":!1},null,8,["status","percentage"])])),default:C((()=>[A("div",H,[A("p",null,T(t.$t("Public.Components.index_13"))+": "+T(w(d)),1),A("p",null,T(t.$t("Public.Components.index_13"))+": "+T(w(f)),1),A("p",null,T(t.$t("Public.Components.index_14")),1)])])),_:1})]))}}}),D=a(g({__name:"index",props:{value:{default:""},onUpdateValue:{},onBlur:{}},setup(t){const e=t,n=O(e,"value"),o=t=>{var n;const o=t.target;null==(n=null==e?void 0:e.onBlur)||n.call(e,o.value||"",t)};return(t,e)=>W((S(),P("input",{"onUpdate:modelValue":e[0]||(e[0]=t=>B(n)?n.value=t:null),class:"bt-table-input",onBlur:o},null,544)),[[R,w(n)]])}}),[["__scopeId","data-v-04feea87"]]),$=g({__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&&u(r,t===n?o:n)};return(t,e)=>{const o=l;return S(),_(o,{class:q(["items-center cursor-pointer",t.value===t.checkedValue?"text-primary":"text-error"]),size:0,inline:!0,onClick:n},{default:C((()=>[A("span",null,T(t.value===t.checkedValue?t.checkedTitle:t.uncheckedTitle),1),A("span",{class:q(["iconfont mt-1px","icon-".concat(t.value===t.checkedValue?"start":"stop")])},null,2)])),_:1},8,["class"])}}}),G=g({name:"BtLinkGroup",props:{options:{type:Array,default:()=>[]}},render(){return j("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 j(M,null,[0!==e?j(c,{class:"mx-4px!",vertical:!0},null):"","default"===n?j(o,{disabled:t.disabled||!1,type:t.type,width:t.width||"auto",onClick:()=>{var e;null==(e=t.onClick)||e.call(t)}},{default:()=>[t.label]}):"","dropdown"===n?j(s,t.dropdown||{},{default:()=>[j(o,{disabled:t.disabled||!1,onClick:()=>{var e;null==(e=t.onClick)||e.call(t)}},{default:()=>[t.label,j(d,{name:"base-arrow-bottom",size:"13"},null)]})]}):""])}))])}}),Y=g({__name:"index",props:{disabled:{type:Boolean,default:!1},tips:{},value:{type:[Boolean,String],default:!1},onClick:{}},setup(t){let e=N(!0);const n=t;"string"==typeof n.value?e.value=!!n.value:e.value=n.value;const o=()=>{const{onClick:t}=n;t&&u(t,e.value)};return(t,n)=>{const r=I,i=f;return S(),_(i,{trigger:"hover",disabled:!(t.disabled&&w(e))},{trigger:C((()=>[j(r,{size:"small",value:w(e),"onUpdate:value":[n[0]||(n[0]=t=>B(e)?e.value=t:e=t),o],disabled:t.disabled&&w(e)},null,8,["value","disabled"])])),default:C((()=>[E(" "+T(t.tips),1)])),_:1},8,["disabled"])}}});var Z={exports:{}};
|
|
/*!
|
|
* clipboard.js v2.0.11
|
|
* https://clipboardjs.com/
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/const Q=y(Z.exports=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),l=n.n(u);function c(t){try{return document.execCommand(t)}catch(e){return!1}}var s=function(t){var e=l()(t);return c("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=l()(n);return c("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=l()(t),c("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})(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})(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})(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,r,i=g(t);if(e){var a=g(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o=this,!(r=n)||"object"!==h(r)&&"function"!=typeof r?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o):r}}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(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}()),X=t=>({toClipboard:(t,e)=>new Promise(((n,o)=>{const r=document.createElement("button"),i=new Q(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)}))}),J={class:"flex"},K={class:"w-0 flex-1 flex items-center"},tt={class:"min-w-0"},et=g({__name:"index",props:{value:{default:""}},setup(t){const{t:e}=x(),n=t,o=N(!1),r=k((()=>o.value?n.value:"**********")),i=k((()=>o.value?"icon-eye-close":"icon-browse")),a=()=>{o.value=!o.value},{toClipboard:u}=X(),l=async()=>{try{await u("".concat(n.value)),h.success(e("Public.Components.index_4"))}catch(t){h.success(e("Public.Components.index_5"))}};return(t,e)=>{const n=F,o=d;return S(),P("div",J,[A("div",K,[A("div",tt,[j(n,{class:"max-w-full",tooltip:{contentStyle:{maxWidth:"200px"}}},{default:C((()=>[E(T(w(r)),1)])),_:1})]),A("div",{class:"ml-6px text-15px cursor-pointer",title:"Show",onClick:a},[A("i",{class:q(["iconfont",w(i)])},null,2)]),A("button",{class:"reset ml-6px text-15px cursor-pointer text-#333",title:"Copy",onClick:l},[j(o,{name:"common-copy"})])])])}}});function nt(t={}){return{key:t.key||"quota",title:t.title||"Quota",width:t.width||"8%",minWidth:t.minWidth||100,maxWidth:t.maxWidth||120,render:e=>j(U,{type:t.type||"",data:e,callback:t.callback},null)}}function ot(t={}){const e=V();return{key:t.key||"path",title:t.title||"Document Root",width:t.width,minWidth:t.minWidth||120,ellipsis:{tooltip:!0},render:t=>j("a",{class:"text-primary hover:text-primary-hover",href:"javascript:;",onClick:()=>{m("Path",t.path),e.push("/files")}},[t.path])}}function rt(t){return{key:t.key||"status",title:t.title||"Status",width:t.width,minWidth:70,render:e=>j($,{value:e.status,"checked-title":t.checkedLabel||"Running","unchecked-title":t.uncheckedLabel||"Stop",onClick:n=>{t.confirm&&v(t.confirm(n,e))}},null)}}function it(t){const{key:e="status"}=t;return{key:t.key||"Caching(nginx)",title:t.title||"Caching(nginx)",width:t.width,minWidth:70,render:n=>j(Y,{disabled:t.disabled,tips:t.tips,value:n[e],onClick:e=>{t.onClick(e,n)}},null)}}function at(t){const{key:e="ps"}=t;return{key:e,title:t.title||"Note",width:t.width,minWidth:t.minWidth||120,render:n=>j(D,{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)}}function ut(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)=>{var o;return j(G,{options:(null==(o=t.options)?void 0:o.call(t,e,n))||[]},null)}}}function lt(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 j(et,{value:b(n)?n:""},null)}}}export{G as B,et as _,at as a,ut as b,X as c,rt as d,ot as e,lt as f,$ as g,it as h,nt as u};
|