2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index-legacy-DWPn48Vb.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-DEYz4m3y.js?v=1773287522785","./index-legacy-BJO1GMTD.js?v=1773287522785","./useSocket-legacy-D9BDJ2id.js?v=1773287522785"],(function(e,t){"use strict";var l,a,n,o,i,s,r,c,u,d,p,g,_,f,m,k,b,v,x,S,y,D,h,w,$,C,R,j,z,T,U,O,I,M,P,V,q,B,N,E,L,J,Z,A,K,F,G,Q,X,H,W,Y,ee,te,le,ae,ne,oe,ie,se,re,ce,ue,de,pe,ge,_e,fe,me;return{setters:[e=>{l=e.bm,a=e._,n=e.x,o=e.bO,i=e.z,s=e.as,r=e.a3,c=e.h,u=e.p,d=e.bP,p=e.m,g=e.b6,_=e.i,f=e.C,m=e.v,k=e.P,b=e.bQ,v=e.bR,x=e.bS,S=e.bT,y=e.bU,D=e.bV},e=>{h=e._},e=>{w=e.k,$=e.R,C=e.a6,R=e.r,j=e.e,z=e.$,T=e.a8,U=e.S,O=e.a9,I=e.q,M=e._,P=e.aa,V=e.a0,q=e.j,B=e.X,N=e.l,E=e.v,L=e.Z,J=e.c,Z=e.al,A=e.y,K=e.ak,F=e.K,G=e.L,Q=e.a3,X=e.u},e=>{H=e._},e=>{W=e._},e=>{Y=e.a1,ee=e.a6,te=e.b,le=e.B,ae=e.au,ne=e._,oe=e.av,ie=e.s,se=e.a8,re=e.a4,ce=e.a3,ue=e.a2,de=e.k,pe=e.g,ge=e.al},e=>{_e=e._},e=>{fe=e._},e=>{me=e.u}],execute:function(){const ke={class:"mr-8px"},be={class:"w-470px"},ve={class:"w-470px"},xe=w({__name:"install",setup(e){const{t:t}=$(),s=l(),{setting:r}=C(s),c=R(!1),u=R(null),d=j({type:"default",url:null}),p=[{label:t("Docker.install.index_4"),value:"default"},{label:t("Docker.install.index_5"),value:"custom"},{label:t("Docker.install.index_6"),value:"binary"}],g=[{label:t("Docker.install.index_7"),value:"download.docker.com"}],_={url:{trigger:["change"],validator:()=>"custom"!==d.type||null!==d.url||new Error(t("Docker.install.index_8"))}},f=()=>{c.value=!0},m=async()=>{await(u.value?.validate());let e={type:"binary"===d.type?1:0};"custom"===d.type&&(e=Object.assign(e,{url:d.url})),await o(e),i(),s.getSetting()};return(e,t)=>{const l=a,o=ee,i=Y,s=h,k=n,b=W;return z(),T(b,{install:U(r).docker_installed&&U(r).docker_compose_installed},{desc:O((()=>[M("span",ke,P(e.$t("Docker.index_2")),1),V(l,{class:"font-bold!",onClick:f},{default:O((()=>[q(P(e.$t("Public.Btn.Install")),1)])),_:1}),V(k,{show:U(c),"onUpdate:show":t[2]||(t[2]=e=>B(c)?c.value=e:null),title:e.$t("Public.Btn.Install"),footer:!0,onConfirm:m},{default:O((()=>[V(s,{ref_key:"formRef",ref:u,class:"w-640px p-20px",model:U(d),rules:_},{default:O((()=>[V(i,{label:e.$t("Docker.install.index_2")},{default:O((()=>[M("div",be,[V(o,{value:U(d).type,"onUpdate:value":t[0]||(t[0]=e=>U(d).type=e),options:p},null,8,["value"])])])),_:1},8,["label"]),N(V(i,{label:e.$t("Docker.install.index_3"),path:"url"},{default:O((()=>[M("div",ve,[V(o,{value:U(d).url,"onUpdate:value":t[1]||(t[1]=e=>U(d).url=e),options:g},null,8,["value"])])])),_:1},8,["label"]),[[E,"custom"===U(d).type]])])),_:1},8,["model"])])),_:1},8,["show","title"])])),default:O((()=>[I(e.$slots,"default")])),_:3},8,["install"])}}}),Se=(e("s",(e=>s.post("/btdocker/setup/set_docker_global",e,{requestOptions:{loading:r.global.t("Docker.api.index_42"),successMessage:!0}}))),e=>s.post("/btdocker/setup/set_docker_global",e,{requestOptions:{loading:r.global.t("Docker.api.index_55"),successMessage:!0}})),ye=(e("d",(e=>s.post("/btdocker/setup/del_com_registry_mirror",{data:JSON.stringify(e)},{requestOptions:{loading:r.global.t("Docker.api.index_41"),successMessage:!0}}))),{class:"p-20px"}),De={class:"w-280px"},he={class:"text-font3"},we=w({__name:"config",props:{warehouse:{type:String,default:""}},setup(e,{expose:t}){const{t:a}=$(),n=l(),o=j({warehouse:e.warehouse});return t({onConfirm:({hide:e})=>(c({title:a("Docker.Setting.registry.restartTitle"),content:a("Docker.Setting.registry.restartConfirm"),onConfirm:async({hide:t})=>{var l;await(l={warehouse:o.warehouse},s.post("/btdocker/setup/set_docker_global",l,{requestOptions:{loading:r.global.t("Docker.api.index_55"),successMessage:!0}})),n.getSetting(),t(),e()}}),!1)}),(e,t)=>{const l=te,a=Y,n=h;return z(),L("div",ye,[V(n,null,{default:O((()=>[V(a,{label:e.$t("Docker.Setting.registry.label")},{default:O((()=>[M("div",De,[V(l,{value:U(o).warehouse,"onUpdate:value":t[0]||(t[0]=e=>U(o).warehouse=e),rows:4,type:"textarea",placeholder:e.$t("Docker.Setting.registry.configPlaceholder")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1}),M("div",he,P(e.$t("Docker.Setting.registry.restartTip")),1)])}}}),$e={class:"flex flex-1"},Ce={class:"w-320px"},Re=w({__name:"index",setup(e){const{t:t}=$(),{setting:a}=C(l()),n=J((()=>a.value.warehouse.join("\n"))),o=()=>{u({title:t("Docker.Setting.registry.modalTitle"),width:"480px",footer:!0,data:{warehouse:n.value},component:we})};return(e,t)=>{const l=_e,a=le,i=Y;return z(),T(i,{label:e.$t("Docker.Setting.registry.label")},{default:O((()=>[M("div",$e,[M("div",Ce,[V(l,{value:U(n),rows:3,disabled:!0,placeholder:e.$t("Docker.Setting.registry.placeholder")},null,8,["value","placeholder"])]),V(a,{class:"ml-4px",type:"primary",onClick:o},{default:O((()=>[q(P(e.$t("Public.Btn.Modify")),1)])),_:1})])])),_:1},8,["label"])}}}),je={class:"w-480px p-20px"},ze=w({__name:"config",props:{fileSize:{type:Number,default:0},fileNum:{type:Number,default:0}},setup(e,{expose:t}){const{t:a}=$(),n=l(),o=Z("formRef"),i=j({"max-size":e.fileSize||10,"max-file":e.fileNum||2}),s={"max-size":{trigger:["blur","input"],validator:(e,t)=>null!==t||new Error(a("Docker.Setting.logRotationConfig.fileSizeRequired"))},"max-file":{trigger:["blur","input"],validator:(e,t)=>null!==t||new Error(a("Docker.Setting.logRotationConfig.retainCountRequired"))}},r=()=>{const e={"max-size":`${i["max-size"]}m`,"max-file":i["max-file"]};return JSON.stringify(e)};return t({onConfirm:async()=>{await(o.value?.validate()),await Se({log_cutting:r()}),n.getSetting()}}),(e,t)=>{const l=ne,a=oe,n=ae,r=Y,c=h,u=H;return z(),L("div",je,[V(c,{ref_key:"formRef",ref:o,model:U(i),rules:s},{default:O((()=>[V(r,{label:e.$t("Docker.Setting.logRotationConfig.fileSize"),path:"max-size"},{default:O((()=>[V(n,{class:"w-260px"},{default:O((()=>[V(l,{value:U(i)["max-size"],"onUpdate:value":t[0]||(t[0]=e=>U(i)["max-size"]=e),class:"flex-1",min:0,"show-button":!1},null,8,["value"]),V(a,{class:"w-50px justify-center"},{default:O((()=>[q(P(e.$t("Docker.Setting.logRotationConfig.unitMB")),1)])),_:1})])),_:1})])),_:1},8,["label"]),V(r,{label:e.$t("Docker.Setting.logRotationConfig.retainCount"),path:"max-file"},{default:O((()=>[V(n,{class:"w-260px"},{default:O((()=>[V(l,{value:U(i)["max-file"],"onUpdate:value":t[1]||(t[1]=e=>U(i)["max-file"]=e),class:"flex-1",min:0,"show-button":!1},null,8,["value"]),V(a,{class:"w-50px justify-center"},{default:O((()=>[q(P(e.$t("Docker.Setting.logRotationConfig.unitCount")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"]),V(u,{class:"mt-8px"},{default:O((()=>[M("li",null,P(e.$t("Docker.Setting.logRotationConfig.configTip1")),1),M("li",null,P(e.$t("Docker.Setting.logRotationConfig.configTip2")),1)])),_:1})])}}}),Te={class:"ml-16px text-font3"},Ue=w({__name:"index",setup(e){const t=l(),{setting:a}=C(t),{t:n}=$(),o=J((()=>!ie(a.value.log_cutting))),i=J((()=>a.value.log_cutting&&a.value.log_cutting["max-size"]?a.value.log_cutting["max-size"].replace("m",""):0)),s=J((()=>a.value.log_cutting&&a.value.log_cutting["max-file"]?a.value.log_cutting["max-file"]:0)),r=e=>{e?d():c({title:n("Docker.Setting.closeLogRotationTitle"),content:n("Docker.Setting.closeLogRotationConfirm"),onConfirm:async()=>{await Se({log_cutting:JSON.stringify({})}),t.getSetting()}})},d=()=>{u({title:n("Docker.Setting.logRotationSet"),footer:!0,data:{fileSize:Number(i.value),fileNum:Number(s.value)},component:ze})};return(e,t)=>{const l=se,a=le,n=Y;return z(),T(n,{label:e.$t("Docker.Setting.logRotation")},{default:O((()=>[V(l,{value:U(o),"onUpdate:value":r},null,8,["value"]),V(a,{class:"ml-12px",type:"primary",onClick:d},{default:O((()=>[q(P(e.$t("Public.Btn.Modify")),1)])),_:1}),M("span",Te,P(e.$t("Docker.Setting.logRotationSummary",{size:U(i),num:U(s)})),1)])),_:1},8,["label"])}}}),Oe={class:"ml-16px text-font3"},Ie=w({__name:"index",setup(e){const t=l(),{setting:a}=C(t),{t:n}=$(),o=e=>{c({title:n(e?"Docker.Setting.iptables.enableTitle":"Docker.Setting.iptables.disableTitle"),content:n(e?"Docker.Setting.iptables.enableConfirm":"Docker.Setting.iptables.disableConfirm"),onConfirm:async()=>{var l;await(l={iptables:e?1:0},s.post("/btdocker/setup/set_docker_global",l,{requestOptions:{loading:r.global.t("Docker.api.index_55"),successMessage:!0}})),t.getSetting()}})};return(e,t)=>{const l=se,n=Y;return z(),T(n,{label:"iptables"},{default:O((()=>[V(l,{value:U(a).iptables,"onUpdate:value":o},null,8,["value"]),M("span",Oe,P(e.$t("Docker.Setting.iptables.description")),1)])),_:1})}}}),Me={class:"ml-16px text-font3"},Pe=w({__name:"index",setup(e){const{t:t}=$(),a=l(),{setting:n}=C(a),o=e=>{c({title:t(e?"Docker.Setting.liveRestore.enableTitle":"Docker.Setting.liveRestore.disableTitle"),content:t(e?"Docker.Setting.liveRestore.enableConfirm":"Docker.Setting.liveRestore.disableConfirm"),onConfirm:async()=>{var t;await(t={live_restore:e?1:0},s.post("/btdocker/setup/set_docker_global",t,{requestOptions:{loading:r.global.t("Docker.api.index_55"),successMessage:!0}})),a.getSetting()}})};return(e,t)=>{const l=se,a=Y;return z(),T(a,{label:"live_restore"},{default:O((()=>[V(l,{value:U(n).live_restore,"onUpdate:value":o},null,8,["value"]),M("span",Me,P(e.$t("Docker.Setting.liveRestore.description")),1)])),_:1})}}}),Ve=w({__name:"index",setup(e){const t=l(),{setting:a}=C(t),n=J((()=>a.value.driver?a.value.driver.split("=")[1]:"systemd")),{t:o}=$(),i=e=>{c({title:o("Docker.Setting.setCgroupDriverTitle"),content:o("Docker.Setting.setCgroupDriverConfirm"),onConfirm:async()=>{var l;await(l={driver:`${e}`},s.post("/btdocker/setup/set_docker_global",l,{requestOptions:{loading:r.global.t("Docker.api.index_55"),successMessage:!0}})),t.getSetting()}})};return(e,t)=>{const l=re,a=ce,s=Y;return z(),T(s,{label:U(o)("Docker.Setting.cgroupDriver")},{default:O((()=>[V(a,{value:U(n),"onUpdate:value":i},{default:O((()=>[V(l,{value:"cgroupfs"},{default:O((()=>t[0]||(t[0]=[q("cgroupfs")]))),_:1,__:[0]}),V(l,{value:"systemd"},{default:O((()=>t[1]||(t[1]=[q("systemd")]))),_:1,__:[1]})])),_:1},8,["value"])])),_:1},8,["label"])}}}),qe={class:"p-16px"},Be={class:"w-320px"},Ne=w({__name:"config",setup(e,{expose:t}){const a=l(),{setting:n}=C(a),{t:o}=$(),i=j({ipv6:n.value.ipv6_addr}),s={};return t({onConfirm:({hide:e})=>(c({title:o("Docker.Setting.index_32"),content:o("Docker.Setting.index_33"),onConfirm:async({hide:t})=>{await d({status:1,ipaddr:i.ipv6}),a.getSetting(),n.value.ipv6_addr=i.ipv6,t(),e()}}),!1)}),(e,t)=>{const l=te,a=Y,n=h,o=H;return z(),L("div",qe,[V(n,{model:U(i),rules:s},{default:O((()=>[V(a,{label:e.$t("Docker.Setting.index_23")},{default:O((()=>[M("div",Be,[V(l,{value:U(i).ipv6,"onUpdate:value":t[0]||(t[0]=e=>U(i).ipv6=e),placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"]),V(o,{class:"mt-4px ml-24px"},{default:O((()=>[M("li",null,P(e.$t("Docker.Setting.index_30")),1),M("li",null,P(e.$t("Docker.Setting.index_31")),1)])),_:1})])}}}),Ee={class:"ml-16px text-font3"},Le=w({__name:"index",setup(e){const t=l(),{setting:a}=C(t),{t:n}=$(),o=e=>{c({title:n(e?"Docker.Setting.index_25":"Docker.Setting.index_26"),content:n(e?"Docker.Setting.index_27":"Docker.Setting.index_28"),onConfirm:async()=>{await d({status:e?1:0}),t.getSetting(),a.value.ipv6_status=e}})},i=()=>{u({title:n("Docker.Setting.index_29"),width:600,footer:!0,component:Ne})};return(e,t)=>{const l=se,n=le,s=Y;return z(),T(s,{label:e.$t("Docker.Setting.index_22")},{default:O((()=>[V(l,{value:U(a).ipv6_status,"onUpdate:value":o},null,8,["value"]),V(n,{class:"ml-12px",type:"primary",onClick:i},{default:O((()=>[q(P(e.$t("Public.Btn.Modify")),1)])),_:1}),M("div",Ee,"* "+P(e.$t("Docker.Setting.index_24")),1)])),_:1},8,["label"])}}}),Je={class:"w-320px"},Ze={key:0,class:"ml-16px text-error"},Ae=w({__name:"index",setup(e){const{t:t}=$(),a=l(),{setting:n}=C(a),o=R("");A((()=>{o.value=n.value.dk_project_path}));const i=()=>{o.value&&"string"==typeof o.value&&/^\/.+/.test(o.value)?c({title:t("Docker.Setting.path.confirmTitle"),content:t("Docker.Setting.path.confirmContent"),onConfirm:async()=>{var e;await(e={path:o.value},s.post("/btdocker/setup/set_dk_project_path",e,{requestOptions:{loading:r.global.t("Docker.api.index_43")}})),await g(!0),setTimeout((()=>{window.location.reload()}),1e3)}}):p.error(t("Docker.Setting.path.validationError"))};return(e,t)=>{const l=te,a=le,s=Y;return z(),T(s,{label:e.$t("Docker.Setting.path.label")},{default:O((()=>[M("div",Je,[V(l,{value:U(o),"onUpdate:value":t[0]||(t[0]=e=>B(o)?o.value=e:null),disabled:!U(n).allow_update_install_path},null,8,["value","disabled"])]),V(a,{class:"ml-4px",type:"primary",disabled:!U(n).allow_update_install_path,onClick:i},{default:O((()=>[q(P(e.$t("Docker.Setting.path.modifyButton")),1)])),_:1},8,["disabled"]),U(n).allow_update_install_path?K("",!0):(z(),L("span",Ze,P(e.$t("Docker.Setting.path.disabledTip")),1))])),_:1},8,["label"])}}}),Ke={class:"w-620px h-400px"},Fe=w({__name:"install-logs",emits:["close"],setup(e,{emit:t}){const{t:a}=$(),n=t,o=l(),i=R(""),{send:s,close:r}=me("/sock_shell",{onMessage:(e,t)=>{const{data:l}=t;i.value+=l,(l.includes("bt_successful")||l.includes("bt_failed"))&&(l.includes("bt_successful")?(p.success(a("Docker.Setting.systemInfo.updateSuccess")),o.getSetting()):p.error(a("Docker.Setting.systemInfo.updateFailed")),r(),setTimeout((()=>{n("close")}),1e3))}});return F((()=>{r()})),s("tail -f /tmp/update_dk-compose.log"),(e,t)=>{const l=fe;return z(),L("div",Ke,[V(l,{log:U(i)},null,8,["log"])])}}}),Ge={class:"mr-8px"},Qe=w({__name:"index",setup(e){const{t:t}=$(),{setting:a}=C(l()),n=R({name:"",system:"",architecture:"",kernelVersion:"",cpuCore:0,memorySize:"",dockerVersion:"",dataDir:""}),o=()=>{c({title:t("Docker.Setting.systemInfo.updateComposeTitle"),content:t("Docker.Setting.systemInfo.updateComposeContent"),onConfirm:async()=>{await s.post("/btdocker/setup/update_compose",{},{requestOptions:{loading:r.global.t("Docker.api.index_55"),successMessage:!0}}),setTimeout((()=>{u({title:t("Docker.Setting.systemInfo.updateLogsTitle"),component:Fe})}),1e3)}})};return(async()=>{const{message:e}=await s.post("/btdocker/setup/get_system_info");_(e)&&(n.value.name=e.Name,n.value.system=e.OperatingSystem,n.value.architecture=e.Architecture,n.value.kernelVersion=e.KernelVersion,n.value.cpuCore=e.NCPU,n.value.memorySize=f(e.MemTotal),n.value.dockerVersion=e.ServerVersion,n.value.dataDir=e.DockerRootDir)})(),(e,t)=>{const l=Y,i=le,s=h,r=ue;return z(),T(r,{class:"p-16px mt-16px"},{default:O((()=>[V(s,{"label-width":"180px"},{default:O((()=>[V(l,{label:e.$t("Docker.Setting.systemInfo.hostname"),"show-feedback":!1},{default:O((()=>[q(P(U(n).name),1)])),_:1},8,["label"]),V(l,{label:e.$t("Docker.Setting.systemInfo.systemVersion"),"show-feedback":!1},{default:O((()=>[q(P(U(n).system),1)])),_:1},8,["label"]),V(l,{label:e.$t("Docker.Setting.systemInfo.architecture"),"show-feedback":!1},{default:O((()=>[q(P(U(n).architecture),1)])),_:1},8,["label"]),V(l,{label:e.$t("Docker.Setting.systemInfo.kernelVersion"),"show-feedback":!1},{default:O((()=>[q(P(U(n).kernelVersion),1)])),_:1},8,["label"]),V(l,{label:e.$t("Docker.Setting.systemInfo.cpuCore"),"show-feedback":!1},{default:O((()=>[q(P(U(n).cpuCore),1)])),_:1},8,["label"]),V(l,{label:e.$t("Docker.Setting.systemInfo.memorySize"),"show-feedback":!1},{default:O((()=>[q(P(U(n).memorySize),1)])),_:1},8,["label"]),V(l,{label:e.$t("Docker.Setting.systemInfo.dockerVersion"),"show-feedback":!1},{default:O((()=>[q(P(U(n).dockerVersion),1)])),_:1},8,["label"]),V(l,{label:e.$t("Docker.Setting.systemInfo.dockerComposeVersion"),"show-feedback":!1},{default:O((()=>[M("span",Ge,P(U(a).docker_compose_version),1),V(i,{type:"primary",text:"",onClick:o},{default:O((()=>[q(P(e.$t("Docker.Setting.systemInfo.updateButton")),1)])),_:1})])),_:1},8,["label"]),V(l,{label:e.$t("Docker.Setting.systemInfo.unixAddress"),"show-feedback":!1},{default:O((()=>[q(P(U(a).socket),1)])),_:1},8,["label"]),V(l,{label:e.$t("Docker.Setting.systemInfo.dataDirectory"),"show-feedback":!1},{default:O((()=>[q(P(U(n).dataDir),1)])),_:1},8,["label"])])),_:1})])),_:1})}}}),Xe={class:"flex items-center text-14px leading-[1]"},He={class:"mr-4px"},We={class:"w-320px"},Ye={class:"w-320px"},et={class:"ml-20px text-font3"},tt=w({__name:"index",setup(e){const a=Q((()=>k((()=>t.import("./index-legacy-BZt7QGNC.js?v=1773287522785")),void 0))),o=Q((()=>k((()=>t.import("./index-legacy-B93a_20f.js?v=1773287522785")),void 0))),i=Q((()=>k((()=>t.import("./index-legacy-DCX7-Jk6.js?v=1773287522785")),void 0))),s=l(),{setting:r}=C(s),{t:u}=$(),d=async()=>{await b({act:r.value.service_status?"stop":"start"}),s.getSetting()},g=async()=>{await v(),s.getSetting()},f=async()=>{c({title:u("Docker.Setting.index_13"),content:u("Docker.Setting.index_14"),onConfirm:async()=>{await x()}})},w=R(""),j=R({}),I=async()=>{const{message:e}=await S();if(_(e)){const t=pe(e,"registry_mirrors",[]);w.value=t.length>0?t[0]:"",j.value=pe(e,"com_reg_mirrors",{})}return e},B=m(u("Docker.Setting.index_15"),{url:"",mirrors:j.value,onRefresh:async e=>{await I(),e?.(j.value)}}),N=()=>{B.data.url=w.value,B.data.mirrors=j.value,B.show=!0},E=m(u("Docker.Setting.index_16")),L=()=>{E.show=!0},J=m(u("Docker.Setting.index_17")),Z=()=>{J.show=!0},A=async()=>{const{message:e}=await y(),t=R(!1),l=!pe(e,"status",!1),a=pe(e,"result","");c({width:400,title:u("Docker.Setting.index_18"),content:()=>{let e;return V("div",null,[V("div",{class:"mb-16px"},[a]),V(ge,{checked:t.value,class:"mb-16px",onUpdateChecked:e=>{t.value=e}},(l=e=u("Docker.Setting.index_19"),"function"==typeof l||"[object Object]"===Object.prototype.toString.call(l)&&!X(l)?e:{default:()=>[e]})),V(H,{class:"text-12px"},{default:()=>[V("li",null,[u("Docker.Setting.index_20")])]})]);var l},onConfirm:async()=>{if(l&&!t.value)return p.error(u("Docker.Setting.index_21")),!1;await D({type:t.value?1:0}),s.getSetting()}})};return I(),(e,t)=>{const l=de,s=le,c=Y,u=te,p=h,_=ue,m=n;return z(),T(xe,null,{default:O((()=>[V(_,{class:"p-16px"},{default:O((()=>[V(p,{"label-width":"180px"},{default:O((()=>[V(c,{label:e.$t("Docker.Setting.index_1")},{default:O((()=>[M("div",Xe,[M("span",He,P(e.$t("Docker.Setting.index_2"))+P(e.$t("Public.Punctuation.Colon")),1),V(l,{class:"items-center",size:4},{default:O((()=>[M("span",null,P(U(r).service_status?e.$t("Public.Status.Enable"):e.$t("Public.Status.Stopped")),1),M("i",{class:G(U(r).service_status?"i-mage:play-fill text-primary":"i-mage:pause-fill text-error")},null,2)])),_:1})]),V(s,{class:"ml-32px",onClick:d},{default:O((()=>[q(P(U(r).service_status?e.$t("Docker.Setting.index_4"):e.$t("Docker.Setting.index_3")),1)])),_:1}),V(s,{class:"ml-12px",onClick:g},{default:O((()=>[q(P(e.$t("Docker.Setting.index_5")),1)])),_:1}),U(r).service_status?K("",!0):(z(),T(s,{key:0,class:"ml-12px",onClick:f},{default:O((()=>[q(P(e.$t("Docker.Setting.index_6")),1)])),_:1}))])),_:1},8,["label"]),V(c,{label:e.$t("Docker.Setting.index_7")},{default:O((()=>[M("div",We,[V(u,{value:U(w)||e.$t("Docker.Setting.index_8"),disabled:!0,placeholder:""},null,8,["value"])]),V(s,{type:"primary",class:"ml-5px",onClick:N},{default:O((()=>[q(P(e.$t("Public.Btn.Modify")),1)])),_:1})])),_:1},8,["label"]),V(c,{label:"Docker compose"},{default:O((()=>[M("div",Ye,[V(u,{value:U(r).docker_compose_path,disabled:!0,placeholder:""},null,8,["value"])]),V(s,{type:"primary",class:"ml-5px",onClick:L},{default:O((()=>[q(P(e.$t("Public.Btn.Modify")),1)])),_:1}),M("span",et,P(e.$t("Docker.Setting.index_10")),1)])),_:1}),V(Re),V(Ue),V(Le),V(Ie),V(Pe),V(Ve),V(c,{label:e.$t("Docker.Setting.index_11")},{default:O((()=>[V(s,{type:"primary",onClick:Z},{default:O((()=>[q(P(e.$t("Docker.Setting.index_12")),1)])),_:1})])),_:1},8,["label"]),V(Ae),V(c,{label:e.$t("Docker.Setting.index_18")},{default:O((()=>[V(s,{onClick:A},{default:O((()=>[q(P(e.$t("Public.Btn.Uninstall")),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1}),V(Qe),V(m,{show:U(B).show,"onUpdate:show":t[0]||(t[0]=e=>U(B).show=e),title:U(B).title,data:U(B).data,width:640,"min-height":164,footer:!0,component:U(a)},null,8,["show","title","data","component"]),V(m,{show:U(E).show,"onUpdate:show":t[1]||(t[1]=e=>U(E).show=e),title:U(E).title,width:450,"min-height":80,footer:!0,component:U(o)},null,8,["show","title","component"]),V(m,{show:U(J).show,"onUpdate:show":t[2]||(t[2]=e=>U(J).show=e),title:U(J).title,width:640,"min-height":530,footer:!0,component:U(i)},null,8,["show","title","component"])])),_:1})}}}),lt=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"}));e("i",lt)}}}));
|