55 lines
1.2 KiB
Vue
55 lines
1.2 KiB
Vue
<template>
|
|
<div class="container">
|
|
<div class="section">
|
|
<h1 class="title has-text-centered is-uppercase">
|
|
Adventskalender {{ date }}
|
|
</h1>
|
|
<h2 class="subtitle has-text-centered">Der Gelöt</h2>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<ConfigView />
|
|
<CalendarAssistant />
|
|
<DoorMapEditor />
|
|
<AdminButton />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { Options, Vue } from "vue-class-component";
|
|
|
|
import AdminButton from "./components/AdminButton.vue";
|
|
import CalendarAssistant from "./components/CalendarAssistant.vue";
|
|
import ConfigView from "./components/ConfigView.vue";
|
|
import DoorMapEditor from "./components/DoorMapEditor.vue";
|
|
|
|
@Options({
|
|
components: {
|
|
ConfigView,
|
|
CalendarAssistant,
|
|
DoorMapEditor,
|
|
AdminButton,
|
|
},
|
|
})
|
|
export default class extends Vue {
|
|
private visible_days = 0;
|
|
date = "";
|
|
|
|
public mounted() {
|
|
this.$advent22
|
|
.api_get<string>("days/date")
|
|
.then((date: string) => (this.date = date));
|
|
|
|
this.$advent22
|
|
.api_get<number>("days/visible_days")
|
|
.then((visible_days: number) => (this.visible_days = visible_days));
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
body {
|
|
min-height: 100vh;
|
|
}
|
|
</style>
|