chore: 同步最新前端构建产物到 backend/static

This commit is contained in:
Logan.Li committed 2026-06-26 00:02:36 +08:00
1 parent 0b404b4611
commit 9bf35b369c
134 files changed
+480 -2

No files matched your search

@@ -0,0 +1 @@
import{i as hs,j as e,L as R,P as G,r as n,f as Vs,m as Gs,B as p,C as I,Q as E,al as V,S as ge,v as te,N as ye,am as gs,G as ue,V as Is,o as ve,D as rs,a as ls,b as ds,c as ps}from"./index-CwVkcMR-.js";import{C as Ws,a as Js}from"./card-C5qBu7CR.js";import{I as g}from"./input-B5ad6Rfz.js";import{B as y}from"./badge-DgJ0w7jf.js";import{T as Qs}from"./textarea-BZOXMpxW.js";import{L as d}from"./label-mg-tHjNc.js";import{S as Y,a as Z,b as ee,c as se,d as v}from"./select-CGtvCG8I.js";import{d as be,c as qs,p as b}from"./deploy-C6PfjuUR.js";import{t as x}from"./index-Dxvx0mlR.js";import{C as W}from"./circle-x-DBoylLde.js";import{P as je}from"./plus-CaJ-dB4A.js";import{A as S}from"./arrow-right-aZAKUdlE.js";import{S as Hs}from"./search-1PdnG-g5.js";import{L as Ks}from"./layers-BulUCMo7.js";import{C as Us}from"./code-BNPtZGxu.js";import{C as Pe}from"./circle-stop-BXP5btnb.js";import{P as Xs}from"./play-_cqG4jyc.js";import{H as Ys}from"./history-DUPeIzQi.js";import{T as is}from"./trash-2-BPpnm3Sz.js";import{B as Zs}from"./box-D54sw_gB.js";import{T as xs}from"./tag-6KLmbFcH.js";import{F as ms}from"./file-text-DGoBtmAr.js";import"./index-CBIZnJrN.js";import"./chevron-up-DM77dvsL.js";const ea=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],sa=hs("package",ea);const aa=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],ta=hs("workflow",aa);function na(c){return c.toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||`pipeline-${Date.now()}`}function oa(c){switch(c){case"success":return e.jsxs(y,{"code-path":"src/components/deploy/pipeline-helpers.tsx:49:9",variant:"outline",className:"border-emerald-500/30 text-emerald-400 bg-emerald-500/10",children:[e.jsx(G,{"code-path":"src/components/deploy/pipeline-helpers.tsx:50:11",className:"h-3 w-3 mr-1"}),"成功"]});case"failed":return e.jsxs(y,{"code-path":"src/components/deploy/pipeline-helpers.tsx:56:9",variant:"outline",className:"border-red-500/30 text-red-400 bg-red-500/10",children:[e.jsx(W,{"code-path":"src/components/deploy/pipeline-helpers.tsx:57:11",className:"h-3 w-3 mr-1"}),"失败"]});case"running":return e.jsxs(y,{"code-path":"src/components/deploy/pipeline-helpers.tsx:63:9",variant:"outline",className:"border-blue-500/30 text-blue-400 bg-blue-500/10 animate-pulse",children:[e.jsx(R,{"code-path":"src/components/deploy/pipeline-helpers.tsx:64:11",className:"h-3 w-3 mr-1 animate-spin"}),"运行中"]});default:return e.jsx(y,{"code-path":"src/components/deploy/pipeline-helpers.tsx:70:9",variant:"outline",className:"border-[var(--dg-border)] text-[var(--dg-text-secondary)]",children:"从未运行"})}}const ae=[{key:"checkout",label:"代码检出",icon:E,color:"#6366F1",order:1,needs:["repo"],desc:"从 Git 仓库拉取代码"},{key:"build",label:"构建",icon:Zs,color:"#F59E0B",order:2,needs:[],desc:"编译/打包项目"},{key:"test",label:"测试",icon:G,color:"#10B981",order:3,needs:[],desc:"运行单元/集成测试"},{key:"image",label:"镜像打包",icon:te,color:"#06B6D4",order:4,needs:["registry"],desc:"Docker 构建 & 推送"},{key:"deploy",label:"部署",icon:V,color:"#EF4444",order:5,needs:[],desc:"部署到目标环境"},{key:"verify",label:"验证",icon:gs,color:"#3B82F6",order:6,needs:[],desc:"部署后健康检查"}].sort((c,j)=>c.order-j.order);function Me(c){if(!c)return"-";if(c<60)return`${c}s`;const j=Math.floor(c/60),i=c%60;return i>0?`${j}分${i}秒`:`${j}分`}function ca(c){if(!c)return[];try{const j=typeof c=="string"?JSON.parse(c):c;return Array.isArray(j)?j:[]}catch{return[]}}function Ta(){const[c,j]=n.useState(""),[i,J]=n.useState([]),[Q,B]=n.useState(!0),[M,w]=n.useState({}),[q,D]=n.useState({}),[N,L]=n.useState({}),[T,A]=n.useState("all"),[r,Ne]=n.useState({}),[ys,F]=n.useState(!1),[H,fe]=n.useState(""),[k,we]=n.useState(""),[ke,_e]=n.useState(""),[ne,Ce]=n.useState(""),[Se,Re]=n.useState("main"),[Ee,Be]=n.useState(""),[m,De]=n.useState(["checkout","build","image","deploy"]),[,us]=n.useState(""),[,vs]=n.useState(""),[oe,Le]=n.useState("branch"),[Te,Ae]=n.useState("ssh"),[ce,Fe]=n.useState(""),[re,ze]=n.useState(!1),[bs,js]=n.useState([]),[Ps,Ms]=n.useState([]),[K,$e]=n.useState(""),[_,Oe]=n.useState(""),[z,Ve]=n.useState("manual"),[Ge,Ie]=n.useState(""),[We,Je]=n.useState(""),[Qe,le]=n.useState(""),[qe,He]=n.useState(""),[P,C]=n.useState([]),[Ke,Ue]=n.useState(""),[Xe,Ns]=n.useState(2),[,fs]=n.useState([]),[,ws]=n.useState([]),[ks,_s]=n.useState([]),[,la]=n.useState([]),[,da]=n.useState([]),[Cs,Ye]=n.useState(!1),[$,Ss]=n.useState(null),[Ze,es]=n.useState([]),ss=Vs(),as=Gs(),Rs=[{key:"all",label:"全部",icon:Ks,color:"#6B7280"},{key:"produLine truncated