Adjustments to make IPv6 address visible in GUI

This commit is contained in:
Gunnar Skjold
2024-11-03 10:21:13 +01:00
parent fc89670ea4
commit 1302f18fab
5 changed files with 1870 additions and 577 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -206,11 +206,11 @@
</div>
{#if sysinfo.net.ipv6}
<div class="my-2">
IPv6: {sysinfo.net.ipv6}
IPv6: <span style="font-size: 14px;">{sysinfo.net.ipv6.replace(/\b:?(?:0+:?){2,}/, '::')}</span>
</div>
<div class="my-2">
{#if sysinfo.net.dns1v6}DNSv6: {sysinfo.net.dns1v6}{/if}
{#if sysinfo.net.dns2v6}DNSv6: {sysinfo.net.dns2v6}{/if}
{#if sysinfo.net.dns1v6}DNSv6: <span style="font-size: 14px;">{sysinfo.net.dns1v6.replace(/\b:?(?:0+:?){2,}/, '::')}</span>{/if}
{#if sysinfo.net.dns2v6}DNSv6: <span style="font-size: 14px;">{sysinfo.net.dns2v6.replace(/\b:?(?:0+:?){2,}/, '::')}</span>{/if}
</div>
{/if}
</div>

View File

@@ -17,26 +17,26 @@ export default defineConfig({
plugins: [svelte()],
server: {
proxy: {
"/data.json": "http://192.168.233.49",
"/energyprice.json": "http://192.168.233.49",
"/dayplot.json": "http://192.168.233.49",
"/monthplot.json": "http://192.168.233.49",
"/temperature.json": "http://192.168.233.49",
"/sysinfo.json": "http://192.168.233.49",
"/configuration.json": "http://192.168.233.49",
"/tariff.json": "http://192.168.233.49",
"/realtime.json": "http://192.168.233.49",
"/priceconfig.json": "http://192.168.233.49",
"/translations.json": "http://192.168.233.188",
"/cloudkey.json": "http://192.168.233.49",
"/save": "http://192.168.233.49",
"/reboot": "http://192.168.233.49",
"/configfile": "http://192.168.233.49",
"/upgrade": "http://192.168.233.49",
"/mqtt-ca": "http://192.168.233.49",
"/mqtt-cert": "http://192.168.233.49",
"/mqtt-key": "http://192.168.233.49",
"/logo.svg": "http://192.168.233.49",
"/data.json": "http://192.168.230.115",
"/energyprice.json": "http://192.168.230.115",
"/dayplot.json": "http://192.168.230.115",
"/monthplot.json": "http://192.168.230.115",
"/temperature.json": "http://192.168.230.115",
"/sysinfo.json": "http://192.168.230.115",
"/configuration.json": "http://192.168.230.115",
"/tariff.json": "http://192.168.230.115",
"/realtime.json": "http://192.168.230.115",
"/priceconfig.json": "http://192.168.230.115",
"/translations.json": "http://192.168.230.115",
"/cloudkey.json": "http://192.168.230.115",
"/save": "http://192.168.230.115",
"/reboot": "http://192.168.230.115",
"/configfile": "http://192.168.230.115",
"/upgrade": "http://192.168.230.115",
"/mqtt-ca": "http://192.168.230.115",
"/mqtt-cert": "http://192.168.230.115",
"/mqtt-key": "http://192.168.230.115",
"/logo.svg": "http://192.168.230.115",
}
}
})