Blame view
src/App.vue
2.58 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> |
006544386
|
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<!-- theme setting --> <!-- <v-btn small fab dark falt fixed top="top" right="right" class="setting-fab" color="red" @click="openThemeSettings"> <v-icon>settings</v-icon> </v-btn> <v-navigation-drawer class="setting-drawer" temporary right v-model="rightDrawer" hide-overlay fixed > <theme-settings></theme-settings> </v-navigation-drawer> --> |
93a68cfa1
|
30 31 32 33 34 35 36 37 38 |
</v-app> </template> <template v-else> <transition> <keep-alive> <router-view></router-view> </keep-alive> </transition> </template> |
a17c68a03
|
39 |
<v-snackbar :timeout="3000" bottom right :color="snackbar.color" v-model="snackbar.show"> |
93a68cfa1
|
40 |
{{ snackbar.text }} |
a17c68a03
|
41 |
<v-btn dark flat @click.native="snackbar.show = false" icon> |
93a68cfa1
|
42 43 |
<v-icon>close</v-icon> </v-btn> |
a17c68a03
|
44 |
</v-snackbar> |
93a68cfa1
|
45 46 47 |
</div> </template> <script> |
a17c68a03
|
48 49 50 51 |
import AppDrawer from "@/components/pageHeader/AppDrawer"; import AppToolbar from "@/components/pageHeader/AppToolbar"; import menu from "@/api/menu"; import AppEvents from "./event"; |
006544386
|
52 |
import ThemeSettings from "@/components/ThemeSettings" |
79006bdcb
|
53 |
|
93a68cfa1
|
54 55 56 |
export default { components: { AppDrawer, |
006544386
|
57 58 |
AppToolbar, ThemeSettings |
93a68cfa1
|
59 60 61 62 63 64 |
}, data: () => ({ expanded: true, rightDrawer: false, snackbar: { show: false, |
a17c68a03
|
65 66 |
text: "", color: "" |
93a68cfa1
|
67 68 |
} }), |
a17c68a03
|
69 |
computed: {}, |
93a68cfa1
|
70 |
|
a17c68a03
|
71 |
created() { |
93a68cfa1
|
72 73 74 75 |
AppEvents.forEach(item => { this.$on(item.name, item.callback); }); window.getApp = this; |
006544386
|
76 77 78 79 80 81 82 |
}, methods: { openThemeSettings () { this.$vuetify.goTo(0); this.rightDrawer = (!this.rightDrawer); } }, |
93a68cfa1
|
83 84 85 86 87 |
}; </script> <style lang="stylus" scoped> |
a17c68a03
|
88 89 90 91 92 |
.setting-fab { top: 50% !important; right: 0; border-radius: 0; } |
93a68cfa1
|
93 |
|
a17c68a03
|
94 95 96 |
.page-wrapper { min-height: calc(1200px - 64px - 50px - 81px); } |
93a68cfa1
|
97 |
</style> |
506be6fd7
|
98 |
<style> |
687e0b929
|
99 100 101 |
.application { background-color: white !important; font-family: "Poppins", sans-serif; |
506be6fd7
|
102 103 |
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; |
687e0b929
|
104 |
scroll-behavior: smooth; |
506be6fd7
|
105 106 |
} </style> |