From e8bb18fbc36f2ab5966837a90a32a8a48fb4dbde Mon Sep 17 00:00:00 2001 From: nymkappa Date: Thu, 5 May 2022 16:18:28 +0900 Subject: [PATCH 1/4] Add download feature on mining charts --- frontend/src/app/app.module.ts | 4 ++- .../block-fee-rates-graph.component.html | 4 +++ .../block-fee-rates-graph.component.ts | 19 +++++++++++++- .../block-fees-graph.component.html | 7 ++++- .../block-fees-graph.component.ts | 24 ++++++++++++++++- .../block-rewards-graph.component.html | 7 ++++- .../block-rewards-graph.component.ts | 24 ++++++++++++++++- .../hashrate-chart.component.html | 7 ++++- .../hashrate-chart.component.ts | 25 ++++++++++++++++++ .../hashrate-chart-pools.component.html | 9 +++++-- .../hashrate-chart-pools.component.ts | 26 +++++++++++++++++++ .../pool-ranking/pool-ranking.component.html | 4 +++ .../pool-ranking/pool-ranking.component.ts | 12 +++++++++ frontend/src/app/shared/graphs.utils.ts | 9 +++++++ 14 files changed, 172 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 8738c37f1..ef40be5a3 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -48,7 +48,8 @@ import { DashboardComponent } from './dashboard/dashboard.component'; import { DifficultyComponent } from './components/difficulty/difficulty.component'; import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome'; import { faFilter, faAngleDown, faAngleUp, faAngleRight, faAngleLeft, faBolt, faChartArea, faCogs, faCubes, faHammer, faDatabase, faExchangeAlt, faInfoCircle, - faLink, faList, faSearch, faCaretUp, faCaretDown, faTachometerAlt, faThList, faTint, faTv, faAngleDoubleDown, faSortUp, faAngleDoubleUp, faChevronDown, faFileAlt, faRedoAlt, faArrowAltCircleRight, faExternalLinkAlt, faBook, faListUl } from '@fortawesome/free-solid-svg-icons'; + faLink, faList, faSearch, faCaretUp, faCaretDown, faTachometerAlt, faThList, faTint, faTv, faAngleDoubleDown, faSortUp, faAngleDoubleUp, faChevronDown, + faFileAlt, faRedoAlt, faArrowAltCircleRight, faExternalLinkAlt, faBook, faListUl, faDownload } from '@fortawesome/free-solid-svg-icons'; import { TermsOfServiceComponent } from './components/terms-of-service/terms-of-service.component'; import { PrivacyPolicyComponent } from './components/privacy-policy/privacy-policy.component'; import { TrademarkPolicyComponent } from './components/trademark-policy/trademark-policy.component'; @@ -195,5 +196,6 @@ export class AppModule { library.addIcons(faAngleLeft); library.addIcons(faBook); library.addIcons(faListUl); + library.addIcons(faDownload); } } diff --git a/frontend/src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.html b/frontend/src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.html index 1fb97407b..def7d96aa 100644 --- a/frontend/src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.html +++ b/frontend/src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.html @@ -1,6 +1,10 @@
Block fee rates + +