From 7b15274c842b31e8caded3e7f272237f31824852 Mon Sep 17 00:00:00 2001
From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com>
Date: Mon, 24 Mar 2025 09:45:15 +0000
Subject: chore: moving the settings tabs to a separate directory
---
web/html/xui/settings.html | 542 +--------------------------------------------
1 file changed, 5 insertions(+), 537 deletions(-)
(limited to 'web/html/xui/settings.html')
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index febb26e8..1bf5dab8 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -109,551 +109,19 @@
-
-
-
-
- {{ i18n "pages.settings.remarkModel"}}
-
-
- {{ i18n "pages.settings.sampleRemark"}}: #[[ remarkSample ]]
-
-
-
-
- [[ value ]]
-
-
- [[ key ]]
-
-
-
-
-
- {{ i18n "pages.settings.panelListeningIP"}}
- {{ i18n "pages.settings.panelListeningIPDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.panelListeningDomain"}}
- {{ i18n "pages.settings.panelListeningDomainDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.panelPort"}}
- {{ i18n "pages.settings.panelPortDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.panelUrlPath"}}
- {{ i18n "pages.settings.panelUrlPathDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.sessionMaxAge" }}
- {{ i18n "pages.settings.sessionMaxAgeDesc" }}
-
-
-
-
-
- {{ i18n "pages.settings.pageSize" }}
- {{ i18n "pages.settings.pageSizeDesc" }}
-
-
-
-
-
- {{ i18n "pages.settings.language"}}
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.settings.expireTimeDiff" }}
- {{ i18n "pages.settings.expireTimeDiffDesc" }}
-
-
-
-
-
- {{ i18n "pages.settings.trafficDiff" }}
- {{ i18n "pages.settings.trafficDiffDesc" }}
-
-
-
-
-
-
-
- {{ i18n "pages.settings.publicKeyPath"}}
- {{ i18n "pages.settings.publicKeyPathDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.privateKeyPath"}}
- {{ i18n "pages.settings.privateKeyPathDesc"}}
-
-
-
-
-
-
-
- {{ i18n "pages.settings.externalTrafficInformEnable"}}
- {{ i18n "pages.settings.externalTrafficInformEnableDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.externalTrafficInformURI"}}
- {{ i18n "pages.settings.externalTrafficInformURIDesc"}}
-
-
-
-
-
-
-
- {{ i18n "pages.settings.timeZone"}}
- {{ i18n "pages.settings.timeZoneDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.datepicker"}}
- {{ i18n "pages.settings.datepickerDescription"}}
-
-
-
-
-
-
-
-
-
-
+ {{ template "settings/panel/general" . }}
-
-
-
- {{ i18n "pages.settings.oldUsername"}}
-
-
-
-
-
- {{ i18n "pages.settings.currentPassword"}}
-
-
-
-
-
- {{ i18n "pages.settings.newUsername"}}
-
-
-
-
-
- {{ i18n "pages.settings.newPassword"}}
-
-
-
-
-
-
- {{ i18n "confirm" }}
-
-
-
-
-
- {{ i18n "pages.settings.security.loginSecurity" }}
- {{ i18n "pages.settings.security.loginSecurityDesc" }}
-
-
-
-
-
-
- {{ i18n "pages.settings.security.secretToken" }}
- {{ i18n "pages.settings.security.secretTokenDesc" }}
-
-
-
-
-
-
- {{ i18n "confirm" }}
-
-
-
-
+ {{ template "settings/panel/security" . }}
-
-
-
- {{ i18n "pages.settings.telegramBotEnable" }}
- {{ i18n "pages.settings.telegramBotEnableDesc" }}
-
-
-
-
-
- {{ i18n "pages.settings.telegramToken"}}
- {{ i18n "pages.settings.telegramTokenDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.telegramChatId"}}
- {{ i18n "pages.settings.telegramChatIdDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.telegramBotLanguage"}}
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.settings.telegramNotifyTime"}}
- {{ i18n "pages.settings.telegramNotifyTimeDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.tgNotifyBackup" }}
- {{ i18n "pages.settings.tgNotifyBackupDesc" }}
-
-
-
-
-
- {{ i18n "pages.settings.tgNotifyLogin" }}
- {{ i18n "pages.settings.tgNotifyLoginDesc" }}
-
-
-
-
-
- {{ i18n "pages.settings.tgNotifyCpu" }}
- {{ i18n "pages.settings.tgNotifyCpuDesc" }}
-
-
-
-
-
-
-
- {{ i18n "pages.settings.telegramProxy"}}
- {{ i18n "pages.settings.telegramProxyDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.telegramAPIServer"}}
- {{ i18n "pages.settings.telegramAPIServerDesc"}}
-
-
-
-
-
-
+ {{ template "settings/panel/telegram" . }}
-
-
-
- {{ i18n "pages.settings.subEnable"}}
- {{ i18n "pages.settings.subEnableDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.subTitle"}}
- {{ i18n "pages.settings.subTitleDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.subListen"}}
- {{ i18n "pages.settings.subListenDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.subDomain"}}
- {{ i18n "pages.settings.subDomainDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.subPort"}}
- {{ i18n "pages.settings.subPortDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.subPath"}}
- {{ i18n "pages.settings.subPathDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.subURI"}}
- {{ i18n "pages.settings.subURIDesc"}}
-
-
-
-
-
-
-
- {{ i18n "pages.settings.subEncrypt"}}
- {{ i18n "pages.settings.subEncryptDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.subShowInfo"}}
- {{ i18n "pages.settings.subShowInfoDesc"}}
-
-
-
-
-
-
-
- {{ i18n "pages.settings.subCertPath"}}
- {{ i18n "pages.settings.subCertPathDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.subKeyPath"}}
- {{ i18n "pages.settings.subKeyPathDesc"}}
-
-
-
-
-
-
-
- {{ i18n "pages.settings.subUpdates"}}
- {{ i18n "pages.settings.subUpdatesDesc"}}
-
-
-
-
-
-
+ {{ template "settings/panel/subscription/general" . }}
-
-
-
- {{ i18n "pages.settings.subPath"}}
- {{ i18n "pages.settings.subPathDesc"}}
-
-
-
-
-
- {{ i18n "pages.settings.subURI"}}
- {{ i18n "pages.settings.subURIDesc"}}
-
-
-
-
-
-
-
- {{ i18n "pages.settings.fragment"}}
- {{ i18n "pages.settings.fragmentDesc"}}
-
-
-
-
-
-
-
-
- Packets
-
-
-
-
-
- Length
-
-
-
-
-
- Interval
-
-
-
-
-
-
-
-
-
-
- Noises
- {{ i18n "pages.settings.noisesDesc"}}
-
-
-
-
-
-
-
-
- Type
-
- updateNoiseType(index, value)">
-
- [[ p ]]
-
-
-
-
- Packet
-
- updateNoisePacket(index, event.target.value)" placeholder="5-10">
-
-
-
- Delay (ms)
-
- updateNoiseDelay(index, event.target.value)" placeholder="10-20">
-
-
-
- Remove
-
-
-
- Add Noise
-
-
-
-
- {{ i18n "pages.settings.mux"}}
- {{ i18n "pages.settings.muxDesc"}}
-
-
-
-
-
-
-
-
- Concurrency
-
-
-
-
-
- xudp Concurrency
-
-
-
-
-
- xudp UDP 443
-
-
- [[ p ]]
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.settings.direct"}}
- {{ i18n "pages.settings.directDesc"}}
-
-
-
-
-
-
-
-
- {{ i18n "pages.xray.directips" }}
-
-
- [[ p.label ]]
-
-
-
-
- {{ i18n "pages.xray.directdomains" }}
-
-
- [[ p.label ]]
-
-
-
-
-
-
-
-
+ {{ template "settings/panel/subscription/json" . }}
--
cgit v1.2.3
From 3ea05d30c14cea2e245234a232671560d40c4737 Mon Sep 17 00:00:00 2001
From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com>
Date: Mon, 24 Mar 2025 11:19:27 +0000
Subject: chore: transforming a common sidebar into a separate component - also
added saving collapsed state
---
web/html/xui/settings.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'web/html/xui/settings.html')
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index 1bf5dab8..336a44c3 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -70,7 +70,7 @@
- {{ template "commonSider" . }}
+
@@ -131,6 +131,7 @@
{{template "js" .}}
+{{template "component/aSidebar" .}}
{{template "component/aThemeSwitch" .}}
{{template "component/aPasswordInput" .}}
{{template "component/aSettingListItem" .}}
@@ -139,7 +140,6 @@
delimiters: ['[[', ']]'],
el: '#app',
data: {
- siderDrawer,
themeSwitcher,
spinning: false,
changeSecret: false,
--
cgit v1.2.3
From a02bf3195d9549dcf58e00e8c1eb2be295cdbe23 Mon Sep 17 00:00:00 2001
From: danilshishkevich
Date: Mon, 24 Mar 2025 12:22:12 +0000
Subject: chore: improve styles - elements with class `.collapse-title` are
missing - changed paddings in `.ant-xray-version-list-item` element
---
web/html/xui/settings.html | 14 --------------
1 file changed, 14 deletions(-)
(limited to 'web/html/xui/settings.html')
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index 336a44c3..cab41e5a 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -53,20 +53,6 @@
color: inherit;
font-size: 24px;
}
- .collapse-title {
- color: inherit;
- font-weight: bold;
- font-size: 18px;
- padding: 10px 20px;
- border-bottom: 2px solid;
- }
- .collapse-title>i {
- color: inherit;
- font-size: 24px;
- }
- .ant-collapse-content-box .ant-list-item {
- border-bottom: none !important;
- }
--
cgit v1.2.3