2 lines
3.5 KiB
JavaScript
2 lines
3.5 KiB
JavaScript
|
|
import{ac as N,i as k,m as j,f as L,L as W,t as V,l as E,ad as G,Q as M,ae as R,p as Z,af as z,ag as D,c as O}from"./index-BTglIPU2.js?v=1773287522785";import{k as w,R as $,r as y,$ as e,Z as p,a0 as l,S as o,a6 as Q,o as q,ab as F,a8 as u,a9 as a,_ as t,aa as n,j as h}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{_ as H}from"./index-lEMZglLp.js?v=1773287522785";import{u as J}from"./useLoop-BadgF3pN.js?v=1773287522785";import{ad as K,B as U,m as X,a2 as Y}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const ss="/static/vite/images/1-BWGCZ683.jpg",ts={class:"h-500px"},ns=w({__name:"logs",setup(A){const{t:d}=$(),x=y(!1),i=y(""),m=async()=>{const{message:_}=await N();k(_)&&(i.value=_.result,i.value.includes("|-Successify --- Command executed! ---")&&(f(),j.success(d("Account.Install.index_9")),L()))},{loop:c,clearTimer:f}=J(m,1);return c(),(_,v)=>{const r=H;return e(),p("div",ts,[l(r,{loading:o(x),log:o(i)},null,8,["loading","log"])])}}}),es={class:"flex items-center py-6px px-4px"},os={class:"ml-8px",style:{color:"var(--color-text-5)"}},as={class:"py-52px"},cs={class:"mb-24px text-center text-24px font-bold"},ls={class:"mb-16px"},is={class:"ul-style"},_s={key:0,class:"text-center mb-40px"},ps={key:1,class:"text-center mb-40px"},rs={key:2,class:"text-center mb-40px"},us={key:0,class:"text-15px"},ds={class:"flex justify-center"},xs={class:"w-76%"},ms=w({__name:"index",setup(A){const{t:d}=$(),x=W(),{userInfo:i,hasSubPanelAuth:m}=Q(V()),c=y(""),f=()=>{G()},_=()=>{M({source:301})},v=async()=>{await R(),setTimeout(()=>{r()},1e3)},r=()=>{Z({title:d("Account.Install.index_5"),width:640,component:ns})},C=()=>{z("nginx")};return(async()=>{const{message:s}=await D();k(s)&&s.web.setup&&(c.value=s.webserver)})(),q(()=>{x.install===1&&r()}),(s,b)=>{const B=E,I=K,g=U,P=F("i18n-t"),S=X,T=Y;return e(),u(T,{class:"p-16px"},{default:a(()=>[l(I,{"show-icon":!1},{default:a(()=>[t("div",es,[l(B,{class:"text-warning",name:"base-warning",size:"21"}),t("span",os,n(s.$t("Waf.Install.index_1")),1)])]),_:1}),t("div",as,[t("div",cs,n(s.$t("Account.Install.index_1")),1),t("div",ls,[t("ul",is,[t("li",null,n(s.$t("Account.Install.index_2")),1),t("li",null,n(s.$t("Account.Install.index_3")),1),t("li",null,n(s.$t("Account.Install.index_4")),1)])]),b[0]||(b[0]=t("div",{class:"mb-24px text-center text-14px color-desc"}," This function provides 100 sub-accounts for Pro edition . Each sub-account can independently manage the resources allocated to it. ",-1)),o(i).status?o(m)?(e(),p("div",rs,[o(c).toLocaleLowerCase()==="nginx"?(e(),u(g,{key:0,type:"primary",class:"px-20px h-38px text-15px",onClick:v},{default:a(()=>[h(n(s.$t("Waf.Install.index_8")),1)]),_:1})):(e(),u(I,{key:1,class:"install-tips inline-flex w-auto mx-auto",type:"warning","show-icon":!1},{default:a(()=>[o(c)?(e(),p("div",us,n(s.$t("Account.Install.index_7",[o(c),"Nginx"])),1)):(e(),u(P,{key:1,tag:"div",keypath:"Account.Install.index_8",scope:"global",class:"text-15px"},{link_1:a(()=>[t("a",{class:"bt-link",href:"javascript:;",onClick:C},n(s.$t("Public.Btn.Install")+" Nginx"),1)]),_:1}))]),_:1}))])):(e(),p("div",ps,[l(g,{type:"primary",class:"px-20px h-38px text-15px",onClick:_},{default:a(()=>[h(n(s.$t("WP.Transition.index_7")),1)]),_:1})])):(e(),p("div",_s,[l(g,{type:"primary",class:"px-20px h-38px text-15px",onClick:f},{default:a(()=>[h(n(s.$t("WP.Transition.index_8")),1)]),_:1})])),t("div",ds,[t("div",xs,[l(S,{width:"100%",src:o(ss)},null,8,["src"])])])])]),_:1})}}}),ks=O(ms,[["__scopeId","data-v-a750cf97"]]);export{ks as default};
|