Blame view

src/router/index.js 8.08 KB
97338adf3   Digvijay Singh   changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  import Vue from 'vue'
  import Router from 'vue-router'
  import { authGuard } from "../auth/authGuard"
  import LandingPage from '@/components/LandingPage'
  import SignUp from '@/components/SignUp'
  import Reset from '@/components/Reset'
  import Profile from '@/components/Profile'
  import welcome from '@/components/welcome'
  import Intermediate from '@/components/Intermediate'
  import Insight from '@/components/Insight'
  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'
b04daad6c   Digvijay Singh   .env file added
16
  import Outro from '@/components/outro'
97338adf3   Digvijay Singh   changes
17
18
19
20
  import SingleMobileInsight from '@/components/SingleMobileInsight'
  import TwoScreenWithoutInsight from '@/components/TwoScreenWithoutInsight'
  import SingleMobileScreenInsightOne from '@/components/SingleMobileScreenInsightOne'
  import SingleWebScreenInsightOne from '@/components/SingleWebScreenInsightOne'
c65b51996   Digvijay Singh   new ui changes
21
  import SingleMobileScreenInsightTwo from '@/components/SingleMobileScreenInsightTwo'
97338adf3   Digvijay Singh   changes
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  import SingleScreengrabOneInsight from '@/components/SingleScreengrabOneInsight'
  import TwoScreenWithInsight from '@/components/TwoScreenWithInsight'
  import TwoScreengrabWithComments from '@/components/TwoScreengrabWithComments'
  import TwoWebScreenWithInsight from '@/components/TwoWebScreenWithInsight'
  import NoScreenshotSingleAuthor from '@/components/NoScreenshotSingleAuthor'
  import TwoAuthor from '@/components/TwoAuthor'
  import TwoAuthorDesktop from '@/components/TwoAuthorDesktop'
  import TwoAuthorReadingNow from '@/components/TwoAuthorReadingNow'
  import SingleMobileScreenChatComments from '@/components/SingleMobileScreenChatComments'
  import TwoScreensWithTwoAuthor from '@/components/TwoScreensWithTwoAuthor'
  import NoScreenshotTwoAuthor from '@/components/NoScreenshotTwoAuthor'
  import ToAddYourComment from '@/components/ToAddYourComment'
  import ReadingFlowBounceBoard from '@/components/ReadingFlowBounceBoard'
  import ReadingFlowBounceBoard_chat from '@/components/ReadingFlowBounceBoard_chat'
  import Otp from '@/components/Otp'
  import ChangePassword from '@/components/ChangePassword'
d0186c77a   Digvijay Singh   changes in ui
38
39
  import noscreenshotSingleautho from '@/components/noscreenshotSingleautho'
  
97338adf3   Digvijay Singh   changes
40
41
42
43
44
45
46
  
  import router from '../router'
  Vue.use(Router)
  
  export default new Router({
      mode: 'history',
      routes: [{
56f4b7548   Digvijay Singh   landing page url ...
47
              path: '/login',
97338adf3   Digvijay Singh   changes
48
49
50
51
52
53
54
55
56
57
58
              name: 'LandingPage',
              component: LandingPage,
              // beforeEnter: function(to, from, next) {
              //     var userdata = localStorage.getItem('spotlight_usertoken')
              //     if (userdata) {
              //         router.push({ name: 'Welcome' })
              //     }
              //     next()
              // }
          },
          {
56f4b7548   Digvijay Singh   landing page url ...
59
              path: '/',
97338adf3   Digvijay Singh   changes
60
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
              name: 'SignUp',
              component: SignUp,
          },
          {
              path: '/intermediate',
              name: 'Intermediate',
              component: Intermediate
          },
          {
              path: '/reset',
              name: 'Reset',
              component: Reset,
          },
          {
              path: '/profile',
              name: 'Profile',
              component: Profile,
          },
          {
              path: '/insight',
              name: 'Insight',
              component: Insight,
          },
          {
              path: '/product-insight',
              name: 'ProductInsight',
              component: ProductInsight,
          },
          {
c65b51996   Digvijay Singh   new ui changes
89
              path: '/episode-intro/:caseStudyId/:slideId',
97338adf3   Digvijay Singh   changes
90
91
92
93
94
              name: 'EpisodeIntro',
              component: EpisodeIntro,
          },
          ,
          {
c65b51996   Digvijay Singh   new ui changes
95
              path: '/author-intro/:caseStudyId/:slideId',
97338adf3   Digvijay Singh   changes
96
97
98
99
100
101
102
103
104
105
106
107
108
109
              name: 'AuthorIntro',
              component: AuthorIntro,
          },
          {
              path: '/author-reading-now',
              name: 'AuthorReadingNow',
              component: AuthorReadingNow,
          },
          {
              path: '/single-author',
              name: 'SingleAuthor',
              component: SingleAuthor,
          },
          {
c65b51996   Digvijay Singh   new ui changes
110
              path: '/outro/:caseStudyId/:slideId',
97338adf3   Digvijay Singh   changes
111
112
113
114
115
116
117
118
119
              name: 'Outro',
              component: Outro,
          },
          {
              path: '/single-mobile-insight',
              name: 'SingleMobileInsight',
              component: SingleMobileInsight,
          },
          {
d0186c77a   Digvijay Singh   changes in ui
120
              path: '/two-screen-without-insight/:caseStudyId/:slideId',
97338adf3   Digvijay Singh   changes
121
122
123
124
              name: 'TwoScreenWithoutInsight',
              component: TwoScreenWithoutInsight,
          },
          {
c65b51996   Digvijay Singh   new ui changes
125
              path: '/single-m-screen-insight-one/:caseStudyId/:slideId',
97338adf3   Digvijay Singh   changes
126
127
128
129
              name: 'SingleMobileScreenInsightOne',
              component: SingleMobileScreenInsightOne,
          },
          {
c65b51996   Digvijay Singh   new ui changes
130
131
132
133
134
              path: '/single-m-screen-insight-two/:caseStudyId/:slideId',
              name: 'SingleMobileScreenInsightTwo',
              component: SingleMobileScreenInsightTwo,
          },
          {
97338adf3   Digvijay Singh   changes
135
136
137
138
139
140
141
142
143
144
              path: '/single-web-screen-insight-one',
              name: 'SingleWebScreenInsightOne',
              component: SingleWebScreenInsightOne,
          },
          {
              path: '/single-screengrab-one-insight',
              name: 'SingleScreengrabOneInsight',
              component: SingleScreengrabOneInsight,
          },
          {
d0186c77a   Digvijay Singh   changes in ui
145
              path: '/two-screen-with-insight/:caseStudyId/:slideId',
97338adf3   Digvijay Singh   changes
146
147
148
149
150
151
152
153
154
155
156
157
158
159
              name: 'TwoScreenWithInsight',
              component: TwoScreenWithInsight,
          },
          {
              path: '/two-screengrab-with-comments',
              name: 'TwoScreengrabWithComments',
              component: TwoScreengrabWithComments,
          },
          {
              path: '/two-webscreen-with-insight',
              name: 'TwoWebScreenWithInsight',
              component: TwoWebScreenWithInsight,
          },
          {
c65b51996   Digvijay Singh   new ui changes
160
              path: '/noscreenshot-single-author/:caseStudyId/:slideId',
97338adf3   Digvijay Singh   changes
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
              name: 'NoScreenshotSingleAuthor',
              component: NoScreenshotSingleAuthor,
          },
          {
              path: '/two-author-intro',
              name: 'TwoAuthor',
              component: TwoAuthor,
          },
          {
              path: '/two-author-desktop',
              name: 'TwoAuthorDesktop',
              component: TwoAuthorDesktop,
          },
          {
              path: '/two-author-reading-now',
              name: 'TwoAuthorReadingNow',
              component: TwoAuthorReadingNow,
          },
          {
              path: '/single-mobile-screen-chat-comments',
              name: 'SingleMobileScreenChatComments',
              component: SingleMobileScreenChatComments,
          },
          {
              path: '/two-screen-with-two-author',
              name: 'TwoScreensWithTwoAuthor',
              component: TwoScreensWithTwoAuthor,
          },
          {
              path: '/no-screenshot-two-author',
              name: 'NoScreenshotTwoAuthor',
              component: NoScreenshotTwoAuthor,
          },
          {
              path: '/to-add-your-comment',
              name: 'ToAddYourComment',
              component: ToAddYourComment,
          },
          {
              path: '/reading-flow-bounce-board',
              name: 'ReadingFlowBounceBoard',
              component: ReadingFlowBounceBoard,
          },
          {
              path: '/reading-flow-bounce-board-chat',
              name: 'ReadingFlowBounceBoard_chat',
              component: ReadingFlowBounceBoard_chat,
          },            
          {
              path: '/otp/:flag',
              name: 'Otp',
              component: Otp,
          },               
          {
              path: '/changepassword',
              name: 'ChangePassword',
              component: ChangePassword,
d0186c77a   Digvijay Singh   changes in ui
218
219
220
221
222
223
          },
          {
              path: '/noscreenshot-s-autho/:caseStudyId/:slideId',
              name: 'noscreenshotSingleautho',
              component: noscreenshotSingleautho,
          }, 
97338adf3   Digvijay Singh   changes
224
225
226
227
228
      ],
      scrollBehavior(to, from, savedPosition) {
          this.seen = false
          return { x: 0, y: 0 }
      }
d0186c77a   Digvijay Singh   changes in ui
229
230
231
232
233
234
  })
  
  // noscreenshot-s-autho
  //two-screen-without-insight
  //single-m-screen-insight-one
  //two-screen-with-insight