From 5e02557e00a3fab70d997078e553fc99f56b90d2 Mon Sep 17 00:00:00 2001 From: Derek Kaser <11674153+dkaser@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:23:49 -0500 Subject: [PATCH] feat: add filter and ping to status page (#20) --- .../tailscale/include/Pages/Status.php | 77 ++++++++++-------- .../plugins/tailscale/include/data/Status.php | 79 +++++++++++++++++++ .../plugins/tailscale/locales/en_US.json | 3 +- 3 files changed, 127 insertions(+), 32 deletions(-) create mode 100644 src/usr/local/emhttp/plugins/tailscale/include/data/Status.php diff --git a/src/usr/local/emhttp/plugins/tailscale/include/Pages/Status.php b/src/usr/local/emhttp/plugins/tailscale/include/Pages/Status.php index 1845acc..efc1a22 100644 --- a/src/usr/local/emhttp/plugins/tailscale/include/Pages/Status.php +++ b/src/usr/local/emhttp/plugins/tailscale/include/Pages/Status.php @@ -9,37 +9,52 @@ echo($tr->tr("tailscale_disabled")); return; } - -$tailscaleInfo = $tailscaleInfo ?? new Info($tr); ?> -
= $tr->tr('info.dns'); ?> | -= $tr->tr('info.ip'); ?> | -= $tr->tr('status_page.login_name'); ?> | -= $tr->tr('status'); ?> | -= $tr->tr('status_page.exit_node'); ?> | -= $tr->tr('status_page.connection_type'); ?> | -= $tr->tr('status_page.connection_addr'); ?> | -= $tr->tr('status_page.tx_bytes'); ?> | -= $tr->tr('status_page.rx_bytes'); ?> | -|
= $peer->SharedUser ? $tr->tr('status_page.shared') : $peer->Name; ?> | -= $peer->IP; ?> | -= $peer->LoginName; ?> | -= $peer->Online ? ($peer->Active ? $tr->tr('status_page.active') : $tr->tr('status_page.idle')) : $tr->tr('status_page.offline'); ?> | -= $peer->ExitNodeActive ? $tr->tr('status_page.exit_active') : ($peer->ExitNodeAvailable ? $tr->tr('status_page.exit_available') : ""); ?> | -= $peer->Active ? ($peer->Relayed ? $tr->tr('status_page.relay') : $tr->tr('status_page.direct')) : ""; ?> | -= $peer->Active ? $peer->Address : ""; ?> | -= $peer->Traffic ? $peer->TxBytes : ""; ?> | -= $peer->Traffic ? $peer->RxBytes : ""; ?> | -
+ | + |