chore(build): 更新 embed 前端静态资源

同步 ./run.sh build 产出的 backend/static 哈希资源与 index.html。
This commit is contained in:
Logan.Li committed 2026-06-26 16:22:57 +08:00
1 parent 8df0acb338
commit 1fd9a631e5
108 files changed
+142 -139

No files matched your search

@@ -0,0 +1 @@
import{r as x,j as e}from"./vendor-codemirror-B1SGo4xl.js";import{C as xe,a as ue}from"./card-BHSBTtub.js";import{B as p,g as ie,k as de,i as he,L as D}from"./index-Bp-M7P_8.js";import{I as be}from"./input-Bnlm--la.js";import{B as m}from"./badge-B00SZHvE.js";import{S as X,a as G,b as q,c as K,d as Q}from"./select-DbhcBWnH.js";import{T as ge,a as Ne,b as u,c as ke,d as Pe,e as t}from"./table-u8V9iTZf.js";import{M as je,b as Re,Y as ve,P as we,a as fe}from"./PodFileBrowser-CVjj8HxI.js";import{R as Ce}from"./ResourceVisualEditor-B64kRCHd.js";import{u as ee}from"./use-toast-DNZLibQY.js";import{k as l}from"./index-BkulU9RM.js";import{ah as E,X as Se,L as T,j as C,B as S,b as ye,A as Ye,F as Ae,N as W,k as $e,f as I,R as _e,v as L,P as De,S as Ie,o as N,d as z,r as Le,H as Me}from"./vendor-icons-BWk-DH7F.js";import"./index-5FEebgvX.js";import"./k8s-yaml-utils-4KZB_Bq_.js";import"./vendor-xterm-20M9KZE1.js";import"./label-NkONM5Mp.js";import"./textarea-BvOVhaCD.js";function Ee({clusterCode:s,onClose:a,onApplied:o}){const{toast:r}=ee(),[h,n]=x.useState(""),[d,b]=x.useState(!1),R=async()=>{if(!h.trim()){r({title:"请输入 YAML",variant:"destructive"});return}b(!0);try{await l.applyYAML(s,h),r({title:"导入成功",description:"YAML 已应用到集群"}),o?.(),a()}catch(k){r({title:"导入失败",description:k.message,variant:"destructive"})}finally{b(!1)}};return e.jsx(je,{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:38:5",onClose:a,children:e.jsxs("div",{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:39:7",className:"bg-[var(--dg-bg-primary)] border border-[var(--dg-border)] rounded-xl w-[92vw] max-w-4xl h-[85vh] flex flex-col shadow-2xl",onClick:k=>k.stopPropagation(),children:[e.jsxs("div",{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:43:9",className:"flex items-center justify-between p-4 border-b border-[var(--dg-border)]",children:[e.jsxs("div",{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:44:11",className:"flex items-center gap-2",children:[e.jsx(E,{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:45:13",className:"h-5 w-5 text-[var(--dg-text-muted)]"}),e.jsxs("div",{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:46:13",children:[e.jsx("h2",{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:47:15",className:"text-lg font-bold text-[var(--dg-text-primary)]",children:"导入 YAML"}),e.jsx("p",{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:48:15",className:"text-xs text-[var(--dg-text-muted)]",children:"支持多文档(--- 分隔),适用于新建或更新资源"})]})]}),e.jsx(p,{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:51:11",variant:"ghost",size:"icon",className:"h-8 w-8",onClick:a,children:e.jsx(Se,{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:51:85",className:"h-4 w-4"})})]}),e.jsx("div",{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:53:9",className:"flex-1 min-h-0 flex flex-col overflow-hidden p-4",children:e.jsx(Re,{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:54:11",value:h,fill:!0,fontSize:"12px",onChange:n})}),e.jsxs("div",{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:61:9",className:"flex justify-end gap-2 p-4 border-t border-[var(--dg-border)] shrink-0",children:[e.jsx(p,{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:62:11",variant:"outline",onClick:a,children:"取消"}),e.jsxs(p,{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:63:11",className:"bg-blue-600 hover:bg-blue-700",onClick:R,disabled:d,children:[d?e.jsx(T,{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:64:25",className:"h-4 w-4 animate-spin mr-1"}):e.jsx(E,{"code-path":"src/components/kubernetes/YamlImportDialog.tsx:64:77",className:"h-4 w-4 mr-1"}),"应用"]})]})]})})}const Z=["services","ingresses","configmaps","secrets","pvcs"],Te=["deployments","services","ingresses","configmaps","secrets"],j=({name:s,opts:a})=>e.jsxs("div",{"code-path":"src/components/kubernetes/NamespaceResourcePage.tsx:38:3",className:"flex items-center gap-0.5",children:[e.jsxs(p,{"code-path":"src/components/kubernetes/NamespaceResourcePage.tsx:39:5",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-emerald-400 hover:text-emerald-300",title:"可视化编辑",onClick:()=>a.onEdit?.(s),children:[e.jsx(z,{"code-path":"src/components/kubernetes/NamespaceResourcePage.tsx:40:43",className:"h-3.5 w-3.5 mr-1"}),"编辑"]}),e.jsxs(p,{"code-path":"src/components/kubernetes/NamespaceResourcePage.tsx:41:5",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-slate-400 hover:text-slate-300",title:"YAML",onClick:()=>a.onYaml?.(s),children:[e.jsx(N,{"code-path":"src/components/kubernetes/NamespaceResourcePage.tsx:42:43",className:"h-3.5 w-3.5 mr-1"}),"YAML"]})]}),M={deployments:{title:"Deployments",subtitle:"Deployment 工作负载运行状态",icon:S,columns:["名称","命名空间","副本","镜像","操作"],renderRow:(s,a)=>e.jsxs(u,{"coLine truncated