mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
responseType text for static files
This commit is contained in:
@@ -76,10 +76,10 @@
|
|||||||
<!-- A current-dependency is a subset of the pkg.manifest.dependencies that is currently required as determined by the service config. -->
|
<!-- A current-dependency is a subset of the pkg.manifest.dependencies that is currently required as determined by the service config. -->
|
||||||
<ion-item *ngFor="let dep of pkg.installed['current-dependencies'] | keyvalue">
|
<ion-item *ngFor="let dep of pkg.installed['current-dependencies'] | keyvalue">
|
||||||
<ion-thumbnail slot="start">
|
<ion-thumbnail slot="start">
|
||||||
<img [src]="patch.data['package-data'][dep.key] ? patch.data['package-data'][dep.key]['static-files'].icon : pkg.installed.status['dependency-errors'][dep.key]?.icon" />
|
<img [src]="dep.icon" />
|
||||||
</ion-thumbnail>
|
</ion-thumbnail>
|
||||||
<ion-label class="ion-text-wrap">
|
<ion-label class="ion-text-wrap">
|
||||||
<h2 style="font-family: 'Montserrat'">{{ patch.data['package-data'][dep.key] ? patch.data['package-data'][dep.key].manifest.title : pkg.installed.status['dependency-errors'][dep.key]?.title }}</h2>
|
<h2 style="font-family: 'Montserrat'">{{ dep.title }}</h2>
|
||||||
<p>{{ pkg.manifest.dependencies[dep.key].version | displayEmver }}</p>
|
<p>{{ pkg.manifest.dependencies[dep.key].version | displayEmver }}</p>
|
||||||
<p><ion-text [color]="pkg.installed.status['dependency-errors'][dep.key] ? 'warning' : 'success'">{{ pkg.installed.status['dependency-errors'][dep.key] ? pkg.installed.status['dependency-errors'][dep.key].type : 'satisfied' }}</ion-text></p>
|
<p><ion-text [color]="pkg.installed.status['dependency-errors'][dep.key] ? 'warning' : 'success'">{{ pkg.installed.status['dependency-errors'][dep.key] ? pkg.installed.status['dependency-errors'][dep.key].type : 'satisfied' }}</ion-text></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
|
|||||||
@@ -14,7 +14,11 @@ export class LiveApiService extends ApiService {
|
|||||||
) { super() }
|
) { super() }
|
||||||
|
|
||||||
async getStatic (url: string): Promise<string> {
|
async getStatic (url: string): Promise<string> {
|
||||||
return this.http.httpRequest({ method: Method.GET, url })
|
return this.http.httpRequest({
|
||||||
|
method: Method.GET,
|
||||||
|
url,
|
||||||
|
responseType: 'text',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// db
|
// db
|
||||||
|
|||||||
@@ -80,6 +80,8 @@ export interface InstalledPackageDataEntry {
|
|||||||
export interface CurrentDependencyInfo {
|
export interface CurrentDependencyInfo {
|
||||||
pointers: any[]
|
pointers: any[]
|
||||||
'health-checks': string[] // array of health check IDs
|
'health-checks': string[] // array of health check IDs
|
||||||
|
title: string
|
||||||
|
icon: URL
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum PackageState {
|
export enum PackageState {
|
||||||
@@ -311,8 +313,6 @@ export enum DependencyErrorType {
|
|||||||
|
|
||||||
export interface DependencyErrorNotInstalled {
|
export interface DependencyErrorNotInstalled {
|
||||||
type: DependencyErrorType.NotInstalled
|
type: DependencyErrorType.NotInstalled
|
||||||
title: string
|
|
||||||
icon: URL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DependencyErrorNotRunning {
|
export interface DependencyErrorNotRunning {
|
||||||
|
|||||||
Reference in New Issue
Block a user