From 8ee08e08da904ee6150e046777faf3c831873666 Mon Sep 17 00:00:00 2001 From: "Logan.Li" Date: Tue, 27 Oct 2026 14:36:47 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=95=8C=E9=9D=A2=E6=96=87=E6=A1=88?= =?UTF-8?q?=20K8s=20=E7=BB=9F=E4=B8=80=E6=94=B9=E4=B8=BA=20Kubernetes=20?= =?UTF-8?q?=E5=85=A8=E7=A7=B0=EF=BC=88=E6=9E=9A=E4=B8=BE=E5=80=BC=E4=B8=8D?= =?UTF-8?q?=E5=8F=98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/database/database.go | 4 ++-- frontend/src/components/BasicInfoPanel.tsx | 2 +- frontend/src/pages/BatchRelease.tsx | 4 ++-- frontend/src/pages/EnvironmentManager.tsx | 4 ++-- frontend/src/pages/PipelineList.tsx | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/backend/internal/database/database.go b/backend/internal/database/database.go index b0f9a06..8290efe 100644 --- a/backend/internal/database/database.go +++ b/backend/internal/database/database.go @@ -106,9 +106,9 @@ func seedDemoData() { log.Println("[seed] 首次启动,写入示例数据…") - // ---- 流水线 1:aiops-backend(Go + K8s) ---- + // ---- 流水线 1:aiops-backend(Go + Kubernetes) ---- backend := model.Pipeline{ - Name: "aiops-backend", Description: "AIOps 后端服务(Go + K8s 滚动发布)", + Name: "aiops-backend", Description: "AIOps 后端服务(Go + Kubernetes 滚动发布)", Type: "native", SourceRepo: "https://gitee.com/attacker/aiops.git", SourceBranch: "master", DeployType: "k8s", Env: "production", } diff --git a/frontend/src/components/BasicInfoPanel.tsx b/frontend/src/components/BasicInfoPanel.tsx index 678f16e..2f12dff 100644 --- a/frontend/src/components/BasicInfoPanel.tsx +++ b/frontend/src/components/BasicInfoPanel.tsx @@ -88,7 +88,7 @@ export default function BasicInfoPanel({ pipelineId }: Props) { diff --git a/frontend/src/pages/BatchRelease.tsx b/frontend/src/pages/BatchRelease.tsx index 333819c..0dd1bbb 100644 --- a/frontend/src/pages/BatchRelease.tsx +++ b/frontend/src/pages/BatchRelease.tsx @@ -299,7 +299,7 @@ export default function BatchRelease({ onViewRecords }: { onViewRecords?: () =>
{p.name}
{p.branch}
{tp.label}
-
{p.deployType === 'k8s' ? K8s : p.deployType === 'gitops' ? GitOps : 主机}
+
{p.deployType === 'k8s' ? Kubernetes : p.deployType === 'gitops' ? GitOps : 主机}
{p.env}
@@ -337,7 +337,7 @@ export default function BatchRelease({ onViewRecords }: { onViewRecords?: () =>
-
+
diff --git a/frontend/src/pages/EnvironmentManager.tsx b/frontend/src/pages/EnvironmentManager.tsx index 331f5f4..ab6741d 100644 --- a/frontend/src/pages/EnvironmentManager.tsx +++ b/frontend/src/pages/EnvironmentManager.tsx @@ -272,7 +272,7 @@ export default function EnvironmentManager() { color: activeTab === 'k8s' ? 'var(--accent-blue)' : 'var(--text-secondary)', }} > - K8s集群 + Kubernetes 集群
@@ -433,7 +433,7 @@ export default function EnvironmentManager() {
) : ( - /* K8s Clusters */ + /* Kubernetes 集群 */
{clusterStats.map((stat) => ( diff --git a/frontend/src/pages/PipelineList.tsx b/frontend/src/pages/PipelineList.tsx index fa4b2c5..6142e84 100644 --- a/frontend/src/pages/PipelineList.tsx +++ b/frontend/src/pages/PipelineList.tsx @@ -77,7 +77,7 @@ const statusConfig: Record = { - k8s: { label: 'K8s', color: '#0969da', bg: '#ddf4ff' }, + k8s: { label: 'Kubernetes', color: '#0969da', bg: '#ddf4ff' }, host: { label: '主机', color: '#1a7f37', bg: '#dafbe1' }, gitops: { label: 'GitOps', color: '#0e7c7b', bg: '#d5f5f6' }, }; @@ -571,7 +571,7 @@ export default function PipelineList({ onSelectPipeline }: { onSelectPipeline: ( setForm((f) => ({ ...f, description: e.target.value }))} - placeholder="例如 Go后端服务 - Docker构建 + K8s部署" + placeholder="例如 Go后端服务 - Docker构建 + Kubernetes 部署" className="w-full px-3 py-[7px] rounded-md border text-[13px] outline-none" style={inputStyle} /> @@ -607,7 +607,7 @@ export default function PipelineList({ onSelectPipeline }: { onSelectPipeline: ( 主机 - K8s + Kubernetes GitOps