added app info page

This commit is contained in:
Timo Bejan 2020-11-02 11:18:37 +02:00
parent 8925841f91
commit 1837b21f91
5 changed files with 31 additions and 1 deletions

View File

@ -65,6 +65,7 @@ import { ManualAnnotationDialogComponent } from './dialogs/manual-redaction-dial
import { FileNotAvailableOverlayComponent } from './screens/file/file-not-available-overlay/file-not-available-overlay.component';
import { ToastComponent } from './components/toast/toast.component';
import { FilterComponent } from './common/filter/filter.component';
import { AppInfoComponent } from './screens/app-info/app-info.component';
export function HttpLoaderFactory(httpClient: HttpClient) {
return new TranslateHttpLoader(httpClient, '/assets/i18n/', '.json');
@ -95,7 +96,8 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
HumanizePipe,
ToastComponent,
FileNotAvailableOverlayComponent,
FilterComponent
FilterComponent,
AppInfoComponent
],
imports: [
BrowserModule,
@ -126,6 +128,10 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
component: AuthErrorComponent,
canActivate: [AuthGuard]
},
{
path: 'info',
component: AppInfoComponent
},
{
path: 'ui',
component: BaseScreenComponent,

View File

@ -0,0 +1,3 @@
<section>
<p class="heading-xl">App Version: {{ version }}</p>
</section>

View File

@ -0,0 +1,3 @@
section {
padding: 24px;
}

View File

@ -0,0 +1,17 @@
import { Component, OnInit } from '@angular/core';
import { version } from '../../../../../../package.json';
@Component({
selector: 'redaction-app-info',
templateUrl: './app-info.component.html',
styleUrls: ['./app-info.component.scss']
})
export class AppInfoComponent implements OnInit {
version: string;
constructor() {
this.version = version;
}
ngOnInit(): void {}
}

View File

@ -2,6 +2,7 @@
"compileOnSave": false,
"compilerOptions": {
"rootDir": ".",
"resolveJsonModule": true,
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",