Loading libs/environment/src/lib/environment.ts +5 −33 Original line number Diff line number Diff line Loading @@ -2,45 +2,15 @@ export interface Environment { /** * The name of the environment */ name: string; name?: string; /** * The app is compiled from code in the production branch */ production: boolean; /** * The app is compiled from code in the master branch */ master: boolean; /** * The app is deployed for development purpose and all dev tools * should be activated */ development: boolean; /** * The app is compiled from code in the stable branch */ stable: boolean; /** * The app is compiled from code in the staging branch */ staging: boolean; /** * Indicates that the application is compiled and startet in a * local development environment (ng serve) */ local: boolean; /** * Where the service worker is active or not */ serviceWorker: boolean; /** * The app is used for an e2e test */ e2e: boolean; /** * The app is compiled from code in a merge request */ mergeRequest: boolean; serviceWorker?: boolean; /** * The current app release */ Loading @@ -52,7 +22,7 @@ export interface Environment { /** * The build timestamp */ timestamp?: string | null; timestamp?: string | number | null; /** * The current branch */ Loading @@ -61,4 +31,6 @@ export interface Environment { * The current tag */ tag?: string | null; [ key: string ]: any; } libs/environment/src/lib/environment/environment.component.html +5 −1 Original line number Diff line number Diff line <table> <tr> <tr *ngIf="environment.name"> <th>Environment</th> <td>{{environment.name}}</td> </tr> <tr> <th>Production</th> <td>{{environment.production}}</td> </tr> <tr *ngIf="environment.serviceWorker !== undefined"> <th>Service Worker</th> <td>{{environment.serviceWorker}}</td> </tr> Loading libs/environment/src/lib/environment/tokens.ts +2 −1 Original line number Diff line number Diff line import { InjectionToken } from '@angular/core'; import { Environment } from '../environment'; export const RXAP_ENVIRONMENT = new InjectionToken('rxap-environment'); export const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment'); Loading
libs/environment/src/lib/environment.ts +5 −33 Original line number Diff line number Diff line Loading @@ -2,45 +2,15 @@ export interface Environment { /** * The name of the environment */ name: string; name?: string; /** * The app is compiled from code in the production branch */ production: boolean; /** * The app is compiled from code in the master branch */ master: boolean; /** * The app is deployed for development purpose and all dev tools * should be activated */ development: boolean; /** * The app is compiled from code in the stable branch */ stable: boolean; /** * The app is compiled from code in the staging branch */ staging: boolean; /** * Indicates that the application is compiled and startet in a * local development environment (ng serve) */ local: boolean; /** * Where the service worker is active or not */ serviceWorker: boolean; /** * The app is used for an e2e test */ e2e: boolean; /** * The app is compiled from code in a merge request */ mergeRequest: boolean; serviceWorker?: boolean; /** * The current app release */ Loading @@ -52,7 +22,7 @@ export interface Environment { /** * The build timestamp */ timestamp?: string | null; timestamp?: string | number | null; /** * The current branch */ Loading @@ -61,4 +31,6 @@ export interface Environment { * The current tag */ tag?: string | null; [ key: string ]: any; }
libs/environment/src/lib/environment/environment.component.html +5 −1 Original line number Diff line number Diff line <table> <tr> <tr *ngIf="environment.name"> <th>Environment</th> <td>{{environment.name}}</td> </tr> <tr> <th>Production</th> <td>{{environment.production}}</td> </tr> <tr *ngIf="environment.serviceWorker !== undefined"> <th>Service Worker</th> <td>{{environment.serviceWorker}}</td> </tr> Loading
libs/environment/src/lib/environment/tokens.ts +2 −1 Original line number Diff line number Diff line import { InjectionToken } from '@angular/core'; import { Environment } from '../environment'; export const RXAP_ENVIRONMENT = new InjectionToken('rxap-environment'); export const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');