2023-09-13 16:20:52 +00:00
|
|
|
<template>
|
2025-12-05 02:12:33 +00:00
|
|
|
<Calendar :doors="doors" />
|
2024-08-26 14:14:07 +00:00
|
|
|
<hr />
|
|
|
|
|
<div class="content" v-html="store.site_config.content" />
|
|
|
|
|
<div class="content has-text-primary">
|
|
|
|
|
<template v-if="store.next_door_target === null">
|
|
|
|
|
Alle {{ store.user_doors.length }} Türchen offen!
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<template v-if="store.user_doors.length === 0">
|
|
|
|
|
Zeit bis zum ersten Türchen:
|
2023-11-04 16:12:45 +00:00
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
2024-08-26 14:14:07 +00:00
|
|
|
{{ store.user_doors.length }} Türchen offen. Zeit bis zum nächsten
|
|
|
|
|
Türchen:
|
2023-11-04 16:12:45 +00:00
|
|
|
</template>
|
2024-08-26 14:14:07 +00:00
|
|
|
<CountDown :until="store.next_door_target" />
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
2023-09-13 16:20:52 +00:00
|
|
|
</template>
|
|
|
|
|
|
2025-12-05 02:12:33 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { Door } from "@/lib/rects/door";
|
2024-08-23 16:38:04 +00:00
|
|
|
import { advent22Store } from "@/lib/store";
|
2023-09-13 16:20:52 +00:00
|
|
|
|
|
|
|
|
import Calendar from "./Calendar.vue";
|
2023-11-03 17:07:25 +00:00
|
|
|
import CountDown from "./CountDown.vue";
|
2023-09-13 16:20:52 +00:00
|
|
|
|
2025-12-05 02:12:33 +00:00
|
|
|
const store = advent22Store();
|
|
|
|
|
const doors = store.user_doors as Door[];
|
2023-09-13 16:20:52 +00:00
|
|
|
</script>
|