| 
									
										
										
										
											2023-09-13 16:20:52 +00:00
										 |  |  | <template> | 
					
						
							| 
									
										
										
										
											2023-11-21 23:31:40 +00:00
										 |  |  |   <template v-if="store.is_initialized === true"> | 
					
						
							| 
									
										
										
										
											2023-11-09 23:14:19 +00:00
										 |  |  |     <Calendar :doors="store.user_doors" /> | 
					
						
							| 
									
										
										
										
											2023-11-04 16:12:45 +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> | 
					
						
							| 
									
										
										
										
											2023-11-21 23:31:40 +00:00
										 |  |  |         <template v-if="store.user_doors.length === 0"> | 
					
						
							|  |  |  |           Zeit bis zum ersten Türchen: | 
					
						
							|  |  |  |         </template> | 
					
						
							|  |  |  |         <template v-else> | 
					
						
							|  |  |  |           {{ store.user_doors.length }} Türchen offen. Zeit bis zum nächsten | 
					
						
							|  |  |  |           Türchen: | 
					
						
							|  |  |  |         </template> | 
					
						
							| 
									
										
										
										
											2023-11-04 16:12:45 +00:00
										 |  |  |         <CountDown :until="store.next_door_target" /> | 
					
						
							|  |  |  |       </template> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   </template> | 
					
						
							| 
									
										
										
										
											2023-11-21 23:42:30 +00:00
										 |  |  |   <progress v-else class="progress is-primary" max="100" /> | 
					
						
							| 
									
										
										
										
											2023-09-13 16:20:52 +00:00
										 |  |  | </template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script lang="ts"> | 
					
						
							| 
									
										
										
										
											2024-08-23 16:38:04 +00:00
										 |  |  | import { advent22Store } from "@/lib/store"; | 
					
						
							| 
									
										
										
										
											2023-09-13 16:20:52 +00:00
										 |  |  | import { Options, Vue } from "vue-class-component"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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
										 |  |  | 
 | 
					
						
							|  |  |  | @Options({ | 
					
						
							|  |  |  |   components: { | 
					
						
							|  |  |  |     Calendar, | 
					
						
							| 
									
										
										
										
											2023-11-03 17:07:25 +00:00
										 |  |  |     CountDown, | 
					
						
							| 
									
										
										
										
											2023-09-13 16:20:52 +00:00
										 |  |  |   }, | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export default class extends Vue { | 
					
						
							| 
									
										
										
										
											2023-11-03 17:07:25 +00:00
										 |  |  |   public readonly store = advent22Store(); | 
					
						
							| 
									
										
										
										
											2023-09-13 16:20:52 +00:00
										 |  |  | } | 
					
						
							|  |  |  | </script> |