manifest in dependency-onfo

This commit is contained in:
Matt Hill
2021-08-09 20:52:26 -06:00
parent 10d3f3b589
commit bd7149491f
4 changed files with 7 additions and 7 deletions

View File

@@ -79,7 +79,7 @@
<img [src]="pkg.installed['dependency-info'][dep.key].icon" /> <img [src]="pkg.installed['dependency-info'][dep.key].icon" />
</ion-thumbnail> </ion-thumbnail>
<ion-label class="ion-text-wrap"> <ion-label class="ion-text-wrap">
<h2 style="font-family: 'Montserrat'">{{ pkg.installed['dependency-info'][dep.key].title }}</h2> <h2 style="font-family: 'Montserrat'">{{ pkg.installed['dependency-info'][dep.key].manifest.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>

View File

@@ -164,7 +164,7 @@ export class AppShowPage {
} }
private async installDep (depId: string): Promise<void> { private async installDep (depId: string): Promise<void> {
const title = this.pkg.installed['dependency-info'][depId].title const title = this.pkg.installed['dependency-info'][depId].manifest.title
const version = this.pkg.manifest.dependencies[depId].version const version = this.pkg.manifest.dependencies[depId].version
const dependentTitle = this.pkg.manifest.title const dependentTitle = this.pkg.manifest.title

View File

@@ -621,11 +621,11 @@ export module Mock {
}, },
'dependency-info': { 'dependency-info': {
'lnd': { 'lnd': {
title: Mock.MockManifestLnd.title, manifest: Mock.MockManifestLnd,
icon: 'assets/img/service-icons/lnd.png', icon: 'assets/img/service-icons/lnd.png',
}, },
'bitcoind': { 'bitcoind': {
title: Mock.MockManifestBitcoind.title, manifest: Mock.MockManifestBitcoind,
icon: 'assets/img/service-icons/bitcoind.png', icon: 'assets/img/service-icons/bitcoind.png',
}, },
}, },
@@ -1489,11 +1489,11 @@ export module Mock {
}, },
'dependency-info': { 'dependency-info': {
'bitcoind': { 'bitcoind': {
title: Mock.MockManifestBitcoind.title, manifest: Mock.MockManifestBitcoind,
icon: 'assets/img/service-icons/bitcoind.png', icon: 'assets/img/service-icons/bitcoind.png',
}, },
'bitcoin-proxy': { 'bitcoin-proxy': {
title: Mock.MockManifestBitcoinProxy.title, manifest: Mock.MockManifestBitcoinProxy,
icon: 'assets/img/service-icons/bitcoin-proxy.png', icon: 'assets/img/service-icons/bitcoin-proxy.png',
}, },
}, },

View File

@@ -74,7 +74,7 @@ export interface InstalledPackageDataEntry {
'current-dependencies': { [id: string]: CurrentDependencyInfo } 'current-dependencies': { [id: string]: CurrentDependencyInfo }
'dependency-info': { 'dependency-info': {
[id: string]: { [id: string]: {
title: string manifest: Manifest
icon: URL icon: URL
} }
} }