fix(dns-viewer): disable spellcheck on DNS viewer text fields #5948

Closes #5948
This commit is contained in:
Slinetrac 2025-12-30 13:44:56 +08:00
parent 0cde6cfce9
commit c80c659180
No known key found for this signature in database

View File

@ -685,6 +685,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
<TextField <TextField
size="small" size="small"
autoComplete="off" autoComplete="off"
spellCheck="false"
value={values.listen} value={values.listen}
onChange={handleChange("listen")} onChange={handleChange("listen")}
placeholder=":53" placeholder=":53"
@ -714,6 +715,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
<TextField <TextField
size="small" size="small"
autoComplete="off" autoComplete="off"
spellCheck="false"
value={values.fakeIpRange} value={values.fakeIpRange}
onChange={handleChange("fakeIpRange")} onChange={handleChange("fakeIpRange")}
placeholder="198.18.0.1/16" placeholder="198.18.0.1/16"
@ -827,6 +829,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={3} maxRows={3}
size="small" size="small"
spellCheck="false"
value={values.defaultNameserver} value={values.defaultNameserver}
onChange={handleChange("defaultNameserver")} onChange={handleChange("defaultNameserver")}
placeholder="system,223.6.6.6, 8.8.8.8, 2400:3200::1, 2001:4860:4860::8888" placeholder="system,223.6.6.6, 8.8.8.8, 2400:3200::1, 2001:4860:4860::8888"
@ -844,6 +847,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={4} maxRows={4}
size="small" size="small"
spellCheck="false"
value={values.nameserver} value={values.nameserver}
onChange={handleChange("nameserver")} onChange={handleChange("nameserver")}
placeholder="8.8.8.8, https://doh.pub/dns-query, https://dns.alidns.com/dns-query" placeholder="8.8.8.8, https://doh.pub/dns-query, https://dns.alidns.com/dns-query"
@ -861,6 +865,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={4} maxRows={4}
size="small" size="small"
spellCheck="false"
value={values.fallback} value={values.fallback}
onChange={handleChange("fallback")} onChange={handleChange("fallback")}
placeholder="https://dns.alidns.com/dns-query, https://dns.google/dns-query, https://cloudflare-dns.com/dns-query" placeholder="https://dns.alidns.com/dns-query, https://dns.google/dns-query, https://cloudflare-dns.com/dns-query"
@ -878,6 +883,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={3} maxRows={3}
size="small" size="small"
spellCheck="false"
value={values.proxyServerNameserver} value={values.proxyServerNameserver}
onChange={handleChange("proxyServerNameserver")} onChange={handleChange("proxyServerNameserver")}
placeholder="https://doh.pub/dns-query, https://dns.alidns.com/dns-query" placeholder="https://doh.pub/dns-query, https://dns.alidns.com/dns-query"
@ -897,6 +903,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={3} maxRows={3}
size="small" size="small"
spellCheck="false"
value={values.directNameserver} value={values.directNameserver}
onChange={handleChange("directNameserver")} onChange={handleChange("directNameserver")}
placeholder="system, 223.6.6.6" placeholder="system, 223.6.6.6"
@ -916,6 +923,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={4} maxRows={4}
size="small" size="small"
spellCheck="false"
value={values.fakeIpFilter} value={values.fakeIpFilter}
onChange={handleChange("fakeIpFilter")} onChange={handleChange("fakeIpFilter")}
placeholder="*.lan, *.local, localhost.ptlogin2.qq.com" placeholder="*.lan, *.local, localhost.ptlogin2.qq.com"
@ -935,6 +943,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={4} maxRows={4}
size="small" size="small"
spellCheck="false"
value={values.nameserverPolicy} value={values.nameserverPolicy}
onChange={handleChange("nameserverPolicy")} onChange={handleChange("nameserverPolicy")}
placeholder="+.arpa=10.0.0.1, rule-set:cn=https://doh.pub/dns-query;https://dns.alidns.com/dns-query" placeholder="+.arpa=10.0.0.1, rule-set:cn=https://doh.pub/dns-query;https://dns.alidns.com/dns-query"
@ -967,6 +976,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
<TextField <TextField
size="small" size="small"
autoComplete="off" autoComplete="off"
spellCheck="false"
value={values.fallbackGeoipCode} value={values.fallbackGeoipCode}
onChange={handleChange("fallbackGeoipCode")} onChange={handleChange("fallbackGeoipCode")}
placeholder="CN" placeholder="CN"
@ -987,6 +997,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={3} maxRows={3}
size="small" size="small"
spellCheck="false"
value={values.fallbackIpcidr} value={values.fallbackIpcidr}
onChange={handleChange("fallbackIpcidr")} onChange={handleChange("fallbackIpcidr")}
placeholder="240.0.0.0/4, 127.0.0.1/8" placeholder="240.0.0.0/4, 127.0.0.1/8"
@ -1006,6 +1017,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={3} maxRows={3}
size="small" size="small"
spellCheck="false"
value={values.fallbackDomain} value={values.fallbackDomain}
onChange={handleChange("fallbackDomain")} onChange={handleChange("fallbackDomain")}
placeholder="+.google.com, +.facebook.com, +.youtube.com" placeholder="+.google.com, +.facebook.com, +.youtube.com"
@ -1031,6 +1043,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
minRows={2} minRows={2}
maxRows={4} maxRows={4}
size="small" size="small"
spellCheck="false"
value={values.hosts} value={values.hosts}
onChange={handleChange("hosts")} onChange={handleChange("hosts")}
placeholder="*.clash.dev=127.0.0.1, alpha.clash.dev=::1, test.com=1.1.1.1;2.2.2.2, baidu.com=google.com" placeholder="*.clash.dev=127.0.0.1, alpha.clash.dev=::1, test.com=1.1.1.1;2.2.2.2, baidu.com=google.com"