import{u as e,l as a,ai as t}from"./utils-lib.js?v=20260328163632";import{u as r}from"./store4.js?v=20260328163632";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang17.js?v=20260328163632";import{_ as n,a as i,b as o,c as p}from"./index.vue_vue_type_script_setup_true_lang9.js?v=20260328163632";import{_ as l,a as m,b as u}from"./index.vue_vue_type_script_setup_true_lang18.js?v=20260328163632";import{_}from"./index.vue_vue_type_script_setup_true_lang13.js?v=20260328163632";import{B as d}from"./index158.js?v=20260328163632";import{t as v}from"./index34.js?v=20260328163632";import{B as c}from"./naive-ui.js?v=20260328163632";import{k as j,c as f,r as x,o as b,an as g,U as y,V as h,W as C,X as T,Z as F,Y as S,l as w,O as B,N as V,a3 as E,j as M,a9 as k,w as D,_ as H}from"./base-lib.js?v=20260328163632";import{_ as I,a as O}from"./index.vue_vue_type_script_setup_true_lang14.js?v=20260328163632";import{_ as U,a as z}from"./index.vue_vue_type_script_setup_true_lang11.js?v=20260328163632";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang12.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index85.js?v=20260328163632";import"./index84.js?v=20260328163632";import"./site.js?v=20260328163632";import"./useMethod4.js?v=20260328163632";import"./index.vue_vue_type_script_setup_true_lang10.js?v=20260328163632";import"./index91.js?v=20260328163632";import"./index88.js?v=20260328163632";import"./index118.js?v=20260328163632";import"./logs.js?v=20260328163632";import"./ace.js?v=20260328163632";import"./index92.js?v=20260328163632";import"./index97.js?v=20260328163632";import"./useMethod5.js?v=20260328163632";import"./index98.js?v=20260328163632";const J={class:"w-full"},L={class:"my-[4px] text-[#666]"},N={class:"my-[12px]"},P=j({__name:"index",setup(t,{expose:s}){const{saveFileEvent:n,getFileEvent:i}=e(),{siteInfo:o}=r(),p=f((()=>{var e,a;return(null==(a=null==(e=o.value)?void 0:e.project_config)?void 0:a.server_xml)||v.value.find((e=>{var a;return e.name===(null==(a=o.value)?void 0:a.project_config.tomcat_version)})).config_path})),l=x(!1),m=x(""),u=[{content:a("此处为Tomcat配置文件，若您不了解配置规则，请勿随意修改")}],_=()=>{n({filename:p.value,data:m.value})},j=async()=>{l.value=!0;const e=await i({filename:p.value});m.value=(null==e?void 0:e.data)||(null==e?void 0:e.msg),l.value=!1};return b((()=>{j()})),s({init:j}),(e,t)=>{const r=c,s=g("bt-help"),n=y("bt-loading");return h(),C("div",J,[T("span",L,F(S(a)("提示：Ctrl+F 搜索关键字，Ctrl+S 保存，Ctrl+H 查找替换")),1),T("div",N,[w(B(S(d),{class:"!h-[460px] border border-[#DCDFE6] rounded-[4px]",modelValue:S(m),"onUpdate:modelValue":t[0]||(t[0]=e=>V(m)?m.value=e:null),onSave:t[1]||(t[1]=e=>_()),id:"configContent",editorOption:{mode:"ace/mode/nginx"}},null,8,["modelValue"]),[[n,S(l)]])]),B(r,{type:"primary",onClick:t[2]||(t[2]=e=>_())},{default:E((()=>[M(F(S(a)("保存配置")),1)])),_:1}),B(s,{options:u,class:"ml-[20px] !mt-[20px]"})])}}}),W=j({__name:"index",setup(d){const{plugin:v}=e(),{webserver:c}=k(v.value),{settingTabActive:j,isJump:b,siteInfo:g,resetTab:y}=r(),C=x(j.value||"project"),T=f((()=>[{tab:a("项目信息"),name:"project",render:()=>s},{tab:a("域名管理"),name:"domain",render:()=>n},..."SpringBoot"===g.value.project_config.project_type?[{tab:a("外网映射"),name:"mapping",render:()=>l}]:[],..."iis"===c.value?[{tab:a("错误页"),name:"errorPage",render:()=>U}]:[],..."apache"!==c.value?[{tab:a("流量限制"),name:"limit",render:()=>A}]:[],{tab:a("伪静态"),name:"pseudo",render:()=>_},{tab:a("默认文档"),name:"default",render:()=>z},{tab:a("配置文件"),name:"configFile",render:()=>i},...["neizhi","duli","Tomcat"].includes(g.value.project_config.java_type||g.value.project_config.project_type)?[{tab:a("Tomcat配置"),name:"tomcat",render:()=>P}]:[],{tab:a("SSL"),name:"ssl",render:()=>o},{tab:a("服务状态"),name:"state",render:()=>m},{tab:a("负载状态"),name:"load",render:()=>u},{tab:a("重定向"),name:"redirect",render:()=>I},{tab:a("浏览器缓存"),name:"staticCache",render:()=>O},{tab:a("日志管理"),name:"logsManager",render:()=>p}])),{BtTabs:F}=t({type:"card",placement:"left",value:C,options:T});return D((()=>b.value),(e=>{e&&(C.value=j.value,y())})),(e,a)=>(h(),H(S(F)))}});export{W as default};
