mempool/frontend/src/app/lightning/lightning.routing.module.ts

86 lines
2.4 KiB
TypeScript
Raw Normal View History

2022-04-29 03:57:27 +04:00
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LightningDashboardComponent } from './lightning-dashboard/lightning-dashboard.component';
2022-05-06 16:31:25 +04:00
import { LightningWrapperComponent } from './lightning-wrapper/lightning-wrapper.component';
2022-04-29 03:57:27 +04:00
import { NodeComponent } from './node/node.component';
2022-05-01 03:01:27 +04:00
import { ChannelComponent } from './channel/channel.component';
2022-07-16 15:56:36 +02:00
import { NodesPerCountry } from './nodes-per-country/nodes-per-country.component';
2022-07-17 22:57:29 +02:00
import { NodesPerISP } from './nodes-per-isp/nodes-per-isp.component';
2022-08-17 12:53:26 +02:00
import { NodesRanking } from './nodes-ranking/nodes-ranking.component';
import { NodesRankingsDashboard } from './nodes-rankings-dashboard/nodes-rankings-dashboard.component';
2022-09-17 01:26:32 +02:00
import { GroupComponent } from './group/group.component';
2022-04-29 03:57:27 +04:00
const routes: Routes = [
{
path: '',
2022-05-06 16:31:25 +04:00
component: LightningWrapperComponent,
children: [
{
path: '',
component: LightningDashboardComponent,
},
{
path: 'node/:public_key',
2022-10-12 22:13:29 +00:00
data: { networkSpecific: true },
2022-05-06 16:31:25 +04:00
component: NodeComponent,
},
{
path: 'channel/:short_id',
2022-10-12 22:13:29 +00:00
data: { networkSpecific: true },
2022-05-06 16:31:25 +04:00
component: ChannelComponent,
},
2022-07-16 15:56:36 +02:00
{
path: 'nodes/country/:country',
component: NodesPerCountry,
},
2022-07-17 22:57:29 +02:00
{
path: 'nodes/isp/:isp',
component: NodesPerISP,
},
2022-09-17 01:26:32 +02:00
{
2022-09-18 23:05:11 +02:00
path: 'group/the-mempool-open-source-project',
2022-09-17 01:26:32 +02:00
component: GroupComponent,
},
{
path: 'nodes/rankings',
component: NodesRankingsDashboard,
},
2022-08-17 12:53:26 +02:00
{
path: 'nodes/rankings/liquidity',
2022-08-17 12:53:26 +02:00
component: NodesRanking,
data: {
type: 'capacity'
},
2022-08-17 12:53:26 +02:00
},
{
path: 'nodes/rankings/connectivity',
component: NodesRanking,
data: {
type: 'channels'
},
},
2022-08-17 21:29:04 +02:00
{
path: 'nodes/oldest',
component: NodesRanking,
data: {
type: 'oldest'
},
},
2022-05-06 16:31:25 +04:00
{
path: '**',
redirectTo: ''
}
]
2022-05-01 03:01:27 +04:00
},
2022-04-29 03:57:27 +04:00
{
path: '**',
redirectTo: ''
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class LightningRoutingModule { }