mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-12 00:02:53 +00:00
Changed to official amsleser wiki
This commit is contained in:
parent
6b6e5ac148
commit
c6f83066e7
14
lib/SvelteUi/app/dist/index.js
vendored
14
lib/SvelteUi/app/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -255,7 +255,7 @@
|
||||
{#if configuration?.g}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.general?.title ?? "General"}</strong>
|
||||
<a href="{wiki('General-configuration')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('general')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<input type="hidden" name="g" value="true"/>
|
||||
<div class="my-1">
|
||||
<div class="flex">
|
||||
@ -372,7 +372,7 @@
|
||||
{#if configuration?.m}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.meter?.title ?? "Meter"}</strong>
|
||||
<a href="{wiki('Meter-configuration')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('meter')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<input type="hidden" name="m" value="true"/>
|
||||
<input type="hidden" name="mo" value="1"/>
|
||||
<div class="my-1">
|
||||
@ -479,7 +479,7 @@
|
||||
{#if configuration?.w}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.connection?.title ?? "Connection"}</strong>
|
||||
<a href="{wiki('Network-connection')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('connection')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<input type="hidden" name="w" value="true"/>
|
||||
<div class="my-1">
|
||||
<select name="nc" class="in-s" bind:value={configuration.n.c}>
|
||||
@ -541,7 +541,7 @@
|
||||
{#if configuration?.n}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.network?.title ?? "Network"}</strong>
|
||||
<a href="{wiki('Network-configuration')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('network')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<div class="my-1">
|
||||
{translations.conf?.network?.ip ?? "IP"}<br/>
|
||||
<div class="flex">
|
||||
@ -586,7 +586,7 @@
|
||||
{#if configuration?.q}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.mqtt?.title ?? "MQTT"}</strong>
|
||||
<a href="{wiki('MQTT-configuration')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('mqtt')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<input type="hidden" name="q" value="true"/>
|
||||
<div class="my-1">
|
||||
{translations.conf?.mqtt?.server ?? "Server"}
|
||||
@ -736,7 +736,7 @@
|
||||
{#if configuration?.c}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.cloud?.title ?? "Cloud connections"}</strong>
|
||||
<a href="{wiki('Cloud')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('cloud-connections')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<input type="hidden" name="c" value="true"/>
|
||||
{#if sysinfo?.features?.includes('cloud')}
|
||||
<div class="my-1">
|
||||
@ -785,7 +785,7 @@
|
||||
{#if configuration?.p?.r?.startsWith("NO") || configuration?.p?.r?.startsWith("10YNO") || configuration?.p?.r?.startsWith('10Y1001A1001A4')}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.thresholds?.title ?? "Thresholds"}</strong>
|
||||
<a href="{wiki('Threshold-configuration')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('tariff-thresholds')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<input type="hidden" name="t" value="true"/>
|
||||
<div class="flex flex-wrap my-1">
|
||||
{#each {length: 9} as _, i}
|
||||
@ -806,7 +806,7 @@
|
||||
{#if configuration?.u}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.ui?.title ?? "User interface"}</strong>
|
||||
<a href="{wiki('User-interface')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('user-interface')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<input type="hidden" name="u" value="true"/>
|
||||
<div class="flex flex-wrap">
|
||||
{#each uiElements as el}
|
||||
@ -833,7 +833,7 @@
|
||||
{#if configuration?.i?.h && (sysinfo?.board > 20 || sysinfo?.chip == 'esp8266' || configuration?.i?.d?.d > 0)}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.hw?.title ?? "Hardware"}</strong>
|
||||
<a href="{wiki('GPIO-configuration')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('hardware')}" target="_blank" class="float-right">ⓘ</a>
|
||||
{#if sysinfo.board > 20}
|
||||
<input type="hidden" name="i" value="true"/>
|
||||
<div class="flex flex-wrap">
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
<hr/>
|
||||
<div class="my-3">
|
||||
{translations.consent?.one_click ?? "One-click"}<br/>
|
||||
<a href="{wiki('Data-collection-on-one-click-firmware-upgrade')}" target="_blank" class="text-blue-600 hover:text-blue-800">{translations.consent?.read_more ?? "Read more"}</a><br/>
|
||||
<a href="https://github.com/UtilitechAS/amsreader-firmware/wiki/Data-collection-on-one-click-firmware-upgrade" target="_blank" class="text-blue-600 hover:text-blue-800">{translations.consent?.read_more ?? "Read more"}</a><br/>
|
||||
<label><input type="radio" name="sf" value={1} checked={sysinfo.fwconsent === 1} class="rounded m-2" required/> {translations.consent?.yes ?? "Yes"}</label>
|
||||
<label><input type="radio" name="sf" value={2} checked={sysinfo.fwconsent === 2} class="rounded m-2" required/> {translations.consent?.no ?? "No"}</label><br/>
|
||||
</div>
|
||||
|
||||
@ -86,7 +86,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div class="flex-none px-1 mt-1" title={translations.header?.doc ?? ""}>
|
||||
<a href={wiki('')} target='_blank' rel="noreferrer"><HelpIcon/></a>
|
||||
<a href="{wiki('')}" target='_blank' rel="noreferrer"><HelpIcon/></a>
|
||||
</div>
|
||||
{#if sysinfo.upgrading}
|
||||
<div class="flex-none mr-3 mt-1 text-yellow-300">Upgrading to {sysinfo.upgrade.t}, {progress.toFixed(1)}%</div>
|
||||
|
||||
@ -130,7 +130,11 @@ export function uiVisibility(choice, state) {
|
||||
}
|
||||
|
||||
export function wiki(page) {
|
||||
return "https://github.com/UtilitechAS/amsreader-firmware/wiki/" + page;
|
||||
let ret = "https://wiki.amsleser.no/";
|
||||
if(page) {
|
||||
ret += "/en/firmware#" + page;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
export function fmtnum(v,d) {
|
||||
|
||||
@ -108,7 +108,7 @@
|
||||
</script>
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.conf?.price?.title ?? "Price"}</strong>
|
||||
<a href="{wiki('Price-configuration')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('configure-price-price-modifiers')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<hr class="m-3"/>
|
||||
<form on:submit|preventDefault={handleSubmit} autocomplete="off">
|
||||
<input type="hidden" name="r" value="true"/>
|
||||
|
||||
@ -218,7 +218,7 @@
|
||||
{/if}
|
||||
<div class="cnt">
|
||||
<strong class="text-sm">{translations.status?.firmware?.title ?? "Firmware"}</strong>
|
||||
<a href="{wiki('Firmware-Channels')}" target="_blank" class="float-right">ⓘ</a>
|
||||
<a href="{wiki('statusinformation-screen')}" target="_blank" class="float-right">ⓘ</a>
|
||||
{#if sysinfo.fwconsent === 1}
|
||||
<div class="my-2">
|
||||
Channel:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user