HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index553.js
import{F as M,k as N,f as $}from"./utils-lib.js?v=1777008528";import{c as I,r as n,w as O,v as R,a8 as U,I as A,J as w,z as s,x as l,y as u,A as r,G as h,D as d,e as m,R as H,C,H as J}from"./base-lib.js?v=1777008528";import{B as q}from"./index120.js?v=1777008528";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1777008528";import{saveFileBody as G,getJavaProjectConfigList as P,getFileBody as K}from"./site.js?v=1777008528";import{u as Q,S as W}from"./useStore3.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./ace.js?v=1777008528";const X={class:"h-full relative"},Y={key:0,class:"bg-darkTertiary flex items-center justify-center h-[72rem]"},Z={key:1},ee={class:"inline-block text-secondary items-center flex"},te={class:"max-w-[55rem] truncate leading-[1.3] inline-block"},ae={class:"my-12px"},se={key:0,class:"flex"},oe={key:2,class:"bg-darkTertiary flex items-center justify-center h-[72rem]"},ne={class:"bg-white px-48px py-16px text-default flex items-center"},fe=I({__name:"index",props:{compData:{default:()=>({})}},setup(re,{expose:B}){const{siteInfo:i}=Q(),{jumpTabEvent:T}=W(),v=$(),f=n(!1),j=n(""),c=n(!1),a=n({}),o=n(""),p=n(!1),D=n(""),E=async()=>{try{f.value=!0;const{data:t}=await P({project_name:i.value.name});if(!t.status){v.error(t.msg);return}a.value=t.data.find(e=>e.name==="伪静态配置文件"),a.value&&(j.value=a.value.path,S(a.value))}catch(t){}finally{f.value=!1}},S=async t=>{if(c.value)try{if(t.data)return o.value=t.data;p.value=!0;const{data:e}=await K({path:t.path});o.value=e.data,p.value=!1}catch(e){o.value=""}finally{p.value=!1}},g=async()=>{let t=v.load("正在保存内容,请稍候...");try{const e=await G({data:o.value,encoding:"utf-8",path:a.value.path});v.msg({dangerouslyUseHTMLString:!0,message:"<div>".concat(e.msg,"</div>"),type:e.status?"success":"error",duration:e.status?2e3:0,showClose:!e.status,customClass:"!max-w-[70rem]"})}catch(e){}finally{t.close()}};O(()=>i.value,t=>{var e;(e=i.value.project_config)!=null&&e.bind_extranet&&(c.value=!!i.value.project_config.bind_extranet)},{immediate:!0});const x=async()=>{let t=i.value.project_type.toLowerCase();D.value=t,c.value=!0,E()};return R(x),B({init:x}),U(()=>{a.value={}}),(t,e)=>{var b,k;const V=q,L=J,F=N,y=A("bt-loading");return w((l(),u("div",X,[(b=s(a))!=null&&b.path?h("",!0):(l(),u("div",Y,[...e[3]||(e[3]=[r("div",{class:"bg-white px-48px py-16px text-default"},"暂无配置文件",-1)])])),s(c)&&((k=s(a))!=null&&k.path)?(l(),u("div",Z,[r("span",ee,[e[4]||(e[4]=d(" 文件位置: ",-1)),r("div",te,[m(z,{text:s(a).path},null,8,["text"])]),r("span",{class:"ml-[2rem] svgtofont-el-document-copy cursor-pointer",onClick:e[0]||(e[0]=_=>s(M)({value:s(a).path}))})]),r("div",ae,[w(m(V,{class:"!h-[54rem] !w-[64rem] border border-dark rounded-base",modelValue:s(o),"onUpdate:modelValue":e[1]||(e[1]=_=>H(o)?o.value=_:null),request:!1,onSave:g,editorOption:{readonly:s(a).type==="spring"}},null,8,["modelValue","editorOption"]),[[y,s(p)]])]),s(a).type!=="spring"?(l(),u("div",se,[m(L,{type:"primary",onClick:g},{default:C(()=>[...e[5]||(e[5]=[d("保存",-1)])]),_:1})])):h("",!0)])):(l(),u("div",oe,[r("div",ne,[e[7]||(e[7]=d("请开启 ",-1)),m(F,{onClick:e[2]||(e[2]=_=>s(T)("mapping"))},{default:C(()=>[...e[6]||(e[6]=[d("外网映射",-1)])]),_:1}),e[8]||(e[8]=d(" 后查看配置信息",-1))])]))])),[[y,s(f)],[y,"正在加载配置文件,请稍后...","title"]])}}});export{fe as default};