2023-09-13 16:20:52 +00:00
|
|
|
<template>
|
|
|
|
<ConfigView />
|
|
|
|
<CalendarAssistant />
|
|
|
|
<DoorMapEditor />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Options, Vue } from "vue-class-component";
|
|
|
|
|
|
|
|
import CalendarAssistant from "./CalendarAssistant.vue";
|
|
|
|
import ConfigView from "./ConfigView.vue";
|
|
|
|
import DoorMapEditor from "./DoorMapEditor.vue";
|
|
|
|
|
|
|
|
@Options({
|
|
|
|
components: {
|
|
|
|
ConfigView,
|
|
|
|
CalendarAssistant,
|
|
|
|
DoorMapEditor,
|
|
|
|
},
|
|
|
|
})
|
2023-10-28 21:51:57 +00:00
|
|
|
export default class extends Vue {
|
|
|
|
private old_handler = window.onbeforeunload;
|
|
|
|
private confirm_handler = () => "";
|
|
|
|
|
|
|
|
public mounted(): void {
|
|
|
|
window.onbeforeunload = this.confirm_handler;
|
|
|
|
}
|
|
|
|
|
|
|
|
public beforeUnmount(): void {
|
|
|
|
window.onbeforeunload = this.old_handler;
|
|
|
|
}
|
|
|
|
}
|
2023-09-13 16:20:52 +00:00
|
|
|
</script>
|