Newer
Older

Alex ORLUC
committed
import { NgModule, Injectable } from '@angular/core';
import { SharedModule } from './app-common.module';

Alex ORLUC
committed
import { AppRoutingModule } from './app-routing.module';
import { BrowserModule, HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { InternationalizationModule } from '../service/translate/internationalization.module';
import { JoyrideModule } from 'ngx-joyride';
import { ProcessModule } from './process/process.module';
import { DocumentViewerModule } from './viewer/document-viewer.module';
import { AppListModule } from './app-list.module';
import { AuthInterceptor } from '../service/auth-interceptor.service';
import { FiltersListService } from '../service/filtersList.service';
import { FoldersService } from './folder/folders.service';
import { PrivilegeService } from '../service/privileges.service';
import { ActionsService } from './actions/actions.service';
import { AppComponent } from './app.component';
import { AboutUsComponent } from './about-us.component';
import { ActivateUserComponent } from './activate-user.component';

Alex ORLUC
committed
import { AddAvisModelModalComponent } from './avis/addAvisModel/add-avis-model-modal.component';
import { AddPrivateIndexingModelModalComponent } from './indexation/private-indexing-model/add-private-indexing-model-modal.component';
import { AddVisaModelModalComponent } from './visa/addVisaModel/add-visa-model-modal.component';
import { AttachmentCreateComponent } from './attachments/attachment-create/attachment-create.component';
import { AttachmentPageComponent } from './attachments/attachments-page/attachment-page.component';
import { BasketListComponent } from './list/basket-list.component';
import { ContactModalComponent } from './administration/contact/modal/contact-modal.component';
import { ContactResourceModalComponent } from './contact/contact-resource/modal/contact-resource-modal.component';
import { DocumentViewerPageComponent } from './viewer/page/document-viewer-page.component';
import { FolderCreateModalComponent } from './folder/folder-create-modal/folder-create-modal.component';
import { FolderDocumentListComponent } from './folder/document-list/folder-document-list.component';
import { FolderPinnedComponent } from './folder/folder-pinned/folder-pinned.component';
import { FolderTreeComponent } from './folder/folder-tree.component';
import { FolderUpdateComponent } from './folder/folder-update/folder-update.component';

Alex ORLUC
committed
import { FollowedDocumentListComponent } from './home/followed-list/followed-document-list.component';
import { ForgotPasswordComponent } from './login/forgotPassword/forgotPassword.component';

Alex ORLUC
committed
import { HomeComponent } from './home/home.component';
import { LoginComponent } from './login/login.component';
import { MaarchParapheurListComponent } from './home/maarch-parapheur/maarch-parapheur-list.component';
import { PanelFolderComponent } from './folder/panel/panel-folder.component';
import { PasswordModificationComponent, InfoChangePasswordModalComponent, } from './login/passwordModification/password-modification.component';
import { PrintSeparatorComponent } from './separator/print-separator/print-separator.component';
import { ProfileComponent } from './profile.component';
import { RedirectIndexingModelComponent } from './administration/indexingModel/redirectIndexingModel/redirect-indexing-model.component';
import { ResetPasswordComponent } from './login/resetPassword/reset-password.component';

Alex ORLUC
committed
import { SaveNumericPackageComponent } from './save-numeric-package.component';
import { SignatureBookComponent } from './signature-book.component';
import { VisaWorkflowModalComponent } from './visa/modal/visa-workflow-modal.component';
import { DevToolComponent } from '../service/debug/dev-tool.component';
import { DevLangComponent } from '../service/debug/dev-lang.component';
import { AcknowledgementReceptionComponent } from './registeredMails/acknowledgement-reception/acknowledgement-reception.component';

Alex ORLUC
committed
@Injectable()
export class MyHammerConfig extends HammerGestureConfig {
overrides = <any>{
'pinch': { enable: false },
'rotate': { enable: false }
};
}
imports: [
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
InternationalizationModule,
AppRoutingModule,

Alex ORLUC
committed
DocumentViewerModule,
ProcessModule,
AppListModule,
],
declarations: [
AppComponent,

Alex ORLUC
committed
AddAvisModelModalComponent,
AddPrivateIndexingModelModalComponent,
AddVisaModelModalComponent,
AttachmentCreateComponent,
AttachmentPageComponent,
BasketListComponent,
ContactModalComponent,
ContactResourceModalComponent,
DocumentViewerPageComponent,
FolderCreateModalComponent,
FolderDocumentListComponent,

Alex ORLUC
committed
FollowedDocumentListComponent,
ForgotPasswordComponent,

Alex ORLUC
committed
HomeComponent,
InfoChangePasswordModalComponent,
LoginComponent,
MaarchParapheurListComponent,
PanelFolderComponent,
PasswordModificationComponent,
PrintSeparatorComponent,
ProfileComponent,
RedirectIndexingModelComponent,
ResetPasswordComponent,

Alex ORLUC
committed
SaveNumericPackageComponent,
SignatureBookComponent,
VisaWorkflowModalComponent,
DevToolComponent,
AcknowledgementReceptionComponent

Alex ORLUC
committed
],
exports : [
SharedModule
],
entryComponents: [

Alex ORLUC
committed
AddAvisModelModalComponent,
AddPrivateIndexingModelModalComponent,

Alex ORLUC
committed
AddVisaModelModalComponent,
AttachmentCreateComponent,

Alex ORLUC
committed
AttachmentPageComponent,
ContactModalComponent,

Alex ORLUC
committed
ContactResourceModalComponent,

Alex ORLUC
committed
FolderUpdateComponent,
InfoChangePasswordModalComponent,
RedirectIndexingModelComponent,

Alex ORLUC
committed
VisaWorkflowModalComponent,
providers: [{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }, FiltersListService, FoldersService, ActionsService, PrivilegeService, {
provide: HAMMER_GESTURE_CONFIG,
useClass: MyHammerConfig
}],
bootstrap: [AppComponent]