HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/plugin-install.js
import{_ as g}from"./index118.js?v=1777008528";import{da as f,k as _,M as x,dd as B,cT as b}from"./utils-lib.js?v=1777008528";import{c as v,aI as n,e as t,x as p,j as q,k as P,v as l,p as i}from"./base-lib.js?v=1777008528";import{u as R}from"./index108.js?v=1777008528";import{g as T}from"./index390.js?v=1777008528";import{B as C}from"./index195.js?v=1777008528";import{g as k}from"./index3.js?v=1777008528";import{u as L}from"./useController19.js?v=1777008528";import{s as y}from"./useMethod12.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index.vue_vue_type_script_setup_true_lang4.js?v=1777008528";import"./index175.js?v=1777008528";import"./index119.js?v=1777008528";import"./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang.js?v=1777008528";import"./useStore2.js?v=1777008528";import"./site.js?v=1777008528";import"./useStore13.js?v=1777008528";import"./form-item.js?v=1777008528";import"./index116.js?v=1777008528";import"./useController13.js?v=1777008528";import"./index192.js?v=1777008528";const S={class:"p-[2rem]"},ne=v({__name:"plugin-install",setup(W){const{localRow:a}=n(L()),{isRefreshPluginInstall:o,isRefreshPluginList:u}=n(R()),{BtTable:c,BtPage:m,BtRecommendSearch:w,BtRefresh:I,BtColumn:M,BtBatch:D,BtTableCategory:H,BtErrorMask:V,tableRef:E,classList:N,refresh:O,BtSearch:d}=f({request:e=>T(e),columns:[{label:"名称",prop:"name",minWidth:180,isCustom:!0,render:e=>t("span",{class:"flex items-center"},[t("img",{class:"w-[25px] h-[25px]",src:e.icons["1x"]?e.icons["1x"]:e.icons.default},null),t("span",{class:"ml-[5px]"},[e.name])])},{label:"描述",width:200,prop:"short_description",showOverflowTooltip:!0},{label:"作者",prop:"author",render:e=>t("span",{innerHTML:e.author},null)},{label:"WP",prop:"requires",width:50,render:e=>e.requires?e.requires:"--"},{label:"PHP",prop:"requires_php",render:e=>e.requires_php?e.requires_php:"--"},{label:"等级",prop:"rating",width:140,render:e=>{const s=e.rating?e.rating/20:0;return t("div",{class:"flex items-center"},[t(C,{modelValue:s,disabled:!0,"allow-half":!0,class:"!text-extraLarge"},null)])}},k(e=>[{title:e.installed?"已安装":"安装",render:s=>{const r=a.value.wp_version<s.requires||a.value.php_version<s.requires_php||s.installed;return s.installed?t("span",{class:"text-tertiary",style:"cursor:not-allowed"},[p("已安装")]):t("span",{class:"bt-link",style:r?"cursor:not-allowed; color: var(--el-base-tertiary);":"",onClick:r?void 0:()=>{_({loading:"安装中...",request:y({s_id:a.value.id,slug:s.slug}),success:h=>{h.status&&(o.value=!0,u.value=!0,x.success("安装成功"))}})}},[p("安装")])}}],{label:"操作",width:100,fixed:"right"})],extension:[B("search",{name:"local-setting-plugin",list:[]}),b(o)]});return(e,s)=>{const r=g;return q(),P("div",S,[t(r,null,{"header-right":l(()=>[t(i(d),{type:"local-setting-plugin",placeholder:"请输入插件名称",class:"!w-[270px] mr-[10px]"})]),content:l(()=>[t(i(c),{"max-height":500})]),"footer-right":l(()=>[t(i(m))]),_:1})])}}});export{ne as default};