Blame view
src/router/index.js
3.09 KB
8a0dd59d9
|
1 2 3 4 |
import Vue from 'vue' import Router from 'vue-router' import { authGuard } from "../auth/authGuard" import LandingPage from '@/components/LandingPage' |
988b5d20a
|
5 6 |
import SignUp from '@/components/SignUp' import Reset from '@/components/Reset' |
f06677bfc
|
7 |
import Profile from '@/components/Profile' |
8a0dd59d9
|
8 |
import welcome from '@/components/welcome' |
298fff252
|
9 |
import Intermediate from '@/components/Intermediate' |
75990a4d9
|
10 |
import Insight from '@/components/Insight' |
921970bb2
|
11 12 13 14 15 16 17 18 |
import ProductInsight from '@/components/ProductInsight' import EpisodeIntro from '@/components/EpisodeIntro' import AuthorIntro from '@/components/AuthorIntro' import AuthorReadingNow from '@/components/AuthorReadingNow' import SingleAuthor from '@/components/SingleAuthor' import Outro from '@/components/Outro' import SingleMobileInsight from '@/components/SingleMobileInsight' import TwoScreenWithoutInsight from '@/components/TwoScreenWithoutInsight' |
8a0dd59d9
|
19 20 21 22 23 24 25 26 27 28 |
import router from '../router' Vue.use(Router) export default new Router({ mode: 'history', routes: [{ path: '/', name: 'LandingPage', component: LandingPage, |
298fff252
|
29 30 31 32 33 34 35 |
// beforeEnter: function(to, from, next) { // var userdata = localStorage.getItem('spotlight_usertoken') // if (userdata) { // router.push({ name: 'Welcome' }) // } // next() // } |
8a0dd59d9
|
36 |
}, |
988b5d20a
|
37 38 39 40 41 42 |
{ path: '/signup', name: 'SignUp', component: SignUp, }, { |
298fff252
|
43 44 45 46 47 |
path: '/intermediate', name: 'Intermediate', component: Intermediate }, { |
988b5d20a
|
48 49 50 |
path: '/reset', name: 'Reset', component: Reset, |
f06677bfc
|
51 52 53 54 55 |
}, { path: '/profile', name: 'Profile', component: Profile, |
75990a4d9
|
56 57 58 59 60 |
}, { path: '/insight', name: 'Insight', component: Insight, |
921970bb2
|
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
}, { path: '/product-insight', name: 'ProductInsight', component: ProductInsight, }, { path: '/episode-intro', name: 'EpisodeIntro', component: EpisodeIntro, }, , { path: '/author-intro', name: 'AuthorIntro', component: AuthorIntro, }, { path: '/author-reading-now', name: 'AuthorReadingNow', component: AuthorReadingNow, }, { path: '/single-author', name: 'SingleAuthor', component: SingleAuthor, }, { path: '/outro', name: 'Outro', component: Outro, }, { path: '/single-mobile-insight', name: 'SingleMobileInsight', component: SingleMobileInsight, }, { path: '/two-screen-without-insight', name: 'TwoScreenWithoutInsight', component: TwoScreenWithoutInsight, |
988b5d20a
|
102 |
} |
921970bb2
|
103 104 105 |
|
8a0dd59d9
|
106 107 108 109 110 111 112 |
], scrollBehavior(to, from, savedPosition) { this.seen = false return { x: 0, y: 0 } } }) |