-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/frontend subscribe error (#4)
* add error subscribers to display notifications via snackbar on connection/backend errors * reformat * use css --------- Co-authored-by: Gaétan Collaud <[email protected]>
- Loading branch information
1 parent
c01785e
commit 67c40d2
Showing
28 changed files
with
364 additions
and
347 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,5 +102,8 @@ | |
} | ||
} | ||
} | ||
}, | ||
"cli": { | ||
"analytics": false | ||
} | ||
} |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<mat-toolbar color="primary"> | ||
<span> Kafka cost control </span> | ||
<span> Kafka cost control </span> | ||
</mat-toolbar> | ||
|
||
<nav mat-tab-nav-bar [tabPanel]="tabPanel"> | ||
@for (link of navLinks; track link) { | ||
<a mat-tab-link | ||
[routerLink]="link.path" | ||
routerLinkActive #rla="routerLinkActive" | ||
[active]="rla.isActive"> {{link.label}} </a> | ||
} | ||
@for (link of navLinks; track link) { | ||
<a mat-tab-link | ||
[routerLink]="link.path" | ||
routerLinkActive #rla="routerLinkActive" | ||
[active]="rla.isActive"> {{ link.label }} </a> | ||
} | ||
</nav> | ||
<mat-tab-nav-panel #tabPanel> | ||
<router-outlet></router-outlet> | ||
<router-outlet></router-outlet> | ||
</mat-tab-nav-panel> | ||
|
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,4 @@ | ||
mat-tab-nav-panel{ | ||
padding: 32px 64px; | ||
display: block; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { ApplicationConfig } from '@angular/core'; | ||
import { provideRouter } from '@angular/router'; | ||
import {ApplicationConfig} from '@angular/core'; | ||
import {provideRouter} from '@angular/router'; | ||
|
||
import { routes } from './app.routes'; | ||
import { provideAnimations } from '@angular/platform-browser/animations'; | ||
import {routes} from './app.routes'; | ||
import {provideAnimations} from '@angular/platform-browser/animations'; | ||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [provideRouter(routes), provideAnimations()] | ||
providers: [provideRouter(routes), provideAnimations()] | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import {Routes} from '@angular/router'; | ||
|
||
export const routes: Routes = [ | ||
{ | ||
path: 'context-data', | ||
loadChildren: () => import('./tab-context-data/tab-context-data.module').then(m => m.TabContextDataModule) | ||
}, | ||
{ | ||
path: 'pricing-rules', | ||
loadChildren: () => import('./tab-pricing-rules/tab-pricing-rules.module').then(m => m.TabPricingRulesModule) | ||
}, | ||
{ | ||
path: 'others', | ||
loadChildren: () => import('./tab-others/tab-others.module').then(m => m.TabOthersModule) | ||
}, | ||
{ | ||
path: '', | ||
redirectTo: '/context-data', | ||
pathMatch: 'full' | ||
} | ||
{ | ||
path: 'context-data', | ||
loadChildren: () => import('./tab-context-data/tab-context-data.module').then(m => m.TabContextDataModule) | ||
}, | ||
{ | ||
path: 'pricing-rules', | ||
loadChildren: () => import('./tab-pricing-rules/tab-pricing-rules.module').then(m => m.TabPricingRulesModule) | ||
}, | ||
{ | ||
path: 'others', | ||
loadChildren: () => import('./tab-others/tab-others.module').then(m => m.TabOthersModule) | ||
}, | ||
{ | ||
path: '', | ||
redirectTo: '/context-data', | ||
pathMatch: 'full' | ||
} | ||
]; |
6 changes: 3 additions & 3 deletions
6
frontend/src/app/common/map-display/map-display.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ul> | ||
@for (item of entries(); track item.key) { | ||
<li>{{ item.key }} = {{ item.value }}</li> | ||
} | ||
@for (item of entries(); track item.key) { | ||
<li>{{ item.key }} = {{ item.value }}</li> | ||
} | ||
</ul> |
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
Oops, something went wrong.