mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
no seeding marketplace"
dep icons matt comments addressed fix circular dependencies Update marketplace.service.ts
This commit is contained in:
committed by
Aiden McClelland
parent
0c0cd9d0a0
commit
01d766fce9
@@ -188,6 +188,29 @@ export class MockApiService extends ApiService {
|
||||
|
||||
// marketplace URLs
|
||||
|
||||
async marketplaceProxy (path: string, params: {}, url: string): Promise<any> {
|
||||
await pauseFor(2000)
|
||||
|
||||
if (path === '/package/data') {
|
||||
return {
|
||||
name: 'Dark9',
|
||||
categories: [
|
||||
'featured',
|
||||
'bitcoin',
|
||||
'lightning',
|
||||
'data',
|
||||
'messaging',
|
||||
'social',
|
||||
'alt coin',
|
||||
],
|
||||
}
|
||||
} else if (path === '/package/index') {
|
||||
return Mock.MarketplacePkgsList
|
||||
} else if (path === '/package/release-notes') {
|
||||
return Mock.ReleaseNotes
|
||||
}
|
||||
}
|
||||
|
||||
async getEos (
|
||||
params: RR.GetMarketplaceEOSReq,
|
||||
): Promise<RR.GetMarketplaceEOSRes> {
|
||||
@@ -195,39 +218,6 @@ export class MockApiService extends ApiService {
|
||||
return Mock.MarketplaceEos
|
||||
}
|
||||
|
||||
async getMarketplaceData (
|
||||
params: RR.GetMarketplaceDataReq,
|
||||
url?: string,
|
||||
): Promise<RR.GetMarketplaceDataRes> {
|
||||
await pauseFor(2000)
|
||||
return {
|
||||
name: 'Dark9',
|
||||
categories: [
|
||||
'featured',
|
||||
'bitcoin',
|
||||
'lightning',
|
||||
'data',
|
||||
'messaging',
|
||||
'social',
|
||||
'alt coin',
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
async getMarketplacePkgs (
|
||||
params: RR.GetMarketplacePackagesReq,
|
||||
): Promise<RR.GetMarketplacePackagesRes> {
|
||||
await pauseFor(2000)
|
||||
return Mock.MarketplacePkgsList
|
||||
}
|
||||
|
||||
async getReleaseNotes (
|
||||
params: RR.GetReleaseNotesReq,
|
||||
): Promise<RR.GetReleaseNotesRes> {
|
||||
await pauseFor(2000)
|
||||
return Mock.ReleaseNotes
|
||||
}
|
||||
|
||||
// password
|
||||
// async updatePassword (params: RR.UpdatePasswordReq): Promise<RR.UpdatePasswordRes> {
|
||||
// await pauseFor(2000)
|
||||
|
||||
Reference in New Issue
Block a user