Skip to content
Snippets Groups Projects
Commit 549c6bc2 authored by mechtelm's avatar mechtelm
Browse files

verona version added as environment variable

parent 7d91fe4f
No related branches found
No related tags found
No related merge requests found
{ {
"name": "itc-ng", "name": "itc-ng",
"version": "3.1.2", "version": "4.0.0",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
......
<div fxLayout="column"> <div fxLayout="column">
<div *ngIf="loginName"> <div *ngIf="loginName">
<p><b>Status: Angemeldet als "{{loginName}}"</b></p> <p><b>Status: Angemeldet als "{{loginName}}"</b></p>
<p style="margin-bottom: 0px;"> <p style="margin-bottom: 0;">
<b *ngIf="loginAuthority.length > 1">Berechtigungen:</b> <b *ngIf="loginAuthority.length > 1">Berechtigungen:</b>
<b *ngIf="loginAuthority.length === 1">Berechtigung:</b> <b *ngIf="loginAuthority.length === 1">Berechtigung:</b>
</p> </p>
<ul style="margin: 0px;"> <ul style="margin: 0;">
<li *ngFor="let loginAuth of loginAuthority">{{loginAuth}}</li> <li *ngFor="let loginAuth of loginAuthority">{{loginAuth}}</li>
</ul> </ul>
</div> </div>
<p *ngIf="!loginName"><b>Status: Derzeit nicht angemeldet.</b></p> <p *ngIf="!loginName"><b>Status: Derzeit nicht angemeldet.</b></p>
<p style="margin-bottom: 0px;"><b>Angaben zu dieser Web-Anwendung:</b></p> <p style="margin-bottom: 0;"><b>Angaben zu dieser Web-Anwendung:</b></p>
<ul style="margin: 0px;"> <ul style="margin: 0;">
<li>Interner Programmname: {{ appName }}</li> <li>Interner Programmname: {{ appName }}</li>
<li>Programmversion: {{ appVersion }}</li> <li>Programmversion: {{ appVersion }}</li>
<li *ngIf="!isProductionMode">Build-Modus: Dev</li> <li *ngIf="!isProductionMode">Build-Modus: Dev</li>
<li>Erforderliche Version der Server-Programmierung: {{ apiVersionExpected }}</li> <li>Erforderliche Version der Server-Programmierung: {{ apiVersionExpected }}</li>
<li>Unterstützte Version der Verona Interfaces Player Definition: {{ veronaApiVersionSupported }}</li>
<li>Copyright: {{ appPublisher }}</li> <li>Copyright: {{ appPublisher }}</li>
</ul> </ul>
</div> </div>
...@@ -16,6 +16,7 @@ export class StatusCardComponent implements OnInit { ...@@ -16,6 +16,7 @@ export class StatusCardComponent implements OnInit {
@Inject('APP_PUBLISHER') public appPublisher: string, @Inject('APP_PUBLISHER') public appPublisher: string,
@Inject('APP_VERSION') public appVersion: string, @Inject('APP_VERSION') public appVersion: string,
@Inject('API_VERSION_EXPECTED') public apiVersionExpected: string, @Inject('API_VERSION_EXPECTED') public apiVersionExpected: string,
@Inject('VERONA_API_VERSION_SUPPORTED') public veronaApiVersionSupported: string,
@Inject('IS_PRODUCTION_MODE') public isProductionMode @Inject('IS_PRODUCTION_MODE') public isProductionMode
) { } ) { }
......
...@@ -6,5 +6,6 @@ export const environment = { ...@@ -6,5 +6,6 @@ export const environment = {
production: false, production: false,
testcenterUrl: 'http://localhost:8000/', testcenterUrl: 'http://localhost:8000/',
appPublisher: 'IQB - Institut zur Qualitätsentwicklung im Bildungswesen', appPublisher: 'IQB - Institut zur Qualitätsentwicklung im Bildungswesen',
apiVersionExpected: '5.0.1' apiVersionExpected: '5.0.1',
veronaApiVersionSupported: '2.1.0'
}; };
...@@ -4,5 +4,6 @@ export const environment = { ...@@ -4,5 +4,6 @@ export const environment = {
production: true, production: true,
testcenterUrl: 'http://localhost:9092/', testcenterUrl: 'http://localhost:9092/',
appPublisher: 'IQB - Institut zur Qualitätsentwicklung im Bildungswesen', appPublisher: 'IQB - Institut zur Qualitätsentwicklung im Bildungswesen',
apiVersionExpected: '5.0.1' apiVersionExpected: '5.0.1',
veronaApiVersionSupported: '2.1.0'
}; };
...@@ -31,6 +31,10 @@ platformBrowserDynamic(<StaticProvider[]>[ ...@@ -31,6 +31,10 @@ platformBrowserDynamic(<StaticProvider[]>[
useValue: environment.apiVersionExpected useValue: environment.apiVersionExpected
}, },
{ {
provide: 'VERONA_API_VERSION_SUPPORTED',
useValue: environment.veronaApiVersionSupported
},
{
provide: 'REPOSITORY_URL', provide: 'REPOSITORY_URL',
useValue: repository.url useValue: repository.url
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment