mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-26 13:07:14 +00:00
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:
@@ -79,33 +79,15 @@ watch(() => props.node?.id, (a, b) => {
|
||||
<div class="node-history-panel">
|
||||
<div class="series">
|
||||
<div class="series-title">{{ t('pages.nodes.cpu') }}</div>
|
||||
<Sparkline
|
||||
:data="cpuPoints"
|
||||
:labels="cpuLabels"
|
||||
:vb-width="640" :height="120"
|
||||
stroke="#008771"
|
||||
:show-grid="true" :show-axes="true"
|
||||
:tick-count-x="4"
|
||||
:max-points="cpuPoints.length || 1"
|
||||
:fill-opacity="0.18"
|
||||
:marker-radius="2.6"
|
||||
:show-tooltip="true"
|
||||
/>
|
||||
<Sparkline :data="cpuPoints" :labels="cpuLabels" :vb-width="640" :height="120" stroke="#008771" :show-grid="true"
|
||||
:show-axes="true" :tick-count-x="4" :max-points="cpuPoints.length || 1" :fill-opacity="0.18"
|
||||
:marker-radius="2.6" :show-tooltip="true" />
|
||||
</div>
|
||||
<div class="series">
|
||||
<div class="series-title">{{ t('pages.nodes.mem') }}</div>
|
||||
<Sparkline
|
||||
:data="memPoints"
|
||||
:labels="memLabels"
|
||||
:vb-width="640" :height="120"
|
||||
stroke="#7c4dff"
|
||||
:show-grid="true" :show-axes="true"
|
||||
:tick-count-x="4"
|
||||
:max-points="memPoints.length || 1"
|
||||
:fill-opacity="0.18"
|
||||
:marker-radius="2.6"
|
||||
:show-tooltip="true"
|
||||
/>
|
||||
<Sparkline :data="memPoints" :labels="memLabels" :vb-width="640" :height="120" stroke="#7c4dff" :show-grid="true"
|
||||
:show-axes="true" :tick-count-x="4" :max-points="memPoints.length || 1" :fill-opacity="0.18"
|
||||
:marker-radius="2.6" :show-tooltip="true" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user