|
|
|
|
@ -1,57 +1,57 @@
|
|
|
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
|
|
|
import {APP_INITIALIZER, NgModule} from '@angular/core';
|
|
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
|
|
|
|
|
|
|
|
|
import {AppComponent} from './app.component';
|
|
|
|
|
import {RouterModule} from '@angular/router';
|
|
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
|
|
|
import {ReactiveFormsModule} from '@angular/forms';
|
|
|
|
|
import {HTTP_INTERCEPTORS, HttpClient, HttpClientModule} from '@angular/common/http';
|
|
|
|
|
import {BaseScreenComponent} from './screens/base-screen/base-screen.component';
|
|
|
|
|
import {ProjectListingScreenComponent} from './screens/project-listing-screen/project-listing-screen.component';
|
|
|
|
|
import {ProjectOverviewScreenComponent} from './screens/project-overview-screen/project-overview-screen.component';
|
|
|
|
|
import {MatToolbarModule} from '@angular/material/toolbar';
|
|
|
|
|
import {ApiModule} from '@redaction/red-ui-http';
|
|
|
|
|
import {ApiPathInterceptorService} from './interceptor/api-path-interceptor.service';
|
|
|
|
|
import {MatButtonModule} from '@angular/material/button';
|
|
|
|
|
import {TranslateLoader, TranslateModule} from '@ngx-translate/core';
|
|
|
|
|
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
|
|
|
|
|
import {MatMenuModule} from '@angular/material/menu';
|
|
|
|
|
import {languageInitializer} from './i18n/language.initializer';
|
|
|
|
|
import {LanguageService} from './i18n/language.service';
|
|
|
|
|
import {MatIconModule} from '@angular/material/icon';
|
|
|
|
|
import {IconsModule} from './icons/icons.module';
|
|
|
|
|
import {AddEditProjectDialogComponent} from './screens/project-listing-screen/add-edit-project-dialog/add-edit-project-dialog.component';
|
|
|
|
|
import {MatDialogModule} from '@angular/material/dialog';
|
|
|
|
|
import {MatSnackBarModule} from '@angular/material/snack-bar';
|
|
|
|
|
import {MatTooltipModule} from '@angular/material/tooltip';
|
|
|
|
|
import {ConfirmationDialogComponent} from './common/confirmation-dialog/confirmation-dialog.component';
|
|
|
|
|
import {FilePreviewScreenComponent} from './screens/file/file-preview-screen/file-preview-screen.component';
|
|
|
|
|
import {PdfViewerComponent} from './screens/file/pdf-viewer/pdf-viewer.component';
|
|
|
|
|
import {MatTabsModule} from '@angular/material/tabs';
|
|
|
|
|
import {MatButtonToggleModule} from '@angular/material/button-toggle';
|
|
|
|
|
import {NgpSortModule} from 'ngp-sort-pipe';
|
|
|
|
|
import {MatFormFieldModule} from '@angular/material/form-field';
|
|
|
|
|
import {MatSelectModule} from '@angular/material/select';
|
|
|
|
|
import {MatSidenavModule} from '@angular/material/sidenav';
|
|
|
|
|
import {FileDetailsDialogComponent} from './screens/file/file-preview-screen/file-details-dialog/file-details-dialog.component';
|
|
|
|
|
import {ToastrModule} from 'ngx-toastr';
|
|
|
|
|
import {ServiceWorkerModule} from '@angular/service-worker';
|
|
|
|
|
import {environment} from '../environments/environment';
|
|
|
|
|
import {ProjectDetailsDialogComponent} from './screens/project-overview-screen/project-details-dialog/project-details-dialog.component';
|
|
|
|
|
import {AuthModule} from './auth/auth.module';
|
|
|
|
|
import {AuthGuard} from './auth/auth.guard';
|
|
|
|
|
import {FileUploadModule} from './upload/file-upload.module';
|
|
|
|
|
import {FullPageLoadingIndicatorComponent} from './utils/full-page-loading-indicator/full-page-loading-indicator.component';
|
|
|
|
|
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
|
|
|
|
|
import {InitialsAvatarComponent} from './common/initials-avatar/initials-avatar.component';
|
|
|
|
|
import {StatusBarComponent} from './components/status-bar/status-bar.component';
|
|
|
|
|
import {LogoComponent} from './logo/logo.component';
|
|
|
|
|
import {AuthInterceptorService} from "./interceptor/auth-interceptor.service";
|
|
|
|
|
import {CompositeRouteGuard} from "./utils/composite-route.guard";
|
|
|
|
|
import {AppStateGuard} from "./state/app-state.guard";
|
|
|
|
|
import {SimpleDoughnutChartComponent} from './simple-doughnut-chart/simple-doughnut-chart.component';
|
|
|
|
|
import {ManualRedactionDialogComponent} from './screens/file/manual-redaction-dialog/manual-redaction-dialog.component';
|
|
|
|
|
import {MatCheckboxModule} from "@angular/material/checkbox";
|
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
|
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
|
|
|
import { HTTP_INTERCEPTORS, HttpClient, HttpClientModule } from '@angular/common/http';
|
|
|
|
|
import { BaseScreenComponent } from './screens/base-screen/base-screen.component';
|
|
|
|
|
import { ProjectListingScreenComponent } from './screens/project-listing-screen/project-listing-screen.component';
|
|
|
|
|
import { ProjectOverviewScreenComponent } from './screens/project-overview-screen/project-overview-screen.component';
|
|
|
|
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
|
|
|
import { ApiModule } from '@redaction/red-ui-http';
|
|
|
|
|
import { ApiPathInterceptorService } from './interceptor/api-path-interceptor.service';
|
|
|
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
|
|
|
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
|
|
|
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
|
|
|
import { MatMenuModule } from '@angular/material/menu';
|
|
|
|
|
import { languageInitializer } from './i18n/language.initializer';
|
|
|
|
|
import { LanguageService } from './i18n/language.service';
|
|
|
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
|
|
|
import { IconsModule } from './icons/icons.module';
|
|
|
|
|
import { AddEditProjectDialogComponent } from './screens/project-listing-screen/add-edit-project-dialog/add-edit-project-dialog.component';
|
|
|
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
|
|
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
|
|
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
|
|
|
import { ConfirmationDialogComponent } from './common/confirmation-dialog/confirmation-dialog.component';
|
|
|
|
|
import { FilePreviewScreenComponent } from './screens/file/file-preview-screen/file-preview-screen.component';
|
|
|
|
|
import { PdfViewerComponent } from './screens/file/pdf-viewer/pdf-viewer.component';
|
|
|
|
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
|
|
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
|
|
|
import { NgpSortModule } from 'ngp-sort-pipe';
|
|
|
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
|
|
import { MatSelectModule } from '@angular/material/select';
|
|
|
|
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
|
|
|
import { FileDetailsDialogComponent } from './screens/file/file-preview-screen/file-details-dialog/file-details-dialog.component';
|
|
|
|
|
import { ToastrModule } from 'ngx-toastr';
|
|
|
|
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
|
|
|
|
import { environment } from '../environments/environment';
|
|
|
|
|
import { ProjectDetailsDialogComponent } from './screens/project-overview-screen/project-details-dialog/project-details-dialog.component';
|
|
|
|
|
import { AuthModule } from './auth/auth.module';
|
|
|
|
|
import { AuthGuard } from './auth/auth.guard';
|
|
|
|
|
import { FileUploadModule } from './upload/file-upload.module';
|
|
|
|
|
import { FullPageLoadingIndicatorComponent } from './utils/full-page-loading-indicator/full-page-loading-indicator.component';
|
|
|
|
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
|
|
|
import { InitialsAvatarComponent } from './common/initials-avatar/initials-avatar.component';
|
|
|
|
|
import { StatusBarComponent } from './components/status-bar/status-bar.component';
|
|
|
|
|
import { LogoComponent } from './logo/logo.component';
|
|
|
|
|
import { AuthInterceptorService } from './interceptor/auth-interceptor.service';
|
|
|
|
|
import { CompositeRouteGuard } from './utils/composite-route.guard';
|
|
|
|
|
import { AppStateGuard } from './state/app-state.guard';
|
|
|
|
|
import { SimpleDoughnutChartComponent } from './components/simple-doughnut-chart/simple-doughnut-chart.component';
|
|
|
|
|
import { ManualRedactionDialogComponent } from './screens/file/manual-redaction-dialog/manual-redaction-dialog.component';
|
|
|
|
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
|
|
|
|
|
|
|
|
export function HttpLoaderFactory(httpClient: HttpClient) {
|
|
|
|
|
return new TranslateHttpLoader(httpClient, '/assets/i18n/', '.json');
|
|
|
|
|
@ -74,11 +74,12 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
|
|
|
|
|
StatusBarComponent,
|
|
|
|
|
LogoComponent,
|
|
|
|
|
SimpleDoughnutChartComponent,
|
|
|
|
|
ManualRedactionDialogComponent
|
|
|
|
|
ManualRedactionDialogComponent,
|
|
|
|
|
],
|
|
|
|
|
imports: [
|
|
|
|
|
BrowserModule,
|
|
|
|
|
BrowserAnimationsModule,
|
|
|
|
|
FormsModule,
|
|
|
|
|
ReactiveFormsModule,
|
|
|
|
|
HttpClientModule,
|
|
|
|
|
AuthModule,
|
|
|
|
|
@ -107,7 +108,7 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
|
|
|
|
|
component: ProjectListingScreenComponent,
|
|
|
|
|
canActivate: [CompositeRouteGuard],
|
|
|
|
|
data: {
|
|
|
|
|
routeGuards: [AuthGuard, AppStateGuard],
|
|
|
|
|
routeGuards: [AuthGuard, AppStateGuard]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
@ -115,7 +116,7 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
|
|
|
|
|
component: ProjectOverviewScreenComponent,
|
|
|
|
|
canActivate: [CompositeRouteGuard],
|
|
|
|
|
data: {
|
|
|
|
|
routeGuards: [AuthGuard, AppStateGuard],
|
|
|
|
|
routeGuards: [AuthGuard, AppStateGuard]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
@ -123,7 +124,7 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
|
|
|
|
|
component: FilePreviewScreenComponent,
|
|
|
|
|
canActivate: [CompositeRouteGuard],
|
|
|
|
|
data: {
|
|
|
|
|
routeGuards: [AuthGuard, AppStateGuard],
|
|
|
|
|
routeGuards: [AuthGuard, AppStateGuard]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
@ -144,7 +145,7 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
|
|
|
|
|
MatSelectModule,
|
|
|
|
|
MatSidenavModule,
|
|
|
|
|
FileUploadModule,
|
|
|
|
|
ServiceWorkerModule.register('ngsw-worker.js', {enabled: environment.production}),
|
|
|
|
|
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
|
|
|
|
|
MatProgressSpinnerModule,
|
|
|
|
|
MatCheckboxModule
|
|
|
|
|
],
|
|
|
|
|
|