mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 16:16:37 +08:00
[优化] 数据库结构优化
This commit is contained in:
@@ -1239,8 +1239,8 @@ function EdgeNodeDetailPage({ node }: { node: NodeItem }) {
|
||||
|
||||
<AppCard title="版本信息">
|
||||
<div className="space-y-2 text-sm text-[var(--foreground-secondary)]">
|
||||
<p>Agent:{node.agent_version || 'unknown'}</p>
|
||||
<p>Nginx:{node.nginx_version || 'unknown'}</p>
|
||||
<p>Agent:{node.version || 'unknown'}</p>
|
||||
<p>Nginx:{node.ext_version || 'unknown'}</p>
|
||||
<p>当前配置:{node.current_version || '未应用'}</p>
|
||||
</div>
|
||||
</AppCard>
|
||||
@@ -1742,7 +1742,7 @@ function EdgeNodeDetailPage({ node }: { node: NodeItem }) {
|
||||
<div className="grid gap-4 md:grid-cols-3">
|
||||
<AppCard title="当前 Agent 版本">
|
||||
<p className="text-sm font-medium text-[var(--foreground-primary)]">
|
||||
{node.agent_version || 'unknown'}
|
||||
{node.version || 'unknown'}
|
||||
</p>
|
||||
</AppCard>
|
||||
<AppCard title="检查通道">
|
||||
|
||||
@@ -344,9 +344,7 @@ export function NodesPage() {
|
||||
/>
|
||||
</td>
|
||||
<td className="px-3 py-4 text-sm text-[var(--foreground-secondary)]">
|
||||
{node.node_type === 'tunnel_relay'
|
||||
? node.relay_version || node.agent_version || 'unknown'
|
||||
: node.agent_version || 'unknown'}
|
||||
{node.version || 'unknown'}
|
||||
</td>
|
||||
<td className="px-3 py-4">
|
||||
<div className="space-y-2">
|
||||
|
||||
@@ -47,8 +47,6 @@ import {
|
||||
buildRelayDockerInstallCommand,
|
||||
getApplyLabel,
|
||||
getApplyVariant,
|
||||
getNodeStatusLabel,
|
||||
getNodeStatusVariant,
|
||||
getServerUrl,
|
||||
getUpdateMode,
|
||||
isMeaningfulTime,
|
||||
@@ -839,8 +837,8 @@ export function RelayDetailPage({ node }: { node: NodeItem }) {
|
||||
|
||||
<AppCard title="版本状态">
|
||||
<div className="space-y-2 text-sm text-[var(--foreground-secondary)]">
|
||||
<p>Relay 中继版本:{node.relay_version || 'unknown'}</p>
|
||||
<p>frps 核心版本:{node.relay_frp_version || 'unknown'}</p>
|
||||
<p>Relay 中继版本:{node.version || 'unknown'}</p>
|
||||
<p>frps 核心版本:{node.ext_version || 'unknown'}</p>
|
||||
<p>中继网络接入:{node.relay_agent_access_addr || '—'}</p>
|
||||
</div>
|
||||
</AppCard>
|
||||
@@ -1266,7 +1264,7 @@ export function RelayDetailPage({ node }: { node: NodeItem }) {
|
||||
<div className="grid gap-4 md:grid-cols-3">
|
||||
<AppCard title="当前版本">
|
||||
<p className="text-sm font-medium text-[var(--foreground-primary)]">
|
||||
{node.agent_version || 'unknown'}
|
||||
{node.version || 'unknown'}
|
||||
</p>
|
||||
</AppCard>
|
||||
<AppCard title="检查通道">
|
||||
|
||||
@@ -771,7 +771,7 @@ export function TunnelDetailPage({ node }: { node: NodeItem }) {
|
||||
|
||||
<AppCard title="版本与状态">
|
||||
<div className="space-y-2 text-sm text-[var(--foreground-secondary)]">
|
||||
<p>Client (openflared): {node.agent_version || 'unknown'}</p>
|
||||
<p>Client (openflared): {node.version || 'unknown'}</p>
|
||||
<p>当前配置版本:{node.current_version || '未应用'}</p>
|
||||
<p>节点类型:隧道客户端 (tunnel_client)</p>
|
||||
</div>
|
||||
@@ -1192,7 +1192,7 @@ export function TunnelDetailPage({ node }: { node: NodeItem }) {
|
||||
<div className="grid gap-4 md:grid-cols-3">
|
||||
<AppCard title="当前版本">
|
||||
<p className="text-sm font-medium text-[var(--foreground-primary)]">
|
||||
{node.agent_version || 'unknown'}
|
||||
{node.version || 'unknown'}
|
||||
</p>
|
||||
</AppCard>
|
||||
<AppCard title="检查通道">
|
||||
|
||||
@@ -13,8 +13,6 @@ export interface NodeItem {
|
||||
relay_client_proxy_url: string;
|
||||
relay_auth_token: string;
|
||||
relay_status: string;
|
||||
relay_frp_version: string;
|
||||
relay_version: string;
|
||||
relay_frps_connections: number;
|
||||
relay_frps_proxy_count: number;
|
||||
geo_name: string;
|
||||
@@ -27,8 +25,8 @@ export interface NodeItem {
|
||||
update_channel: ReleaseChannel;
|
||||
update_tag: string;
|
||||
restart_openresty_requested: boolean;
|
||||
agent_version: string;
|
||||
nginx_version: string;
|
||||
version: string;
|
||||
ext_version: string;
|
||||
openresty_status: 'healthy' | 'unhealthy' | 'unknown';
|
||||
openresty_message: string;
|
||||
status: 'online' | 'offline' | 'pending';
|
||||
|
||||
Reference in New Issue
Block a user