Blame view

src/App.vue 1.92 KB
93a68cfa1   Jatinder Singh   first commit
1
2
3
  <template>
    <div id="appRoot">
      <template v-if="!$route.meta.public">
a17c68a03   Neeraj Sharma   implement two rou...
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
            <div class="page-wrapper">
a17c68a03   Neeraj Sharma   implement two rou...
9
10
              <!-- Header toolbar with Seacrh -->
              <app-toolbar class="app--toolbar"></app-toolbar>
93a68cfa1   Jatinder Singh   first commit
11
              <router-view></router-view>
a17c68a03   Neeraj Sharma   implement two rou...
12
13
14
            </div>
            <!-- App Footer -->
            <v-footer height="auto" class="fixcolors pa-3 app--footer"></v-footer>
93a68cfa1   Jatinder Singh   first commit
15
          </v-content>
93a68cfa1   Jatinder Singh   first commit
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   Neeraj Sharma   implement two rou...
25
      <v-snackbar :timeout="3000" bottom right :color="snackbar.color" v-model="snackbar.show">
93a68cfa1   Jatinder Singh   first commit
26
        {{ snackbar.text }}
a17c68a03   Neeraj Sharma   implement two rou...
27
        <v-btn dark flat @click.native="snackbar.show = false" icon>
93a68cfa1   Jatinder Singh   first commit
28
29
          <v-icon>close</v-icon>
        </v-btn>
a17c68a03   Neeraj Sharma   implement two rou...
30
      </v-snackbar>
93a68cfa1   Jatinder Singh   first commit
31
32
33
    </div>
  </template>
  <script>
a17c68a03   Neeraj Sharma   implement two rou...
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   Neeraj Sharma   uplaod images all...
38

93a68cfa1   Jatinder Singh   first commit
39
40
41
  export default {
    components: {
      AppDrawer,
a17c68a03   Neeraj Sharma   implement two rou...
42
      AppToolbar
93a68cfa1   Jatinder Singh   first commit
43
44
45
46
47
48
    },
    data: () => ({
      expanded: true,
      rightDrawer: false,
      snackbar: {
        show: false,
a17c68a03   Neeraj Sharma   implement two rou...
49
50
        text: "",
        color: ""
93a68cfa1   Jatinder Singh   first commit
51
52
      }
    }),
a17c68a03   Neeraj Sharma   implement two rou...
53
    computed: {},
93a68cfa1   Jatinder Singh   first commit
54

a17c68a03   Neeraj Sharma   implement two rou...
55
    created() {
93a68cfa1   Jatinder Singh   first commit
56
57
58
59
      AppEvents.forEach(item => {
        this.$on(item.name, item.callback);
      });
      window.getApp = this;
a17c68a03   Neeraj Sharma   implement two rou...
60
    }
93a68cfa1   Jatinder Singh   first commit
61
62
63
64
65
  };
  </script>
  
  
  <style lang="stylus" scoped>
a17c68a03   Neeraj Sharma   implement two rou...
66
67
68
69
70
  .setting-fab {
    top: 50% !important;
    right: 0;
    border-radius: 0;
  }
93a68cfa1   Jatinder Singh   first commit
71

a17c68a03   Neeraj Sharma   implement two rou...
72
73
74
  .page-wrapper {
    min-height: calc(1200px - 64px - 50px - 81px);
  }
93a68cfa1   Jatinder Singh   first commit
75
  </style>
506be6fd7   Neeraj Sharma   implemet dyamic i...
76
  <style>
687e0b929   Neeraj Sharma   add user,attenden...
77
78
79
  .application {
    background-color: white !important;
    font-family: "Poppins", sans-serif;
506be6fd7   Neeraj Sharma   implemet dyamic i...
80
81
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
687e0b929   Neeraj Sharma   add user,attenden...
82
    scroll-behavior: smooth;
506be6fd7   Neeraj Sharma   implemet dyamic i...
83
84
  }
  </style>