diff --git a/frontend/src/app/components/block-predictions-graph/block-predictions-graph.component.html b/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.html similarity index 76% rename from frontend/src/app/components/block-predictions-graph/block-predictions-graph.component.html rename to frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.html index 79806eb2b..64cd32fd1 100644 --- a/frontend/src/app/components/block-predictions-graph/block-predictions-graph.component.html +++ b/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.html @@ -2,41 +2,41 @@
- Block Predictions Accuracy + Block Prediction Accuracy
diff --git a/frontend/src/app/components/block-predictions-graph/block-predictions-graph.component.scss b/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.scss similarity index 100% rename from frontend/src/app/components/block-predictions-graph/block-predictions-graph.component.scss rename to frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.scss diff --git a/frontend/src/app/components/block-predictions-graph/block-predictions-graph.component.ts b/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.ts similarity index 96% rename from frontend/src/app/components/block-predictions-graph/block-predictions-graph.component.ts rename to frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.ts index b2ec7116c..fe5a9f40c 100644 --- a/frontend/src/app/components/block-predictions-graph/block-predictions-graph.component.ts +++ b/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.ts @@ -13,9 +13,9 @@ import { RelativeUrlPipe } from 'src/app/shared/pipes/relative-url/relative-url. import { StateService } from 'src/app/services/state.service'; @Component({ - selector: 'app-block-predictions-graph', - templateUrl: './block-predictions-graph.component.html', - styleUrls: ['./block-predictions-graph.component.scss'], + selector: 'app-block-prediction-graph', + templateUrl: './block-prediction-graph.component.html', + styleUrls: ['./block-prediction-graph.component.scss'], styles: [` .loadingGraphs { position: absolute; @@ -26,7 +26,7 @@ import { StateService } from 'src/app/services/state.service'; `], changeDetection: ChangeDetectionStrategy.OnPush, }) -export class BlockPredictionsGraphComponent implements OnInit { +export class BlockPredictionGraphComponent implements OnInit { @Input() right: number | string = 45; @Input() left: number | string = 75; @@ -60,7 +60,7 @@ export class BlockPredictionsGraphComponent implements OnInit { } ngOnInit(): void { - this.seoService.setTitle($localize`Block predictions accuracy`); + this.seoService.setTitle($localize`:@@d7d5fcf50179ad70c938491c517efb82de2c8146:Block Prediction Accuracy`); this.miningWindowPreference = '24h';//this.miningService.getDefaultTimespan('24h'); this.radioGroupForm = this.formBuilder.group({ dateSpan: this.miningWindowPreference }); this.radioGroupForm.controls.dateSpan.setValue(this.miningWindowPreference); diff --git a/frontend/src/app/components/graphs/graphs.component.html b/frontend/src/app/components/graphs/graphs.component.html index aca62a4dd..59aa61aa1 100644 --- a/frontend/src/app/components/graphs/graphs.component.html +++ b/frontend/src/app/components/graphs/graphs.component.html @@ -19,7 +19,7 @@ Block Sizes and Weights Blocks Predictions Accuracy + [routerLink]="['/graphs/mining/block-prediction' | relativeUrl]" i18n="mining.block-prediction-accuracy">Block Prediction Accuracy
diff --git a/frontend/src/app/graphs/graphs.module.ts b/frontend/src/app/graphs/graphs.module.ts index 8cdc51608..39a493134 100644 --- a/frontend/src/app/graphs/graphs.module.ts +++ b/frontend/src/app/graphs/graphs.module.ts @@ -22,7 +22,7 @@ import { DashboardComponent } from '../dashboard/dashboard.component'; import { MiningDashboardComponent } from '../components/mining-dashboard/mining-dashboard.component'; import { HashrateChartComponent } from '../components/hashrate-chart/hashrate-chart.component'; import { HashrateChartPoolsComponent } from '../components/hashrates-chart-pools/hashrate-chart-pools.component'; -import { BlockPredictionsGraphComponent } from '../components/block-predictions-graph/block-predictions-graph.component'; +import { BlockPredictionGraphComponent } from '../components/block-prediction-graph/block-prediction-graph.component'; import { CommonModule } from '@angular/common'; @NgModule({ @@ -48,7 +48,7 @@ import { CommonModule } from '@angular/common'; LbtcPegsGraphComponent, HashrateChartComponent, HashrateChartPoolsComponent, - BlockPredictionsGraphComponent, + BlockPredictionGraphComponent, ], imports: [ CommonModule, diff --git a/frontend/src/app/graphs/graphs.routing.module.ts b/frontend/src/app/graphs/graphs.routing.module.ts index fd3efaba4..5c6daae7f 100644 --- a/frontend/src/app/graphs/graphs.routing.module.ts +++ b/frontend/src/app/graphs/graphs.routing.module.ts @@ -1,6 +1,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { BlockPredictionsGraphComponent } from '../components/block-predictions-graph/block-predictions-graph.component'; +import { BlockPredictionGraphComponent } from '../components/block-prediction-graph/block-prediction-graph.component'; import { BlockFeeRatesGraphComponent } from '../components/block-fee-rates-graph/block-fee-rates-graph.component'; import { BlockFeesGraphComponent } from '../components/block-fees-graph/block-fees-graph.component'; import { BlockRewardsGraphComponent } from '../components/block-rewards-graph/block-rewards-graph.component'; @@ -94,8 +94,8 @@ const routes: Routes = [ redirectTo: 'mempool', }, { - path: 'mining/block-predictions', - component: BlockPredictionsGraphComponent, + path: 'mining/block-prediction', + component: BlockPredictionGraphComponent, }, ] }, diff --git a/frontend/src/locale/messages.xlf b/frontend/src/locale/messages.xlf index ce94231d2..0648705b1 100644 --- a/frontend/src/locale/messages.xlf +++ b/frontend/src/locale/messages.xlf @@ -1848,7 +1848,7 @@ 137 - src/app/components/block-predictions-graph/block-predictions-graph.component.ts + src/app/components/block-prediction-graph/block-prediction-graph.component.ts 128 @@ -1871,7 +1871,7 @@ 139 - src/app/components/block-predictions-graph/block-predictions-graph.component.ts + src/app/components/block-prediction-graph/block-prediction-graph.component.ts 130 @@ -1990,11 +1990,11 @@ src/app/components/blockchain-blocks/blockchain-blocks.component.html - 11,14 + 11,13 src/app/components/blockchain-blocks/blockchain-blocks.component.html - 14,17 + 14,16 src/app/components/fees-box/fees-box.component.html @@ -2022,7 +2022,7 @@ src/app/components/mempool-blocks/mempool-blocks.component.html - 10,13 + 10,12 src/app/components/mempool-blocks/mempool-blocks.component.html @@ -2076,25 +2076,26 @@ Transaction Virtual Size transaction.vsize - - Block Predictions Accuracy + + Block Prediction Accuracy - src/app/components/block-predictions-graph/block-predictions-graph.component.html + src/app/components/block-prediction-graph/block-prediction-graph.component.html 5,7 - mining.block-prediction-accuracy - - - Block predictions accuracy - src/app/components/block-predictions-graph/block-predictions-graph.component.ts + src/app/components/block-prediction-graph/block-prediction-graph.component.ts 63 + + src/app/components/graphs/graphs.component.html + 22 + + mining.block-prediction-accuracy Match rate - src/app/components/block-predictions-graph/block-predictions-graph.component.ts + src/app/components/block-prediction-graph/block-prediction-graph.component.ts 176,174 @@ -2840,14 +2841,6 @@ mining.hashrate-difficulty - - Blocks Predictions Accuracy - - src/app/components/graphs/graphs.component.html - 22 - - mining.block-prediction-accuracy - Hashrate