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">
|
|
|
|
import { Vue, Options } from "vue-class-component";
|
|
|
|
|
|
|
|
@Options({
|
|
|
|
props: {
|
|
|
|
day: Number,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
export default class CalendarDoor extends Vue {
|
|
|
|
day!: number;
|
2022-10-30 03:10:07 +00:00
|
|
|
|
|
|
|
private get image_url(): string {
|
2022-11-03 15:04:57 +00:00
|
|
|
return this.$advent22.api_url("days/picture/" + this.day);
|
2022-10-30 03:10:07 +00:00
|
|
|
}
|
2022-11-03 23:01:28 +00:00
|
|
|
|
|
|
|
private on_click(): void {
|
|
|
|
this.$emit("openDoor", this.image_url);
|
|
|
|
}
|
2022-10-30 01:27:46 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|