From bea19a263db88fef44b4356082b199fbfcc39a25 Mon Sep 17 00:00:00 2001
From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com>
Date: Sun, 6 Apr 2025 16:40:33 +0700
Subject: Code refactoring (#2865)
* refactor: use vue inline styles in entire application
* refactor: setting row in dashboard page
* refactor: use blob for download file in text modal
* refactor: move all html templates in `web/html` folder
* refactor: `DeviceUtils` -> `MediaQueryMixin`
The transition to mixins has been made, as they can update themselves.
* chore: pretty right buttons in `outbounds` tab in xray settings
* refactor: add translations for system status
* refactor: adjust gutter spacing in setting list item
* refactor: use native `a-input-password` for password field
* chore: return old system status
with new translations
* chore: add missing translation
---
.../xui/settings/panel/subscription/general.html | 98 -----------
web/html/xui/settings/panel/subscription/json.html | 180 ---------------------
2 files changed, 278 deletions(-)
delete mode 100644 web/html/xui/settings/panel/subscription/general.html
delete mode 100644 web/html/xui/settings/panel/subscription/json.html
(limited to 'web/html/xui/settings/panel/subscription')
diff --git a/web/html/xui/settings/panel/subscription/general.html b/web/html/xui/settings/panel/subscription/general.html
deleted file mode 100644
index c5577c88..00000000
--- a/web/html/xui/settings/panel/subscription/general.html
+++ /dev/null
@@ -1,98 +0,0 @@
-{{define "settings/panel/subscription/general"}}
-
-
-
- {{ 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"}}
-
-
-
-
-
-
-{{end}}
\ No newline at end of file
diff --git a/web/html/xui/settings/panel/subscription/json.html b/web/html/xui/settings/panel/subscription/json.html
deleted file mode 100644
index 4f0ee302..00000000
--- a/web/html/xui/settings/panel/subscription/json.html
+++ /dev/null
@@ -1,180 +0,0 @@
-{{define "settings/panel/subscription/json"}}
-
-
-
- {{ 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 ]]
-
-
-
-
-
-
-
-
-
-{{end}}
\ No newline at end of file
--
cgit v1.2.3