From 6f0867948e4521212b158bb658dc9ae7730d3ea4 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 15 Mar 2026 16:55:54 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BC=98=E5=8C=96]=20=E7=B2=BE=E7=AE=80?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E7=BB=84=E4=BB=B6=E7=9A=84=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/components/feedback/empty-state.tsx | 22 +++++++++++-------- .../config-version-snapshot-modal.tsx | 2 +- .../components/dashboard-overview.tsx | 8 +++---- .../dashboard/components/world-stage.tsx | 11 ---------- .../nodes/components/node-detail-page.tsx | 8 +++---- .../features/nodes/components/nodes-page.tsx | 2 +- .../components/performance-page.tsx | 3 --- .../components/proxy-routes-page.tsx | 1 - .../settings/components/settings-page.tsx | 11 ++++------ .../components/version-upgrade-modal.tsx | 8 ++----- .../websites/components/websites-page.tsx | 2 +- 11 files changed, 28 insertions(+), 50 deletions(-) diff --git a/openflare_server/web/components/feedback/empty-state.tsx b/openflare_server/web/components/feedback/empty-state.tsx index 3d92b179..073d3f99 100644 --- a/openflare_server/web/components/feedback/empty-state.tsx +++ b/openflare_server/web/components/feedback/empty-state.tsx @@ -1,13 +1,17 @@ interface EmptyStateProps { - title: string; - description: string; + title: string; + description?: string; } -export function EmptyState({ title, description }: EmptyStateProps) { - return ( -
-

{title}

-

{description}

-
- ); +export function EmptyState({title, description}: EmptyStateProps) { + return ( +
+

{title}

+ {description ? +

{description}

: null + } + +
+ ); } diff --git a/openflare_server/web/features/config-versions/components/config-version-snapshot-modal.tsx b/openflare_server/web/features/config-versions/components/config-version-snapshot-modal.tsx index bfc0b2b7..672e4ca4 100644 --- a/openflare_server/web/features/config-versions/components/config-version-snapshot-modal.tsx +++ b/openflare_server/web/features/config-versions/components/config-version-snapshot-modal.tsx @@ -20,7 +20,7 @@ export function ConfigVersionSnapshotModal({ isOpen={Boolean(version)} onClose={onClose} title={version ? `版本 ${version.version}` : '查看快照'} - description="在弹窗中查看快照 JSON 与渲染结果,避免把页面主视图撑长。" + description="在弹窗中查看快照 JSON 与渲染结果。" size="xl" footer={
diff --git a/openflare_server/web/features/dashboard/components/dashboard-overview.tsx b/openflare_server/web/features/dashboard/components/dashboard-overview.tsx index 30f1bb64..0e612283 100644 --- a/openflare_server/web/features/dashboard/components/dashboard-overview.tsx +++ b/openflare_server/web/features/dashboard/components/dashboard-overview.tsx @@ -248,7 +248,6 @@ export function DashboardOverview() {
@@ -353,7 +351,7 @@ export function DashboardOverview() {
({ @@ -381,7 +379,7 @@ export function DashboardOverview() { ({ @@ -396,7 +394,7 @@ export function DashboardOverview() { -
- 拖动平移,滚轮缩放 -
-
{observabilityQuery.isLoading ? ( @@ -874,7 +873,6 @@ export function NodeDetailPage({ nodeId }: { nodeId: string }) { {observabilityQuery.isLoading ? ( @@ -994,7 +992,7 @@ export function NodeDetailPage({ nodeId }: { nodeId: string }) {
diff --git a/openflare_server/web/features/performance/components/performance-page.tsx b/openflare_server/web/features/performance/components/performance-page.tsx index 305cd4b7..cf1df7df 100644 --- a/openflare_server/web/features/performance/components/performance-page.tsx +++ b/openflare_server/web/features/performance/components/performance-page.tsx @@ -1312,9 +1312,6 @@ export function PerformancePage() {

当前渲染预览

-

- 基于当前结构化参数和模板生成的主配置文件。 -

- 自动更新和手动更新动作在节点页触发,这里维护 Agent - 自更新使用的仓库地址。 + 上游更新仓库

@@ -1219,7 +1218,7 @@ export function SettingsPage() {
{discoveryCommand || '请先填写可访问的 Server URL。'} @@ -1229,9 +1228,7 @@ export function SettingsPage() { )}
+ title="版本与构建信息">

diff --git a/openflare_server/web/features/update/components/version-upgrade-modal.tsx b/openflare_server/web/features/update/components/version-upgrade-modal.tsx index f54e2c62..1a50770b 100644 --- a/openflare_server/web/features/update/components/version-upgrade-modal.tsx +++ b/openflare_server/web/features/update/components/version-upgrade-modal.tsx @@ -259,8 +259,8 @@ export function VersionUpgradeModal({ : release.in_progress ? '升级中...' : selectedChannel === 'preview' - ? '升级到预览版' - : '升级到正式版'} + ? '升级预览版' + : '升级正式版'}

) : null} @@ -271,7 +271,6 @@ export function VersionUpgradeModal({ {release ? ( {upgradeLogs.length > 0 ? (
@@ -321,7 +320,6 @@ export function VersionUpgradeModal({ ) : ( )} @@ -330,7 +328,6 @@ export function VersionUpgradeModal({ {canUpgrade ? (
)}
diff --git a/openflare_server/web/features/websites/components/websites-page.tsx b/openflare_server/web/features/websites/components/websites-page.tsx index c1525cce..fcced493 100644 --- a/openflare_server/web/features/websites/components/websites-page.tsx +++ b/openflare_server/web/features/websites/components/websites-page.tsx @@ -96,7 +96,7 @@ export function WebsitesPage() {