mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 20:57:26 +08:00
✨ feat: display
Display server tag and whether server supports relay
This commit is contained in:
@@ -72,6 +72,8 @@ loss_rate: 丢包率
|
|||||||
status:
|
status:
|
||||||
version: 内核版本
|
version: 内核版本
|
||||||
local: 本机
|
local: 本机
|
||||||
|
server: 服务器
|
||||||
|
relay: 中继
|
||||||
|
|
||||||
run_network: 运行网络
|
run_network: 运行网络
|
||||||
stop_network: 停止网络
|
stop_network: 停止网络
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ loss_rate: Loss Rate
|
|||||||
status:
|
status:
|
||||||
version: Version
|
version: Version
|
||||||
local: Local
|
local: Local
|
||||||
|
server: Server
|
||||||
|
relay: Relay
|
||||||
|
|
||||||
run_network: Run Network
|
run_network: Run Network
|
||||||
stop_network: Stop Network
|
stop_network: Stop Network
|
||||||
|
|||||||
@@ -410,19 +410,33 @@ function showEventLogs() {
|
|||||||
{{ t('peer_info') }}
|
{{ t('peer_info') }}
|
||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<DataTable :value="peerRouteInfos" column-resize-mode="fit" table-style="width: 100%">
|
<DataTable :value="peerRouteInfos" column-resize-mode="fit" table-class="w-full">
|
||||||
<Column :field="ipFormat" style="width: 100px;" :header="t('virtual_ipv4')" />
|
<Column :field="ipFormat" :header="t('virtual_ipv4')" />
|
||||||
<Column style="max-width: 250px;" :header="t('hostname')">
|
<Column :header="t('hostname')">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<span v-tooltip="slotProps.data.route.hostname">{{ slotProps.data.route.hostname }}</span>
|
<div
|
||||||
|
v-if="!slotProps.data.route.cost || !slotProps.data.route.feature_flag.is_public_server"
|
||||||
|
v-tooltip="slotProps.data.route.hostname"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
slotProps.data.route.hostname }}
|
||||||
|
</div>
|
||||||
|
<div v-else v-tooltip="slotProps.data.route.hostname" class="space-x-1">
|
||||||
|
<Tag v-if="slotProps.data.route.feature_flag.is_public_server" severity="info" value="Info">
|
||||||
|
{{ t('status.server') }}
|
||||||
|
</Tag>
|
||||||
|
<Tag v-if="slotProps.data.route.no_relay_data" severity="warn" value="Warn">
|
||||||
|
{{ t('status.relay') }}
|
||||||
|
</Tag>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column :field="routeCost" style="width: 100px;" :header="t('route_cost')" />
|
<Column :field="routeCost" :header="t('route_cost')" />
|
||||||
<Column :field="latencyMs" style="width: 80px;" :header="t('latency')" />
|
<Column :field="latencyMs" :header="t('latency')" />
|
||||||
<Column :field="txBytes" style="width: 80px;" :header="t('upload_bytes')" />
|
<Column :field="txBytes" :header="t('upload_bytes')" />
|
||||||
<Column :field="rxBytes" style="width: 80px;" :header="t('download_bytes')" />
|
<Column :field="rxBytes" :header="t('download_bytes')" />
|
||||||
<Column :field="lossRate" style="width: 100px;" :header="t('loss_rate')" />
|
<Column :field="lossRate" :header="t('loss_rate')" />
|
||||||
<Column style="width: 100px;" :header="t('status.version')">
|
<Column :header="t('status.version')">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<span>{{ version(slotProps.data) }}</span>
|
<span>{{ version(slotProps.data) }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ export interface PeerInfo {
|
|||||||
export interface PeerConnInfo {
|
export interface PeerConnInfo {
|
||||||
conn_id: string
|
conn_id: string
|
||||||
my_peer_id: number
|
my_peer_id: number
|
||||||
|
is_client: boolean
|
||||||
peer_id: number
|
peer_id: number
|
||||||
features: string[]
|
features: string[]
|
||||||
tunnel?: TunnelInfo
|
tunnel?: TunnelInfo
|
||||||
|
|||||||
Reference in New Issue
Block a user