mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* increase timeout and modify login async * run e2e if testing is changed * improve cdk fix * fix travis update projects * disable ghostMode lite server * lint fix * fix timeout * multiple try * Update content-services-e2e.sh * Update search-e2e.sh * Update process-services-e2e.sh * Update core-e2e.sh * Update protractor.conf.ts * fix unit * remove async * increqase notification time * 3 parallel * dix path issue in save * small refactor protractor ts * fix save * create license check first script adf cli * modify regex check * refactor notification history component * decrease notification * fix notification message problem * fix test * update packages wit high risk * revert cahnge login sso e2e * fix dep * fix documentation duplication and issue * fix after review * fix after review * try 6 parallel test * back to 3 parallel test no real time improve with 6
164 lines
5.7 KiB
TypeScript
164 lines
5.7 KiB
TypeScript
/*!
|
|
* @license
|
|
* Copyright 2019 Alfresco Software, Ltd.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
import { APP_INITIALIZER, NgModule, ModuleWithProviders } from '@angular/core';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { TranslateModule, TranslateLoader, TranslateStore, TranslateService } from '@ngx-translate/core';
|
|
|
|
import { MaterialModule } from './material.module';
|
|
import { AboutModule } from './about/about.module';
|
|
import { AppConfigModule } from './app-config/app-config.module';
|
|
import { CardViewModule } from './card-view/card-view.module';
|
|
import { ContextMenuModule } from './context-menu/context-menu.module';
|
|
import { DataColumnModule } from './data-column/data-column.module';
|
|
import { DataTableModule } from './datatable/datatable.module';
|
|
import { InfoDrawerModule } from './info-drawer/info-drawer.module';
|
|
import { LanguageMenuModule } from './language-menu/language-menu.module';
|
|
import { LoginModule } from './login/login.module';
|
|
import { PaginationModule } from './pagination/pagination.module';
|
|
import { HostSettingsModule } from './settings/host-settings.module';
|
|
import { ToolbarModule } from './toolbar/toolbar.module';
|
|
import { UserInfoModule } from './userinfo/userinfo.module';
|
|
import { ViewerModule } from './viewer/viewer.module';
|
|
import { FormBaseModule } from './form/form-base.module';
|
|
import { SidenavLayoutModule } from './layout/layout.module';
|
|
import { CommentsModule } from './comments/comments.module';
|
|
import { ButtonsMenuModule } from './buttons-menu/buttons-menu.module';
|
|
import { TemplateModule } from './templates/template.module';
|
|
import { ClipboardModule } from './clipboard/clipboard.module';
|
|
import { NotificationHistoryModule } from './notification-history/notification-history.module';
|
|
|
|
import { DirectiveModule } from './directives/directive.module';
|
|
import { DialogModule } from './dialogs/dialog.module';
|
|
import { PipeModule } from './pipes/pipe.module';
|
|
|
|
import { AlfrescoApiService } from './services/alfresco-api.service';
|
|
import { TranslationService } from './services/translation.service';
|
|
import { startupServiceFactory } from './services/startup-service-factory';
|
|
import { SortingPickerModule } from './sorting-picker/sorting-picker.module';
|
|
import { IconModule } from './icon/icon.module';
|
|
import { TranslateLoaderService } from './services/translate-loader.service';
|
|
import { ExtensionsModule } from '@alfresco/adf-extensions';
|
|
import { directionalityConfigFactory } from './services/directionality-config-factory';
|
|
import { DirectionalityConfigService } from './services/directionality-config.service';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
TranslateModule,
|
|
ExtensionsModule.forChild(),
|
|
AboutModule,
|
|
ViewerModule,
|
|
SidenavLayoutModule,
|
|
PipeModule,
|
|
CommonModule,
|
|
DirectiveModule,
|
|
DialogModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
HostSettingsModule,
|
|
UserInfoModule,
|
|
MaterialModule,
|
|
AppConfigModule,
|
|
PaginationModule,
|
|
ToolbarModule,
|
|
ContextMenuModule,
|
|
CardViewModule,
|
|
FormBaseModule,
|
|
CommentsModule,
|
|
LoginModule,
|
|
LanguageMenuModule,
|
|
InfoDrawerModule,
|
|
DataColumnModule,
|
|
DataTableModule,
|
|
ButtonsMenuModule,
|
|
TemplateModule,
|
|
IconModule,
|
|
SortingPickerModule,
|
|
NotificationHistoryModule
|
|
],
|
|
exports: [
|
|
AboutModule,
|
|
ViewerModule,
|
|
SidenavLayoutModule,
|
|
PipeModule,
|
|
CommonModule,
|
|
DirectiveModule,
|
|
DialogModule,
|
|
ClipboardModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
HostSettingsModule,
|
|
UserInfoModule,
|
|
MaterialModule,
|
|
AppConfigModule,
|
|
PaginationModule,
|
|
ToolbarModule,
|
|
ContextMenuModule,
|
|
CardViewModule,
|
|
FormBaseModule,
|
|
CommentsModule,
|
|
LoginModule,
|
|
LanguageMenuModule,
|
|
InfoDrawerModule,
|
|
DataColumnModule,
|
|
DataTableModule,
|
|
TranslateModule,
|
|
ButtonsMenuModule,
|
|
TemplateModule,
|
|
SortingPickerModule,
|
|
IconModule,
|
|
NotificationHistoryModule
|
|
]
|
|
})
|
|
export class CoreModule {
|
|
static forRoot(): ModuleWithProviders {
|
|
return {
|
|
ngModule: CoreModule,
|
|
providers: [
|
|
TranslateStore,
|
|
TranslateService,
|
|
{ provide: TranslateLoader, useClass: TranslateLoaderService },
|
|
{
|
|
provide: APP_INITIALIZER,
|
|
useFactory: startupServiceFactory,
|
|
deps: [
|
|
AlfrescoApiService
|
|
],
|
|
multi: true
|
|
},
|
|
{
|
|
provide: APP_INITIALIZER,
|
|
useFactory: directionalityConfigFactory,
|
|
deps: [ DirectionalityConfigService ],
|
|
multi: true
|
|
}
|
|
]
|
|
};
|
|
}
|
|
|
|
static forChild(): ModuleWithProviders {
|
|
return {
|
|
ngModule: CoreModule
|
|
};
|
|
}
|
|
|
|
constructor(translation: TranslationService) {
|
|
translation.addTranslationFolder('adf-core', 'assets/adf-core');
|
|
}
|
|
}
|