chore: 同步 embed 静态资源(base=/ 修复深链白屏)

二进制 / K8s embed 模式 go:embed 使用 backend/static
This commit is contained in:
Logan.Li committed 2026-06-26 11:04:50 +08:00
1 parent 992e9b2ecc
commit 921b44d6a4
155 files changed
+187 -184

No files matched your search

@@ -0,0 +1 @@
import{i as Oe,j as e,I as at,T as Le,a5 as lt,Q as ze,U as it,al as mt,D as K,a as J,b as V,c as H,d as U,e as ie,B as m,O as Me,o as dt,r as a,t as d,f as Ge,C as pt,P as xt,au as ht}from"./index-BTQygws6.js";import{I as _}from"./input-C6mE-wO9.js";import{B as A}from"./badge-BsIZhz7S.js";import{C as W,a as Q,b as Te,c as _e}from"./card-D0oz3NII.js";import{S as ut}from"./stat-strip-M_Ng3raR.js";import{S as ne,a as se,b as oe,c as ce,d as T}from"./select-pPlmgAjn.js";import{T as gt,a as jt,b as F,c as P}from"./tabs-CH1b5gPd.js";import{S as $e}from"./switch-8l7ThrsD.js";import{a as R}from"./alert-BgGvEFrj.js";import{a as E}from"./alert-center-Bpw1a6Eu.js";import{u as qe,q as ae,b as Ie,a as Ct}from"./unwrap-Bv0ReG-f.js";import{u as $}from"./useMutation-C9fIiouP.js";import{a as Ce}from"./agent-Bb56k6oq.js";import{Z as ft}from"./zap-72OjNvOL.js";import{L as j}from"./label-8e-EC7mH.js";import{A as vt}from"./AlertRuleDialog-CkgDI_88.js";import{T as At}from"./textarea-DDxE7TMs.js";import{R as te}from"./refresh-cw-e9vbQhCy.js";import{P as re}from"./plus-DOS6OUrq.js";import{C as yt}from"./calendar-DRDZJOlv.js";import{S as Nt}from"./square-pen-DYung4SK.js";import{T as wt}from"./trash-2-5oUve9eW.js";import{S as bt}from"./search-BDsFve6h.js";import"./index-WFeZT6kc.js";import"./chevron-up-Z8QjN8G2.js";import"./message-square-C0PKhW_h.js";import"./phone-DFQ2ZxxE.js";const St=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],Dt=Oe("repeat",St);const kt=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],le=Oe("volume-x",kt);function Tt(t){return{id:String(t.id),title:t.rule_name||t.title||`告警 #${t.id}`,description:t.message||t.description||"",severity:t.severity||"info",status:t.status||"firing",source:t.target||t.source||"",service:t.service||"",metric:t.metric||"",value:t.value||0,threshold:t.threshold||0,startedAt:t.started_at||t.startedAt||t.created_at||new Date().toISOString(),resolvedAt:t.resolved_at||t.resolvedAt,labels:typeof t.labels=="string"?(()=>{try{return JSON.parse(t.labels||"{}")}catch{return{}}})():t.labels||{},annotations:typeof t.annotations=="string"?(()=>{try{return JSON.parse(t.annotations||"{}")}catch{return{}}})():t.annotations||{}}}function fe(t){switch(t){case"critical":return e.jsxs(A,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:106:14",variant:"destructive",className:"gap-1",children:[e.jsx(lt,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:106:61",className:"w-3 h-3"}),"严重"]});case"warning":return e.jsxs(A,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:108:14",variant:"default",className:"bg-orange-500 gap-1",children:[e.jsx(Le,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:108:71",className:"w-3 h-3"}),"警告"]});case"info":return e.jsxs(A,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:110:14",variant:"default",className:"bg-blue-500 gap-1",children:[e.jsx(at,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:110:69",className:"w-3 h-3"}),"信息"]});default:return e.jsx(A,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:112:14",variant:"secondary",children:"未知"})}}function _t(t){switch(t){case"firing":return e.jsxs(A,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:120:14",variant:"destructive",className:"gap-1 animate-pulse",children:[e.jsx(ft,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:120:75",className:"w-3 h-3"}),"触发中"]});case"acknowledged":return e.jsxs(A,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:122:14",variant:"default",className:"bg-yellow-500 gap-1",children:[e.jsx(it,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:122:71",className:"w-3 h-3"}),"已确认"]});case"resolved":return e.jsxs(A,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:124:14",variant:"default",className:"bg-green-500 gap-1",children:[e.jsx(ze,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:124:70",className:"w-3 h-3"}),"已解决"]});case"suppressed":return e.jsxs(A,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:126:14",variant:"secondary",className:"gap-1",children:[e.jsx(le,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:126:59",className:"w-3 h-3"}),"已静默"]});default:return e.jsx(A,{"code-path":"src/components/monitor/alert-center/alert-center-helpers.tsx:128:14",variant:"secondary",Line truncated