From 697cd5e6d9d8cdacb1cf36fb485667e2409eba62 Mon Sep 17 00:00:00 2001
From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com>
Date: Sat, 8 Mar 2025 22:41:27 +0700
Subject: [PATCH] Code refactoring (#2739)
* refactor: switching to the use of typed props
* refactor: `password-input` -> `a-password-input`
* fix: qr modal copy error
---
web/html/common/qrcode_modal.html | 6 +--
web/html/login.html | 10 ++--
web/html/xui/client_bulk_modal.html | 4 +-
web/html/xui/common_sider.html | 4 +-
web/html/xui/component/password.html | 52 +++++++++++++------
web/html/xui/component/persianDatepicker.html | 28 +++++++---
web/html/xui/component/setting.html | 21 +++++++-
web/html/xui/component/sortableTable.html | 38 ++++++++++----
web/html/xui/component/themeSwitch.html | 25 +++++----
web/html/xui/form/client.html | 4 +-
web/html/xui/form/inbound.html | 4 +-
web/html/xui/settings.html | 4 +-
web/html/xui/xray.html | 2 +-
13 files changed, 136 insertions(+), 66 deletions(-)
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html
index 914290f6..5ea1ca95 100644
--- a/web/html/common/qrcode_modal.html
+++ b/web/html/common/qrcode_modal.html
@@ -10,7 +10,7 @@
{{ i18n "pages.settings.subSettings"}}
-
+
@@ -18,7 +18,7 @@
{{ i18n "pages.settings.subSettings"}} Json
-
+
@@ -27,7 +27,7 @@
[[ row.remark ]]
-
+
diff --git a/web/html/login.html b/web/html/login.html
index 82c9afd5..fc48b9ec 100644
--- a/web/html/login.html
+++ b/web/html/login.html
@@ -422,16 +422,16 @@
-
-
+
-
-
+
@@ -461,7 +461,7 @@
-
+
diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html
index 74e49225..82e68c74 100644
--- a/web/html/xui/client_bulk_modal.html
+++ b/web/html/xui/client_bulk_modal.html
@@ -106,9 +106,9 @@
-
-
+
diff --git a/web/html/xui/common_sider.html b/web/html/xui/common_sider.html
index df659489..1d5fe075 100644
--- a/web/html/xui/common_sider.html
+++ b/web/html/xui/common_sider.html
@@ -34,7 +34,7 @@
{{define "commonSider"}}
-
+
key.startsWith('http') ? window.open(key) : location.href = key">
{{template "menuItems" .}}
@@ -43,7 +43,7 @@
-
+
key.startsWith('http') ? window.open(key) : location.href = key">
{{template "menuItems" .}}
diff --git a/web/html/xui/component/password.html b/web/html/xui/component/password.html
index 37e4c793..0fea1430 100644
--- a/web/html/xui/component/password.html
+++ b/web/html/xui/component/password.html
@@ -1,26 +1,46 @@
{{define "component/passwordInput"}}
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
{{end}}
{{define "component/password"}}
-{{end}}
+{{end}}
\ No newline at end of file
diff --git a/web/html/xui/component/setting.html b/web/html/xui/component/setting.html
index bc2c6e42..85220d25 100644
--- a/web/html/xui/component/setting.html
+++ b/web/html/xui/component/setting.html
@@ -21,7 +21,24 @@
{{define "component/setting"}}
-{{end}}
+{{end}}
\ No newline at end of file
diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html
index c2bcace1..3aff67e0 100644
--- a/web/html/xui/form/client.html
+++ b/web/html/xui/form/client.html
@@ -154,8 +154,8 @@
-
+
Expired
diff --git a/web/html/xui/form/inbound.html b/web/html/xui/form/inbound.html
index 091393ff..e0521c69 100644
--- a/web/html/xui/form/inbound.html
+++ b/web/html/xui/form/inbound.html
@@ -57,9 +57,9 @@
-
-
+
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index e8fa7e11..3bfb32a9 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -271,7 +271,7 @@
{{ i18n "pages.settings.currentPassword"}}
-
+
@@ -283,7 +283,7 @@
{{ i18n "pages.settings.newPassword"}}
-
+
diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html
index d101bdcd..41bbd214 100644
--- a/web/html/xui/xray.html
+++ b/web/html/xui/xray.html
@@ -348,7 +348,7 @@
:indent-size="0"
v-on:onSort="replaceRule">
-
+
[[ index+1 ]]
e.preventDefault()" type="more" style="font-size: 16px; text-decoration: bold;">