From 729d8549e2b536a10c402a88e0d4cfde9e4baf3f Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Mon, 4 Dec 2023 19:17:38 +0100 Subject: new frontend and mobile view #1286 --- web/html/xui/index.html | 73 ++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 37 deletions(-) (limited to 'web/html/xui/index.html') diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 62e60297..cafdb8f9 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -6,6 +6,9 @@ .ant-layout-content { margin: 24px 16px; } + .ant-card-hoverable { + margin-inline: 0.3rem; + } } .ant-col-sm-24 { @@ -18,21 +21,20 @@ - + {{ template "commonSider" . }} - + - +
CPU: [[ cpuCoreFormat(status.cpuCores) ]]
Speed: [[ cpuSpeedFormat(status.cpuSpeedMhz) ]]
@@ -40,7 +42,6 @@
{{ i18n "pages.index.memory"}}: [[ sizeFormat(status.mem.current) ]] / [[ sizeFormat(status.mem.total) ]] @@ -53,7 +54,6 @@
Swap: [[ sizeFormat(status.swap.current) ]] / [[ sizeFormat(status.swap.total) ]] @@ -62,7 +62,6 @@
{{ i18n "pages.index.hard"}}: [[ sizeFormat(status.disk.current) ]] / [[ sizeFormat(status.disk.total) ]] @@ -77,22 +76,22 @@ - + 3X: v{{ .cur_ver }} Xray: v[[ status.xray.version ]] @panel3xui - + {{ i18n "menu.link" }}: - {{ i18n "pages.index.logs" }} - {{ i18n "pages.index.config" }} - {{ i18n "pages.index.backup" }} + {{ i18n "pages.index.logs" }} + {{ i18n "pages.index.config" }} + {{ i18n "pages.index.backup" }} - + {{ i18n "pages.index.xrayStatus" }}: [[ status.xray.state ]] @@ -101,13 +100,13 @@ - {{ i18n "pages.index.stopXray" }} - {{ i18n "pages.index.restartXray" }} - {{ i18n "pages.index.xraySwitch" }} + {{ i18n "pages.index.stopXray" }} + {{ i18n "pages.index.restartXray" }} + {{ i18n "pages.index.xraySwitch" }} - + {{ i18n "pages.index.operationHours" }}: Xray: [[ formatSecond(status.appStats.uptime) ]] @@ -116,7 +115,7 @@ - + {{ i18n "pages.index.systemLoad" }}: [[ status.loads[0] ]] | [[ status.loads[1] ]] | [[ status.loads[2] ]]