This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 4
4
"scripts" : {
5
5
"ng" : " ng" ,
6
6
"start" : " node server.js" ,
7
- "dev" : " ng s --project micro-frontends-angular-app --disable-host-check --port 4200 --deploy-url http://localhost:4200/ --live-reload false" ,
8
- "dev-https" : " ng s --ssl --project micro-frontends-angular-app --disable-host-check --port 4200 --deploy-url http://localhost:4200/ --live-reload false" ,
9
- "build-local" : " ng build micro-frontends-angular-app --prod --deploy-url http://localhost:4200/" ,
7
+ "dev" : " ng s --project micro-frontends-angular-app --disable-host-check --port 4200 --host 0.0.0.0 --serve-path /angular/ -- deploy-url http://localhost:4200/angular/ --live-reload false" ,
8
+ "dev-https" : " ng s --ssl --project micro-frontends-angular-app --disable-host-check --port 4200 --host 0.0.0.0 --serve-path /angular/ -- deploy-url http://localhost:4200/angular / --live-reload false" ,
9
+ "build-local" : " ng build micro-frontends-angular-app --prod --deploy-url http://localhost:4200/angular/ " ,
10
10
"build" : " ng build micro-frontends-angular-app --prod" ,
11
11
"test" : " ng test" ,
12
12
"lint" : " ng lint" ,
Original file line number Diff line number Diff line change 1
1
import { Component , OnInit } from '@angular/core' ;
2
- import { setAppMenu } from '@topcoder/micro-frontends-navbar-app' ;
2
+ import { setAppMenu , setNotificationPlatform , PLATFORM } from '@topcoder/micro-frontends-navbar-app' ;
3
3
import appMenu from './constants/appMenu' ;
4
4
5
5
@Component ( {
@@ -13,5 +13,6 @@ export class AppComponent implements OnInit {
13
13
ngOnInit ( ) : void {
14
14
// when app starts it should set its side menu structure
15
15
setAppMenu ( '/micro-frontends-angular-route' , appMenu ) ;
16
+ setNotificationPlatform ( PLATFORM . COMMUNITY ) ;
16
17
}
17
18
}
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ const appMenu = [
25
25
icon : homeIcon ,
26
26
activeIcon : homeActiveIcon ,
27
27
} ,
28
+ {
29
+ title : 'View All Notifications' ,
30
+ path : '/notifications' ,
31
+ icon : homeIcon ,
32
+ activeIcon : homeActiveIcon ,
33
+ } ,
28
34
] ;
29
35
30
36
export default appMenu ;
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ declare module '@topcoder/micro-frontends-navbar-app' {
6
6
export const getAuthUserProfile : any ;
7
7
export const disableSidebarForRoute : any ;
8
8
export const enableSidebarForRoute : any ;
9
+ export const setNotificationPlatform : ( platform : string ) => void ;
10
+ export const PLATFORM : { [ key : string ] : string } ;
9
11
}
10
12
11
13
declare module "*.svg" {
You can’t perform that action at this time.
0 commit comments