diff --git a/ui/routes.go b/ui/routes.go index a6cd979..cd554a5 100644 --- a/ui/routes.go +++ b/ui/routes.go @@ -64,10 +64,15 @@ func DeclareRoutes(router *gin.Engine, cfg *config.Config) { router.GET("/", serveOrReverse("", cfg)) router.GET("/alarms", serveOrReverse("/", cfg)) + router.GET("/alarms/*_", serveOrReverse("/", cfg)) router.GET("/settings", serveOrReverse("/", cfg)) + router.GET("/settings/*_", serveOrReverse("/", cfg)) router.GET("/routines", serveOrReverse("/", cfg)) + router.GET("/routines/*_", serveOrReverse("/", cfg)) router.GET("/musiks", serveOrReverse("/", cfg)) + router.GET("/musiks/*_", serveOrReverse("/", cfg)) router.GET("/history", serveOrReverse("/", cfg)) + router.GET("/history/*_", serveOrReverse("/", cfg)) router.GET("/_app/*_", serveOrReverse("", cfg)) router.GET("/img/*_", serveOrReverse("", cfg)) diff --git a/ui/src/components/AlarmExceptionList.svelte b/ui/src/components/AlarmExceptionList.svelte new file mode 100644 index 0000000..21e2930 --- /dev/null +++ b/ui/src/components/AlarmExceptionList.svelte @@ -0,0 +1,35 @@ + + +
+

+ Exceptions +

+ +
+
+ + + Du samedi 14 + au dimanche 26 février + +
diff --git a/ui/src/components/AlarmRepeatedList.svelte b/ui/src/components/AlarmRepeatedList.svelte new file mode 100644 index 0000000..960de5f --- /dev/null +++ b/ui/src/components/AlarmRepeatedList.svelte @@ -0,0 +1,40 @@ + + +
+

+ Réveils habituels +

+ +
+
+ + Les lundis à 6h50 + + + Les mardis à 6h50 + +
diff --git a/ui/src/components/AlarmSingleList.svelte b/ui/src/components/AlarmSingleList.svelte new file mode 100644 index 0000000..2e09240 --- /dev/null +++ b/ui/src/components/AlarmSingleList.svelte @@ -0,0 +1,27 @@ + + +
+

+ Réveils manuels +

+ +
+
+

Pas de prochain réveil manuel programmé

+
diff --git a/ui/src/components/CardRoutine.svelte b/ui/src/components/CardRoutine.svelte new file mode 100644 index 0000000..872ddf5 --- /dev/null +++ b/ui/src/components/CardRoutine.svelte @@ -0,0 +1,59 @@ + + + + + + + {routine.title} + + + {#each routine.steps as step (step.id)} + {step.name} + {/each} + + diff --git a/ui/src/components/CardStatAlarms.svelte b/ui/src/components/CardStatAlarms.svelte new file mode 100644 index 0000000..2d0de16 --- /dev/null +++ b/ui/src/components/CardStatAlarms.svelte @@ -0,0 +1,27 @@ + + + + + Liste des réveils + + + {#each awakingList as awaking (awaking.id)} + {awaking.date} + {/each} + + diff --git a/ui/src/components/CardStatRoutines.svelte b/ui/src/components/CardStatRoutines.svelte new file mode 100644 index 0000000..6107295 --- /dev/null +++ b/ui/src/components/CardStatRoutines.svelte @@ -0,0 +1,34 @@ + + + + + Routines favorites + + + {#each routinesStats as routine (routine.id)} + + {routine.name} + + {routine.nb} + + + {/each} + + diff --git a/ui/src/components/CardStatTimeAwaking.svelte b/ui/src/components/CardStatTimeAwaking.svelte new file mode 100644 index 0000000..4e271e4 --- /dev/null +++ b/ui/src/components/CardStatTimeAwaking.svelte @@ -0,0 +1,19 @@ + + + + + Temps moyen de éteindre le réveil + + +

+ 10 minutes +

+
+
diff --git a/ui/src/components/GongsList.svelte b/ui/src/components/GongsList.svelte new file mode 100644 index 0000000..6af8935 --- /dev/null +++ b/ui/src/components/GongsList.svelte @@ -0,0 +1,87 @@ + + +
+

+ Gongs +

+
+ {#if !edit} + + {/if} + + +
+
+
+ {#each gongs as gong (gong.id)} + + {/each} +
diff --git a/ui/src/components/Header.svelte b/ui/src/components/Header.svelte index 5950b8e..11d0fb8 100644 --- a/ui/src/components/Header.svelte +++ b/ui/src/components/Header.svelte @@ -1,4 +1,6 @@ - + Réveil