Files
yakpanel-core/YakPanel/static/vite/js/index-E3nER1wy.js

2 lines
18 KiB
JavaScript
Raw Normal View History

2026-04-07 02:04:22 +05:30
import{_ as he}from"./index-BRQskX9P.js?v=1773287522785";import{_ as ne}from"./index-COOnaZWq.js?v=1773287522785";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{ei as we,n as oe,t as ke,k as Q,bq as $e,l as xe,_ as re,af as z,i as ye,m as ee}from"./index-BTglIPU2.js?v=1773287522785";import{k as D,a6 as N,an as se,r as E,$,a8 as P,S as e,n as ie,w as Se,c as X,R as Z,e as ue,a9 as r,a0 as o,j as S,aa as v,l as te,X as K,v as ae,_ as d,ak as A,Z as pe}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{u as T}from"./index-vtVnh4D6.js?v=1773287522785";import{z as Pe,A as Le,B as Ee,C as Re,D as Ue}from"./index-oaByoBTF.js?v=1773287522785";import{D as We}from"./domain-input-lqb8SGav.js?v=1773287522785";import{u as de}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{a6 as _e,a1 as me,a3 as fe,a4 as Ce,k as ce,b as ve,al as be,e as Ae,a8 as Be,ag as Ve,B as qe,au as De,av as Fe}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{_ as Ie}from"./index.vue_vue_type_script_setup_true_lang-5NptluQv.js?v=1773287522785";import{_ as Me}from"./index-DIKmrNCq.js?v=1773287522785";import{_ as ze}from"./index.vue_vue_type_script_setup_true_lang-CgKUoL60.js?v=1773287522785";import{o as Ne}from"./upload-CD_WMkIS.js?v=1773287522785";import{_ as Te}from"./task-view.vue_vue_type_script_setup_true_lang-DbXy1NR8.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./ssl-Bm8jcneQ.js?v=1773287522785";import"./index-K4YGya6V.js?v=1773287522785";const ge=D({__name:"index",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(R){const x=T(),{phpVersion:g}=N(x),u=se(R,"value"),{loading:y,setLoading:w}=de(),k=E([]),L=_=>{g.value=_};return(async()=>{try{w(!0);const{message:_}=await we(),p=oe(_)?_:[];k.value=p.reverse().filter(n=>n.version!=="00").map(n=>({label:n.name,value:n.version})),await ie(),p.length>0&&(u.value=p[0].version=="00"?"":p[0].version,g.value=p[0].version=="00"?"":p[0].version)}finally{w(!1)}})(),(_,p)=>{const n=_e;return $(),P(n,{value:u.value,"onUpdate:value":[p[0]||(p[0]=V=>u.value=V),L],loading:e(y),options:e(k)},null,8,["value","loading","options"])}}}),He=D({__name:"index",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(R){const x=T();Se(()=>x.phpVersion,b=>{L(b)});const g=X(()=>x.phpVersion?"Not supported by current PHP":"Please select PHP version"),u=se(R,"value"),{loading:y,setLoading:w}=de(),k=E([]),L=async b=>{try{w(!0),u.value="";const{message:_}=await Pe({php_version_short:b});oe(_)&&(k.value=_.map(p=>({label:p.version,value:p.version})),await ie(),_.length>0&&(u.value=_[0].version))}finally{w(!1)}};return x.phpVersion&&L(x.phpVersion),(b,_)=>{const p=_e;return $(),P(p,{value:u.value,"onUpdate:value":_[0]||(_[0]=n=>u.value=n),loading:e(y),options:e(k),placeholder:e(g)},null,8,["value","loading","options","placeholder"])}}}),Oe={key:1},je={class:"whitespace-nowrap"},Ge={class:"w-400px"},Je={class:"w-230px"},Qe={class:"w-230px"},Xe={class:"w-400px"},Ze={class:"w-230px mr-16px"},Ke={class:"w-400px"},Ye={class:"w-400px"},et=D({__name:"index",props:{getList:{type:Function}},setup(R,{expose:x}){const g=R,{t:u}=Z(),y=ke(),{multiService:w}=N(y),k=T(),{mysql:L,php:b,webserver:_}=N(k),p=X(()=>_.value==="apache"&&!w.value),n=E(null),V=E(null),B=E([]),a=ue({type:0,domain_auto:[""],domain:"",weblog_title:"",language:"en",php_version:null,wp_version:null,user_name:Q(6),admin_password:$e(16,"wp"),pw_weak:!1,admin_email:"",Login_url:"wp-admin",redirection_url:"404",prefix:"wp_"+Q(6)+"_",enable_cache:!p.value,wps:!1,is_create_default_file:!0,apply_ssl:1}),F={domain:{required:!0,trigger:["blur","input"],validator:()=>a.type===0&&a.domain.trim()===""?new Error(u("Site.RulesError.index_31")):!0},domain_auto:{trigger:["blur"],validator:(t,l)=>a.type===1&&!l[0]?new Error(u("Site.PHP.add_site_23")):!0},weblog_title:{required:!0,trigger:["blur","input"],validator:()=>a.weblog_title.trim()===""?new Error(u("Site.RulesError.index_3")):!0},language:{trigger:"change",validator:()=>a.language===null?new Error(u("Site.RulesError.index_4")):!0},php_ve