- 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>
<divid="app"class="app">
<ConnectionStatusv-if="ready" />
<divv-if="ready"class="content">
<router-view/>
</div>
<VueLoadingIndicatorv-elseclass="app-init-loading overlay big accent"/>
<StatusBar/>
<ClientAddonLoader/>
<LocaleLoader/>
</div>
</template>
<script>
importi18nfrom'./i18n'
importROUTE_REQUESTEDfrom'@/graphql/app/routeRequested.gql'
exportdefault {
metaInfo: {
titleTemplate:chunk=> chunk ?`[Beta] ${chunk} - Vue CLI`:'[Beta] Vue CLI'
},
computed: {
ready () {
returnObject.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
displayflex
flex-directioncolumn
.connection-status,
.status-bar
flexauto00
.content
flexauto11
height100%
overflowhidden
.app-init-loading
z-index100000
</style>