Blame view

src/router/index.js 1.57 KB
8a0dd59d9   Digvijay Singh   first commit
1
2
3
4
  import Vue from 'vue'
  import Router from 'vue-router'
  import { authGuard } from "../auth/authGuard"
  import LandingPage from '@/components/LandingPage'
988b5d20a   Digvijay Singh   new changes
5
6
  import SignUp from '@/components/SignUp'
  import Reset from '@/components/Reset'
f06677bfc   Digvijay Singh   profile screen added
7
  import Profile from '@/components/Profile'
8a0dd59d9   Digvijay Singh   first commit
8
  import welcome from '@/components/welcome'
298fff252   Digvijay Singh   new design added
9
  import Intermediate from '@/components/Intermediate'
75990a4d9   Gurvinder Singh   insight added
10
  import Insight from '@/components/Insight'
8a0dd59d9   Digvijay Singh   first commit
11
12
13
14
15
16
17
18
19
20
  
  import router from '../router'
  Vue.use(Router)
  
  export default new Router({
      mode: 'history',
      routes: [{
              path: '/',
              name: 'LandingPage',
              component: LandingPage,
298fff252   Digvijay Singh   new design added
21
22
23
24
25
26
27
              // beforeEnter: function(to, from, next) {
              //     var userdata = localStorage.getItem('spotlight_usertoken')
              //     if (userdata) {
              //         router.push({ name: 'Welcome' })
              //     }
              //     next()
              // }
8a0dd59d9   Digvijay Singh   first commit
28
          },
988b5d20a   Digvijay Singh   new changes
29
30
31
32
33
34
          {
              path: '/signup',
              name: 'SignUp',
              component: SignUp,
          },
          {
298fff252   Digvijay Singh   new design added
35
36
37
38
39
              path: '/intermediate',
              name: 'Intermediate',
              component: Intermediate
          },
          {
988b5d20a   Digvijay Singh   new changes
40
41
42
              path: '/reset',
              name: 'Reset',
              component: Reset,
f06677bfc   Digvijay Singh   profile screen added
43
44
45
46
47
          },
          {
              path: '/profile',
              name: 'Profile',
              component: Profile,
75990a4d9   Gurvinder Singh   insight added
48
49
50
51
52
          },
          {
              path: '/insight',
              name: 'Insight',
              component: Insight,
988b5d20a   Digvijay Singh   new changes
53
          }
8a0dd59d9   Digvijay Singh   first commit
54
55
56
57
58
59
60
          
      ],
      scrollBehavior(to, from, savedPosition) {
          this.seen = false
          return { x: 0, y: 0 }
      }
  })