Feat/community marketplace (#1790)

* add community marketplace

* Update embassy-mock-api.service.ts

* expect ui/marketplace to be undefined

* possible undefined from getpackage

* fix marketplace pages

* rework marketplace infrastructure

* fix bugs

Co-authored-by: Lucy C <12953208+elvece@users.noreply.github.com>
This commit is contained in:
Matt Hill
2022-10-06 17:27:17 -06:00
committed by Aiden McClelland
parent e2db3d84d8
commit 9998ed177b
55 changed files with 754 additions and 879 deletions

View File

@@ -26,7 +26,7 @@ export class EmverComparesPipe implements PipeTransform {
try {
return this.emver.compare(first, second) as SemverResult
} catch (e) {
console.warn(`emver comparison failed`, e, first, second)
console.error(`emver comparison failed`, e, first, second)
return 'comparison-impossible'
}
}

View File

@@ -36,8 +36,7 @@ export class HttpService {
@Inject(DOCUMENT) private readonly document: Document,
private readonly http: HttpClient,
) {
const { protocol, hostname, port } = this.document.location
this.fullUrl = `${protocol}//${hostname}:${port}`
this.fullUrl = this.document.location.origin
}
async rpcRequest<T>(

View File

@@ -12,9 +12,5 @@ export type WorkspaceConfig = {
maskAs: 'tor' | 'lan'
skipStartupAlerts: boolean
}
marketplace: {
url: string
name: string
}
}
}