2023-01-24 00:14:50 +00:00
|
|
|
<template>
|
2023-09-10 03:38:24 +00:00
|
|
|
<div class="card-content">
|
2023-09-10 03:48:50 +00:00
|
|
|
<div class="content is-small">
|
2023-09-09 23:08:43 +00:00
|
|
|
<h3>Steuerung</h3>
|
2023-01-24 00:14:50 +00:00
|
|
|
<ul>
|
2023-02-17 19:00:27 +00:00
|
|
|
<li>Linksklick: Türchen bearbeiten</li>
|
|
|
|
|
<li>Tastatur: Tag eingeben</li>
|
|
|
|
|
<li>[Enter]: Tag speichern</li>
|
|
|
|
|
<li>[Esc]: Eingabe Abbrechen</li>
|
|
|
|
|
<li>[Entf]: Tag entfernen</li>
|
2023-01-24 00:14:50 +00:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
2023-09-09 21:41:06 +00:00
|
|
|
<figure class="image is-unselectable">
|
2025-12-05 02:12:33 +00:00
|
|
|
<img :src="ensure_loaded(store.background_image).data_url" />
|
2023-01-24 00:14:50 +00:00
|
|
|
<ThouCanvas>
|
2023-09-07 01:17:14 +00:00
|
|
|
<PreviewDoor
|
2025-12-05 02:12:33 +00:00
|
|
|
v-for="(_, index) in model"
|
2023-09-07 01:17:14 +00:00
|
|
|
:key="`door-${index}`"
|
2025-12-05 02:12:33 +00:00
|
|
|
v-model="model[index]"
|
2023-09-07 01:17:14 +00:00
|
|
|
/>
|
2023-01-24 00:14:50 +00:00
|
|
|
</ThouCanvas>
|
|
|
|
|
</figure>
|
2023-09-09 23:08:43 +00:00
|
|
|
</div>
|
2023-01-24 00:14:50 +00:00
|
|
|
</template>
|
|
|
|
|
|
2025-12-05 02:12:33 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { ensure_loaded } from "@/lib/helpers";
|
2024-08-23 16:38:04 +00:00
|
|
|
import { Door } from "@/lib/rects/door";
|
|
|
|
|
import { advent22Store } from "@/lib/store";
|
2023-01-24 00:14:50 +00:00
|
|
|
|
2023-09-10 01:59:19 +00:00
|
|
|
import ThouCanvas from "../calendar/ThouCanvas.vue";
|
2023-02-17 19:00:27 +00:00
|
|
|
import PreviewDoor from "./PreviewDoor.vue";
|
2023-01-24 00:14:50 +00:00
|
|
|
|
2025-12-05 02:12:33 +00:00
|
|
|
const model = defineModel<Door[]>({ required: true });
|
|
|
|
|
const store = advent22Store();
|
2023-01-24 00:14:50 +00:00
|
|
|
</script>
|