From 896cc5386c53673a25b33d7917cf952c123a3db1 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 25 May 2023 03:11:09 +0330 Subject: new - show cores, public ipv4 and ipv6 logical Processors you can see them on first page --- web/html/xui/index.html | 90 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 68 insertions(+), 22 deletions(-) (limited to 'web/html') diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 667cd4cb..7d919a30 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -34,7 +34,8 @@ :stroke-color="status.cpu.color" :class="themeSwitcher.darkCardClass" :percent="status.cpu.percent"> -
CPU
+
Cores: [[ status.cpuCores ]]
+
Logical Procs: [[ status.logicalProcessors ]]
- {{ i18n "pages.index.operationHours" }}: - [[ formatSecond(status.uptime) ]] - - - - + {{ i18n "menu.link" }}: + {{ i18n "pages.index.logs" }} + {{ i18n "pages.index.config" }} + {{ i18n "pages.index.backup" }} @@ -111,26 +108,69 @@ - {{ i18n "menu.link" }}: - {{ i18n "pages.index.logs" }} - {{ i18n "pages.index.config" }} - {{ i18n "pages.index.backup" }} + + + {{ i18n "pages.index.systemLoad" }}: [[ status.loads[0] ]] | [[ status.loads[1] ]] | [[ status.loads[2] ]] + + + + + + + {{ i18n "pages.index.operationHours" }}: + [[ formatSecond(status.uptime) ]] + + - {{ i18n "pages.index.systemLoad" }}: [[ status.loads[0] ]] | [[ status.loads[1] ]] | [[ status.loads[2] ]] + + + ipv4: + + + + + + + ipv6: + + + + + + - + - TCP / UDP {{ i18n "pages.index.connectionCount" }}: [[ status.tcpCount ]] / [[ status.udpCount ]] - - - - + + + TCP: [[ status.tcpCount ]] + + + + + + + UDP: [[ status.udpCount ]] + + + + + + @@ -299,9 +339,12 @@ this.mem = new CurTotal(0, 0); this.netIO = { up: 0, down: 0 }; this.netTraffic = { sent: 0, recv: 0 }; + this.publicIP = { ipv4: 0, ipv6: 0 }; this.swap = new CurTotal(0, 0); this.tcpCount = 0; this.udpCount = 0; + this.cpuCores = 0; + this.logicalProcessors = 0; this.uptime = 0; this.xray = { state: State.Stop, errorMsg: "", version: "", color: "" }; @@ -314,9 +357,12 @@ this.mem = new CurTotal(data.mem.current, data.mem.total); this.netIO = data.netIO; this.netTraffic = data.netTraffic; + this.publicIP = data.publicIP; this.swap = new CurTotal(data.swap.current, data.swap.total); this.tcpCount = data.tcpCount; this.udpCount = data.udpCount; + this.cpuCores = data.cpuCores; + this.logicalProcessors = data.logicalProcessors; this.uptime = data.uptime; this.xray = data.xray; switch (this.xray.state) { -- cgit v1.2.3