Blame view

src/App.vue 2.57 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>
96f88269a   Neeraj Sharma   implement Student...
16
          <!-- theme setting -->
006544386   Neeraj Sharma   implement task
17
18
19
20
21
22
23
24
25
26
27
28
          <!-- <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>
96f88269a   Neeraj Sharma   implement Student...
29
          </v-navigation-drawer>-->
93a68cfa1   Jatinder Singh   first commit
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   Neeraj Sharma   implement two rou...
39
      <v-snackbar :timeout="3000" bottom right :color="snackbar.color" v-model="snackbar.show">
93a68cfa1   Jatinder Singh   first commit
40
        {{ snackbar.text }}
a17c68a03   Neeraj Sharma   implement two rou...
41
        <v-btn dark flat @click.native="snackbar.show = false" icon>
93a68cfa1   Jatinder Singh   first commit
42
43
          <v-icon>close</v-icon>
        </v-btn>
a17c68a03   Neeraj Sharma   implement two rou...
44
      </v-snackbar>
93a68cfa1   Jatinder Singh   first commit
45
46
47
    </div>
  </template>
  <script>
a17c68a03   Neeraj Sharma   implement two rou...
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";
96f88269a   Neeraj Sharma   implement Student...
52
  import ThemeSettings from "@/components/ThemeSettings";
79006bdcb   Neeraj Sharma   uplaod images all...
53

93a68cfa1   Jatinder Singh   first commit
54
55
56
  export default {
    components: {
      AppDrawer,
006544386   Neeraj Sharma   implement task
57
      AppToolbar,
96f88269a   Neeraj Sharma   implement Student...
58
      ThemeSettings,
93a68cfa1   Jatinder Singh   first commit
59
60
61
62
63
64
    },
    data: () => ({
      expanded: true,
      rightDrawer: false,
      snackbar: {
        show: false,
a17c68a03   Neeraj Sharma   implement two rou...
65
66
        text: "",
        color: ""
93a68cfa1   Jatinder Singh   first commit
67
68
      }
    }),
a17c68a03   Neeraj Sharma   implement two rou...
69
    computed: {},
93a68cfa1   Jatinder Singh   first commit
70

a17c68a03   Neeraj Sharma   implement two rou...
71
    created() {
93a68cfa1   Jatinder Singh   first commit
72
73
74
75
      AppEvents.forEach(item => {
        this.$on(item.name, item.callback);
      });
      window.getApp = this;
006544386   Neeraj Sharma   implement task
76
    },
96f88269a   Neeraj Sharma   implement Student...
77
78
    methods: {
      openThemeSettings() {
006544386   Neeraj Sharma   implement task
79
        this.$vuetify.goTo(0);
96f88269a   Neeraj Sharma   implement Student...
80
        this.rightDrawer = !this.rightDrawer;
006544386   Neeraj Sharma   implement task
81
      }
96f88269a   Neeraj Sharma   implement Student...
82
    }
93a68cfa1   Jatinder Singh   first commit
83
84
85
86
87
  };
  </script>
  
  
  <style lang="stylus" scoped>
a17c68a03   Neeraj Sharma   implement two rou...
88
89
90
91
92
  .setting-fab {
    top: 50% !important;
    right: 0;
    border-radius: 0;
  }
93a68cfa1   Jatinder Singh   first commit
93

a17c68a03   Neeraj Sharma   implement two rou...
94
95
96
  .page-wrapper {
    min-height: calc(1200px - 64px - 50px - 81px);
  }
93a68cfa1   Jatinder Singh   first commit
97
  </style>
506be6fd7   Neeraj Sharma   implemet dyamic i...
98
  <style>
687e0b929   Neeraj Sharma   add user,attenden...
99
100
101
  .application {
    background-color: white !important;
    font-family: "Poppins", sans-serif;
506be6fd7   Neeraj Sharma   implemet dyamic i...
102
103
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
687e0b929   Neeraj Sharma   add user,attenden...
104
    scroll-behavior: smooth;
506be6fd7   Neeraj Sharma   implemet dyamic i...
105
106
  }
  </style>