advent22/ui/src/App.vue

46 lines
1,006 B
Vue
Raw Normal View History

2022-10-28 00:14:20 +00:00
<template>
2022-10-30 01:27:46 +00:00
<div class="container">
2023-09-10 21:09:00 +00:00
<section class="section">
2023-09-11 23:10:17 +00:00
<h1 class="title has-text-centered is-uppercase">Adventskalender</h1>
2022-10-30 01:27:46 +00:00
<h2 class="subtitle has-text-centered">Der Gelöt</h2>
2023-09-10 21:09:00 +00:00
</section>
2022-12-22 00:16:42 +00:00
2023-09-11 23:10:17 +00:00
<section v-if="is_admin" class="section">
2023-09-10 03:10:22 +00:00
<ConfigView />
2023-09-10 21:08:42 +00:00
<CalendarAssistant />
2023-09-10 00:24:56 +00:00
<DoorMapEditor />
2023-09-11 23:10:17 +00:00
</section>
<section class="section">
<AdminButton v-model="is_admin" />
2023-09-10 21:09:00 +00:00
</section>
2022-10-30 01:27:46 +00:00
</div>
2022-10-28 00:14:20 +00:00
</template>
<script lang="ts">
2022-10-28 00:28:03 +00:00
import { Options, Vue } from "vue-class-component";
2022-12-14 02:39:32 +00:00
2023-09-10 00:24:56 +00:00
import AdminButton from "./components/AdminButton.vue";
2023-09-10 21:08:42 +00:00
import CalendarAssistant from "./components/CalendarAssistant.vue";
2023-09-10 03:10:22 +00:00
import ConfigView from "./components/ConfigView.vue";
2023-01-17 18:25:56 +00:00
import DoorMapEditor from "./components/DoorMapEditor.vue";
2022-10-28 00:14:20 +00:00
@Options({
components: {
2023-09-10 03:10:22 +00:00
ConfigView,
2023-09-10 21:08:42 +00:00
CalendarAssistant,
2023-01-17 18:25:56 +00:00
DoorMapEditor,
2023-09-10 00:24:56 +00:00
AdminButton,
2022-10-28 00:14:20 +00:00
},
})
2023-01-24 23:18:09 +00:00
export default class extends Vue {
2023-09-11 23:10:17 +00:00
public is_admin = false;
}
2022-10-28 00:14:20 +00:00
</script>
<style>
2022-10-30 02:35:39 +00:00
body {
min-height: 100vh;
}
2022-10-28 00:14:20 +00:00
</style>