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