Blame view
src/App.vue
1.92 KB
93a68cfa1
|
1 2 3 |
<template> <div id="appRoot"> <template v-if="!$route.meta.public"> |
a17c68a03
|
4 |
<!-- Go to top --> |
93a68cfa1
|
5 6 |
<v-app id="inspire" class="app"> <app-drawer class="app--drawer"></app-drawer> |
93a68cfa1
|
7 |
<v-content> |
93a68cfa1
|
8 |
<div class="page-wrapper"> |
a17c68a03
|
9 10 |
<!-- Header toolbar with Seacrh --> <app-toolbar class="app--toolbar"></app-toolbar> |
93a68cfa1
|
11 |
<router-view></router-view> |
a17c68a03
|
12 13 14 |
</div> <!-- App Footer --> <v-footer height="auto" class="fixcolors pa-3 app--footer"></v-footer> |
93a68cfa1
|
15 |
</v-content> |
93a68cfa1
|
16 17 18 19 20 21 22 23 24 |
</v-app> </template> <template v-else> <transition> <keep-alive> <router-view></router-view> </keep-alive> </transition> </template> |
a17c68a03
|
25 |
<v-snackbar :timeout="3000" bottom right :color="snackbar.color" v-model="snackbar.show"> |
93a68cfa1
|
26 |
{{ snackbar.text }} |
a17c68a03
|
27 |
<v-btn dark flat @click.native="snackbar.show = false" icon> |
93a68cfa1
|
28 29 |
<v-icon>close</v-icon> </v-btn> |
a17c68a03
|
30 |
</v-snackbar> |
93a68cfa1
|
31 32 33 |
</div> </template> <script> |
a17c68a03
|
34 35 36 37 |
import AppDrawer from "@/components/pageHeader/AppDrawer"; import AppToolbar from "@/components/pageHeader/AppToolbar"; import menu from "@/api/menu"; import AppEvents from "./event"; |
79006bdcb
|
38 |
|
93a68cfa1
|
39 40 41 |
export default { components: { AppDrawer, |
a17c68a03
|
42 |
AppToolbar |
93a68cfa1
|
43 44 45 46 47 48 |
}, data: () => ({ expanded: true, rightDrawer: false, snackbar: { show: false, |
a17c68a03
|
49 50 |
text: "", color: "" |
93a68cfa1
|
51 52 |
} }), |
a17c68a03
|
53 |
computed: {}, |
93a68cfa1
|
54 |
|
a17c68a03
|
55 |
created() { |
93a68cfa1
|
56 57 58 59 |
AppEvents.forEach(item => { this.$on(item.name, item.callback); }); window.getApp = this; |
a17c68a03
|
60 |
} |
93a68cfa1
|
61 62 63 64 65 |
}; </script> <style lang="stylus" scoped> |
a17c68a03
|
66 67 68 69 70 |
.setting-fab { top: 50% !important; right: 0; border-radius: 0; } |
93a68cfa1
|
71 |
|
a17c68a03
|
72 73 74 |
.page-wrapper { min-height: calc(1200px - 64px - 50px - 81px); } |
93a68cfa1
|
75 |
</style> |
506be6fd7
|
76 |
<style> |
687e0b929
|
77 78 79 |
.application { background-color: white !important; font-family: "Poppins", sans-serif; |
506be6fd7
|
80 81 |
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; |
687e0b929
|
82 |
scroll-behavior: smooth; |
506be6fd7
|
83 84 |
} </style> |