no message

This commit is contained in:
小陌 2023-11-14 12:34:47 +08:00
parent bdc8aa28d9
commit d722ba7946
24 changed files with 187 additions and 168 deletions

2
dist/index.html vendored
View File

@ -1,4 +1,4 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.2cc2e056.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.d82a0636.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.9f1a68b0.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.853ca01a.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.b6e7182d.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"></div><div class="app-loading__loader"></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>.app-loading {
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.2cc2e056.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.79ce4654.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.70b875bd.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.70e682f6.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.b6e7182d.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"></div><div class="app-loading__loader"></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>.app-loading {
position: absolute;
top:0px;
left:0px;

4
dist/report.html vendored

File diff suppressed because one or more lines are too long

1
dist/static/css/225.d0b7abc3.css vendored Normal file
View File

@ -0,0 +1 @@
.login_bg[data-v-14d6a652]{width:100%;height:100%;background:#fff;display:flex}.login_adv[data-v-14d6a652]{width:33.33333%;background-color:#555;background-size:cover;background-position:50%;background-repeat:no-repeat;position:relative}.login_adv__title[data-v-14d6a652]{color:#fff;padding:40px;position:absolute;top:0;left:0;right:0;z-index:2}.login_adv__title h2[data-v-14d6a652]{font-size:40px}.login_adv__title h4[data-v-14d6a652]{font-size:18px;margin-top:10px;font-weight:400}.login_adv__title p[data-v-14d6a652]{font-size:14px;margin-top:10px;line-height:1.8;color:hsla(0,0%,100%,.6)}.login_adv__title div[data-v-14d6a652]{margin-top:10px;display:flex;align-items:center}.login_adv__title div span[data-v-14d6a652]{margin-right:15px}.login_adv__title div i[data-v-14d6a652]{font-size:40px}.login_adv__title div i.add[data-v-14d6a652]{font-size:20px;color:hsla(0,0%,100%,.6)}.login_adv__bottom[data-v-14d6a652]{position:absolute;left:0;right:0;bottom:0;color:#fff;padding:40px;background-image:linear-gradient(transparent,#000);z-index:3}.login_adv__mask[data-v-14d6a652]{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:1}.login_main[data-v-14d6a652]{flex:1;overflow:auto;display:flex}.login-form[data-v-14d6a652]{width:400px;margin:auto;padding:20px 0}.login-header[data-v-14d6a652]{margin-bottom:40px}.login-header .logo[data-v-14d6a652]{display:flex;align-items:center}.login-header .logo img[data-v-14d6a652]{width:40px;height:40px;vertical-align:bottom;margin-right:10px}.login-header .logo label[data-v-14d6a652]{font-size:26px;font-weight:700}.login-oauth[data-v-14d6a652]{display:flex;justify-content:space-around}.login-form .el-divider[data-v-14d6a652]{margin-top:40px}.login-form[data-v-14d6a652] .el-tabs .el-tabs__header{margin-bottom:25px}.login-form[data-v-14d6a652] .el-tabs .el-tabs__header .el-tabs__item{font-size:14px}.login-form[data-v-14d6a652] .login-forgot{text-align:right}.login-form[data-v-14d6a652] .login-forgot a{color:var(--el-color-primary)}.login-form[data-v-14d6a652] .login-forgot a:hover{color:var(--el-color-primary-light-3)}.login-form[data-v-14d6a652] .login-reg{font-size:14px;color:var(--el-text-color-primary)}.login-form[data-v-14d6a652] .login-reg a{color:var(--el-color-primary)}.login-form[data-v-14d6a652] .login-reg a:hover{color:var(--el-color-primary-light-3)}.login_config[data-v-14d6a652]{position:absolute;top:20px;right:20px}.login-form[data-v-14d6a652] .login-msg-yzm{display:flex;width:100%}.login-form[data-v-14d6a652] .login-msg-yzm .el-button{margin-left:10px;--el-button-size:42px}.qrCodeLogin[data-v-14d6a652]{text-align:center;position:relative;padding:20px 0}.qrCodeLogin img.qrCode[data-v-14d6a652]{background:#fff;padding:20px;border-radius:10px}.qrCodeLogin p.msg[data-v-14d6a652]{margin-top:15px}.qrCodeLogin .qrCodeLogin-result[data-v-14d6a652]{position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;background:var(--el-mask-color)}@media (max-width:1200px){.login-form[data-v-14d6a652]{width:340px}}@media (max-width:1000px){.login_main[data-v-14d6a652]{display:block}.login_main .login_config[data-v-14d6a652]{position:static;padding:20px 20px 0 20px;text-align:right}.login-form[data-v-14d6a652]{width:100%;padding:20px 40px}.login_adv[data-v-14d6a652]{display:none}}

1
dist/static/css/583.ac1a9253.css vendored Normal file
View File

@ -0,0 +1 @@
.dis-f[data-v-7a424f8f]{display:flex}.flex-1[data-v-7a424f8f]{flex:1}.jus-x[data-v-7a424f8f]{justify-content:center}.al-item[data-v-7a424f8f]{align-items:center}.tran-width[data-v-7a424f8f]{transition:width .2s linear}.hid-box[data-v-7a424f8f]{width:100%;overflow:hidden;position:relative;overflow-y:scroll}.tab-list-box[data-v-7a424f8f]{width:100%;height:60px;font-size:16px;color:#525967;position:relative;z-index:666}.tab-box[data-v-7a424f8f]{height:100%;width:120px;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0 20px;transition:all .3s linear;border-bottom:1px solid transparent}.click-tab[data-v-7a424f8f]{color:#409eff;border-bottom:2px solid #409eff}.tab-box[data-v-7a424f8f]:hover{color:#409eff}.tab-info-box-hid[data-v-7a424f8f]{width:0!important}.tab-info-box[data-v-7a424f8f]{min-width:100%;min-height:100%;background:#fff;position:absolute;top:0;left:0}

View File

@ -1 +0,0 @@
.login_bg[data-v-72a42f0a]{width:100%;height:100%;background:#fff;display:flex}.login_adv[data-v-72a42f0a]{width:33.33333%;background-color:#555;background-size:cover;background-position:50%;background-repeat:no-repeat;position:relative}.login_adv__title[data-v-72a42f0a]{color:#fff;padding:40px;position:absolute;top:0;left:0;right:0;z-index:2}.login_adv__title h2[data-v-72a42f0a]{font-size:40px}.login_adv__title h4[data-v-72a42f0a]{font-size:18px;margin-top:10px;font-weight:400}.login_adv__title p[data-v-72a42f0a]{font-size:14px;margin-top:10px;line-height:1.8;color:hsla(0,0%,100%,.6)}.login_adv__title div[data-v-72a42f0a]{margin-top:10px;display:flex;align-items:center}.login_adv__title div span[data-v-72a42f0a]{margin-right:15px}.login_adv__title div i[data-v-72a42f0a]{font-size:40px}.login_adv__title div i.add[data-v-72a42f0a]{font-size:20px;color:hsla(0,0%,100%,.6)}.login_adv__bottom[data-v-72a42f0a]{position:absolute;left:0;right:0;bottom:0;color:#fff;padding:40px;background-image:linear-gradient(transparent,#000);z-index:3}.login_adv__mask[data-v-72a42f0a]{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:1}.login_main[data-v-72a42f0a]{flex:1;overflow:auto;display:flex}.login-form[data-v-72a42f0a]{width:400px;margin:auto;padding:20px 0}.login-header[data-v-72a42f0a]{margin-bottom:40px}.login-header .logo[data-v-72a42f0a]{display:flex;align-items:center}.login-header .logo img[data-v-72a42f0a]{width:40px;height:40px;vertical-align:bottom;margin-right:10px}.login-header .logo label[data-v-72a42f0a]{font-size:26px;font-weight:700}.login-oauth[data-v-72a42f0a]{display:flex;justify-content:space-around}.login-form .el-divider[data-v-72a42f0a]{margin-top:40px}.login-form[data-v-72a42f0a] .el-tabs .el-tabs__header{margin-bottom:25px}.login-form[data-v-72a42f0a] .el-tabs .el-tabs__header .el-tabs__item{font-size:14px}.login-form[data-v-72a42f0a] .login-forgot{text-align:right}.login-form[data-v-72a42f0a] .login-forgot a{color:var(--el-color-primary)}.login-form[data-v-72a42f0a] .login-forgot a:hover{color:var(--el-color-primary-light-3)}.login-form[data-v-72a42f0a] .login-reg{font-size:14px;color:var(--el-text-color-primary)}.login-form[data-v-72a42f0a] .login-reg a{color:var(--el-color-primary)}.login-form[data-v-72a42f0a] .login-reg a:hover{color:var(--el-color-primary-light-3)}.login_config[data-v-72a42f0a]{position:absolute;top:20px;right:20px}.login-form[data-v-72a42f0a] .login-msg-yzm{display:flex;width:100%}.login-form[data-v-72a42f0a] .login-msg-yzm .el-button{margin-left:10px;--el-button-size:42px}.qrCodeLogin[data-v-72a42f0a]{text-align:center;position:relative;padding:20px 0}.qrCodeLogin img.qrCode[data-v-72a42f0a]{background:#fff;padding:20px;border-radius:10px}.qrCodeLogin p.msg[data-v-72a42f0a]{margin-top:15px}.qrCodeLogin .qrCodeLogin-result[data-v-72a42f0a]{position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;background:var(--el-mask-color)}@media (max-width:1200px){.login-form[data-v-72a42f0a]{width:340px}}@media (max-width:1000px){.login_main[data-v-72a42f0a]{display:block}.login_main .login_config[data-v-72a42f0a]{position:static;padding:20px 20px 0 20px;text-align:right}.login-form[data-v-72a42f0a]{width:100%;padding:20px 40px}.login_adv[data-v-72a42f0a]{display:none}}

View File

@ -1 +0,0 @@
.dis-f[data-v-7e72d1fc]{display:flex}.flex-1[data-v-7e72d1fc]{flex:1}.jus-x[data-v-7e72d1fc]{justify-content:center}.al-item[data-v-7e72d1fc]{align-items:center}.tran-width[data-v-7e72d1fc]{transition:width .2s linear}.hid-box[data-v-7e72d1fc]{width:100%;overflow:hidden;position:relative;overflow-y:scroll}.tab-list-box[data-v-7e72d1fc]{width:100%;height:60px;background:#fff;font-size:16px;color:#525967;position:relative;z-index:666;box-shadow:0 0 8px 0 rgba(0,0,0,.1)}.tab-box[data-v-7e72d1fc]{height:100%;width:100px;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0 10px;transition:all .3s linear;border-bottom:2px solid transparent}.click-tab[data-v-7e72d1fc]{color:#409eff;border-bottom:2px solid #409eff}.tab-box[data-v-7e72d1fc]:hover{color:#409eff}.tab-info-box-hid[data-v-7e72d1fc]{width:0!important}.tab-info-box[data-v-7e72d1fc]{min-width:100%;min-height:100%;background:#fff;position:absolute;top:0;left:0}

12
dist/static/css/modules.70e682f6.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/static/js/583.b9f4ade6.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkX_PHP_Admin"]=self["webpackChunkX_PHP_Admin"]||[]).push([[583],{6583:function(a,e,t){t.r(e),t.d(e,{default:function(){return b}});var i=t(6808),l=t(9511);const n={class:"dis-f",style:{"flex-direction":"column",height:"100%"}},s={class:"left-panel tab-list-box dis-f jus-x al-item"},c=["onClick"],d={class:"right-panel"},o={key:0,class:"right-panel-search"},p={class:"flex-1 dis-f"},u={class:"hid-box tran-width"},r={class:"tab-info-box tab-info-box-hid"};function m(a,e,t,m,h,f){const k=(0,i.up)("el-button"),g=(0,i.up)("el-header"),v=(0,i.up)("InstalledApplist"),b=(0,i.up)("plugin-market"),_=(0,i.up)("el-container");return(0,i.wg)(),(0,i.iD)("div",n,[(0,i.Wm)(_,null,{default:(0,i.w5)((()=>[(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i._)("div",s,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(h.tabList,((a,e)=>((0,i.wg)(),(0,i.iD)("div",{key:e,class:(0,l.C_)(["tab-box",{"click-tab":a.type===h.activeName}]),onClick:e=>f.changeTab(a.type)},(0,l.zw)(a.title),11,c)))),128))]),(0,i._)("div",d,["market"==h.activeName?((0,i.wg)(),(0,i.iD)("div",o,[(0,i.Wm)(k,{type:"primary",size:"small",onClick:e[0]||(e[0]=a=>f.cleanCache()),loading:h.updateloading,icon:"el-icon-opportunity"},{default:(0,i.w5)((()=>[(0,i.Uk)("更新列表")])),_:1},8,["loading"])])):(0,i.kq)("",!0)])])),_:1}),(0,i._)("div",p,[(0,i._)("div",u,[(0,i._)("div",r,["manage"==h.activeName?((0,i.wg)(),(0,i.j4)(v,{key:0})):(0,i.kq)("",!0),"market"==h.activeName?((0,i.wg)(),(0,i.j4)(b,{key:1,ref:"market"},null,512)):(0,i.kq)("",!0)])])])])),_:1})])}var h=t(2376),f=t(6082),k={data(){return{activeName:"manage",updateloading:!1,tabList:[{title:"插件管理",type:"manage"},{title:"插件市场",type:"market"}]}},components:{pluginMarket:h["default"],InstalledApplist:f["default"]},mounted(){},methods:{changeTab(a){this.activeName=a},cleanCache(){this.updateloading=!0,this.$http.post("admin/application/cleanCache",{},{cacheparameters:!0}).then((a=>{200==a.code&&(this.$refs.market.loaddata(),this.updateloading=!1)}))}}},g=t(8700);const v=(0,g.Z)(k,[["render",m],["__scopeId","data-v-7a424f8f"]]);var b=v}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkX_PHP_Admin"]=self["webpackChunkX_PHP_Admin"]||[]).push([[590],{7590:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var i=n(6808);const l={class:"x-editor"};function a(e,t,n,a,o,s){const r=(0,i.up)("Editor");return(0,i.wg)(),(0,i.iD)("div",l,[(0,i.Wm)(r,{modelValue:o.contentValue,"onUpdate:modelValue":t[0]||(t[0]=e=>o.contentValue=e),init:o.init,disabled:n.disabled,placeholder:n.placeholder,onOnClick:s.onClick},null,8,["modelValue","init","disabled","placeholder","onOnClick"])])}var o=n(7536),s=n(5401),r=n(642),c=n.n(r),d=(n(4499),n(3910),n(5062),n(8529),n(9840),n(6024),n(2574),n(5877),n(3415),n(2684),n(187),n(9889),n(453),n(2274),{components:{Editor:s.Z},props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},height:{type:Number,default:300},disabled:{type:Boolean,default:!1},plugins:{type:[String,Array],default:"code image media link preview table quickbars template pagebreak lists advlist"},toolbar:{type:[String,Array],default:"undo redo | forecolor backcolor bold italic underline strikethrough link | blocks fontfamily fontsize | \t\t\t\t\talignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | pagebreak | \t\t\t\t\timage media table template preview | code selectall"},templates:{type:Array,default:()=>[]},options:{type:Object,default:()=>{}}},data(){return{init:{language_url:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/langs/zh_CN.js",language:"zh_CN",skin_url:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/skins/ui/oxide",content_css:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/skins/content/default/content.css",menubar:!1,statusbar:!0,plugins:this.plugins,toolbar:this.toolbar,toolbar_mode:"sliding",font_size_formats:"12px 14px 16px 18px 22px 24px 36px 72px",height:this.height,placeholder:this.placeholder,branding:!1,resize:!0,elementpath:!0,content_style:"",templates:this.templates,quickbars_selection_toolbar:"forecolor backcolor bold italic underline strikethrough link",quickbars_image_toolbar:"alignleft aligncenter alignright",quickbars_insert_toolbar:!1,image_caption:!0,image_advtab:!0,convert_urls:!1,images_upload_handler:function(e){return new Promise(((t,n)=>{const i=new FormData;i.append("files",e.blob(),e.filename()),o.Z.common.upload.post(i).then((e=>{t(e.data.url)})).catch((()=>{n("Image upload failed")}))}))},setup:function(e){e.on("init",(function(){this.getBody().style.fontSize="14px"})),e.on("OpenWindow",(function(e){var t=document.querySelector(".el-drawer.open"),n=e.target.editorContainer;if(t&&t.contains(n)){var i=document.activeElement;setTimeout((()=>{document.activeElement.blur(),i.focus()}),0)}}))},...this.options},contentValue:this.modelValue}},watch:{modelValue(e){this.contentValue=e},contentValue(e){this.$emit("update:modelValue",e)}},mounted(){console.log({NODE_ENV:"production",VUE_APP_TITLE:"X-PHP",BASE_URL:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/"}),c().init({})},methods:{onClick(e){this.$emit("onClick",e,c())}}}),u=n(8700);const p=(0,u.Z)(d,[["render",a]]);var m=p}}]);
"use strict";(self["webpackChunkX_PHP_Admin"]=self["webpackChunkX_PHP_Admin"]||[]).push([[590],{7590:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var i=n(6808);const l={class:"x-editor"};function a(e,t,n,a,o,s){const r=(0,i.up)("Editor");return(0,i.wg)(),(0,i.iD)("div",l,[(0,i.Wm)(r,{modelValue:o.contentValue,"onUpdate:modelValue":t[0]||(t[0]=e=>o.contentValue=e),init:o.init,disabled:n.disabled,placeholder:n.placeholder,onOnClick:s.onClick},null,8,["modelValue","init","disabled","placeholder","onOnClick"])])}var o=n(7536),s=n(5401),r=n(642),c=n.n(r),d=(n(4499),n(3910),n(5062),n(8529),n(9840),n(6024),n(2574),n(5877),n(3415),n(2684),n(187),n(9889),n(453),n(6611),{components:{Editor:s.Z},props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},height:{type:Number,default:300},disabled:{type:Boolean,default:!1},plugins:{type:[String,Array],default:"code image media link preview table quickbars template pagebreak lists advlist"},toolbar:{type:[String,Array],default:"undo redo | forecolor backcolor bold italic underline strikethrough link | blocks fontfamily fontsize | \t\t\t\t\talignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | pagebreak | \t\t\t\t\timage media table template preview | code selectall"},templates:{type:Array,default:()=>[]},options:{type:Object,default:()=>{}}},data(){return{init:{language_url:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/langs/zh_CN.js",language:"zh_CN",skin_url:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/skins/ui/oxide",content_css:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/skins/content/default/content.css",menubar:!1,statusbar:!0,plugins:this.plugins,toolbar:this.toolbar,toolbar_mode:"sliding",font_size_formats:"12px 14px 16px 18px 22px 24px 36px 72px",height:this.height,placeholder:this.placeholder,branding:!1,resize:!0,elementpath:!0,content_style:"",templates:this.templates,quickbars_selection_toolbar:"forecolor backcolor bold italic underline strikethrough link",quickbars_image_toolbar:"alignleft aligncenter alignright",quickbars_insert_toolbar:!1,image_caption:!0,image_advtab:!0,convert_urls:!1,images_upload_handler:function(e){return new Promise(((t,n)=>{const i=new FormData;i.append("files",e.blob(),e.filename()),o.Z.common.upload.post(i).then((e=>{t(e.data.url)})).catch((()=>{n("Image upload failed")}))}))},setup:function(e){e.on("init",(function(){this.getBody().style.fontSize="14px"})),e.on("OpenWindow",(function(e){var t=document.querySelector(".el-drawer.open"),n=e.target.editorContainer;if(t&&t.contains(n)){var i=document.activeElement;setTimeout((()=>{document.activeElement.blur(),i.focus()}),0)}}))},...this.options},contentValue:this.modelValue}},watch:{modelValue(e){this.contentValue=e},contentValue(e){this.$emit("update:modelValue",e)}},mounted(){console.log({NODE_ENV:"production",VUE_APP_TITLE:"X-PHP",BASE_URL:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/"}),c().init({})},methods:{onClick(e){this.$emit("onClick",e,c())}}}),u=n(8700);const p=(0,u.Z)(d,[["render",a]]);var m=p}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkX_PHP_Admin"]=self["webpackChunkX_PHP_Admin"]||[]).push([[934],{6934:function(t,e,a){a.r(e),a.d(e,{default:function(){return v}});var i=a(6808),n=a(9511);const s={class:"dis-f",style:{"flex-direction":"column",height:"100%"}},l={class:"tab-list-box dis-f jus-x al-item"},c=["onClick"],d={class:"flex-1 dis-f"},o={class:"hid-box tran-width"},u={class:"tab-info-box tab-info-box-hid"};function r(t,e,a,r,m,p){const b=(0,i.up)("InstalledApplist"),f=(0,i.up)("plugin-market");return(0,i.wg)(),(0,i.iD)("div",s,[(0,i._)("div",l,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(m.tabList,((t,e)=>((0,i.wg)(),(0,i.iD)("div",{key:e,class:(0,n.C_)(["tab-box",{"click-tab":t.type===m.activeName}]),onClick:e=>p.changeTab(t.type)},(0,n.zw)(t.title),11,c)))),128))]),(0,i._)("div",d,[(0,i._)("div",o,[(0,i._)("div",u,["manage"==m.activeName?((0,i.wg)(),(0,i.j4)(b,{key:0})):(0,i.kq)("",!0),"market"==m.activeName?((0,i.wg)(),(0,i.j4)(f,{key:1})):(0,i.kq)("",!0)])])])])}var m=a(2376),p=a(7118),b={data(){return{activeName:"manage",tabList:[{title:"插件管理",type:"manage"},{title:"插件市场",type:"market"}]}},components:{pluginMarket:m["default"],InstalledApplist:p["default"]},mounted(){},methods:{changeTab(t){this.activeName=t}}},f=a(8700);const k=(0,f.Z)(b,[["render",r],["__scopeId","data-v-7e72d1fc"]]);var v=k}}]);

File diff suppressed because one or more lines are too long

111
dist/static/js/modules.79ce4654.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/static/js/xChunks.8c6e3ebb.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
"cropperjs": "1.5.13",
"crypto-js": "4.1.1",
"echarts": "5.4.1",
"element-plus": "2.2.32",
"element-plus": "2.3.0",
"nprogress": "0.2.0",
"qrcodejs2": "0.0.2",
"sortablejs": "1.15.0",

8
pnpm-lock.yaml generated
View File

@ -30,8 +30,8 @@ dependencies:
specifier: 5.4.1
version: 5.4.1
element-plus:
specifier: 2.2.32
version: 2.2.32(vue@3.2.47)
specifier: 2.3.0
version: 2.3.0(vue@3.2.47)
nprogress:
specifier: 0.2.0
version: 0.2.0
@ -3760,8 +3760,8 @@ packages:
resolution: {integrity: sha512-wv1NufHxu11zfDbY4fglYQApMswleE9FL/DSeyOyauVXDZ+Kco96JK/tPfBUaDqfRarYp2WH2hJ/5UnVywp9Jg==}
dev: true
/element-plus@2.2.32(vue@3.2.47):
resolution: {integrity: sha512-DTJMhYOy6MApbmh6z/95hPTK5WrBiNHGzV4IN+uEkup1WoimQ+Qyt8RxKdTe/X1LWEJ8YgWv/Cl8P4ocrt5z5g==}
/element-plus@2.3.0(vue@3.2.47):
resolution: {integrity: sha512-3s3JO4+LHLi61tFwF2emIHx6nxwKKdj5YWcj3GUBoXKhbuRjhq6xqaxWpBlPk7jySr/8Eci5++T2THbvrpGn7A==}
peerDependencies:
vue: ^3.2.0
dependencies:

View File

@ -1,18 +1,28 @@
<template>
<div class="dis-f" style="flex-direction: column;height:100%;">
<div class="tab-list-box dis-f jus-x al-item">
<el-container>
<el-header>
<div class="left-panel tab-list-box dis-f jus-x al-item">
<div v-for="(item, i) in tabList" :key="i" class="tab-box" :class="{ 'click-tab': item.type === activeName }" @click="changeTab(item.type)">
{{ item.title }}
</div>
</div>
<div class="right-panel">
<div class="right-panel-search" v-if="activeName=='market'">
<el-button type="primary" size="small" @click="cleanCache()" :loading="updateloading" icon="el-icon-opportunity">更新列表</el-button>
</div>
</div>
</el-header>
<div class="flex-1 dis-f">
<div class="hid-box tran-width">
<div class="tab-info-box tab-info-box-hid">
<InstalledApplist v-if="activeName == 'manage'"></InstalledApplist>
<plugin-market v-if="activeName == 'market'"></plugin-market>
<plugin-market v-if="activeName == 'market'" ref="market"></plugin-market>
</div>
</div>
</div>
</el-container>
</div>
</template>
@ -23,6 +33,7 @@ export default {
data() {
return {
activeName: 'manage',
updateloading: false,
tabList: [{ title: '插件管理', type: 'manage' }, { title: '插件市场', type: 'market' }]
}
},
@ -36,6 +47,15 @@ export default {
methods: {
changeTab(type) {
this.activeName = type
},
cleanCache() {
this.updateloading = true;
this.$http.post('admin/application/cleanCache', {}, { cacheparameters: true }).then((res) => {
if (res.code == 200) {
this.$refs.market.loaddata()
this.updateloading = false;
}
});
}
}
}
@ -61,8 +81,9 @@ export default {
.tran-width {
transition: width linear 0.2s;
}
.hid-box{
width:100%;
.hid-box {
width: 100%;
overflow: hidden;
position: relative;
overflow-y: scroll;
@ -71,24 +92,22 @@ export default {
.tab-list-box {
width: 100%;
height: 60px;
background: #fff;
font-size: 16px;
color: #525967;
position: relative;
z-index: 666;
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .1);
}
.tab-box {
height: 100%;
width: 100px;
width: 120px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
padding: 0 10px;
padding: 0 20px;
transition: all linear 0.3s;
border-bottom: 2px solid transparent;
border-bottom: 1px solid transparent;
}
.click-tab {
@ -109,7 +128,7 @@ export default {
min-height: 100%;
background: #fff;
position: absolute;
top:0;
left:0;
top: 0;
left: 0;
}
</style>

View File

@ -4,13 +4,13 @@
<el-table-column label="">
<template #default="scope">
<div class="tab-box dis-f al-item">
<img @click="installPlugin(scope.row)" :src="scope.row.icon" v-if="scope.row.icon" class="img" alt="">
<img @click="installPlugin(scope.row)" :src="scope.row.upgradeicon" v-if="scope.row.upgradeicon" class="img" alt="">
<img @click="installPlugin(scope.row)" :src="scope.row.icon" v-else-if="scope.row.icon" class="img" alt="">
<div class="info-box">
<div class="title">
{{ scope.row.name }}
</div>
<div class="info-text">
{{ scope.row.description }}
<el-text :tag=" scope.row.isdelete==1 ? 'del':'info'" class="title">{{ scope.row.name }}</el-text>
<div>
<el-text :tag=" scope.row.isdelete==1 ? 'del':'info'" class="info-text">{{ scope.row.description }}</el-text>
</div>
</div>
</div>
@ -23,7 +23,7 @@
</el-table-column>
<el-table-column label="目录" width="120">
<template #default="scope">
<code>{{ scope.row.app }}</code>
<el-text :tag=" scope.row.isdelete==1 ? 'del':'b'" type="danger">{{ scope.row.app }}</el-text>
</template>
</el-table-column>
<el-table-column label="安装时间" width="180">