mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
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:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user