added app info page
This commit is contained in:
parent
8925841f91
commit
1837b21f91
@ -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,
|
||||
|
||||
@ -0,0 +1,3 @@
|
||||
<section>
|
||||
<p class="heading-xl">App Version: {{ version }}</p>
|
||||
</section>
|
||||
@ -0,0 +1,3 @@
|
||||
section {
|
||||
padding: 24px;
|
||||
}
|
||||
17
apps/red-ui/src/app/screens/app-info/app-info.component.ts
Normal file
17
apps/red-ui/src/app/screens/app-info/app-info.component.ts
Normal 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 {}
|
||||
}
|
||||
@ -2,6 +2,7 @@
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
"resolveJsonModule": true,
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"moduleResolution": "node",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user