Add German translation, add own price source selection
This commit is contained in:
parent
dcdf98964a
commit
e47fc066b0
9 changed files with 167 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue