Add German translation, add own price source selection

This commit is contained in:
Djuri 2024-05-08 23:38:56 +02:00
parent dcdf98964a
commit e47fc066b0
9 changed files with 167 additions and 8 deletions

View file

@ -55,6 +55,14 @@
fetch(`${PUBLIC_BASE_URL}/api/lights/off`).catch(() => {});
};
const turnOnFrontlight = () => {
fetch(`${PUBLIC_BASE_URL}/api/frontlight/on`).catch(() => {});
};
const turnOffFrontlight = () => {
fetch(`${PUBLIC_BASE_URL}/api/frontlight/off`).catch(() => {});
};
const restartClock = () => {
fetch(`${PUBLIC_BASE_URL}/api/restart`).catch(() => {});
};
@ -146,6 +154,14 @@
</Form>
<hr />
{/if}
{#if $settings.hasFrontlight}
<h3>{$_('section.control.frontlight')}</h3>
<Button color="secondary" id="turnOffFrontlightBtn" on:click={turnOffFrontlight}
>{$_('section.control.turnOff')}</Button
>
<Button color="primary" on:click={turnOnFrontlight}>{$_('section.control.turnOn')}</Button>
<hr />
{/if}
<h3>{$_('section.control.systemInfo')}</h3>
<ul class="small system_info">
<li>{$_('section.control.version')}: {$settings.gitRev}</li>