fix: fix dynamic status and instructions modal (#1382)

This commit is contained in:
Alex Inkin
2022-04-05 17:56:02 +03:00
committed by GitHub
parent 905aaafa2b
commit 9f66ccec17
7 changed files with 19 additions and 37 deletions

View File

@@ -1,4 +1,3 @@
import { AbstractApiService } from '@start9labs/shared'
import { Subject, Observable } from 'rxjs'
import {
Http,
@@ -14,10 +13,7 @@ import { DataModel } from 'src/app/services/patch-db/data-model'
import { RequestError } from '../http.service'
import { map } from 'rxjs/operators'
export abstract class ApiService
extends AbstractApiService
implements Source<DataModel>, Http<DataModel>
{
export abstract class ApiService implements Source<DataModel>, Http<DataModel> {
protected readonly sync$ = new Subject<Update<DataModel>>()
/** PatchDb Source interface. Post/Patch requests provide a source of patches to the db. */
@@ -28,6 +24,9 @@ export abstract class ApiService
.pipe(map(result => ({ result, jsonrpc: '2.0' })))
}
// for getting static files: ex icons, instructions, licenses
abstract getStatic(url: string): Promise<string>
// db
abstract getRevisions(since: number): Promise<RR.GetRevisionsRes>