diff --git a/api/advent22_api/routers/admin.py b/api/advent22_api/routers/admin.py index e3eeb79..e22c1f7 100644 --- a/api/advent22_api/routers/admin.py +++ b/api/advent22_api/routers/admin.py @@ -25,6 +25,7 @@ class ConfigModel(BaseModel): class __Puzzle(BaseModel): solution: str first: date + next: date last: date end: date seed: str @@ -69,6 +70,7 @@ async def get_config_model( "puzzle": { "solution": cfg.puzzle.solution, "first": event_days.first, + "next": event_days.next, "last": event_days.last, "end": event_days.end, "seed": cfg.puzzle.random_seed, diff --git a/ui/src/components/admin/ConfigView.vue b/ui/src/components/admin/ConfigView.vue index 5e2c376..25380a8 100644 --- a/ui/src/components/admin/ConfigView.vue +++ b/ui/src/components/admin/ConfigView.vue @@ -23,6 +23,9 @@
Erstes Türchen
{{ config_model.puzzle.first }}
+
Nächstes Türchen
+
{{ config_model.puzzle.next }}
+
Letztes Türchen
{{ config_model.puzzle.last }}
@@ -145,6 +148,7 @@ export default class extends Vue { puzzle: { solution: "ABCDEFGHIJKLMNOPQRSTUVWX", first: "01.12.2023", + next: "01.12.2023", last: "24.12.2023", end: "01.04.2024", seed: "", diff --git a/ui/src/lib/api.ts b/ui/src/lib/api.ts index d0feb70..f4f20c6 100644 --- a/ui/src/lib/api.ts +++ b/ui/src/lib/api.ts @@ -2,6 +2,7 @@ export interface ConfigModel { puzzle: { solution: string; first: string; + next: string; last: string; end: string; seed: string;