-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
/
Copy pathApp.vue
65 lines (54 loc) · 1.13 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<template>
<div id="app" class="app">
<ConnectionStatus v-if="ready" />
<div v-if="ready" class="content">
<router-view/>
</div>
<VueLoadingIndicator v-else class="app-init-loading overlay big accent"/>
<StatusBar/>
<ClientAddonLoader/>
<LocaleLoader/>
</div>
</template>
<script>
import i18n from './i18n'
import ROUTE_REQUESTED from '@/graphql/app/routeRequested.gql'
export default {
metaInfo: {
titleTemplate: chunk => chunk ? `[Beta] ${chunk} - Vue CLI` : '[Beta] Vue CLI'
},
computed: {
ready () {
return Object.keys(i18n.getLocaleMessage('en')).length
}
},
apollo: {
$subscribe: {
routeRequested: {
query: ROUTE_REQUESTED,
result ({ data }) {
this.$router.push(data.routeRequested)
}
}
}
}
}
</script>
<style lang="stylus">
@import "~@vue/ui/dist/vue-ui.css"
@import "~@/style/main"
</style>
<style lang="stylus" scoped>
.app
display flex
flex-direction column
.connection-status,
.status-bar
flex auto 0 0
.content
flex auto 1 1
height 100%
overflow hidden
.app-init-loading
z-index 100000
</style>