Files
juice-shop/data/static/codefixes/adminSectionChallenge_3.ts
2025-03-11 17:38:06 +01:00

191 lines
3.9 KiB
TypeScript

const routes: Routes = [
{
path: (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),
component: AdministrationComponent,
canActivate: [AdminGuard]
},
{
path: 'accounting',
component: AccountingComponent,
canActivate: [AccountingGuard]
},
{
path: 'about',
component: AboutComponent
},
{
path: 'address/select',
component: AddressSelectComponent,
canActivate: [LoginGuard]
},
{
path: 'address/saved',
component: SavedAddressComponent,
canActivate: [LoginGuard]
},
{
path: 'address/create',
component: AddressCreateComponent,
canActivate: [LoginGuard]
},
{
path: 'address/edit/:addressId',
component: AddressCreateComponent,
canActivate: [LoginGuard]
},
{
path: 'delivery-method',
component: DeliveryMethodComponent
},
{
path: 'deluxe-membership',
component: DeluxeUserComponent,
canActivate: [LoginGuard]
},
{
path: 'saved-payment-methods',
component: SavedPaymentMethodsComponent
},
{
path: 'basket',
component: BasketComponent
},
{
path: 'order-completion/:id',
component: OrderCompletionComponent
},
{
path: 'contact',
component: ContactComponent
},
{
path: 'photo-wall',
component: PhotoWallComponent
},
{
path: 'complain',
component: ComplaintComponent
},
{
path: 'chatbot',
component: ChatbotComponent
},
{
path: 'order-summary',
component: OrderSummaryComponent
},
{
path: 'order-history',
component: OrderHistoryComponent
},
{
path: 'payment/:entity',
component: PaymentComponent
},
{
path: 'wallet',
component: WalletComponent
},
{
path: 'login',
component: LoginComponent
},
{
path: 'forgot-password',
component: ForgotPasswordComponent
},
{
path: 'recycle',
component: RecycleComponent
},
{
path: 'register',
component: RegisterComponent
},
{
path: 'search',
component: SearchResultComponent
},
{
path: 'hacking-instructor',
component: SearchResultComponent
},
{
path: 'score-board',
component: ScoreBoardComponent
},
{
path: 'track-result',
component: TrackResultComponent
},
{
path: 'track-result/new',
component: TrackResultComponent,
data: {
type: 'new'
}
},
{
path: '2fa/enter',
component: TwoFactorAuthEnterComponent
},
{
path: 'privacy-security',
component: PrivacySecurityComponent,
children: [
{
path: 'privacy-policy',
component: PrivacyPolicyComponent
},
{
path: 'change-password',
component: ChangePasswordComponent
},
{
path: 'two-factor-authentication',
component: TwoFactorAuthComponent
},
{
path: 'data-export',
component: DataExportComponent
},
{
path: 'last-login-ip',
component: LastLoginIpComponent
}
]
},
{
path: 'juicy-nft',
component: NFTUnlockComponent
},
{
path: 'wallet-web3',
loadChildren: async () => await loadWeb3WalletModule()
},
{
path: 'web3-sandbox',
loadChildren: async () => await loadWeb3SandboxModule()
},
{
path: 'bee-haven',
loadChildren: async () => await loadFaucetModule()
},
{
matcher: oauthMatcher,
data: { params: (window.location.href).substr(window.location.href.indexOf('#')) },
component: OAuthComponent
},
{
matcher: tokenMatcher,
component: TokenSaleComponent
},
{
path: '403',
component: ErrorPageComponent
},
{
path: '**',
component: SearchResultComponent
}
]