Unverified Commit cf88bcc3 authored by Lemon-miaow's avatar Lemon-miaow
Browse files

fix(panel): extract hardcoded security note into i18n keys

parent 665841be
Loading
Loading
Loading
Loading
+1 −0
Changes for panel/src/i18n/resources/en-US/dashboard.json: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
  "spec_failed_ratio": "Failed Rate",
  "no_servers_monitor": "No active instances in the cluster",
  "images_count": "Whitelisted backend images available",
  "images_security_note": ". All backend images undergo Trivy CVE vulnerability scanning before deployment and run in isolated security containers.",
  "legend_title": "3D Node Monitor Legend",
  "legend_running": "Running",
  "legend_starting": "Starting",
+1 −0
Changes for panel/src/i18n/resources/zh-CN/dashboard.json: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
  "spec_failed_ratio": "节点故障率",
  "no_servers_monitor": "当前集群暂无服务器实例",
  "images_count": "个支持的白名单镜像环境",
  "images_security_note": "。所有后端镜像运行前均通过 Trivy CVE 漏洞扫描,强制在隔离的安全容器中托管。",
  "legend_title": "3D 节点监控图例",
  "legend_running": "运行中",
  "legend_starting": "启动中",
+1 −1
Changes for panel/src/pages/Dashboard.tsx: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -314,7 +314,7 @@ function FleetView({
                    <ShieldCheck className="h-4.5 w-4.5 text-primary shrink-0" />
                    <div>
                      <span className="font-semibold text-foreground mr-1">{images.length}</span>
                      {t("images_count")}。所有后端镜像运行前均通过 Trivy CVE 漏洞扫描,强制在隔离的安全容器中托管。
                      {t("images_count")}{t("images_security_note")}
                    </div>
                  </div>
                </CardContent>