From 4b6e7fae283e6954409136ac58502c496532e41e Mon Sep 17 00:00:00 2001
From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com>
Date: Mon, 16 Jun 2025 05:13:54 +0000
Subject: [PATCH] chore: add `DNS Presets` modal
---
web/html/modals/dns_presets_modal.html | 110 +++++++++++++++++++++++++
web/html/settings/xray/dns.html | 9 +-
web/html/xray.html | 11 +++
web/translation/translate.ar_EG.toml | 3 +
web/translation/translate.en_US.toml | 3 +
web/translation/translate.es_ES.toml | 3 +
web/translation/translate.fa_IR.toml | 3 +
web/translation/translate.id_ID.toml | 3 +
web/translation/translate.ja_JP.toml | 3 +
web/translation/translate.pt_BR.toml | 3 +
web/translation/translate.ru_RU.toml | 3 +
web/translation/translate.tr_TR.toml | 3 +
web/translation/translate.uk_UA.toml | 3 +
web/translation/translate.vi_VN.toml | 3 +
web/translation/translate.zh_CN.toml | 3 +
web/translation/translate.zh_TW.toml | 3 +
16 files changed, 166 insertions(+), 3 deletions(-)
create mode 100644 web/html/modals/dns_presets_modal.html
diff --git a/web/html/modals/dns_presets_modal.html b/web/html/modals/dns_presets_modal.html
new file mode 100644
index 00000000..010b973a
--- /dev/null
+++ b/web/html/modals/dns_presets_modal.html
@@ -0,0 +1,110 @@
+{{define "modals/dnsPresetsModal"}}
+
+
+
+
+
+
+ [[ dns.name ]]
+ [[ dns.family ? '{{ i18n "pages.xray.dns.dnsPresetFamily" }}' : 'DNS' ]]
+
+
+
+ {{ i18n "install" }}
+
+
+
+
+
+
+
+
+
+{{end}}
\ No newline at end of file
diff --git a/web/html/settings/xray/dns.html b/web/html/settings/xray/dns.html
index d442ef35..ba768cb8 100644
--- a/web/html/settings/xray/dns.html
+++ b/web/html/settings/xray/dns.html
@@ -110,9 +110,12 @@
-
- {{ i18n "pages.xray.dns.add" }}
-
+
+
+ {{ i18n "pages.xray.dns.add" }}
+
+
+
diff --git a/web/html/xray.html b/web/html/xray.html
index 0a09c399..787d1503 100644
--- a/web/html/xray.html
+++ b/web/html/xray.html
@@ -128,6 +128,7 @@
{{template "modals/reverseModal"}}
{{template "modals/balancerModal"}}
{{template "modals/dnsModal"}}
+{{template "modals/dnsPresetsModal"}}
{{template "modals/fakednsModal"}}
{{template "modals/warpModal"}}