From d642774a4493912e76dbc294dce834cf5b635324 Mon Sep 17 00:00:00 2001
From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com>
Date: Sat, 21 Jun 2025 15:38:43 +0700
Subject: refactor: use new page templates
---
web/html/index.html | 744 ++++++++++++++++++++++++++--------------------------
1 file changed, 371 insertions(+), 373 deletions(-)
(limited to 'web/html/index.html')
diff --git a/web/html/index.html b/web/html/index.html
index 2a6fb0ad..61e3947f 100644
--- a/web/html/index.html
+++ b/web/html/index.html
@@ -1,6 +1,4 @@
-
-
-{{template "head" .}}
+{{ template "page/head_start" .}}
+{{ template "page/head_end" .}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+{{ template "page/body_start" .}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ i18n "pages.index.cpu" }}: [[ CPUFormatter.cpuCoreFormat(status.cpuCores) ]]
+
+
+
+ {{ i18n "pages.index.logicalProcessors" }}: [[ (status.logicalPro) ]]
+ {{ i18n "pages.index.frequency" }}: [[ CPUFormatter.cpuSpeedFormat(status.cpuSpeedMhz) ]]
+
+
+
+
+
+
+
+ {{ i18n "pages.index.memory"}}: [[ SizeFormatter.sizeFormat(status.mem.current) ]] / [[ SizeFormatter.sizeFormat(status.mem.total) ]]
+
+
+
+
+
+
+
+
+
+ {{ i18n "pages.index.swap" }}: [[ SizeFormatter.sizeFormat(status.swap.current) ]] / [[ SizeFormatter.sizeFormat(status.swap.total) ]]
+
+
+
+
+
+ {{ i18n "pages.index.storage"}}: [[ SizeFormatter.sizeFormat(status.disk.current) ]] / [[ SizeFormatter.sizeFormat(status.disk.total) ]]
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
{{ i18n "pages.index.cpu" }}: [[ CPUFormatter.cpuCoreFormat(status.cpuCores) ]]
-
-
-
- {{ i18n "pages.index.logicalProcessors" }}: [[ (status.logicalPro) ]]
- {{ i18n "pages.index.frequency" }}: [[ CPUFormatter.cpuSpeedFormat(status.cpuSpeedMhz) ]]
-
-
-
-
-
-
-
- {{ i18n "pages.index.memory"}}: [[ SizeFormatter.sizeFormat(status.mem.current) ]] / [[ SizeFormatter.sizeFormat(status.mem.total) ]]
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.index.swap" }}: [[ SizeFormatter.sizeFormat(status.swap.current) ]] / [[ SizeFormatter.sizeFormat(status.swap.total) ]]
-
-
-
-
-
- {{ i18n "pages.index.storage"}}: [[ SizeFormatter.sizeFormat(status.disk.current) ]] / [[ SizeFormatter.sizeFormat(status.disk.total) ]]
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.index.xrayStatus" }}
-
- v[[ status.xray.version ]]
-
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.index.xrayErrorPopoverTitle" }}
-
-
-
-
-
-
-
- [[ line ]]
-
-
-
-
+
+
+
+
+ {{ i18n "pages.index.xrayStatus" }}
+
+ v[[ status.xray.version ]]
+
+
+
+
+
+
-
-
-
- {{ i18n "pages.index.stopXray" }}
-
-
-
- {{ i18n "pages.index.restartXray" }}
-
-
-
-
- [[ status.xray.version != 'Unknown' ? `v${status.xray.version}` : '{{ i18n "pages.index.xraySwitch" }}' ]]
+
+
+
+
+
+ {{ i18n "pages.index.xrayErrorPopoverTitle" }}
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.index.logs" }}
-
-
-
- {{ i18n "pages.index.config" }}
-
-
-
- {{ i18n "pages.index.backup" }}
-
+
+ [[ line ]]
+
+
+
-
-
-
-
-
-
- v{{ .cur_ver }}
-
-
-
-
- @XrayUI
-
-
-
-
- {{ i18n "pages.index.documentation" }}
-
-
-
-
-
-
- Xray: [[ TimeFormatter.formatSecond(status.appStats.uptime) ]]
- OS: [[ TimeFormatter.formatSecond(status.uptime) ]]
-
-
-
-
+
+
+
+
+ {{ i18n "pages.index.stopXray" }}
+
+
+
+ {{ i18n "pages.index.restartXray" }}
+
+
+
+
+ [[ status.xray.version != 'Unknown' ? `v${status.xray.version}` : '{{ i18n "pages.index.xraySwitch" }}' ]]
+
+
+
+
+
+
+
+
+
+
+ {{ i18n "pages.index.logs" }}
+
+
+
+ {{ i18n "pages.index.config" }}
+
+
+
+ {{ i18n "pages.index.backup" }}
+
+
+
+
+
+
+
-
- [[ status.loads[0] ]] | [[ status.loads[1] ]] | [[ status.loads[2] ]]
-
- {{ i18n "pages.index.systemLoadDesc" }}
-
-
+ v{{ .cur_ver }}
+
+
+
+
+ @XrayUI
-
-
-
-
- {{ i18n "pages.index.memory" }}: [[ SizeFormatter.sizeFormat(status.appStats.mem) ]]
- {{ i18n "pages.index.threads" }}: [[ status.appStats.threads ]]
-
-
-
-
-
-
-
-
-
-
-
- /s
-
-
-
-
-
-
-
-
-
- /s
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.index.toggleIpVisibility" }}
+
+
+
+ {{ i18n "pages.index.documentation" }}
+
+
+
+
+
+
+ Xray: [[ TimeFormatter.formatSecond(status.appStats.uptime) ]]
+ OS: [[ TimeFormatter.formatSecond(status.uptime) ]]
+
+
+
+
+
+
+ [[ status.loads[0] ]] | [[ status.loads[1] ]] | [[ status.loads[2] ]]
+
+ {{ i18n "pages.index.systemLoadDesc" }}
+
+
+
+
+
+
+
+ {{ i18n "pages.index.memory" }}: [[ SizeFormatter.sizeFormat(status.appStats.mem) ]]
+ {{ i18n "pages.index.threads" }}: [[ status.appStats.threads ]]
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- versionModal.visible = false" :class="themeSwitcher.currentTheme" footer="">
-
-
-
-
-
- [[ version ]]
-
-
-
-
-
-
-
- [[ file ]]
-
-
-
-
-
-
- logModal.visible = false"
- :class="themeSwitcher.currentTheme"
- width="800px" footer="">
-
- {{ i18n "pages.index.logs" }}
-
-
-
-
-
-
-
- 10
- 20
- 50
- 100
- 500
-
-
- Debug
- Info
- Notice
- Warning
- Error
-
-
-
-
- SysLog
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.index.exportDatabase" }}
- {{ i18n "pages.index.exportDatabaseDesc" }}
-
-
-
-
-
- {{ i18n "pages.index.importDatabase" }}
- {{ i18n "pages.index.importDatabaseDesc" }}
-
-
-
-
-
+
+ /s
+
+
+
+
+
+
+
+
+
+ /s
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n "pages.index.toggleIpVisibility" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-{{template "js" .}}
+ versionModal.visible = false" :class="themeSwitcher.currentTheme" footer="">
+
+
+
+
+
+ [[ version ]]
+
+
+
+
+
+
+
+ [[ file ]]
+
+
+
+
+
+
+ logModal.visible = false"
+ :class="themeSwitcher.currentTheme"
+ width="800px" footer="">
+
+ {{ i18n "pages.index.logs" }}
+
+
+
+
+
+
+
+ 10
+ 20
+ 50
+ 100
+ 500
+
+
+ Debug
+ Info
+ Notice
+ Warning
+ Error
+
+
+
+
+ SysLog
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n "pages.index.exportDatabase" }}
+ {{ i18n "pages.index.exportDatabaseDesc" }}
+
+
+
+
+
+ {{ i18n "pages.index.importDatabase" }}
+ {{ i18n "pages.index.importDatabaseDesc" }}
+
+
+
+
+
+
+{{template "page/body_scripts" .}}
{{template "component/aSidebar" .}}
{{template "component/aThemeSwitch" .}}
{{template "component/aCustomStatistic" .}}
@@ -788,5 +787,4 @@
},
});
-
-
+{{ template "page/body_end" .}}
\ No newline at end of file
--
cgit v1.2.3