mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
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:
committed by
Aiden McClelland
parent
e2db3d84d8
commit
9998ed177b
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>(
|
||||
|
||||
@@ -12,9 +12,5 @@ export type WorkspaceConfig = {
|
||||
maskAs: 'tor' | 'lan'
|
||||
skipStartupAlerts: boolean
|
||||
}
|
||||
marketplace: {
|
||||
url: string
|
||||
name: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user