From e675c1d76213c9294abcdc0e44ca4cb7059f4548 Mon Sep 17 00:00:00 2001
From: TaraRostami <132676256+TaraRostami@users.noreply.github.com>
Date: Sat, 15 Mar 2025 09:09:36 -0500
Subject: [PATCH] Minor fixes and improvements
---
web/html/xui/index.html | 287 ++++++++++++++-------------
web/translation/translate.en_US.toml | 6 +-
2 files changed, 154 insertions(+), 139 deletions(-)
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index bd7d3878..ab7ebb8d 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -21,19 +21,23 @@
}
.ant-backup-list-item {
gap: 10px;
- user-select: none;
- cursor: pointer;
}
.dark .ant-backup-list-item svg,
- .dark .ant-card-actions>li>*,
.dark .ant-badge-status-text,
- .dark .ant-statistic-title,
.dark .ant-statistic-content,
.dark .ant-card-extra {
- color: var(--dark-color-text-primary) !important;
+ color: var(--dark-color-text-primary);
}
- .dark .ant-card-actions>li>*:hover {
- color: var(--color-primary-100) !important;
+ .dark .ant-statistic-title,
+ .dark .ant-card-actions>li {
+ color: rgba(255, 255, 255, 0.55);
+ }
+ .dark .ant-radio-inner {
+ background-color: var(--dark-color-surface-100);
+ border-color: var(--dark-color-surface-600);
+ }
+ .dark .ant-radio-checked .ant-radio-inner {
+ border-color: var(--color-primary-100);
}
.dark .ant-backup-list,
.dark .ant-xray-version-list,
@@ -42,17 +46,35 @@
border-color: var(--dark-color-stroke);
}
.ant-card-actions {
- background: transparent !important;
+ background: transparent;
}
- .ant-statistic-content-prefix {
- font-size: 20px;
- }
- .ant-statistic-content-value {
- font-size: 18px;
+ .ant-statistic-content {
+ font-size: 16px;
}
.ip-hidden {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
filter: blur(10px);
}
+ .running-animation .ant-badge-status-dot {
+ animation: runningAnimation 1.2s linear infinite;
+ }
+ .running-animation .ant-badge-status-processing:after {
+ border-color: var(--color-primary-100);
+ }
+ @keyframes runningAnimation {
+ 0%,
+ 50%,
+ 100% {
+ transform: scale(1);
+ opacity: 1;
+ }
+ 10% {
+ transform: scale(1.5);
+ opacity: .2;
+ }
+ }
@@ -69,71 +91,69 @@
show-icon closable>
-
-
-
-
-
-
-
-
- CPU: [[ CPUFormatter.cpuCoreFormat(status.cpuCores) ]]
-
-
- Logical Processors: [[ (status.logicalPro) ]]
- Speed: [[ CPUFormatter.cpuSpeedFormat(status.cpuSpeedMhz) ]]
-
-
-
-
-
-
- {{ i18n "pages.index.memory"}}: [[ SizeFormatter.sizeFormat(status.mem.current) ]] / [[ SizeFormatter.sizeFormat(status.mem.total) ]]
-
-
-
-
-
-
-
-
-
- Swap: [[ SizeFormatter.sizeFormat(status.swap.current) ]] / [[ SizeFormatter.sizeFormat(status.swap.total) ]]
-
-
-
-
-
- {{ i18n "pages.index.hard"}}: [[ SizeFormatter.sizeFormat(status.disk.current) ]] / [[ SizeFormatter.sizeFormat(status.disk.total) ]]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CPU: [[ CPUFormatter.cpuCoreFormat(status.cpuCores) ]]
+
+
+ Logical Processors: [[ (status.logicalPro) ]]
+ Speed: [[ CPUFormatter.cpuSpeedFormat(status.cpuSpeedMhz) ]]
+
+
+
+
+
+
+ {{ i18n "pages.index.memory"}}: [[ SizeFormatter.sizeFormat(status.mem.current) ]] / [[ SizeFormatter.sizeFormat(status.mem.total) ]]
+
+
+
+
+
+
+
+
+
+ Swap: [[ SizeFormatter.sizeFormat(status.swap.current) ]] / [[ SizeFormatter.sizeFormat(status.swap.total) ]]
+
+
+
+
+
+ {{ i18n "pages.index.hard"}}: [[ SizeFormatter.sizeFormat(status.disk.current) ]] / [[ SizeFormatter.sizeFormat(status.disk.total) ]]
+
+
+
+
+
+
+
-
+
@@ -211,58 +231,10 @@
Threads: [[ status.appStats.threads ]]
-
-
-
-
-
- {{ i18n "pages.index.toggleIpVisibility" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -272,7 +244,7 @@
-
+
@@ -288,14 +260,14 @@
-
+
-
+
@@ -305,6 +277,54 @@
+
+
+
+
+
+ {{ i18n "pages.index.toggleIpVisibility" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -316,10 +336,8 @@
-
-
- [[ version ]]
-
+
+ [[ version ]]
@@ -376,22 +394,19 @@
footer=""
:class="themeSwitcher.currentTheme">
-
+
{{ i18n "pages.index.exportDatabase" }}
{{ i18n "pages.index.exportDatabaseDesc" }}
-
+
-
+
{{ i18n "pages.index.importDatabase" }}
{{ i18n "pages.index.importDatabaseDesc" }}
-
-
-
-
+
diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml
index f3c88f57..7164c231 100644
--- a/web/translation/translate.en_US.toml
+++ b/web/translation/translate.en_US.toml
@@ -100,12 +100,12 @@
"systemLoad" = "System Load"
"systemLoadDesc" = "System load average for the past 1, 5, and 15 minutes"
"connectionCount" = "Connection Stats"
-"ipAddresses" = "IP addresses"
+"ipAddresses" = "IP Addresses"
"toggleIpVisibility" = "Toggle visibility of the IP"
-"overallSpeed" = "Overall speed"
+"overallSpeed" = "Overall Speed"
"upload" = "Upload"
"download" = "Download"
-"totalData" = "Total data"
+"totalData" = "Total Data"
"sent" = "Sent"
"received" = "Received"
"xraySwitchVersionDialog" = "Change Xray Version"