2020-07-21 15:38:17 +00:00
|
|
|
<template>
|
|
|
|
<component :is="deck ? DeckUI : DefaultUI"/>
|
2020-07-23 04:02:46 +00:00
|
|
|
<!-- Render modals here -->
|
2020-07-21 15:38:17 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import DefaultUI from './default.vue';
|
|
|
|
import DeckUI from './deck.vue';
|
2020-07-23 14:39:15 +00:00
|
|
|
import { instanceName, deckmode } from './config';
|
2020-07-21 15:38:17 +00:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
|
|
|
DefaultUI,
|
|
|
|
DeckUI,
|
|
|
|
},
|
|
|
|
|
2020-07-23 04:02:46 +00:00
|
|
|
metaInfo: {
|
|
|
|
title: null,
|
|
|
|
titleTemplate: title => title ? `${title} | ${(instanceName || 'Misskey')}` : (instanceName || 'Misskey')
|
|
|
|
},
|
|
|
|
|
2020-07-21 15:38:17 +00:00
|
|
|
data() {
|
|
|
|
return {
|
2020-07-23 04:02:46 +00:00
|
|
|
stream: os.stream,
|
|
|
|
isMobile: isMobile,
|
2020-07-21 15:38:17 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
dialog(opts) {
|
2020-07-23 04:02:46 +00:00
|
|
|
this.$store.commit('showDialog', opts);
|
2020-07-21 15:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|