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 --- web/html/settings/panel/general.html | 149 ++++++++++++++++++ web/html/settings/panel/security.html | 60 ++++++++ web/html/settings/panel/subscription/general.html | 98 ++++++++++++ web/html/settings/panel/subscription/json.html | 180 ++++++++++++++++++++++ web/html/settings/panel/telegram.html | 87 +++++++++++ 5 files changed, 574 insertions(+) create mode 100644 web/html/settings/panel/general.html create mode 100644 web/html/settings/panel/security.html create mode 100644 web/html/settings/panel/subscription/general.html create mode 100644 web/html/settings/panel/subscription/json.html create mode 100644 web/html/settings/panel/telegram.html (limited to 'web/html/settings/panel') diff --git a/web/html/settings/panel/general.html b/web/html/settings/panel/general.html new file mode 100644 index 00000000..df011521 --- /dev/null +++ b/web/html/settings/panel/general.html @@ -0,0 +1,149 @@ +{{define "settings/panel/general"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/settings/panel/security.html b/web/html/settings/panel/security.html new file mode 100644 index 00000000..48e7796f --- /dev/null +++ b/web/html/settings/panel/security.html @@ -0,0 +1,60 @@ +{{define "settings/panel/security"}} + + + + + + + + + + + + + + + + + + + + + {{ i18n "confirm" }} + + + + + + + + + + + + + + + + + + {{ i18n "confirm"}} + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/settings/panel/subscription/general.html b/web/html/settings/panel/subscription/general.html new file mode 100644 index 00000000..b6e616dd --- /dev/null +++ b/web/html/settings/panel/subscription/general.html @@ -0,0 +1,98 @@ +{{define "settings/panel/subscription/general"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/settings/panel/subscription/json.html b/web/html/settings/panel/subscription/json.html new file mode 100644 index 00000000..a3729984 --- /dev/null +++ b/web/html/settings/panel/subscription/json.html @@ -0,0 +1,180 @@ +{{define "settings/panel/subscription/json"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove + + + + Add Noise + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/settings/panel/telegram.html b/web/html/settings/panel/telegram.html new file mode 100644 index 00000000..248831fd --- /dev/null +++ b/web/html/settings/panel/telegram.html @@ -0,0 +1,87 @@ +{{define "settings/panel/telegram"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file -- cgit v1.2.3