From 1a7ccf3e5df43d7839a62c78dc053f9b3d690632 Mon Sep 17 00:00:00 2001 From: Tara Rostami <132676256+TaraRostami@users.noreply.github.com> Date: Wed, 14 Feb 2024 13:24:12 +0330 Subject: [PATCH] Update index.html --- web/html/xui/index.html | 118 ++++++++++++++++++++++------------------ 1 file changed, 65 insertions(+), 53 deletions(-) diff --git a/web/html/xui/index.html b/web/html/xui/index.html index a9391952..3f0a28a9 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -36,8 +36,8 @@ -
CPU: [[ cpuCoreFormat(status.cpuCores) ]]
-
Speed: [[ cpuSpeedFormat(status.cpuSpeedMhz) ]]
+
CPU: [[ cpuCoreFormat(status.cpuCores) ]]
+
Speed: [[ cpuSpeedFormat(status.cpuSpeedMhz) ]]
- + - 3X-UI v{{ .cur_ver }} + 3X-UI v{{ .cur_ver }} Xray v[[ status.xray.version ]] - @panel3xui + @Panel3xui - + {{ i18n "menu.link" }}: {{ i18n "pages.index.logs" }} @@ -90,10 +90,11 @@ {{ i18n "pages.index.backup" }} - + {{ i18n "pages.index.xrayStatus" }}: - [[ status.xray.state ]] + [[ status.xray.state ]] + An error occurred while running Xray @@ -109,7 +110,7 @@ {{ i18n "pages.index.xraySwitch" }} - + {{ i18n "pages.index.operationHours" }}: Xray @@ -118,125 +119,136 @@ [[ formatSecond(status.uptime) ]] - + - {{ i18n "pages.index.systemLoad" }}: [[ status.loads[0] ]] | [[ status.loads[1] ]] | [[ status.loads[2] ]] + {{ i18n "pages.index.systemLoad" }}: + + [[ status.loads[0] ]] | [[ status.loads[1] ]] | [[ status.loads[2] ]] - + - + {{ i18n "usage"}}: - RAM [[ sizeFormat(status.appStats.mem) ]] - - Threads [[ status.appStats.threads ]] - + + RAM [[ sizeFormat(status.appStats.mem) ]] + + + Threads [[ status.appStats.threads ]] + - + - - - - IPv4: + {{ i18n "pages.index.machineInfo" }}: + + + [[ status.publicIP.hostname ]] + + + + + + IPv4 - - - - - IPv6: + + + IPv6 - - - + - + - - TCP: [[ status.tcpCount ]] + + TCP: [[ status.tcpCount ]] - + - - UDP: [[ status.udpCount ]] + + UDP: [[ status.udpCount ]] - + - + - - [[ sizeFormat(status.netIO.up) ]]/s + + + Upload: [[ sizeFormat(status.netIO.up) ]]/s - + - - [[ sizeFormat(status.netIO.down) ]]/s + + + Download: [[ sizeFormat(status.netIO.down) ]]/s - + - + - - [[ sizeFormat(status.netTraffic.sent) ]] + + - + Out: [[ sizeFormat(status.netTraffic.sent) ]] + - - [[ sizeFormat(status.netTraffic.recv) ]] + + - + In: [[ sizeFormat(status.netTraffic.recv) ]] + @@ -374,7 +386,7 @@ 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.publicIP = { hostname:"", ipv4: 0, ipv6: 0 }; this.swap = new CurTotal(0, 0); this.tcpCount = 0; this.udpCount = 0;