Ok first real chunk of zoneless pngx

document list
dashboard / widget frame
stats
This commit is contained in:
shamoon
2026-07-04 09:19:37 -07:00
parent 2caa6ff43f
commit f3edc1ac36
7 changed files with 107 additions and 15 deletions
@@ -1,6 +1,6 @@
import { DecimalPipe } from '@angular/common'
import { HttpClient } from '@angular/common/http'
import { Component, inject, OnDestroy, OnInit } from '@angular/core'
import { Component, inject, OnDestroy, OnInit, signal } from '@angular/core'
import { RouterModule } from '@angular/router'
import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap'
import * as mimeTypeNames from 'mime-names'
@@ -55,9 +55,24 @@ export class StatisticsWidgetComponent
private websocketConnectionService = inject(WebsocketStatusService)
private documentListViewService = inject(DocumentListViewService)
loading: boolean = false
private loadingSignal = signal(false)
private statisticsSignal = signal<Statistics>({})
statistics: Statistics = {}
get loading(): boolean {
return this.loadingSignal()
}
set loading(value: boolean) {
this.loadingSignal.set(value)
}
get statistics(): Statistics {
return this.statisticsSignal()
}
set statistics(value: Statistics) {
this.statisticsSignal.set(value)
}
subscription: Subscription
private unsubscribeNotifer: Subject<any> = new Subject()