Blame view

src/App.vue 1.67 KB
93a68cfa1   Jatinder Singh   first commit
1
2
3
  <template>
    <div id="appRoot">
      <template v-if="!$route.meta.public">
1c1942362   Neeraj Sharma   commit code Schoo...
4
          <!-- Go to top -->
93a68cfa1   Jatinder Singh   first commit
5
6
        <v-app id="inspire" class="app">
          <app-drawer class="app--drawer"></app-drawer>
93a68cfa1   Jatinder Singh   first commit
7
          <v-content>
93a68cfa1   Jatinder Singh   first commit
8
9
10
11
            <div class="page-wrapper">
              <router-view></router-view>
            </div>   
             <!-- App Footer -->
ae898ca2b   Neeraj Sharma   add new pages routes
12
            <v-footer height="auto" class="fixcolors pa-3 app--footer"> 
93a68cfa1   Jatinder Singh   first commit
13
14
            </v-footer>
          </v-content>
93a68cfa1   Jatinder Singh   first commit
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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>
      <v-snackbar
        :timeout="3000"
        bottom
        right
        :color="snackbar.color"
        v-model="snackbar.show"
      >
        {{ snackbar.text }}
        <v-btn dark flat @click.native="snackbar.show = false" icon> 
          <v-icon>close</v-icon>
        </v-btn>
      </v-snackbar>    
    </div>
  </template>
  <script>
1c1942362   Neeraj Sharma   commit code Schoo...
39
40
  import AppDrawer from '@/components/pageHeader/AppDrawer';
  import AppToolbar from '@/components/pageHeader/AppToolbar';
93a68cfa1   Jatinder Singh   first commit
41
  import menu from '@/api/menu';
93a68cfa1   Jatinder Singh   first commit
42
43
44
45
46
  import AppEvents from  './event';
  export default {
    components: {
      AppDrawer,
      AppToolbar,
93a68cfa1   Jatinder Singh   first commit
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
    },
    data: () => ({
      expanded: true,
      rightDrawer: false,
      snackbar: {
        show: false,
        text: '',
        color: '',
      }
    }),
  
    computed: {
  
    },
  
    created () {
      AppEvents.forEach(item => {
        this.$on(item.name, item.callback);
      });
      window.getApp = this;
    },
93a68cfa1   Jatinder Singh   first commit
68
69
70
71
72
73
74
75
76
  };
  </script>
  
  
  <style lang="stylus" scoped>
    .setting-fab 
      top:50%!important; 
      right:0;
      border-radius:0  
8de1cd3eb   Neeraj Sharma   fix footer
77
78
  .page-wrapper
      min-height:calc(1200px - 64px - 50px - 81px ) 
93a68cfa1   Jatinder Singh   first commit
79
80
  
  </style>