From ce42d060ff51d5caf2d0bf2f7da078a260080088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxi=20Quo=C3=9F?= Date: Sun, 16 Mar 2025 14:42:55 +0100 Subject: [PATCH] feat: add
 tags for cron explaination

---
 frontend/src/lib/components/DeviceForm.svelte | 34 +++++++-
 frontend/src/routes/account/+page.svelte      | 81 ++++++++++---------
 frontend/src/routes/settings/+page.svelte     | 19 ++---
 3 files changed, 83 insertions(+), 51 deletions(-)

diff --git a/frontend/src/lib/components/DeviceForm.svelte b/frontend/src/lib/components/DeviceForm.svelte
index 7ee153e1..af0120aa 100644
--- a/frontend/src/lib/components/DeviceForm.svelte
+++ b/frontend/src/lib/components/DeviceForm.svelte
@@ -365,7 +365,9 @@
 				
 			
 			
-
+
{m.device_wake_cron_enable()} + {#if device.wake_cron_enabled} +
* * * * * *
+| | | | | |
+| | | | | day of the week (0–6)
+| | | | month (1–12)
+| | | day of the month (1–31)
+| | hour (0–23)
+| minute (0–59)
+second (0–59, optional)
+
+ {/if}
{m.device_require_confirmation()} @@ -465,7 +479,9 @@ {m.device_shutdown_cron_desc()}

-
+
{m.device_shutdown_cron_enable()} + {#if device.shutdown_cron_enabled} +
* * * * * *
+| | | | | |
+| | | | | day of the week (0–6)
+| | | | month (1–12)
+| | | day of the month (1–31)
+| | hour (0–23)
+| minute (0–59)
+second (0–59, optional)
+
+ {/if}
{m.device_require_confirmation()} diff --git a/frontend/src/routes/account/+page.svelte b/frontend/src/routes/account/+page.svelte index 22085d96..52491026 100644 --- a/frontend/src/routes/account/+page.svelte +++ b/frontend/src/routes/account/+page.svelte @@ -205,48 +205,51 @@
{#if !$pocketbase.authStore.isSuperuser} - - +
+ +
{/if} - - +
+ +
- - +
+ +