2023-01-24 00:14:50 +00:00
|
|
|
<template>
|
|
|
|
<section>
|
|
|
|
<div class="content">
|
2023-02-02 18:06:55 +00:00
|
|
|
<p class="title is-5">Steuerung</p>
|
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>
|
|
|
|
<figure class="image">
|
2023-09-04 21:23:27 +00:00
|
|
|
<img :src="$advent22.api_url('general/background')" />
|
2023-01-24 00:14:50 +00:00
|
|
|
<ThouCanvas>
|
2023-02-17 19:00:27 +00:00
|
|
|
<PreviewDoor
|
|
|
|
v-for="(_, index) in doors"
|
|
|
|
:key="`door-${index}`"
|
|
|
|
v-model:door="doors[index]"
|
|
|
|
/>
|
2023-01-24 00:14:50 +00:00
|
|
|
</ThouCanvas>
|
|
|
|
</figure>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Options, Vue } from "vue-class-component";
|
2023-02-02 15:29:26 +00:00
|
|
|
import { Door } from "./calendar";
|
2023-01-24 00:14:50 +00:00
|
|
|
|
|
|
|
import ThouCanvas from "../rects/ThouCanvas.vue";
|
2023-02-17 19:00:27 +00:00
|
|
|
import PreviewDoor from "./PreviewDoor.vue";
|
2023-01-24 00:14:50 +00:00
|
|
|
|
|
|
|
@Options({
|
|
|
|
components: {
|
|
|
|
ThouCanvas,
|
2023-02-17 19:00:27 +00:00
|
|
|
PreviewDoor,
|
2023-01-24 00:14:50 +00:00
|
|
|
},
|
|
|
|
props: {
|
2023-02-02 15:29:26 +00:00
|
|
|
doors: Array,
|
2023-01-24 00:14:50 +00:00
|
|
|
},
|
2023-02-02 15:29:26 +00:00
|
|
|
emits: ["update:doors"],
|
2023-01-24 00:14:50 +00:00
|
|
|
})
|
2023-01-24 23:19:25 +00:00
|
|
|
export default class extends Vue {
|
2023-02-02 15:29:26 +00:00
|
|
|
private doors!: Door[];
|
2023-01-24 00:14:50 +00:00
|
|
|
|
|
|
|
public beforeUnmount() {
|
2023-02-02 15:29:26 +00:00
|
|
|
this.$emit("update:doors", this.doors);
|
2023-01-24 00:14:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
section > figure {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
</style>
|