mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-1868] Update to Angular 5 (#2606)
* Angular 5.0.0 update * fix core http import * split language html from ts * http deprecation module change * fix test core * fix analytics api * update dependency * exclude breadcrumb object picker test * fix viewer and common new test * fix test cs * fix tasklist test * fix demo shell angular 5 * fix translate * dix search test * restore files demo shell * update tsconfig * rebuild automatic prebuild theme * Fix breadcrumb tests * Fix tests, the right way
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
*/
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { HttpClient , HttpClientModule } from '@angular/common/http';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { Http, HttpModule } from '@angular/http';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@@ -58,6 +58,7 @@ import { HighlightDirective } from './src/directives/highlight.directive';
|
||||
import { LogoutDirective } from './src/directives/logout.directive';
|
||||
import { NodeDeleteDirective } from './src/directives/node-delete.directive';
|
||||
import { NodeFavoriteDirective } from './src/directives/node-favorite.directive';
|
||||
import { AppConfigService } from './src/services/app-config.service';
|
||||
import { AppsProcessService } from './src/services/apps-process.service';
|
||||
import { DeletedNodesApiService } from './src/services/deleted-nodes-api.service';
|
||||
import { DiscoveryApiService } from './src/services/discovery-api.service';
|
||||
@@ -217,7 +218,8 @@ export function providers() {
|
||||
MomentDateAdapter,
|
||||
PeopleProcessService,
|
||||
AppsProcessService,
|
||||
CommentProcessService
|
||||
CommentProcessService,
|
||||
AppConfigService
|
||||
];
|
||||
}
|
||||
|
||||
@@ -239,7 +241,7 @@ export function pipes() {
|
||||
];
|
||||
}
|
||||
|
||||
export function createTranslateLoader(http: Http, logService: LogService) {
|
||||
export function createTranslateLoader(http: HttpClient, logService: LogService) {
|
||||
return new AlfrescoTranslateLoader(http, logService);
|
||||
}
|
||||
|
||||
@@ -248,13 +250,13 @@ export function createTranslateLoader(http: Http, logService: LogService) {
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
HttpModule,
|
||||
HttpClientModule,
|
||||
BrowserAnimationsModule,
|
||||
TranslateModule.forRoot({
|
||||
loader: {
|
||||
provide: TranslateLoader,
|
||||
useFactory: (createTranslateLoader),
|
||||
deps: [Http, LogService]
|
||||
deps: [HttpClient, LogService]
|
||||
}
|
||||
}),
|
||||
MaterialModule,
|
||||
@@ -308,7 +310,7 @@ export function createTranslateLoader(http: Http, logService: LogService) {
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
HttpModule,
|
||||
HttpClientModule,
|
||||
TranslateModule,
|
||||
MaterialModule,
|
||||
ContextMenuModule,
|
||||
|
Reference in New Issue
Block a user