2022-05-19 23:47:44 +04:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2023-03-16 17:03:32 +09:00
|
|
|
import { BlockHealthGraphComponent } from '../components/block-health-graph/block-health-graph.component';
|
2022-05-19 23:47:44 +04:00
|
|
|
import { BlockFeeRatesGraphComponent } from '../components/block-fee-rates-graph/block-fee-rates-graph.component';
|
|
|
|
import { BlockFeesGraphComponent } from '../components/block-fees-graph/block-fees-graph.component';
|
2024-05-03 12:33:05 +02:00
|
|
|
import { BlockFeesSubsidyGraphComponent } from '../components/block-fees-subsidy-graph/block-fees-subsidy-graph.component';
|
2022-05-19 23:47:44 +04:00
|
|
|
import { BlockRewardsGraphComponent } from '../components/block-rewards-graph/block-rewards-graph.component';
|
|
|
|
import { BlockSizesWeightsGraphComponent } from '../components/block-sizes-weights-graph/block-sizes-weights-graph.component';
|
|
|
|
import { GraphsComponent } from '../components/graphs/graphs.component';
|
|
|
|
import { HashrateChartComponent } from '../components/hashrate-chart/hashrate-chart.component';
|
|
|
|
import { HashrateChartPoolsComponent } from '../components/hashrates-chart-pools/hashrate-chart-pools.component';
|
|
|
|
import { MempoolBlockComponent } from '../components/mempool-block/mempool-block.component';
|
|
|
|
import { MiningDashboardComponent } from '../components/mining-dashboard/mining-dashboard.component';
|
2023-12-07 08:26:32 +00:00
|
|
|
import { AcceleratorDashboardComponent } from '../components/acceleration/accelerator-dashboard/accelerator-dashboard.component';
|
2022-05-19 23:47:44 +04:00
|
|
|
import { PoolRankingComponent } from '../components/pool-ranking/pool-ranking.component';
|
|
|
|
import { PoolComponent } from '../components/pool/pool.component';
|
|
|
|
import { StartComponent } from '../components/start/start.component';
|
|
|
|
import { StatisticsComponent } from '../components/statistics/statistics.component';
|
|
|
|
import { TelevisionComponent } from '../components/television/television.component';
|
|
|
|
import { DashboardComponent } from '../dashboard/dashboard.component';
|
2024-04-25 20:20:41 +00:00
|
|
|
import { CustomDashboardComponent } from '../components/custom-dashboard/custom-dashboard.component';
|
2023-12-07 08:26:32 +00:00
|
|
|
import { AccelerationFeesGraphComponent } from '../components/acceleration/acceleration-fees-graph/acceleration-fees-graph.component';
|
|
|
|
import { AccelerationsListComponent } from '../components/acceleration/accelerations-list/accelerations-list.component';
|
2024-03-18 08:19:56 +00:00
|
|
|
import { AddressComponent } from '../components/address/address.component';
|
2022-05-20 17:54:06 +04:00
|
|
|
|
2024-04-25 20:20:41 +00:00
|
|
|
const browserWindow = window || {};
|
|
|
|
// @ts-ignore
|
|
|
|
const browserWindowEnv = browserWindow.__env || {};
|
|
|
|
const isCustomized = browserWindowEnv?.customize;
|
|
|
|
|
2022-05-19 23:47:44 +04:00
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'mining/pool/:slug',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: PoolComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mining',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: MiningDashboardComponent,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2023-07-20 16:26:42 +09:00
|
|
|
{
|
|
|
|
path: 'acceleration',
|
|
|
|
data: { networks: ['bitcoin'] },
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: AcceleratorDashboardComponent,
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-08-30 22:24:27 +09:00
|
|
|
{
|
2024-06-26 15:37:39 +09:00
|
|
|
path: 'acceleration/list/:page',
|
2023-08-30 22:24:27 +09:00
|
|
|
data: { networks: ['bitcoin'] },
|
|
|
|
component: AccelerationsListComponent,
|
|
|
|
},
|
2024-06-26 15:37:39 +09:00
|
|
|
{
|
|
|
|
path: 'acceleration/list',
|
|
|
|
redirectTo: 'acceleration/list/1',
|
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin', 'liquid'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: MempoolBlockComponent,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2024-03-18 08:19:56 +00:00
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent,
|
|
|
|
data: {
|
|
|
|
ogImage: true,
|
|
|
|
networkSpecific: true,
|
|
|
|
}
|
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: 'graphs',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin', 'liquid'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: GraphsComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'mempool',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin', 'liquid'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: StatisticsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mining/hashrate-difficulty',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: HashrateChartComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mining/pools-dominance',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: HashrateChartPoolsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mining/pools',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: PoolRankingComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mining/block-fees',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: BlockFeesGraphComponent,
|
|
|
|
},
|
2024-05-03 12:33:05 +02:00
|
|
|
{
|
|
|
|
path: 'mining/block-fees-subsidy',
|
|
|
|
data: { networks: ['bitcoin'] },
|
|
|
|
component: BlockFeesSubsidyGraphComponent,
|
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: 'mining/block-rewards',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: BlockRewardsGraphComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mining/block-fee-rates',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: BlockFeeRatesGraphComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mining/block-sizes-weights',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: BlockSizesWeightsGraphComponent,
|
|
|
|
},
|
2023-07-21 14:11:46 +09:00
|
|
|
{
|
|
|
|
path: 'acceleration/fees',
|
|
|
|
data: { networks: ['bitcoin'] },
|
|
|
|
component: AccelerationFeesGraphComponent,
|
|
|
|
},
|
2022-07-06 15:15:08 +02:00
|
|
|
{
|
2023-11-10 03:03:16 +00:00
|
|
|
path: 'lightning',
|
2023-11-10 04:58:07 +00:00
|
|
|
data: { preload: true, networks: ['bitcoin'] },
|
|
|
|
loadChildren: () => import ('./lightning-graphs.module').then(m => m.LightningGraphsModule),
|
2022-07-21 22:43:12 +02:00
|
|
|
},
|
2022-05-20 18:22:04 +04:00
|
|
|
{
|
|
|
|
path: '',
|
2022-11-28 11:55:23 +09:00
|
|
|
pathMatch: 'full',
|
2022-05-20 18:22:04 +04:00
|
|
|
redirectTo: 'mempool',
|
|
|
|
},
|
2022-07-06 22:27:45 +02:00
|
|
|
{
|
2023-03-16 17:03:32 +09:00
|
|
|
path: 'mining/block-health',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin'] },
|
2023-03-16 17:03:32 +09:00
|
|
|
component: BlockHealthGraphComponent,
|
2022-07-06 22:27:45 +02:00
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [{
|
|
|
|
path: '',
|
2024-04-25 20:20:41 +00:00
|
|
|
component: isCustomized ? CustomDashboardComponent : DashboardComponent,
|
2022-05-19 23:47:44 +04:00
|
|
|
}]
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tv',
|
2022-10-12 22:13:29 +00:00
|
|
|
data: { networks: ['bitcoin', 'liquid'] },
|
2022-05-19 23:47:44 +04:00
|
|
|
component: TelevisionComponent
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
})
|
|
|
|
export class GraphsRoutingModule { }
|