96 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			96 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { NgModule } from '@angular/core';
 | |
| import { RouterModule, Routes } from '@angular/router';
 | |
| import { BisqMasterPageComponent } from '../components/bisq-master-page/bisq-master-page.component';
 | |
| import { BisqTransactionsComponent } from './bisq-transactions/bisq-transactions.component';
 | |
| import { BisqTransactionComponent } from './bisq-transaction/bisq-transaction.component';
 | |
| import { BisqBlockComponent } from './bisq-block/bisq-block.component';
 | |
| import { BisqBlocksComponent } from './bisq-blocks/bisq-blocks.component';
 | |
| import { BisqAddressComponent } from './bisq-address/bisq-address.component';
 | |
| import { BisqStatsComponent } from './bisq-stats/bisq-stats.component';
 | |
| import { BisqDashboardComponent } from './bisq-dashboard/bisq-dashboard.component';
 | |
| import { BisqMarketComponent } from './bisq-market/bisq-market.component';
 | |
| import { BisqMainDashboardComponent } from './bisq-main-dashboard/bisq-main-dashboard.component';
 | |
| import { PushTransactionComponent } from '../components/push-transaction/push-transaction.component';
 | |
| 
 | |
| const routes: Routes = [
 | |
|   {
 | |
|     path: '',
 | |
|     component: BisqMasterPageComponent,
 | |
|     children: [
 | |
|       {
 | |
|         path: '',
 | |
|         component: BisqMainDashboardComponent,
 | |
|       },
 | |
|       {
 | |
|         path: 'markets',
 | |
|         data: { networks: ['bisq'] },
 | |
|         component: BisqDashboardComponent,
 | |
|       },
 | |
|       {
 | |
|         path: 'transactions',
 | |
|         data: { networks: ['bisq'] },
 | |
|         component: BisqTransactionsComponent
 | |
|       },
 | |
|       {
 | |
|         path: 'market/:pair',
 | |
|         data: { networkSpecific: true },
 | |
|         component: BisqMarketComponent,
 | |
|       },
 | |
|       {
 | |
|         path: 'tx/push',
 | |
|         component: PushTransactionComponent,
 | |
|       },
 | |
|       {
 | |
|         path: 'tx/:id',
 | |
|         data: { networkSpecific: true },
 | |
|         component: BisqTransactionComponent
 | |
|       },
 | |
|       {
 | |
|         path: 'blocks',
 | |
|         children: [],
 | |
|         component: BisqBlocksComponent
 | |
|       },
 | |
|       {
 | |
|         path: 'block/:id',
 | |
|         data: { networkSpecific: true },
 | |
|         component: BisqBlockComponent,
 | |
|       },
 | |
|       {
 | |
|         path: 'address/:id',
 | |
|         data: { networkSpecific: true },
 | |
|         component: BisqAddressComponent,
 | |
|       },
 | |
|       {
 | |
|         path: 'stats',
 | |
|         data: { networks: ['bisq'] },
 | |
|         component: BisqStatsComponent,
 | |
|       },
 | |
|       {
 | |
|         path: 'about',
 | |
|         loadChildren: () => import('../components/about/about.module').then(m => m.AboutModule),
 | |
|       },
 | |
|       {
 | |
|         path: 'docs',
 | |
|         loadChildren: () => import('../docs/docs.module').then(m => m.DocsModule)
 | |
|       },
 | |
|       {
 | |
|         path: 'api',
 | |
|         loadChildren: () => import('../docs/docs.module').then(m => m.DocsModule)
 | |
|       },
 | |
|       {
 | |
|         path: 'terms-of-service',
 | |
|         loadChildren: () => import('../components/terms-of-service/terms-of-service.module').then(m => m.TermsOfServiceModule),
 | |
|       },
 | |
|       {
 | |
|         path: '**',
 | |
|         redirectTo: ''
 | |
|       }
 | |
|     ]
 | |
|   }
 | |
| ];
 | |
| 
 | |
| @NgModule({
 | |
|   imports: [RouterModule.forChild(routes)],
 | |
| })
 | |
| export class BisqRoutingModule { }
 |