Rework PackageDataEntry for new strategy (#2573)

* rework PackageDataEntry for new strategy

* fix type error

* fix issues with manifest fetching

* mock installs working
This commit is contained in:
Matt Hill
2024-03-19 08:38:04 -06:00
committed by GitHub
parent c8be701f0e
commit cc38dab76f
64 changed files with 1759 additions and 2068 deletions

View File

@@ -12,12 +12,9 @@
. This may take a while
</span>
<span *ngIf="installProgress">
<ion-text
*ngIf="installProgress | installProgressDisplay as progress"
color="primary"
>
{{ progress }}
<span *ngIf="installingInfo">
<ion-text color="primary">
{{ installingInfo.progress.overall | installingProgressString }}
</ion-text>
</span>

View File

@@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common'
import { IonicModule } from '@ionic/angular'
import { UnitConversionPipesModule } from '@start9labs/shared'
import { StatusComponent } from './status.component'
import { InstallProgressPipeModule } from 'src/app/pipes/install-progress/install-progress.module'
import { InstallingProgressPipeModule } from 'src/app/pipes/install-progress/install-progress.module'
@NgModule({
declarations: [StatusComponent],
@@ -11,7 +11,7 @@ import { InstallProgressPipeModule } from 'src/app/pipes/install-progress/instal
CommonModule,
IonicModule,
UnitConversionPipesModule,
InstallProgressPipeModule,
InstallingProgressPipeModule,
],
exports: [StatusComponent],
})

View File

@@ -1,6 +1,6 @@
import { Component, Input } from '@angular/core'
import { ConnectionService } from 'src/app/services/connection.service'
import { InstallProgress } from 'src/app/services/patch-db/data-model'
import { InstallingInfo } from 'src/app/services/patch-db/data-model'
import {
PrimaryRendering,
PrimaryStatus,
@@ -20,7 +20,7 @@ export class StatusComponent {
@Input() size?: string
@Input() style?: string = 'regular'
@Input() weight?: string = 'normal'
@Input() installProgress?: InstallProgress
@Input() installingInfo?: InstallingInfo
@Input() sigtermTimeout?: string | null = null
readonly connected$ = this.connectionService.connected$