update readme, fix startup sequence, integrate live backend

This commit is contained in:
Matt Hill
2021-06-18 15:54:45 -06:00
committed by Aiden McClelland
parent 12c44565ff
commit 7013364ae8
15 changed files with 111 additions and 86 deletions

View File

@@ -183,9 +183,9 @@ export class AppConfigPage {
spinner: 'lines',
cssClass: 'loader',
}).displayDuringAsync(async () => {
const { breakages } = await this.apiService.drySetPackageConfig({ id: pkg.manifest.id, config: this.config })
const breakages = await this.apiService.drySetPackageConfig({ id: pkg.manifest.id, config: this.config })
if (breakages.length) {
if (!isEmptyObject(breakages.length)) {
const { cancelled } = await wizardModal(
this.modalController,
this.wizardBaker.configure({

View File

@@ -8,7 +8,7 @@
</ion-header>
<ion-content style="position: relative">
<ng-container *ngrxLet="patch.watch$('package-data') as pkgs">
<ng-container *ngIf="patch.watch$('package-data') | ngrxPush as pkgs">
<div *ngIf="pkgs | empty; else list" class="ion-text-center ion-padding">
<div style="display: flex; flex-direction: column; justify-content: center; height: 40vh">
@@ -23,7 +23,7 @@
<ng-template #list>
<ion-grid>
<ion-row *ngrxLet="connectionService.monitor$() as connection">
<ion-row *ngIf="connectionService.monitor$() | ngrxPush as connection">
<ion-col *ngFor="let pkg of pkgs | keyvalue : asIsOrder" sizeXs="4" sizeSm="3" sizeMd="2" sizeLg="2">
<ion-card class="installed-card" style="position:relative" [routerLink]="['/services', 'installed', (pkg.value | manifest).id]">
<div class="launch-container" *ngIf="pkg.value | hasUi">

View File

@@ -10,6 +10,7 @@ import { PackageDataEntry } from 'src/app/models/patch-db/data-model'
styleUrls: ['./app-installed-list.page.scss'],
})
export class AppInstalledListPage {
pkgs: PackageDataEntry[] = []
constructor (
private readonly config: ConfigService,

View File

@@ -2,7 +2,7 @@ import { Component, ViewChild } from '@angular/core'
import { AlertController, NavController, ModalController, IonContent, PopoverController } from '@ionic/angular'
import { ApiService } from 'src/app/services/api/api.service'
import { ActivatedRoute, NavigationExtras } from '@angular/router'
import { chill, pauseFor } from 'src/app/util/misc.util'
import { chill, isEmptyObject, pauseFor } from 'src/app/util/misc.util'
import { LoaderService } from 'src/app/services/loader.service'
import { Observable, of, Subscription } from 'rxjs'
import { wizardModal } from 'src/app/components/install-wizard/install-wizard.component'
@@ -73,9 +73,9 @@ export class AppInstalledShowPage {
spinner: 'lines',
cssClass: 'loader',
}).displayDuringAsync(async () => {
const { breakages } = await this.apiService.dryStopPackage({ id })
const breakages = await this.apiService.dryStopPackage({ id })
if (breakages.length) {
if (isEmptyObject(breakages.length)) {
const { cancelled } = await wizardModal(
this.modalCtrl,
this.wizardBaker.stop({