From eee05032008ac1559f8b929f478b85d34074566f Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 6 Aug 2023 18:58:05 +0200 Subject: [PATCH] add system info to main page --- web/html/xui/index.html | 46 +++++++++++++++++++++++++++++++++++++--- web/service/server.go | 47 ++++++++++++++++++++++++++++++++++++++--- xray/process.go | 19 +++++++++++------ 3 files changed, 100 insertions(+), 12 deletions(-) diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 1a5e4d89..851031fc 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -42,7 +42,7 @@ :stroke-color="status.cpu.color" :class="themeSwitcher.darkCardClass" :percent="status.cpu.percent"> -
CPU
+
CPU ([[ status.cpuCount ]]core)
{{ i18n "pages.index.operationHours" }}: - [[ formatSecond(status.uptime) ]] + xray + [[ formatSecond(status.appStats.uptime) ]] + os + [[ formatSecond(status.uptime) ]] @@ -131,7 +134,36 @@ - tcp / udp {{ i18n "pages.index.connectionCount" }}: [[ status.tcpCount ]] / [[ status.udpCount ]] + {{ i18n "usage"}}: + Memory [[ sizeFormat(status.appStats.mem) ]] - + Threads [[ status.appStats.threads ]] + + + + + + Host: [[ status.hostInfo.hostname ]] - + + + + + + + {{ i18n "pages.index.connectionCount" }}: tcp: [[ status.tcpCount ]] udp: [[ status.udpCount ]]