fix preview versions, icons, and misc styling

This commit is contained in:
Lucy Cifferello
2024-04-02 21:16:14 -04:00
parent 74ba68ff2c
commit 9c4c211233
8 changed files with 140 additions and 86 deletions

View File

@@ -462,7 +462,11 @@ export class MockApiService extends ApiService {
}
return info
} else if (path === '/package/v0/index') {
return Mock.MarketplacePkgsList
const version = params['ids']
? (JSON.parse(params['ids']) as { version: string; id: string }[])[0]
.version
: undefined
return Mock.marketplacePkgsList(version)
} else if (path.startsWith('/package/v0/release-notes')) {
return Mock.ReleaseNotes
} else if (path.includes('instructions') || path.includes('license')) {