Files
yakpanel-core/YakPanel/static/vite/js/index-legacy-IyGqcGvi.js

13 lines
22 KiB
JavaScript
Raw Normal View History

2026-04-07 02:04:22 +05:30
System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-CvnE2rtV.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./check-legacy-DG4HeWug.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BSBh0Le2.js?v=1773287522785","./index-legacy-DEYz4m3y.js?v=1773287522785"],(function(e,a){"use strict";var l,t,s,n,p,o,i,r,u,c,d,v,m,f,g,x,_,b,y,h,k,w,C,A,D,j,S,$,P,z,O,R,M,q,I,E,U,B,T,L,N,F,H,J,W,X,Z,K,V,Y,G,Q,ee,ae,le,te,se,ne,pe,oe,ie,re,ue,ce,de,ve,me,fe,ge;return{setters:[e=>{l=e._},e=>{t=e._},e=>{s=e.a4,n=e.r,p=e.a6,o=e.y,i=e.k,r=e.R,u=e.c,c=e.a0,d=e.t,v=e.F,m=e.u,f=e.e,g=e.$,x=e.Z,_=e.a9,b=e._,y=e.S,h=e.X,k=e.N,w=e.a8,C=e.P,A=e.j,D=e.aa,j=e.l,S=e.v,$=e.am,P=e.a3,z=e.w,O=e.H},e=>{R=e.t,M=e.aS,q=e.as,I=e.a3,E=e.N,U=e.l,B=e.n,T=e.bn,L=e.i,N=e.aF,F=e.ao,H=e.m,J=e.p,W=e.aJ,X=e.P,Z=e.h,K=e.c},e=>{V=e.u},e=>{Y=e.ai,G=e.aF,Q=e.a1,ee=e.b,ae=e._,le=e.al,te=e.a6,se=e.aj,ne=e.ak,pe=e.ac,oe=e.ax,ie=e.m,re=e.B,ue=e.o,ce=e.a5,de=e.a0,ve=e.a2},e=>{me=e.b},e=>{fe=e._},e=>{ge=e._}],execute:function(){var xe=document.createElement("style");xe.textContent=".n-form-item[data-v-ff0af478]{--n-label-font-size: 14px}\n/*$vite$:1*/",document.head.appendChild(xe);const _e=s("docker-app",(()=>{const e=n("all"),a=n(!1),l=n(0),t=n(0);return{type:e,refresh:a,maxCpu:l,maxMemory:t,setType:a=>{e.value=a},setRefresh:e=>{a.value=e},setMaxCpu:e=>{l.value=e},setMaxMemory:e=>{t.value=e}}}),{persist:{pick:["type"]}}),be=(e,a=!1)=>q.post("/mod/docker/com/get_apps",e,{requestOptions:{loading:a?I.global.t("Docker.api.App.index_1"):""}}),ye=(e("g",(e=>q.post("/mod/docker/com/get_app_log",e))),e("a",(e=>q.post("/mod/docker/com/get_app_installed_log",e))),e("b",(e=>q.post("/mod/docker/com/get_backup_list",e))),e("c",(e=>q.post("/mod/docker/com/backup_app",e,{requestOptions:{loading:I.global.t("Docker.api.App.index_5"),successMessage:!0}}))),e("d",(e=>q.post("/mod/docker/com/delete_backup",e,{requestOptions:{loading:I.global.t("Docker.api.App.index_4"),successMessage:!0}}))),e("r",(e=>q.post("/mod/docker/com/restore_backup",e,{requestOptions:{loading:I.global.t("Docker.api.App.index_6"),successMessage:!0}}))),e("u",(e=>q.post("/mod/docker/com/upload_backup",e,{headers:{"Content-Type":"multipart/form-data"},requestOptions:{loading:I.global.t("Docker.api.App.index_7"),successMessage:!0}}))),i({name:"DockerAppCategory",props:{value:{type:String}},setup(e,{emit:a}){const{t:l}=r(),t=R(),{mainWidth:s}=p(t),o=E(e,"value",a),i=n([]),d=u((()=>Math.floor((s.value-480)/100))),v=u((()=>i.value.slice(0,d.value))),m=u((()=>i.value.slice(d.value,i.value.length).map((e=>({label:e.label,key:e.value}))))),f=u((()=>m.value.filter((e=>e.key===o.value)).length>0)),g=u((()=>{const e=m.value.filter((e=>e.key===o.value));return e.length>0?`${e[0].label}`:""})),x=e=>{o.value=e},_=()=>{i.value.unshift({label:l("Docker.App.app_category_0"),value:"installed"}),i.value.unshift({label:l("Public.All"),value:"all"})};return _(),(async()=>{const{message:e}=await((e={})=>q.post("/mod/docker/com/get_tags",e))();B(e)&&(G(e,["sort"],["asc"]),i.value=e.map((e=>({label:e.desc,value:e.type}))),_())})(),()=>c("div",{class:"flex gap-10px"},[v.value.map((e=>c(ke,{label:e.label,active:e.value===o.value,onClick:()=>{o.value=e.value}},null))),m.value.length>0?c(Y,{trigger:"hover",options:m.value,onSelect:x},{default:()=>[c(ke,{active:f.value},{default:()=>[c("span",{class:"mr-8px"},[l("Docker.App.app_category_1"),g.value]),c(U,{name:"base-arrow-bottom"},null)]})]}):""])}})),he=T({display:"flex",alignItems:"center",justifyContent:"center",minWidth:"80px",height:"32px",padding:"0 10px",borderRadius:"2px",cursor:"pointer",backgroundColor:"var(--docker-type-list-bg)",transition:"all .3s",color:"var(--docker-type-list-text)","&.active":{backgroundColor:"var(--router-menu-active-bg)",color:"var(--color-primary)"}}),ke=i({name:"DockerAppCategoryIt
animation: rotating 2s linear infinite;
@keyframes rotating {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
`,Fe=i({name:"DockerAppInstalled",props:{data:{type:Object,required:!0}},setup(e){const{t:l}=r(),t=d(e,"data"),s=_e(),p=$(),o=u((()=>{const e=[l("Public.Status.Abnormal"),"warning"];switch(t.value.status){case"running":e[0]=l("Public.Status.Running"),e[1]="success";break;case"exited":e[0]=l("Public.Status.Stopped"),e[1]="error";break;case"initializing":e[0]=l("Docker.App.app_list_1"),e[1]="default"}return e})),i=()=>{J({title:l("Docker.App.app_list_2"),width:820,height:556,data:{app:t.value},component:P((()=>X((()=>a.import("./index-legacy-Bfc6Kjj8.js?v=1773287522785")),void 0)))})},m=new Map([["start",l("Public.Status.Start").toLocaleLowerCase()],["stop",l("Public.Status.Stop").toLocaleLowerCase()],["restart",l("Public.Status.Restart").toLocaleLowerCase()],["rebuild",l("Public.Btn.Rebuild").toLocaleLowerCase()]]),f=e=>{Z({title:l("Public.Confirm.Title"),content:l("Docker.App.app_list_4",[m.get(e),t.value.service_name]),onConfirm:async()=>{var a;await(a={service_name:t.value.service_name,app_name:t.value.appname,status:e},q.post("/mod/docker/com/set_app_status",a,{requestOptions:{loading:I.global.t("Docker.api.App.index_3"),successMessage:!0}})),s.setRefresh(!0)}})},g=()=>{const e=n(!1);Z({title:l("Public.Confirm.Title"),content:()=>{let a;return c(v,null,[c("div",{class:"mb-16px"},[l("Docker.App.app_list_6",[t.value.service_name])]),c(le,{checked:e.value,"onUpdate:checked":a=>e.value=a},Me(a=l("Docker.App.app_list_8"))?a:{default:()=>[a]})])},onConfirm:async()=>{var a;await(a={id:t.value.id,delete_data:e.value?1:0},q.post("/mod/docker/com/remove_app",a,{requestOptions:{loading:I.global.t("Docker.api.App.index_4"),successMessage:!0}})),s.setRefresh(!0)}})};return()=>{let e,s,n,r,u,d,v,m;return c("div",{class:Le},[c("div",{class:"flex justify-between"},[c("div",{class:"flex-1 mr-16px"},[c("div",{class:"flex items-center text-default"},[c("div",{class:"min-w-0 leading-22px text-16px text-default"},[c("div",{class:"max-w-full truncate",title:t.value.service_name},[t.value.service_name])]),c("div",{class:"ml-8px",onClick:()=>{"initializing"===t.value.status&&i()}},[c(ue,{type:o.value[1],class:"initializing"===t.value.status?"cursor-pointer":""},{default:()=>[o.value[0],"initializing"===t.value.status?c(U,{class:[Ne,"ml-4px"],name:"base-loading"},null):""]})]),c(ce,null,{trigger:()=>c("div",{class:"ml-8px text-default hover:text-primary cursor-pointer",onClick:()=>{W("Path",t.value.path),p.push("/files")}},[c(U,{name:"base-folder-open",size:18},null)]),default:()=>l("Docker.App.app_list_9")}),c(ce,null,{trigger:()=>c("div",{class:"ml-8px text-default hover:text-primary cursor-pointer",onClick:()=>{i()}},[c(U,{name:"base-left-logs",size:18},null)]),default:()=>l("Docker.App.app_list_10")}),c("span",{class:"ml-8px"},[l("Docker.App.app_list_11"),t.value.createat])]),c("div",{class:"flex items-center gap-8px mt-8px"},[c(ue,{class:"info-tag",size:"small"},{default:()=>[l("Docker.App.app_list_12"),t.value.m_version+(t.value.s_version?".":"")+t.value.s_version]}),c(He,{port:t.value.port||[]},null)]),t.value.domain?c("div",{class:"flex items-center gap-8px mt-8px"},[c(ce,null,{trigger:()=>c("div",{onClick:()=>{window.open(`http://${t.value.domain}`)}},[c(ue,{class:"info-tag cursor-pointer",size:"small"},{default:()=>[c(U,{class:"hover:text-primary",name:"base-max-black",size:"14"},null),c("span",{class:"ml-4px"},[l("Docker.App.app_list_14"),t.value.domain])]})]),default:()=>c("span",null,[l("Docker.App.app_list_15"),t.value.domain])}),c("a",{class:"bt-link",href:"javascript:;",onClick:()=>{p.push("/site/proxy")}},[`>${l("Docker.App.app_list_16")}`])]):""]),c(re,{size:"small",onClick:()=>{J({title:l("Docker.App.app_list_3"),width:920,minHeight:280,data:{app:t.value},component:P((()=>X((()=>a.import("./index-legacy-CdgGBrp1.js?v=1773287522785")),void 0)))})}},Me(e=l("Docker.App.app_list_17"))?e:{default:()=>[e]})]),c("div",null,[c(de,null,null),c("div",{class:"flex gap-10px mt-10px"},["billionmail"===t.value.appname&&t.value.console_url?c(re,{size:"small",onClick:()=>{window.open(t.value.console_url)}},Me(s=l("Docker.App.app_list_18")