Dependency updates and frontlight settings
This commit is contained in:
parent
6ecb482600
commit
e859adac86
8 changed files with 922 additions and 668 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue