Files
yakpanel-core/YakPanel/static/vite/js/index-BaJSnPKn.js

2 lines
10 KiB
JavaScript
Raw Normal View History

2026-04-07 02:04:22 +05:30
import{k as L,R as U,a0 as r,w as P,$ as g,Z as w,a9 as x,S as n,X as A,ak as G,j as z,aa as M,a8 as D,r as y,e as ie,a6 as X,F,P as V,aj as H,L as O,_ as T,H as re,b as J,ac as ce,l as Q,v as W,o as ue}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{h as ee,m as Z,n as de,v as me,x as _e,l as pe,c as q}from"./index-BTglIPU2.js?v=1773287522785";import{u as B,o as N,d as ve,g as fe,s as he,l as xe,e as be,a as ke,b as ge,c as Ce,f as K,T as Te}from"./terminal-CFfBeKvv.js?v=1773287522785";import{_ as we}from"./index-BRQskX9P.js?v=1773287522785";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{u as ae}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{u as oe}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{B as se,a1 as ye,b as $e,k as j,a2 as Se}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{_ as Le}from"./index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785";import{c as Re}from"./copy-D-wIKr0q.js?v=1773287522785";import{u as Ee}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{_ as Ie}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./xterm-dpUsuiNl.js?v=1773287522785";import"./useSocket-DTHwGZgK.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./xterm-addon-canvas-DELv9KNm.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const Ue=L({__name:"index",setup($,{expose:b}){const{t:e}=U(),l=B(),{keys:o,columns:s}=ae([{key:"host",title:e("Term.index_8"),ellipsis:{tooltip:{width:"trigger"}},render:a=>r("span",{class:"cursor-pointer w-100%",onClick:()=>h(a)},[a.host])},oe({width:130,options:a=>[{label:e("Site.TableOP.index_7"),onClick:()=>{const d={title:e("Term.index_22"),data:{isEdit:!0,row:a}};N(d)}},{label:e("Public.Btn.Del"),onClick:()=>{ee({title:e("Term.index_6"),content:e("Term.index_7",[a.host]),onConfirm:async({hide:d})=>{await ve({host:a.host}),k(),d()}})}}]})]),p=()=>{const a={title:e("Term.index_19"),data:{isEdit:!1}};N(a)},h=a=>{l.server={...a,time:new Date}},i=()=>{l.server={host:"127.0.0.1",port:22,ps:e("Database.form.index_12"),time:new Date}},k=async()=>{await fe()};return P(()=>l.isRefresh,a=>{a&&(l.setRefresh(!1),k())}),b({init:k}),(a,d)=>{const v=se,m=ne,C=te;return g(),w("div",null,[r(C,null,{toolsLeft:x(()=>[r(v,{type:"primary",onClick:p},{default:x(()=>[z(M(a.$t("Term.index_19")),1)]),_:1})]),toolsRight:x(()=>[G("",!0)]),table:x(()=>[r(m,{"checked-row-keys":n(o),"onUpdate:checkedRowKeys":d[0]||(d[0]=_=>A(o)?o.value=_:null),loading:n(xe),"max-height":"calc(100vh - 250px)",data:n(he),columns:n(s)},null,8,["checked-row-keys","loading","data","columns"])]),_:1})])}}}),Be={class:"p-20px"},De=L({__name:"form",props:{data:{}},setup($,{expose:b}){const{t:e}=U(),l=$,{isEdit:o,row:s,getList:p}=l.data,h=y(null),i=ie({name:"",content:""}),k={name:{required:!0,message:e("Security.Conf.Index_28"),trigger:["blur","input"]},content:{required:!0,message:e("Security.Conf.Index_28"),trigger:["blur","input"]}},a=async({hide:v})=>{var m;await((m=h.value)==null?void 0:m.validate()),o?await be({shell:i.content,title:s?s.title:"",new_title:i.name}):await ke({shell:i.content,title:i.name}),p==null||p(),v()};return o&&s&&(i.name=s.title,i.content=s.shell),b({onConfirm:a}),(v,m)=>{const C=$e,_=ye,E=Ie;return g(),w("div",Be,[r(E,{ref_key:"formRef",ref:h,model:n(i),rules:k},{default:x(()=>[r(_,{label:v.$t("Docker.Compose.form.index_3"),path:"name"},{default:x(()=>[r(C,{class:"w-280px!",value:n(i).name,"onUpdate:value":m[0]||(m[0]=f=>n(i).name=f),placeholder:v.$t("Term.idnex_1")},null,8,["value","placeholder"])]),_:1},8,["label"]),r(_,{label:v.$t("Docker.LocalImage.build_5"),path:"content"}