feat(xray/dns): align DNS settings with Xray docs + UI polish
- DNS server modal: rename expectIPs -> expectedIPs (per docs); add per-server tag, clientIP, serveStale, serveExpiredTTL, timeoutMs; flip skipFallback default to false; hydration still accepts legacy expectIPs for back-compat. - DNS tab: add hosts editor (domain -> IP/array), serveStale + serveExpiredTTL controls, "Use Preset" button bringing back the legacy preset gallery (Google / Cloudflare / AdGuard + Family variants — fixed AdGuard Family IPs that were wrong in legacy), and a "Delete All" button to wipe the server list at once. - i18n: add 15 new dns.* keys across all 13 locales. - Frontend-wide formatter pass on Vue components (whitespace and attribute layout only, no behavior changes). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -752,9 +752,24 @@
|
||||
"unexpectIPs": "آیپیهای غیرمنتظره",
|
||||
"useSystemHosts": "استفاده از Hosts سیستم",
|
||||
"useSystemHostsDesc": "استفاده از فایل hosts یک سیستم نصبشده",
|
||||
"serveStale": "ارائه نتایج منقضی",
|
||||
"serveStaleDesc": "بازگرداندن نتایج منقضی کش هنگام بروزرسانی در پسزمینه",
|
||||
"serveExpiredTTL": "TTL نتایج منقضی",
|
||||
"serveExpiredTTLDesc": "مدت اعتبار نتایج منقضی به ثانیه؛ ۰ یعنی هرگز منقضی نمیشود",
|
||||
"timeoutMs": "زمان انتظار (میلیثانیه)",
|
||||
"skipFallback": "رد کردن Fallback",
|
||||
"finalQuery": "پرسوجوی نهایی",
|
||||
"hosts": "Hosts",
|
||||
"hostsAdd": "افزودن Host",
|
||||
"hostsEmpty": "هیچ Host تعریف نشده",
|
||||
"hostsDomain": "دامنه (مثلاً domain:example.com)",
|
||||
"hostsValues": "آیپی یا دامنه — تایپ کنید و Enter بزنید",
|
||||
"usePreset": "استفاده از پیشتنظیم",
|
||||
"dnsPresetTitle": "پیشتنظیمهای DNS",
|
||||
"dnsPresetFamily": "خانوادگی"
|
||||
"dnsPresetFamily": "خانوادگی",
|
||||
"clearAll": "حذف همه",
|
||||
"clearAllTitle": "حذف همه سرورهای DNS؟",
|
||||
"clearAllConfirm": "این کار همه سرورهای DNS را از لیست حذف میکند و قابل بازگشت نیست."
|
||||
},
|
||||
"fakedns": {
|
||||
"add": "افزودن دیاناس جعلی",
|
||||
|
||||
Reference in New Issue
Block a user