From a5637003ad52b24e29797b3b56b657cd6965bd0e Mon Sep 17 00:00:00 2001 From: m1m1sha <56671041+m1m1sha@users.noreply.github.com> Date: Sat, 11 May 2024 16:26:44 +0800 Subject: [PATCH] Perf/optimize details (#106) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🎈 perf: details * 🎈 perf: optimize Style --- easytier-gui/locales/cn.yml | 5 +++ easytier-gui/locales/en.yml | 5 +++ easytier-gui/src/components/Config.vue | 39 ++++++++++--------- easytier-gui/src/components/Status.vue | 26 ++++++++----- easytier-gui/src/pages/index.vue | 52 +++++++++++++++++++++----- easytier-gui/src/stores/network.ts | 19 ++++------ 6 files changed, 94 insertions(+), 52 deletions(-) diff --git a/easytier-gui/locales/cn.yml b/easytier-gui/locales/cn.yml index 63cb2bb..bc29c5e 100644 --- a/easytier-gui/locales/cn.yml +++ b/easytier-gui/locales/cn.yml @@ -13,6 +13,7 @@ enable_vpn_portal: 启用VPN门户 vpn_portal_listen_port: 监听端口 vpn_portal_client_network: 客户端子网 advanced_settings: 高级设置 +basic_settings: 基础设置 listener_urls: 监听地址 rpc_port: RPC端口 config_network: 配置网络 @@ -43,7 +44,9 @@ peer_count: 已连接 upload: 上传 download: 下载 show_vpn_portal_config: 显示VPN门户配置 +vpn_portal_config: VPN门户配置 show_event_log: 显示事件日志 +event_log: 事件日志 peer_info: 节点信息 hostname: 主机名 route_cost: 路由 @@ -54,3 +57,5 @@ loss_rate: 丢包率 run_network: 运行网络 stop_network: 停止网络 +network_running: 运行中 +network_stopped: 已停止 diff --git a/easytier-gui/locales/en.yml b/easytier-gui/locales/en.yml index b19c362..4321cb4 100644 --- a/easytier-gui/locales/en.yml +++ b/easytier-gui/locales/en.yml @@ -13,6 +13,7 @@ enable_vpn_portal: Enable VPN Portal vpn_portal_listen_port: VPN Portal Listen Port vpn_portal_client_network: Client Sub Network advanced_settings: Advanced Settings +basic_settings: Basic Settings listener_urls: Listener URLs rpc_port: RPC Port config_network: Config Network @@ -43,7 +44,9 @@ peer_count: Connected upload: Upload download: Download show_vpn_portal_config: Show VPN Portal Config +vpn_portal_config: VPN Portal Config show_event_log: Show Event Log +event_log: Event Log peer_info: Peer Info route_cost: Route Cost hostname: Hostname @@ -54,3 +57,5 @@ loss_rate: Loss Rate run_network: Run Network stop_network: Stop Network +network_running: running +network_stopped: stopped diff --git a/easytier-gui/src/components/Config.vue b/easytier-gui/src/components/Config.vue index aac1b77..bdc939a 100644 --- a/easytier-gui/src/components/Config.vue +++ b/easytier-gui/src/components/Config.vue @@ -56,8 +56,8 @@ onMounted(async () => {