-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: loading of favicon and logo url (#612)
* fix: loading of favicon and logo url * fix: add missing parentheses * fix: add missing filter if blob undefined, format if statements with curly brackets * fix: lint issue --------- Co-authored-by: kim.tran <[email protected]>
- Loading branch information
Showing
9 changed files
with
163 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
libs/shell-core/src/lib/components/portal-footer/portal-footer.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 11 additions & 8 deletions
19
libs/shell-core/src/lib/components/portal-header/header.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
libs/shell-core/src/lib/shell-interface/show-content-provider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { InjectionToken } from "@angular/core" | ||
import { BehaviorSubject } from "rxjs" | ||
|
||
export const SHOW_CONTENT_PROVIDER = new InjectionToken<ShowContentProvider>('SHOW_CONTENT_PROVIDER') | ||
|
||
export interface ShowContentProvider { | ||
showContent$: BehaviorSubject<boolean> | ||
} |
59 changes: 59 additions & 0 deletions
59
libs/shell-core/src/lib/shell-interface/workspace-config-bff-service-provider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { HttpContext, HttpResponse, HttpEvent } from '@angular/common/http' | ||
import { InjectionToken } from '@angular/core' | ||
import { Observable } from 'rxjs' | ||
|
||
export const WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER = new InjectionToken<WorkspaceConfigBffService>( | ||
'WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER' | ||
) | ||
|
||
export interface WorkspaceConfigBffService { | ||
getThemeFaviconByName( | ||
name: string, | ||
observe?: 'body', | ||
reportProgress?: boolean, | ||
options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext } | ||
): Observable<Blob> | ||
getThemeFaviconByName( | ||
name: string, | ||
observe?: 'response', | ||
reportProgress?: boolean, | ||
options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext } | ||
): Observable<HttpResponse<Blob>> | ||
getThemeFaviconByName( | ||
name: string, | ||
observe?: 'events', | ||
reportProgress?: boolean, | ||
options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext } | ||
): Observable<HttpEvent<Blob>> | ||
getThemeFaviconByName( | ||
name: string, | ||
observe: 'body', | ||
reportProgress: false, | ||
options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext } | ||
): Observable<any> | ||
|
||
getThemeLogoByName( | ||
name: string, | ||
observe?: 'body', | ||
reportProgress?: boolean, | ||
options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext } | ||
): Observable<Blob> | ||
getThemeLogoByName( | ||
name: string, | ||
observe?: 'response', | ||
reportProgress?: boolean, | ||
options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext } | ||
): Observable<HttpResponse<Blob>> | ||
getThemeLogoByName( | ||
name: string, | ||
observe?: 'events', | ||
reportProgress?: boolean, | ||
options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext } | ||
): Observable<HttpEvent<Blob>> | ||
getThemeLogoByName( | ||
name: string, | ||
observe: 'body', | ||
reportProgress: false, | ||
options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext } | ||
): Observable<any> | ||
} |