diff --git a/angular.json b/angular.json index 3607fe0..74007d0 100644 --- a/angular.json +++ b/angular.json @@ -38,6 +38,7 @@ ], "scripts": [ "node_modules/jquery/dist/jquery.min.js", + "node_modules/@popperjs/core/dist/umd/popper.min.js", "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js", "node_modules/bootstrap-table/dist/bootstrap-table.min.js" ], diff --git a/package-lock.json b/package-lock.json index cc40dff..68a4df7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@angular/platform-browser": "17.3.12", "@angular/platform-browser-dynamic": "17.3.12", "@angular/router": "17.3.12", + "@popperjs/core": "2.11.8", "bootstrap": "5.3.3", "bootstrap-icons": "1.11.3", "bootstrap-table": "1.23.5", diff --git a/package.json b/package.json index 7dcb6a7..c0957a2 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "@angular/platform-browser": "17.3.12", "@angular/platform-browser-dynamic": "17.3.12", "@angular/router": "17.3.12", + "@popperjs/core": "2.11.8", "bootstrap": "5.3.3", "bootstrap-icons": "1.11.3", "bootstrap-table": "1.23.5", diff --git a/src/app/core/services/daemon/daemon.service.ts b/src/app/core/services/daemon/daemon.service.ts index a1ae6a9..523e486 100644 --- a/src/app/core/services/daemon/daemon.service.ts +++ b/src/app/core/services/daemon/daemon.service.ts @@ -139,8 +139,8 @@ export class DaemonService { this.settings = new DaemonSettings(); window.electronAPI.onMoneroClose((event: any, code: number) => { - console.log(event); - console.log(code); + console.debug(event); + console.debug(code); this.onClose(); }); } @@ -963,7 +963,6 @@ export class DaemonService { this.onDaemonStopStart.emit(); const response = await this.callRpc(new StopDaemonRequest()); - console.log(response); if (typeof response.status == 'string' && response.status != 'OK') { window.electronAPI.showNotification({ diff --git a/src/app/pages/detail/detail.component.ts b/src/app/pages/detail/detail.component.ts index c0b6664..735a09f 100644 --- a/src/app/pages/detail/detail.component.ts +++ b/src/app/pages/detail/detail.component.ts @@ -142,9 +142,14 @@ export class DetailComponent extends BasePageComponent implements AfterViewInit private get syncProgress(): string { const targetHeight = this.targetHeight; const height = this.height; - console.log(`Sync progress, height ${height},targetHeight ${targetHeight}`) + + const progress = `${(height*100/targetHeight).toFixed(2)} %`; - return `${(height*100/targetHeight).toFixed(2)} %`; + if (height < targetHeight && progress == '100 %') { + return '99.99 %'; + } + + return progress; } private get wasBootstrapEverUsed(): boolean { diff --git a/src/app/pages/mining/mining.component.ts b/src/app/pages/mining/mining.component.ts index 75c69fd..d357aed 100644 --- a/src/app/pages/mining/mining.component.ts +++ b/src/app/pages/mining/mining.component.ts @@ -1,4 +1,4 @@ -import { AfterViewInit, Component, NgZone } from '@angular/core'; +import { AfterContentInit, AfterViewInit, Component, NgZone } from '@angular/core'; import { DaemonService, DaemonDataService } from '../../core/services'; import { NavbarLink, NavbarService } from '../../shared/components'; import { AddedAuxPow, AuxPoW, BlockTemplate, GeneratedBlocks, MiningStatus, MinerData, Chain } from '../../../common'; @@ -10,7 +10,7 @@ import { SimpleBootstrapCard } from '../../shared/utils'; templateUrl: './mining.component.html', styleUrl: './mining.component.scss' }) -export class MiningComponent extends BasePageComponent implements AfterViewInit { +export class MiningComponent extends BasePageComponent implements AfterViewInit, AfterContentInit { public get coreBusy(): boolean { return this.daemonData.info? !this.daemonData.info.synchronized : true; @@ -153,8 +153,12 @@ export class MiningComponent extends BasePageComponent implements AfterViewInit } public ngAfterViewInit(): void { - console.log('DetailComponent AFTER VIEW INIT'); this.loadTables(); + } + + public override ngAfterContentInit(): void { + super.ngAfterContentInit(); + this.cards = this.createCards(); } diff --git a/src/app/shared/components/navbar/navbar.component.html b/src/app/shared/components/navbar/navbar.component.html index 7a2f0c5..d8218a8 100644 --- a/src/app/shared/components/navbar/navbar.component.html +++ b/src/app/shared/components/navbar/navbar.component.html @@ -23,30 +23,49 @@ Monero Daemon + +