Dependency updates and frontlight settings

This commit is contained in:
Djuri 2024-06-08 00:39:44 +02:00
parent 6ecb482600
commit e859adac86
8 changed files with 922 additions and 668 deletions

View file

@ -59,6 +59,10 @@
fetch(`${PUBLIC_BASE_URL}/api/frontlight/on`).catch(() => {});
};
const flashFrontlight = () => {
fetch(`${PUBLIC_BASE_URL}/api/frontlight/flash`).catch(() => {});
};
const turnOffFrontlight = () => {
fetch(`${PUBLIC_BASE_URL}/api/frontlight/off`).catch(() => {});
};
@ -160,6 +164,9 @@
>{$_('section.control.turnOff')}</Button
>
<Button color="primary" on:click={turnOnFrontlight}>{$_('section.control.turnOn')}</Button>
<Button color="success" id="flashFrontlight" on:click={flashFrontlight}
>{$_('section.control.flashFrontlight')}</Button
>
<hr />
{/if}
<h3>{$_('section.control.systemInfo')}</h3>