2022-10-30 01:27:46 +00:00
|
|
|
<template>
|
2022-11-03 23:01:28 +00:00
|
|
|
<button class="button" @click="on_click">Türken {{ day + 1 }}</button>
|
2022-10-30 01:27:46 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2023-09-06 16:25:35 +00:00
|
|
|
import { Options, Vue } from "vue-class-component";
|
2022-10-30 01:27:46 +00:00
|
|
|
|
|
|
|
@Options({
|
|
|
|
props: {
|
|
|
|
day: Number,
|
|
|
|
},
|
2023-09-06 18:44:19 +00:00
|
|
|
emits: [
|
|
|
|
"click",
|
|
|
|
"openDoor",
|
|
|
|
"abortDoor",
|
|
|
|
],
|
2022-10-30 01:27:46 +00:00
|
|
|
})
|
2023-01-24 23:18:09 +00:00
|
|
|
export default class extends Vue {
|
2022-10-30 01:27:46 +00:00
|
|
|
day!: number;
|
2022-10-30 03:10:07 +00:00
|
|
|
|
2023-09-06 16:25:35 +00:00
|
|
|
public on_click() {
|
2023-09-06 18:44:19 +00:00
|
|
|
this.$emit("click");
|
|
|
|
|
|
|
|
this.$advent22.api_get_blob(
|
|
|
|
`days/image/${this.day}`,
|
|
|
|
(data) => this.$emit("openDoor", data),
|
|
|
|
(name, reason) => this.$emit("abortDoor", name, reason),
|
|
|
|
);
|
2022-11-03 23:01:28 +00:00
|
|
|
}
|
2022-10-30 01:27:46 +00:00
|
|
|
}
|
|
|
|
</script>
|