From c13db7922edd401c57a3077090af3816aed25373 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:17:25 +0700 Subject: [PATCH] Pretty Panel and Xray settings (#2726) * chore: refactor `setting-list-item` component * chore: remove padding * chore: replace settings list with settings collapse panels * chore: add missing translations * chore: fix translation --- web/html/xui/component/setting.html | 50 +- web/html/xui/settings.html | 822 ++++++++++++++++----------- web/html/xui/xray.html | 470 +++++++-------- web/translation/translate.en_US.toml | 12 +- web/translation/translate.es_ES.toml | 12 +- web/translation/translate.fa_IR.toml | 12 +- web/translation/translate.id_ID.toml | 12 +- web/translation/translate.ja_JP.toml | 12 +- web/translation/translate.pt_BR.toml | 12 +- web/translation/translate.ru_RU.toml | 12 +- web/translation/translate.tr_TR.toml | 12 +- web/translation/translate.uk_UA.toml | 12 +- web/translation/translate.vi_VN.toml | 12 +- web/translation/translate.zh_CN.toml | 12 +- web/translation/translate.zh_TW.toml | 12 +- 15 files changed, 841 insertions(+), 645 deletions(-) diff --git a/web/html/xui/component/setting.html b/web/html/xui/component/setting.html index 8adc000c..bc2c6e42 100644 --- a/web/html/xui/component/setting.html +++ b/web/html/xui/component/setting.html @@ -1,26 +1,18 @@ {{define "component/settingListItem"}} - - - - - - - - - + + - + + + + - - - + @@ -28,9 +20,21 @@ {{define "component/setting"}} {{end}} diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 923a040c..1cccd28d 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -108,16 +108,17 @@ - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {{ i18n "confirm" }} + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + {{ i18n "confirm" }} - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove + + + + Add Noise + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index 45ab621f..ac8ed80a 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -114,44 +114,54 @@ - - - - - - - - + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + @@ -162,68 +172,52 @@ - - - - - - - - + + + + + + @@ -234,10 +228,20 @@ - - - - + + + + + + + + + + @@ -248,43 +252,22 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - - - - - - - - - + + + + - - - WARP - + + + + @@ -670,78 +609,61 @@ - - - - - - - - - -