2019-03-30 22:55:48 +00:00
|
|
|
<template>
|
2020-06-11 18:55:39 +00:00
|
|
|
<div id="app" class="min-h-screen font-sans antialiased bg-blue-900">
|
2019-11-03 17:49:58 +00:00
|
|
|
<SVGContainer />
|
2019-08-23 14:48:16 +00:00
|
|
|
<NotificationsContainer />
|
2020-12-18 22:02:20 +00:00
|
|
|
<RunesContainer />
|
2022-02-16 22:51:06 +00:00
|
|
|
<portal-target name="tooltip-destination" />
|
2019-12-03 20:57:52 +00:00
|
|
|
<component :is="layout">
|
|
|
|
|
<router-view />
|
|
|
|
|
</component>
|
2019-03-30 22:55:48 +00:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2019-11-23 12:38:35 +00:00
|
|
|
import { mapActions } from 'vuex'
|
2019-12-03 20:57:52 +00:00
|
|
|
import Default from '@/layouts/Default.vue'
|
|
|
|
|
import Home from '@/layouts/Home.vue'
|
2020-02-13 19:16:13 +00:00
|
|
|
import NotificationsContainer from '@/components/Global/NotificationsContainer.vue'
|
2020-12-18 22:02:20 +00:00
|
|
|
import RunesContainer from '@/components/Match/Runes/RunesContainer.vue'
|
2020-02-13 19:16:13 +00:00
|
|
|
import SVGContainer from '@/components/Global/SVGContainer.vue'
|
2019-08-22 22:50:00 +00:00
|
|
|
|
2019-03-30 22:55:48 +00:00
|
|
|
export default {
|
2019-08-22 22:50:00 +00:00
|
|
|
components: {
|
2019-12-03 20:57:52 +00:00
|
|
|
Default,
|
|
|
|
|
Home,
|
2019-11-03 17:49:58 +00:00
|
|
|
NotificationsContainer,
|
2020-12-18 22:02:20 +00:00
|
|
|
RunesContainer,
|
|
|
|
|
SVGContainer,
|
2019-03-30 22:55:48 +00:00
|
|
|
},
|
2019-11-23 12:38:35 +00:00
|
|
|
|
2019-12-03 20:57:52 +00:00
|
|
|
computed: {
|
|
|
|
|
layout() {
|
2020-12-18 22:02:20 +00:00
|
|
|
return this.$route.meta.layout || 'Default'
|
|
|
|
|
},
|
2019-12-03 20:57:52 +00:00
|
|
|
},
|
|
|
|
|
|
2019-11-23 12:38:35 +00:00
|
|
|
created() {
|
|
|
|
|
this.updatePercent()
|
2020-06-11 18:55:39 +00:00
|
|
|
this.updateSettings({ name: 'region' })
|
|
|
|
|
this.updateSettings({ name: 'recentSearches', isJson: true })
|
|
|
|
|
this.updateSettings({ name: 'favorites', isJson: true })
|
2019-11-23 12:38:35 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
2020-02-06 18:45:22 +00:00
|
|
|
...mapActions('settings', ['updatePercent', 'updateSettings']),
|
2020-12-18 22:02:20 +00:00
|
|
|
},
|
2019-03-30 22:55:48 +00:00
|
|
|
}
|
|
|
|
|
</script>
|