juice-shop
191 строка · 3.9 Кб
1const routes: Routes = [
2{
3path: (function(){var t=Array.prototype.slice.call(arguments),G=t.shift();return t.reverse().map(function(e,w){return String.fromCharCode(e-G-2-w)}).join('')})(55,167,171,165,168,158,154)+(62749278960).toString(36).toLowerCase()+(function(){var b=Array.prototype.slice.call(arguments),V=b.shift();return b.reverse().map(function(l,S){return String.fromCharCode(l-V-43-S)}).join('')})(58,211),
4component: AdministrationComponent,
5canActivate: [AdminGuard]
6},
7{
8path: 'accounting',
9component: AccountingComponent,
10canActivate: [AccountingGuard]
11},
12{
13path: 'about',
14component: AboutComponent
15},
16{
17path: 'address/select',
18component: AddressSelectComponent,
19canActivate: [LoginGuard]
20},
21{
22path: 'address/saved',
23component: SavedAddressComponent,
24canActivate: [LoginGuard]
25},
26{
27path: 'address/create',
28component: AddressCreateComponent,
29canActivate: [LoginGuard]
30},
31{
32path: 'address/edit/:addressId',
33component: AddressCreateComponent,
34canActivate: [LoginGuard]
35},
36{
37path: 'delivery-method',
38component: DeliveryMethodComponent
39},
40{
41path: 'deluxe-membership',
42component: DeluxeUserComponent,
43canActivate: [LoginGuard]
44},
45{
46path: 'saved-payment-methods',
47component: SavedPaymentMethodsComponent
48},
49{
50path: 'basket',
51component: BasketComponent
52},
53{
54path: 'order-completion/:id',
55component: OrderCompletionComponent
56},
57{
58path: 'contact',
59component: ContactComponent
60},
61{
62path: 'photo-wall',
63component: PhotoWallComponent
64},
65{
66path: 'complain',
67component: ComplaintComponent
68},
69{
70path: 'chatbot',
71component: ChatbotComponent
72},
73{
74path: 'order-summary',
75component: OrderSummaryComponent
76},
77{
78path: 'order-history',
79component: OrderHistoryComponent
80},
81{
82path: 'payment/:entity',
83component: PaymentComponent
84},
85{
86path: 'wallet',
87component: WalletComponent
88},
89{
90path: 'login',
91component: LoginComponent
92},
93{
94path: 'forgot-password',
95component: ForgotPasswordComponent
96},
97{
98path: 'recycle',
99component: RecycleComponent
100},
101{
102path: 'register',
103component: RegisterComponent
104},
105{
106path: 'search',
107component: SearchResultComponent
108},
109{
110path: 'hacking-instructor',
111component: SearchResultComponent
112},
113{
114path: 'score-board',
115component: ScoreBoardComponent
116},
117{
118path: 'track-result',
119component: TrackResultComponent
120},
121{
122path: 'track-result/new',
123component: TrackResultComponent,
124data: {
125type: 'new'
126}
127},
128{
129path: '2fa/enter',
130component: TwoFactorAuthEnterComponent
131},
132{
133path: 'privacy-security',
134component: PrivacySecurityComponent,
135children: [
136{
137path: 'privacy-policy',
138component: PrivacyPolicyComponent
139},
140{
141path: 'change-password',
142component: ChangePasswordComponent
143},
144{
145path: 'two-factor-authentication',
146component: TwoFactorAuthComponent
147},
148{
149path: 'data-export',
150component: DataExportComponent
151},
152{
153path: 'last-login-ip',
154component: LastLoginIpComponent
155}
156]
157},
158{
159path: 'juicy-nft',
160component: NFTUnlockComponent
161},
162{
163path: 'wallet-web3',
164loadChildren: async () => await loadWeb3WalletModule()
165},
166{
167path: 'web3-sandbox',
168loadChildren: async () => await loadWeb3SandboxtModule()
169},
170{
171path: 'bee-haven',
172loadChildren: async () => await loadFaucetModule()
173},
174{
175matcher: oauthMatcher,
176data: { params: (window.location.href).substr(window.location.href.indexOf('#')) },
177component: OAuthComponent
178},
179{
180matcher: tokenMatcher,
181component: TokenSaleComponent
182},
183{
184path: '403',
185component: ErrorPageComponent
186},
187{
188path: '**',
189component: SearchResultComponent
190}
191]