← Back
Editing: app-update.js
import{_ as e}from"./index.js?v=1753755607904";import{e as t,_ as a}from"./public.js?v=1753755607904";import{u as s,p as l,c as i,d as n,ch as o,m as r,b_ as p,e as _}from"./page_layout.js?v=1753755607904";import{c as u}from"./soft.js?v=1753755607904";import{g as m}from"./soft2.js?v=1753755607904";import{_ as c}from"./index.vue_vue_type_script_setup_true_lang18.js?v=1753755607904";import{bZ as d,cK as f,ay as v}from"./naive.js?v=1753755607904";import{k as x,P as h,r as j,U as y,al as w,W as g,X as b,Q as k,V as H,a2 as S,a3 as P,j as $}from"./vue.js?v=1753755607904";import"./common.js?v=1753755607904";import"./__commonjsHelpers__.js?v=1753755607904";import"./index.vue_vue_type_script_setup_true_lang4.js?v=1753755607904";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1753755607904";import"./index.vue_vue_type_script_setup_true_lang.js?v=1753755607904";import"./index.vue_vue_type_script_setup_true_lang14.js?v=1753755607904";import"./theme-chrome.js?v=1753755607904";import"./file2.js?v=1753755607904";const T={key:0,class:"p-30px"},U=["src"],W=["title"],C={class:"color-#888888"},I={class:"font-600 mt-30px"},L=["innerHTML"],M=_(x({__name:"app-update",props:{row:{},callback:{},hide:{}},setup(_){const{t:x}=h(),M=s(),N=_,{row:q}=N,K=["nginx","apache","mysql","php"],O=j(),Q=j(),R=j(),V=async(e=1)=>{var t;const{message:a}=await o({sName:q.name,version:5===R.value?q.m_version:Q.value,upgrade:5===R.value?q.m_version:Q.value,type:e});if(n(a)){if(a.result)return r.success(a.result),M.taskCount+=1,null==(t=N.callback)||t.call(N),N.hide(),void p();await u({name:a.name,tmp_path:a.tmp_path,title:x("Soft.index_21")},(()=>{var e;null==(e=N.callback)||e.call(N)}))}N.hide()},X=()=>{var e;(e=q.name,K.includes(e)||e.startsWith("php-"))?Z.show=!0:V(1)},Z=t(x("Home.Install.index_7"),{name:q.name,callback:()=>{V(0)}});return(async()=>{const{message:e}=await i({sName:q.name},!0);n(e)&&(R.value=e.type,Q.value=q.m_version+"."+q.version,O.value=e.version)})(),(t,s)=>{const i=f,n=d,o=v,r=l,p=a,_=e;return g(q)?(b(),y("div",T,[k(n,{class:"justify-between! items-center"},{default:S((()=>[k(n,{class:"items-center"},{default:S((()=>[H("img",{class:"w-40px",src:g(m)(g(q).name)},null,8,U),H("div",null,[H("p",{class:"font-600 text-18px max-w-290px truncate",title:"".concat(g(q).title," ").concat(g(O))},P(g(q).title)+" "+P(g(q).title.indexOf("PHP-")>-1?"":g(O)),9,W),k(i,{dot:""},{default:S((()=>[H("p",C,P(t.$t("Soft.index_51"))+":"+P(g(Q)),1)])),_:1})])])),_:1}),k(n,null,{default:S((()=>[k(o,{type:"primary",onClick:X},{default:S((()=>[$(P(t.$t("Home.Update.index_19")),1)])),_:1})])),_:1}),k(r)])),_:1}),H("div",I,P(g(x)("Soft.index_52"))+":",1),H("span",{class:"py-10px inline-block leading-20px color-#777777",innerHTML:g(q).update_msg},null,8,L),k(p,null,{default:S((()=>[H("li",null,P(t.$t("Soft.index_35")),1),H("li",null,P(g(x)("Soft.index_53")),1),H("li",null,P(g(x)("Soft.index_54")),1)])),_:1}),k(_,{show:g(Z).show,"onUpdate:show":s[0]||(s[0]=e=>g(Z).show=e),title:g(Z).title,data:g(Z).data,width:480,footer:!0,"confirm-text":t.$t("WP.TableRow.index_13"),component:c},null,8,["show","title","data","confirm-text"])])):w("",!0)}}}),[["__scopeId","data-v-5996c66a"]]);export{M as default};
Save File
Cancel