@rxap/environment 14.0.2 → 16.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/environment/environment.component.mjs +21 -0
- package/esm2022/lib/environment/environment.component.module.mjs +33 -0
- package/{fesm2020 → fesm2022}/rxap-environment.mjs +7 -7
- package/{fesm2015 → fesm2022}/rxap-environment.mjs.map +1 -1
- package/lib/environment/environment.component.d.ts +1 -1
- package/package.json +13 -18
- package/esm2020/lib/environment/environment.component.mjs +0 -20
- package/esm2020/lib/environment/environment.component.module.mjs +0 -32
- package/fesm2015/rxap-environment.mjs +0 -73
- package/fesm2020/rxap-environment.mjs.map +0 -1
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/environment/tokens.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/environment.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/update-environment.mjs +0 -0
- /package/{esm2020 → esm2022}/rxap-environment.mjs +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
|
|
2
|
+
import { RXAP_ENVIRONMENT } from './tokens';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
class EnvironmentComponent {
|
|
6
|
+
constructor(environment) {
|
|
7
|
+
this.environment = environment;
|
|
8
|
+
this.show = false;
|
|
9
|
+
}
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12
|
+
}
|
|
13
|
+
export { EnvironmentComponent };
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponent, decorators: [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{ selector: 'rxap-environment', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-environment' }, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"] }]
|
|
17
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
18
|
+
type: Inject,
|
|
19
|
+
args: [RXAP_ENVIRONMENT]
|
|
20
|
+
}] }]; } });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9lbnZpcm9ubWVudC9zcmMvbGliL2Vudmlyb25tZW50L2Vudmlyb25tZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZW52aXJvbm1lbnQvc3JjL2xpYi9lbnZp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gIDx0ZD57e2Vudmlyb25tZW50LnNlcnZpY2VXb3JrZXJ9fTwvdGQ+XG4gIDwvdHI+XG4gIDx0ciAqbmdJZj1cImVudmlyb25tZW50LnJlbGVhc2VcIj5cbiAgICA8dGg+UmVsZWFzZTwvdGg+XG4gICAgPHRkPnt7ZW52aXJvbm1lbnQucmVsZWFzZX19PC90ZD5cbiAgPC90cj5cbiAgPHRyICpuZ0lmPVwiZW52aXJvbm1lbnQuY29tbWl0XCI+XG4gICAgPHRoPkNvbW1pdDwvdGg+XG4gICAgPHRkPnt7ZW52aXJvbm1lbnQuY29tbWl0fX08L3RkPlxuICA8L3RyPlxuICA8dHIgKm5nSWY9XCJlbnZpcm9ubWVudC50aW1lc3RhbXBcIj5cbiAgICA8dGg+VGltZXN0YW1wPC90aD5cbiAgICA8dGQ+e3tlbnZpcm9ubWVudC50aW1lc3RhbXAgfCBkYXRlOidISDptbSBkZC5NTS55eSd9fTwvdGQ+XG4gIDwvdHI+XG4gIDx0ciAqbmdJZj1cImVudmlyb25tZW50LmJyYW5jaFwiPlxuICAgIDx0aD5CcmFuY2g8L3RoPlxuICAgIDx0ZD57e2Vudmlyb25tZW50LmJyYW5jaH19PC90ZD5cbiAgPC90cj5cbiAgPHRyICpuZ0lmPVwiZW52aXJvbm1lbnQudGFnXCI+XG4gICAgPHRoPlRhZzwvdGg+XG4gICAgPHRkPnt7ZW52aXJvbm1lbnQudGFnfX08L3RkPlxuICA8L3RyPlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG48L3RhYmxlPlxuIl19
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { EnvironmentComponent } from './environment.component';
|
|
3
|
+
import { RXAP_ENVIRONMENT } from './tokens';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
class EnvironmentComponentModule {
|
|
7
|
+
static set(environment) {
|
|
8
|
+
return {
|
|
9
|
+
ngModule: EnvironmentComponentModule,
|
|
10
|
+
providers: [
|
|
11
|
+
{
|
|
12
|
+
provide: RXAP_ENVIRONMENT,
|
|
13
|
+
useValue: environment,
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
19
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] }); }
|
|
20
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponentModule, imports: [CommonModule] }); }
|
|
21
|
+
}
|
|
22
|
+
export { EnvironmentComponentModule };
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
|
|
24
|
+
type: NgModule,
|
|
25
|
+
args: [{
|
|
26
|
+
declarations: [EnvironmentComponent],
|
|
27
|
+
imports: [
|
|
28
|
+
CommonModule
|
|
29
|
+
],
|
|
30
|
+
exports: [EnvironmentComponent]
|
|
31
|
+
}]
|
|
32
|
+
}] });
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuY29tcG9uZW50Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZW52aXJvbm1lbnQvc3JjL2xpYi9lbnZpcm9ubWVudC9lbnZpcm9ubWVudC5jb21wb25lbnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ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cuLi9lbnZpcm9ubWVudCc7XG5pbXBvcnQgeyBSWEFQX0VOVklST05NRU5UIH0gZnJvbSAnLi90b2tlbnMnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtFbnZpcm9ubWVudENvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW0Vudmlyb25tZW50Q29tcG9uZW50XVxufSlcbmV4cG9ydCBjbGFzcyBFbnZpcm9ubWVudENvbXBvbmVudE1vZHVsZSB7XG5cbiAgcHVibGljIHN0YXRpYyBzZXQoZW52aXJvbm1lbnQ6IEVudmlyb25tZW50KTogTW9kdWxlV2l0aFByb3ZpZGVyczxFbnZpcm9ubWVudENvbXBvbmVudE1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogRW52aXJvbm1lbnRDb21wb25lbnRNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IFJYQVBfRU5WSVJPTk1FTlQsXG4gICAgICAgICAgdXNlVmFsdWU6IGVudmlyb25tZW50LFxuICAgICAgICB9XG4gICAgICBdXG4gICAgfVxuICB9XG5cbn1cbiJdfQ==
|
|
@@ -10,10 +10,10 @@ class EnvironmentComponent {
|
|
|
10
10
|
this.environment = environment;
|
|
11
11
|
this.show = false;
|
|
12
12
|
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13
15
|
}
|
|
14
|
-
|
|
15
|
-
EnvironmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponent, decorators: [{
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponent, decorators: [{
|
|
17
17
|
type: Component,
|
|
18
18
|
args: [{ selector: 'rxap-environment', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-environment' }, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"] }]
|
|
19
19
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -33,11 +33,11 @@ class EnvironmentComponentModule {
|
|
|
33
33
|
]
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
37
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] }); }
|
|
38
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponentModule, imports: [CommonModule] }); }
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
EnvironmentComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] });
|
|
39
|
-
EnvironmentComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, imports: [CommonModule] });
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
|
|
41
41
|
type: NgModule,
|
|
42
42
|
args: [{
|
|
43
43
|
declarations: [EnvironmentComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-environment.mjs","sources":["../../../../libs/environment/src/lib/environment/tokens.ts","../../../../libs/environment/src/lib/environment/environment.component.ts","../../../../libs/environment/src/lib/environment/environment.component.html","../../../../libs/environment/src/lib/environment/environment.component.module.ts","../../../../libs/environment/src/lib/update-environment.ts","../../../../libs/environment/src/rxap-environment.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Environment } from '../environment';\n\nexport const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { Environment } from '../environment';\n\n@Component({\n selector: 'rxap-environment',\n templateUrl: './environment.component.html',\n styleUrls: [ './environment.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-environment' }\n})\nexport class EnvironmentComponent {\n\n public show = false;\n\n constructor(\n @Inject(RXAP_ENVIRONMENT)\n public readonly environment: Environment\n ) {}\n\n}\n","<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n","import {\n NgModule,\n ModuleWithProviders\n} from '@angular/core';\nimport { EnvironmentComponent } from './environment.component';\nimport { Environment } from '../environment';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [EnvironmentComponent],\n imports: [\n CommonModule\n ],\n exports: [EnvironmentComponent]\n})\nexport class EnvironmentComponentModule {\n\n public static set(environment: Environment): ModuleWithProviders<EnvironmentComponentModule> {\n return {\n ngModule: EnvironmentComponentModule,\n providers: [\n {\n provide: RXAP_ENVIRONMENT,\n useValue: environment,\n }\n ]\n }\n }\n\n}\n","/**\n * Loads the build.json and adds all keys to the environment object\n */\nexport function UpdateEnvironment(environment: any, url: string = '/build.json') {\n return fetch(url)\n .then((response) => {\n if (!response.ok) {\n throw new Error('Could not load build.json');\n }\n return response.json();\n })\n .then((build) => Object.assign(environment, build))\n .catch(error => console.error(error.message));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAGa,gBAAgB,GAAG,IAAI,cAAc,CAAc,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"rxap-environment.mjs","sources":["../../../../libs/environment/src/lib/environment/tokens.ts","../../../../libs/environment/src/lib/environment/environment.component.ts","../../../../libs/environment/src/lib/environment/environment.component.html","../../../../libs/environment/src/lib/environment/environment.component.module.ts","../../../../libs/environment/src/lib/update-environment.ts","../../../../libs/environment/src/rxap-environment.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Environment } from '../environment';\n\nexport const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { Environment } from '../environment';\n\n@Component({\n selector: 'rxap-environment',\n templateUrl: './environment.component.html',\n styleUrls: [ './environment.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-environment' }\n})\nexport class EnvironmentComponent {\n\n public show = false;\n\n constructor(\n @Inject(RXAP_ENVIRONMENT)\n public readonly environment: Environment\n ) {}\n\n}\n","<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n","import {\n NgModule,\n ModuleWithProviders\n} from '@angular/core';\nimport { EnvironmentComponent } from './environment.component';\nimport { Environment } from '../environment';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [EnvironmentComponent],\n imports: [\n CommonModule\n ],\n exports: [EnvironmentComponent]\n})\nexport class EnvironmentComponentModule {\n\n public static set(environment: Environment): ModuleWithProviders<EnvironmentComponentModule> {\n return {\n ngModule: EnvironmentComponentModule,\n providers: [\n {\n provide: RXAP_ENVIRONMENT,\n useValue: environment,\n }\n ]\n }\n }\n\n}\n","/**\n * Loads the build.json and adds all keys to the environment object\n */\nexport function UpdateEnvironment(environment: any, url: string = '/build.json') {\n return fetch(url)\n .then((response) => {\n if (!response.ok) {\n throw new Error('Could not load build.json');\n }\n return response.json();\n })\n .then((build) => Object.assign(environment, build))\n .catch(error => console.error(error.message));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAGa,gBAAgB,GAAG,IAAI,cAAc,CAAc,kBAAkB;;ACKlF,MAOa,oBAAoB,CAAA;AAI/B,IAAA,WAAA,CAEkB,WAAwB,EAAA;QAAxB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;QAJnC,IAAI,CAAA,IAAA,GAAG,KAAK,CAAC;KAKhB;AAPO,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,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AAC,CAAC,KAAK,KAAK,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAClD,SAAA,KAAK,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAClD;;ACbA;;AAEG;;;;"}
|
|
@@ -5,5 +5,5 @@ export declare class EnvironmentComponent {
|
|
|
5
5
|
show: boolean;
|
|
6
6
|
constructor(environment: Environment);
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentComponent, "rxap-environment", never, {}, {}, never, ["*"], false>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentComponent, "rxap-environment", never, {}, {}, never, ["*"], false, never>;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/environment",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0-dev.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular-devkit/schematics": "^
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/core": "^
|
|
8
|
-
"@angular/platform-browser-dynamic": "^
|
|
5
|
+
"@angular-devkit/schematics": "^15.0.3",
|
|
6
|
+
"@angular/common": "^16.0.2",
|
|
7
|
+
"@angular/core": "^16.0.2",
|
|
8
|
+
"@angular/platform-browser-dynamic": "^16.0.2"
|
|
9
9
|
},
|
|
10
10
|
"schematics": "./collection.json",
|
|
11
11
|
"ng-update": {
|
|
@@ -35,17 +35,14 @@
|
|
|
35
35
|
"save": "dependencies"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@rxap/schematics-ts-morph": "^
|
|
39
|
-
"@rxap/schematics-utilities": "^
|
|
38
|
+
"@rxap/schematics-ts-morph": "^16.0.0-dev.0",
|
|
39
|
+
"@rxap/schematics-utilities": "^16.0.0-dev.0",
|
|
40
40
|
"ts-morph": "^13.0.3",
|
|
41
41
|
"tslib": "^2.3.1",
|
|
42
|
-
"
|
|
42
|
+
"tsconfig-paths-webpack-plugin": "3.5.2",
|
|
43
|
+
"@angular/localize": "16.0.2"
|
|
43
44
|
},
|
|
44
|
-
"module": "
|
|
45
|
-
"es2020": "fesm2020/rxap-environment.mjs",
|
|
46
|
-
"esm2020": "esm2020/rxap-environment.mjs",
|
|
47
|
-
"fesm2020": "fesm2020/rxap-environment.mjs",
|
|
48
|
-
"fesm2015": "fesm2015/rxap-environment.mjs",
|
|
45
|
+
"module": "fesm2022/rxap-environment.mjs",
|
|
49
46
|
"typings": "index.d.ts",
|
|
50
47
|
"exports": {
|
|
51
48
|
"./package.json": {
|
|
@@ -53,11 +50,9 @@
|
|
|
53
50
|
},
|
|
54
51
|
".": {
|
|
55
52
|
"types": "./index.d.ts",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"node": "./fesm2015/rxap-environment.mjs",
|
|
60
|
-
"default": "./fesm2020/rxap-environment.mjs"
|
|
53
|
+
"esm2022": "./esm2022/rxap-environment.mjs",
|
|
54
|
+
"esm": "./esm2022/rxap-environment.mjs",
|
|
55
|
+
"default": "./fesm2022/rxap-environment.mjs"
|
|
61
56
|
}
|
|
62
57
|
},
|
|
63
58
|
"sideEffects": false
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
|
|
2
|
-
import { RXAP_ENVIRONMENT } from './tokens';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
export class EnvironmentComponent {
|
|
6
|
-
constructor(environment) {
|
|
7
|
-
this.environment = environment;
|
|
8
|
-
this.show = false;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
EnvironmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
-
EnvironmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponent, decorators: [{
|
|
14
|
-
type: Component,
|
|
15
|
-
args: [{ selector: 'rxap-environment', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-environment' }, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"] }]
|
|
16
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
17
|
-
type: Inject,
|
|
18
|
-
args: [RXAP_ENVIRONMENT]
|
|
19
|
-
}] }]; } });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6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|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { EnvironmentComponent } from './environment.component';
|
|
3
|
-
import { RXAP_ENVIRONMENT } from './tokens';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class EnvironmentComponentModule {
|
|
7
|
-
static set(environment) {
|
|
8
|
-
return {
|
|
9
|
-
ngModule: EnvironmentComponentModule,
|
|
10
|
-
providers: [
|
|
11
|
-
{
|
|
12
|
-
provide: RXAP_ENVIRONMENT,
|
|
13
|
-
useValue: environment,
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
EnvironmentComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
-
EnvironmentComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] });
|
|
21
|
-
EnvironmentComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, imports: [CommonModule] });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
|
|
23
|
-
type: NgModule,
|
|
24
|
-
args: [{
|
|
25
|
-
declarations: [EnvironmentComponent],
|
|
26
|
-
imports: [
|
|
27
|
-
CommonModule
|
|
28
|
-
],
|
|
29
|
-
exports: [EnvironmentComponent]
|
|
30
|
-
}]
|
|
31
|
-
}] });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuY29tcG9uZW50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HVsZVdpdGhQcm92aWRlcnNcbn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBFbnZpcm9ubWVudENvbXBvbmVudCB9IGZyb20gJy4vZW52aXJvbm1lbnQuY29tcG9uZW50JztcbmltcG9ydCB7IEVudmlyb25tZW50IH0gZnJvbSAnLi4vZW52aXJvbm1lbnQnO1xuaW1wb3J0IHsgUlhBUF9FTlZJUk9OTUVOVCB9IGZyb20gJy4vdG9rZW5zJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbRW52aXJvbm1lbnRDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtFbnZpcm9ubWVudENvbXBvbmVudF1cbn0pXG5leHBvcnQgY2xhc3MgRW52aXJvbm1lbnRDb21wb25lbnRNb2R1bGUge1xuXG4gIHB1YmxpYyBzdGF0aWMgc2V0KGVudmlyb25tZW50OiBFbnZpcm9ubWVudCk6IE1vZHVsZVdpdGhQcm92aWRlcnM8RW52aXJvbm1lbnRDb21wb25lbnRNb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IEVudmlyb25tZW50Q29tcG9uZW50TW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBSWEFQX0VOVklST05NRU5ULFxuICAgICAgICAgIHVzZVZhbHVlOiBlbnZpcm9ubWVudCxcbiAgICAgICAgfVxuICAgICAgXVxuICAgIH1cbiAgfVxuXG59XG4iXX0=
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Component, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
|
|
6
|
-
const RXAP_ENVIRONMENT = new InjectionToken('rxap-environment');
|
|
7
|
-
|
|
8
|
-
class EnvironmentComponent {
|
|
9
|
-
constructor(environment) {
|
|
10
|
-
this.environment = environment;
|
|
11
|
-
this.show = false;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
EnvironmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
EnvironmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponent, decorators: [{
|
|
17
|
-
type: Component,
|
|
18
|
-
args: [{ selector: 'rxap-environment', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-environment' }, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"] }]
|
|
19
|
-
}], ctorParameters: function () {
|
|
20
|
-
return [{ type: undefined, decorators: [{
|
|
21
|
-
type: Inject,
|
|
22
|
-
args: [RXAP_ENVIRONMENT]
|
|
23
|
-
}] }];
|
|
24
|
-
} });
|
|
25
|
-
|
|
26
|
-
class EnvironmentComponentModule {
|
|
27
|
-
static set(environment) {
|
|
28
|
-
return {
|
|
29
|
-
ngModule: EnvironmentComponentModule,
|
|
30
|
-
providers: [
|
|
31
|
-
{
|
|
32
|
-
provide: RXAP_ENVIRONMENT,
|
|
33
|
-
useValue: environment,
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
EnvironmentComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
40
|
-
EnvironmentComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] });
|
|
41
|
-
EnvironmentComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, imports: [CommonModule] });
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
|
|
43
|
-
type: NgModule,
|
|
44
|
-
args: [{
|
|
45
|
-
declarations: [EnvironmentComponent],
|
|
46
|
-
imports: [
|
|
47
|
-
CommonModule
|
|
48
|
-
],
|
|
49
|
-
exports: [EnvironmentComponent]
|
|
50
|
-
}]
|
|
51
|
-
}] });
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Loads the build.json and adds all keys to the environment object
|
|
55
|
-
*/
|
|
56
|
-
function UpdateEnvironment(environment, url = '/build.json') {
|
|
57
|
-
return fetch(url)
|
|
58
|
-
.then((response) => {
|
|
59
|
-
if (!response.ok) {
|
|
60
|
-
throw new Error('Could not load build.json');
|
|
61
|
-
}
|
|
62
|
-
return response.json();
|
|
63
|
-
})
|
|
64
|
-
.then((build) => Object.assign(environment, build))
|
|
65
|
-
.catch(error => console.error(error.message));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Generated bundle index. Do not edit.
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
export { EnvironmentComponent, EnvironmentComponentModule, RXAP_ENVIRONMENT, UpdateEnvironment };
|
|
73
|
-
//# sourceMappingURL=rxap-environment.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-environment.mjs","sources":["../../../../libs/environment/src/lib/environment/tokens.ts","../../../../libs/environment/src/lib/environment/environment.component.ts","../../../../libs/environment/src/lib/environment/environment.component.html","../../../../libs/environment/src/lib/environment/environment.component.module.ts","../../../../libs/environment/src/lib/update-environment.ts","../../../../libs/environment/src/rxap-environment.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Environment } from '../environment';\n\nexport const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { Environment } from '../environment';\n\n@Component({\n selector: 'rxap-environment',\n templateUrl: './environment.component.html',\n styleUrls: [ './environment.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-environment' }\n})\nexport class EnvironmentComponent {\n\n public show = false;\n\n constructor(\n @Inject(RXAP_ENVIRONMENT)\n public readonly environment: Environment\n ) {}\n\n}\n","<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n","import {\n NgModule,\n ModuleWithProviders\n} from '@angular/core';\nimport { EnvironmentComponent } from './environment.component';\nimport { Environment } from '../environment';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [EnvironmentComponent],\n imports: [\n CommonModule\n ],\n exports: [EnvironmentComponent]\n})\nexport class EnvironmentComponentModule {\n\n public static set(environment: Environment): ModuleWithProviders<EnvironmentComponentModule> {\n return {\n ngModule: EnvironmentComponentModule,\n providers: [\n {\n provide: RXAP_ENVIRONMENT,\n useValue: environment,\n }\n ]\n }\n }\n\n}\n","/**\n * Loads the build.json and adds all keys to the environment object\n */\nexport function UpdateEnvironment(environment: any, url: string = '/build.json') {\n return fetch(url)\n .then((response) => {\n if (!response.ok) {\n throw new Error('Could not load build.json');\n }\n return response.json();\n })\n .then((build) => Object.assign(environment, build))\n .catch(error => console.error(error.message));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n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