From 6ea3adcef8524406bfbce5d1c4fd7b21cfbba907 Mon Sep 17 00:00:00 2001 From: m1m1sha <56671041+m1m1sha@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20show=20version=20&=20local?= =?UTF-8?q?=20node=20(#318)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ feat: version Add display version information, incompatible with lower versions * 🎈 perf: unknown Unknown when there is no version number displayed * ✨ feat: Display local nodes Display local nodes, incompatible with lower versions --- easytier-gui/locales/cn.yml | 4 ++ easytier-gui/locales/en.yml | 4 ++ easytier-gui/src/components/Status.vue | 32 +++++++++---- easytier-gui/src/types/network.ts | 3 ++ easytier/proto/cli.proto | 2 + easytier/src/easytier-cli.rs | 66 ++++++++++++++++++++++++++ easytier/src/launcher.rs | 4 ++ easytier/src/peers/peer_conn.rs | 9 +--- easytier/src/peers/peer_manager.rs | 1 + easytier/src/peers/peer_ospf_route.rs | 1 + 10 files changed, 110 insertions(+), 16 deletions(-) diff --git a/easytier-gui/locales/cn.yml b/easytier-gui/locales/cn.yml index d59d3e7..6a7fcd7 100644 --- a/easytier-gui/locales/cn.yml +++ b/easytier-gui/locales/cn.yml @@ -66,6 +66,10 @@ upload_bytes: 上传 download_bytes: 下载 loss_rate: 丢包率 +status: + version: 内核版本 + local: 本机 + run_network: 运行网络 stop_network: 停止网络 network_running: 运行中 diff --git a/easytier-gui/locales/en.yml b/easytier-gui/locales/en.yml index cd5d376..f4ddd9a 100644 --- a/easytier-gui/locales/en.yml +++ b/easytier-gui/locales/en.yml @@ -66,6 +66,10 @@ upload_bytes: Upload download_bytes: Download loss_rate: Loss Rate +status: + version: Version + local: Local + run_network: Run Network stop_network: Stop Network network_running: running diff --git a/easytier-gui/src/components/Status.vue b/easytier-gui/src/components/Status.vue index cbffc68..67b013e 100644 --- a/easytier-gui/src/components/Status.vue +++ b/easytier-gui/src/components/Status.vue @@ -1,5 +1,5 @@