mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-28 12:24:50 +02:00
Since version 7.7.0, we recommend yours update python to 3.12. [+] Using nginx technology to load static files improves access speed [+] Refactor homepage, website, FTP, and database using vue3 [+] Table loading changed to skeleton screen [+] Add Website statistics-v2 professional plug-in [+] Add Home page - top 5 resource occupancy [+] Add protection for Files management (requires Tamper-proof for Enterprise 3.7) [+] Website, FTP, Databases page add program status [+] Add FTP log analysis (only supports Centos) [+] Add password-free login to phpMyAdmin [+] Add Proxy Project in Website (Supported when web service uses Nginx) [+] Add WP Toolkit (Pro version only) [+] Redesigned Docker module [+] Add WP Toolkit Protection [+] Add WP Toolkit Backup and Restore [+] Add WP Toolkit Migrated [+] Add WP Toolkit Clone site (supports new domain and subdomain) [+] Add WP Toolkit Create site from backup of other panel [+] Add WP Toolkit support for Cron automatic backup (only save Local disk) [+] Add WP Toolkit operation log [+] Add Integrity check for WP Toolkit [+] Add WP Toolkit plug-in management and themes management [*] Optimize phpMyAdmin formula access method [*] Optimize Home page PHP display problem [*] Optimize jump to the login interface after the login expires [*] Optimize automatic renewal of SSL at some times [*] Optimize Let's Encrypt to increase application success rate [-] Fix Logs Audit cannot be opened [-] Fix apache URL rewrite issue [-] Fix phpmyadmin installation problem [-] Fix the problem that some servers cannot install software [-] Fix upload file error [-] Fix left menu hiding problem [-] Fix aaPanel Mobile QR code display problem [-] Fix problem that third-party plug-ins are not displayed in the App Store [-] Fix issue where the menu bar is blank when opening new tabs [-] Fixed panel not being accessible in some cases [-] Fix the issue where Curl warning caused the inability to apply for SSL [-] Fix Quota issues for Website, FTP, Databases [-] Fix file interface display problem on mobile terminal
2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
import{aH as e,az as r,aB as n,aD as o,b2 as t,bz as i,bw as a,bx as l,by as s,b4 as c,aJ as g,aK as p,aM as d,aQ as u}from"./index.js?v=1721298337096";import{l as h,k as f,p as v}from"./vue.js?v=1721298337096";const x={name:"Progress",common:e,self:e=>{const{infoColor:r,successColor:n,warningColor:o,errorColor:t,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:r,iconColorInfo:r,iconColorSuccess:n,iconColorWarning:o,iconColorError:t,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:r,fillColorInfo:r,fillColorSuccess:n,fillColorWarning:o,fillColorError:t,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}},b=r([n("progress",{display:"inline-block"},[n("progress-icon","\n color: var(--n-icon-color);\n transition: color .3s var(--n-bezier);\n "),o("line","\n width: 100%;\n display: block;\n ",[n("progress-content","\n display: flex;\n align-items: center;\n ",[n("progress-graph",{flex:1})]),n("progress-custom-content",{marginLeft:"14px"}),n("progress-icon","\n width: 30px;\n padding-left: 14px;\n height: var(--n-icon-size-line);\n line-height: var(--n-icon-size-line);\n font-size: var(--n-icon-size-line);\n ",[o("as-text","\n color: var(--n-text-color-line-outer);\n text-align: center;\n width: 40px;\n font-size: var(--n-font-size);\n padding-left: 4px;\n transition: color .3s var(--n-bezier);\n ")])]),o("circle, dashboard",{width:"120px"},[n("progress-custom-content","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n "),n("progress-text","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n color: inherit;\n font-size: var(--n-font-size-circle);\n color: var(--n-text-color-circle);\n font-weight: var(--n-font-weight-circle);\n transition: color .3s var(--n-bezier);\n white-space: nowrap;\n "),n("progress-icon","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n color: var(--n-icon-color);\n font-size: var(--n-icon-size-circle);\n ")]),o("multiple-circle","\n width: 200px;\n color: inherit;\n ",[n("progress-text","\n font-weight: var(--n-font-weight-circle);\n color: var(--n-text-color-circle);\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n transition: color .3s var(--n-bezier);\n ")]),n("progress-content",{position:"relative"}),n("progress-graph",{position:"relative"},[n("progress-graph-circle",[r("svg",{verticalAlign:"bottom"}),n("progress-graph-circle-fill","\n stroke: var(--n-fill-color);\n transition:\n opacity .3s var(--n-bezier),\n stroke .3s var(--n-bezier),\n stroke-dasharray .3s var(--n-bezier);\n ",[o("empty",{opacity:0})]),n("progress-graph-circle-rail","\n transition: stroke .3s var(--n-bezier);\n overflow: hidden;\n stroke: var(--n-rail-color);\n ")]),n("progress-graph-line",[o("indicator-inside",[n("progress-graph-line-rail","\n height: 16px;\n line-height: 16px;\n border-radius: 10px;\n ",[n("progress-graph-line-fill","\n height: inherit;\n border-radius: 10px;\n "),n("progress-graph-line-indicator","\n background: #0000;\n white-space: nowrap;\n text-align: right;\n margin-left: 14px;\n margin-right: 14px;\n height: inherit;\n font-size: 12px;\n color: var(--n-text-color-line-inner);\n transition: color .3s var(--n-bezier);\n ")])]),o("indicator-inside-label","\n height: 16px;\n display: flex;\n align-items: center;\n ",[n("progress-graph-line-rail","\n flex: 1;\n transition: background-color .3s var(--n-bezier);\n "),n("progress-graph-line-indicator","\n background: var(--n-fill-color);\n font-size: 12px;\n transform: translateZ(0);\n display: flex;\n vertical-align: middle;\n height: 16px;\n line-height: 16px;\n padding: 0 10px;\n border-radius: 10px;\n position: absolute;\n white-space: nowrap;\n color: var(--n-text-color-line-inner);\n transition:\n right .2s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ")]),n("progress-graph-line-rail","\n position: relative;\n overflow: hidden;\n height: var(--n-rail-height);\n border-radius: 5px;\n background-color: var(--n-rail-color);\n transition: background-color .3s var(--n-bezier);\n ",[n("progress-graph-line-fill","\n background: var(--n-fill-color);\n position: relative;\n border-radius: 5px;\n height: inherit;\n width: 100%;\n max-width: 0%;\n transition:\n background-color .3s var(--n-bezier),\n max-width .2s var(--n-bezier);\n ",[o("processing",[r("&::after",'\n content: "";\n background-image: var(--n-line-bg-processing);\n animation: progress-processing-animation 2s var(--n-bezier) infinite;\n ')])])])])])]),r("@keyframes progress-processing-animation","\n 0% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 100%;\n opacity: 1;\n }\n 66% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n }\n 100% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n }\n ")]),m={success:v(i,null),error:v(a,null),warning:v(l,null),info:v(s,null)},y=h({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:r}){const n=f((()=>c(e.height))),o=f((()=>void 0!==e.railBorderRadius?c(e.railBorderRadius):void 0!==e.height?c(e.height,{c:.5}):"")),i=f((()=>void 0!==e.fillBorderRadius?c(e.fillBorderRadius):void 0!==e.railBorderRadius?c(e.railBorderRadius):void 0!==e.height?c(e.height,{c:.5}):""));return()=>{const{indicatorPlacement:a,railColor:l,railStyle:s,percentage:c,unit:g,indicatorTextColor:p,status:d,showIndicator:u,fillColor:h,processing:f,clsPrefix:x}=e;return v("div",{class:"".concat(x,"-progress-content"),role:"none"},v("div",{class:"".concat(x,"-progress-graph"),"aria-hidden":!0},v("div",{class:["".concat(x,"-progress-graph-line"),{["".concat(x,"-progress-graph-line--indicator-").concat(a)]:!0}]},v("div",{class:"".concat(x,"-progress-graph-line-rail"),style:[{backgroundColor:l,height:n.value,borderRadius:o.value},s]},v("div",{class:["".concat(x,"-progress-graph-line-fill"),f&&"".concat(x,"-progress-graph-line-fill--processing")],style:{maxWidth:"".concat(e.percentage,"%"),backgroundColor:h,height:n.value,lineHeight:n.value,borderRadius:i.value}},"inside"===a?v("div",{class:"".concat(x,"-progress-graph-line-indicator"),style:{color:p}},r.default?r.default():"".concat(c).concat(g)):null)))),u&&"outside"===a?v("div",null,r.default?v("div",{class:"".concat(x,"-progress-custom-content"),style:{color:p},role:"none"},r.default()):"default"===d?v("div",{role:"none",class:"".concat(x,"-progress-icon ").concat(x,"-progress-icon--as-text"),style:{color:p}},c,g):v("div",{class:"".concat(x,"-progress-icon"),"aria-hidden":!0},v(t,{clsPrefix:x},{default:()=>m[d]}))):null)}}}),C={success:v(i,null),error:v(a,null),warning:v(l,null),info:v(s,null)},S=h({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:r}){function n(r,n,o){const{gapDegree:t,viewBoxWidth:i,strokeWidth:a}=e,l=50,s=50+a/2,c="M ".concat(s,",").concat(s," m ").concat(0,",").concat(50,"\n a ").concat(l,",").concat(l," 0 1 1 ").concat(0,",").concat(-100,"\n a ").concat(l,",").concat(l," 0 1 1 ").concat(-0,",").concat(100),g=2*Math.PI*l;return{pathString:c,pathStyle:{stroke:o,strokeDasharray:"".concat(r/100*(g-t),"px ").concat(8*i,"px"),strokeDashoffset:"-".concat(t/2,"px"),transformOrigin:n?"center":void 0,transform:n?"rotate(".concat(n,"deg)"):void 0}}}return()=>{const{fillColor:o,railColor:i,strokeWidth:a,offsetDegree:l,status:s,percentage:c,showIndicator:g,indicatorTextColor:p,unit:d,gapOffsetDegree:u,clsPrefix:h}=e,{pathString:f,pathStyle:x}=n(100,0,i),{pathString:b,pathStyle:m}=n(c,l,o),y=100+a;return v("div",{class:"".concat(h,"-progress-content"),role:"none"},v("div",{class:"".concat(h,"-progress-graph"),"aria-hidden":!0},v("div",{class:"".concat(h,"-progress-graph-circle"),style:{transform:u?"rotate(".concat(u,"deg)"):void 0}},v("svg",{viewBox:"0 0 ".concat(y," ").concat(y)},v("g",null,v("path",{class:"".concat(h,"-progress-graph-circle-rail"),d:f,"stroke-width":a,"stroke-linecap":"round",fill:"none",style:x})),v("g",null,v("path",{class:["".concat(h,"-progress-graph-circle-fill"),0===c&&"".concat(h,"-progress-graph-circle-fill--empty")],d:b,"stroke-width":a,"stroke-linecap":"round",fill:"none",style:m}))))),g?v("div",null,r.default?v("div",{class:"".concat(h,"-progress-custom-content"),role:"none"},r.default()):"default"!==s?v("div",{class:"".concat(h,"-progress-icon"),"aria-hidden":!0},v(t,{clsPrefix:h},{default:()=>C[s]})):v("div",{class:"".concat(h,"-progress-text"),style:{color:p},role:"none"},v("span",{class:"".concat(h,"-progress-text__percentage")},c),v("span",{class:"".concat(h,"-progress-text__unit")},d))):null)}}});function w(e,r,n=100){return"m ".concat(n/2," ").concat(n/2-e," a ").concat(e," ").concat(e," 0 1 1 0 ").concat(2*e," a ").concat(e," ").concat(e," 0 1 1 0 -").concat(2*e)}const k=h({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:r}){const n=f((()=>e.percentage.map(((r,n)=>"".concat(Math.PI*r/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*n)-e.circleGap*n)*2,", ").concat(8*e.viewBoxWidth)))));return()=>{const{viewBoxWidth:o,strokeWidth:t,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:g,clsPrefix:p}=e;return v("div",{class:"".concat(p,"-progress-content"),role:"none"},v("div",{class:"".concat(p,"-progress-graph"),"aria-hidden":!0},v("div",{class:"".concat(p,"-progress-graph-circle")},v("svg",{viewBox:"0 0 ".concat(o," ").concat(o)},g.map(((e,r)=>v("g",{key:r},v("path",{class:"".concat(p,"-progress-graph-circle-rail"),d:w(o/2-t/2*(1+2*r)-i*r,0,o),"stroke-width":t,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[r]},c[r]]}),v("path",{class:["".concat(p,"-progress-graph-circle-fill"),0===e&&"".concat(p,"-progress-graph-circle-fill--empty")],d:w(o/2-t/2*(1+2*r)-i*r,0,o),"stroke-width":t,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[r],strokeDashoffset:0,stroke:l[r]}}))))))),a&&r.default?v("div",null,v("div",{class:"".concat(p,"-progress-text")},r.default())):null)}}}),z=h({name:"Progress",props:Object.assign(Object.assign({},p.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),setup(e){const r=f((()=>e.indicatorPlacement||e.indicatorPosition)),n=f((()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0)),{mergedClsPrefixRef:o,inlineThemeDisabled:t}=g(e),i=p("Progress","-progress",b,x,e,o),a=f((()=>{const{status:r}=e,{common:{cubicBezierEaseInOut:n},self:{fontSize:o,fontSizeCircle:t,railColor:a,railHeight:l,iconSizeCircle:s,iconSizeLine:c,textColorCircle:g,textColorLineInner:p,textColorLineOuter:d,lineBgProcessing:h,fontWeightCircle:f,[u("iconColor",r)]:v,[u("fillColor",r)]:x}}=i.value;return{"--n-bezier":n,"--n-fill-color":x,"--n-font-size":o,"--n-font-size-circle":t,"--n-font-weight-circle":f,"--n-icon-color":v,"--n-icon-size-circle":s,"--n-icon-size-line":c,"--n-line-bg-processing":h,"--n-rail-color":a,"--n-rail-height":l,"--n-text-color-circle":g,"--n-text-color-line-inner":p,"--n-text-color-line-outer":d}})),l=t?d("progress",f((()=>e.status[0])),a,e):void 0;return{mergedClsPrefix:o,mergedIndicatorPlacement:r,gapDeg:n,cssVars:t?void 0:a,themeClass:null==l?void 0:l.themeClass,onRender:null==l?void 0:l.onRender}},render(){const{type:e,cssVars:r,indicatorTextColor:n,showIndicator:o,status:t,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:g,mergedIndicatorPlacement:p,unit:d,borderRadius:u,fillBorderRadius:h,height:f,processing:x,circleGap:b,mergedClsPrefix:m,gapDeg:C,gapOffsetDegree:w,themeClass:z,$slots:B,onRender:P}=this;return null==P||P(),v("div",{class:[z,"".concat(m,"-progress"),"".concat(m,"-progress--").concat(e),"".concat(m,"-progress--").concat(t)],style:r,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:"circle"===e||"line"===e||"dashboard"===e?"progressbar":"none"},"circle"===e||"dashboard"===e?v(S,{clsPrefix:m,status:t,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:g,gapDegree:void 0===C?"dashboard"===e?75:0:C,gapOffsetDegree:w,unit:d},B):"line"===e?v(y,{clsPrefix:m,status:t,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:x,indicatorPlacement:p,unit:d,fillBorderRadius:h,railBorderRadius:u,height:f},B):"multiple-circle"===e?v(k,{clsPrefix:m,strokeWidth:g,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:o,circleGap:b},B):null)}});export{z as _,x as p};
|