add descriptions to marketplace list page (#1812)

* add descriptions to marketplace list page

* clean up unused styling

* rip descriptions from registry marketplace, use binary choice custom default and alternative messages

* cleanup

* fix selected type and remove uneeded conditional

* conditional color

* cleanup

* better comparision of marketplace url duplicates

* add logic to handle marketplace description display based on url

* decrease font size

* abstract helper fn to get url hostname; add error toast when adding duplicate marketplace

* move helper function to more appropriate file location

* rework marketplace list and don't worry about patch db firing before bootstrapped

* remove aes-js

* reinstall aes just to please things for now

Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
This commit is contained in:
Lucy C
2022-09-21 12:41:19 -06:00
committed by GitHub
parent 7575e8c1de
commit f8ea2ebf62
26 changed files with 930 additions and 893 deletions

View File

@@ -19,6 +19,7 @@ import { BehaviorSubject, interval, map, Observable } from 'rxjs'
import { LocalStorageBootstrap } from '../patch-db/local-storage-bootstrap'
import { mockPatchData } from './mock-patch'
import { WebSocketSubjectConfig } from 'rxjs/webSocket'
import { AuthService } from '../auth.service'
const PROGRESS: InstallProgress = {
size: 120,
@@ -39,8 +40,21 @@ export class MockApiService extends ApiService {
private readonly revertTime = 2000
sequence = 0
constructor(private readonly bootstrapper: LocalStorageBootstrap) {
constructor(
private readonly bootstrapper: LocalStorageBootstrap,
private readonly auth: AuthService,
) {
super()
this.auth.isVerified$.subscribe(verified => {
if (!verified) {
this.patchStream$.next([])
this.mockWsSource$.next({
id: 1,
value: mockPatchData,
})
this.sequence = 0
}
})
}
async getStatic(url: string): Promise<string> {