diff --git a/main/http_server/axe-os/src/app/app.module.ts b/main/http_server/axe-os/src/app/app.module.ts index cdac0a4c..f89d3693 100644 --- a/main/http_server/axe-os/src/app/app.module.ts +++ b/main/http_server/axe-os/src/app/app.module.ts @@ -21,8 +21,7 @@ import { ANSIPipe } from './pipes/ansi.pipe'; import { DateAgoPipe } from './pipes/date-ago.pipe'; import { HashSuffixPipe } from './pipes/hash-suffix.pipe'; import { PrimeNGModule } from './prime-ng.module'; - - +import { MessageModule } from 'primeng/message'; const components = [ AppComponent, @@ -55,7 +54,8 @@ const components = [ BrowserAnimationsModule, CommonModule, PrimeNGModule, - AppLayoutModule + AppLayoutModule, + MessageModule ], providers: [ { provide: LocationStrategy, useClass: HashLocationStrategy }, diff --git a/main/http_server/axe-os/src/app/components/home/home.component.html b/main/http_server/axe-os/src/app/components/home/home.component.html index 5dbb2871..ec1c9a36 100644 --- a/main/http_server/axe-os/src/app/components/home/home.component.html +++ b/main/http_server/axe-os/src/app/components/home/home.component.html @@ -1,7 +1,13 @@

Loading...

- + + + +
@@ -95,14 +101,15 @@
Power
- Power
+ valueTemplate="{value}V" + [valueColor]="info.voltage < 4.8 ? '#ff0000' : 'var(--primary-color, Black)'"> Input Voltage   Danger: Low voltage
@@ -122,8 +129,10 @@
Heat
- + + ASIC Temperature   @@ -132,7 +141,8 @@
+ valueTemplate="{value}C" + [valueColor]="info.vrTemp >= 105 ? '#ff0000' : 'var(--primary-color, Black)'"> Voltage Regulator Temperature   @@ -172,7 +182,7 @@
Performance
- ASIC Frequency
diff --git a/main/http_server/axe-os/src/app/components/home/home.component.ts b/main/http_server/axe-os/src/app/components/home/home.component.ts index 5c86578d..9fab6be8 100644 --- a/main/http_server/axe-os/src/app/components/home/home.component.ts +++ b/main/http_server/axe-os/src/app/components/home/home.component.ts @@ -12,7 +12,6 @@ import { ISystemInfo } from 'src/models/ISystemInfo'; }) export class HomeComponent { - public info$: Observable; public quickLink$: Observable; @@ -46,7 +45,8 @@ export class HomeComponent { backgroundColor: primaryColor, borderColor: primaryColor, tension: .4, - pointRadius: 1, + pointRadius: 2, + pointHoverRadius: 5, borderWidth: 1 }, @@ -61,7 +61,19 @@ export class HomeComponent { labels: { color: textColor } - } + }, + tooltip: { + callbacks: { + label: function(tooltipItem: any) { + let label = tooltipItem.dataset.label || ''; + if (label) { + label += ': '; + } + label += HashSuffixPipe.transform(tooltipItem.raw); + return label; + } + } + }, }, scales: { x: { @@ -160,7 +172,9 @@ export class HomeComponent { } - + max(a: number, b: number): number { + return Math.max(a, b); + } }