Upgrade "ng2-alfresco-core"

This commit is contained in:
Denys Vuika
2016-06-13 16:35:01 +01:00
parent 8683e1c950
commit 2ab2b5bbb0
12 changed files with 35 additions and 30 deletions

View File

@@ -49,17 +49,22 @@
"alfresco"
],
"dependencies": {
"angular2": "2.0.0-beta.15",
"es6-module-loader": "^0.17.8",
"es6-shim": "^0.35.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"systemjs": "0.19.26",
"@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/http": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
"@angular/router": "2.0.0-rc.1",
"@angular/router-deprecated": "2.0.0-rc.1",
"@angular/upgrade": "2.0.0-rc.1",
"systemjs": "0.19.27",
"core-js": "^2.4.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12",
"ng2-translate": "1.11.1"
},
"peerDependencies": {
"angular2": "2.0.0-beta.15"
"angular2-in-memory-web-api": "0.0.11",
"ng2-translate": "2.1.0"
},
"devDependencies": {
"copyfiles": "^0.2.1",
@@ -78,7 +83,7 @@
"traceur": "^0.0.91",
"tslint": "^3.8.1",
"typescript": "^1.8.10",
"typings": "^0.7.12"
"typings": "^1.0.4"
},
"license-check-config": {
"src": [

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component } from 'angular2/core';
import { Component } from '@angular/core';
import { ContextMenuService } from './../services/context-menu.service';
@Component({
@@ -59,7 +59,7 @@ import { ContextMenuService } from './../services/context-menu.service';
template: `
<div [ngStyle]="locationCss" class="menu-container">
<ul class="context-menu">
<li (click)="link.subject.next(link)" class="mdl-menu__item link" *ngFor="#link of links">
<li (click)="link.subject.next(link)" class="mdl-menu__item link" *ngFor="let link of links">
{{link.title || link.model?.title}}
</li>
</ul>

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Directive, Input } from 'angular2/core';
import { Directive, Input } from '@angular/core';
import { ContextMenuService } from './../services/context-menu.service';
@Directive({

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import {Directive, AfterViewInit} from 'angular2/core';
import { Directive, AfterViewInit } from '@angular/core';
declare var componentHandler;
@Directive({

View File

@@ -15,8 +15,8 @@
* limitations under the License.
*/
import { it, describe, beforeEach } from 'angular2/testing';
import { Injector } from 'angular2/core';
import { it, describe, beforeEach } from '@angular/core/testing';
import { ReflectiveInjector } from '@angular/core';
import { AlfrescoSettingsService } from './AlfrescoSettingsService.service';
import { AlfrescoAuthenticationService } from './AlfrescoAuthenticationService.service';
import { AlfrescoApiMock } from '../assets/AlfrescoApi.mock';
@@ -29,7 +29,7 @@ describe('AlfrescoAuthentication', () => {
service;
beforeEach(() => {
injector = Injector.resolveAndCreate([
injector = ReflectiveInjector.resolveAndCreate([
AlfrescoAuthenticationService,
AlfrescoSettingsService
]);

View File

@@ -15,9 +15,9 @@
* limitations under the License.
*/
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Rx';
import { Http, Headers, Response } from 'angular2/http';
import { Http, Headers, Response } from '@angular/http';
import { AlfrescoSettingsService } from './AlfrescoSettingsService.service';
declare let AlfrescoApi: any;

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';
import { AlfrescoAuthenticationService } from './AlfrescoAuthenticationService.service';
import { AlfrescoSettingsService } from './AlfrescoSettingsService.service';

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Injectable, ChangeDetectorRef, Pipe } from 'angular2/core';
import { Injectable, ChangeDetectorRef, Pipe } from '@angular/core';
import { TranslatePipe } from 'ng2-translate/ng2-translate';
import { AlfrescoTranslationService } from './AlfrescoTranslationService.service';

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';
@Injectable()
export class AlfrescoSettingsService {

View File

@@ -15,8 +15,8 @@
* limitations under the License.
*/
import { Injectable } from 'angular2/core';
import { Response, Http } from 'angular2/http';
import { Injectable } from '@angular/core';
import { Response, Http } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { TranslateLoader } from 'ng2-translate/ng2-translate';
@@ -44,7 +44,7 @@ export class AlfrescoTranslationLoader implements TranslateLoader {
this._componentList.forEach((component) => {
observableBatch.push(this.http.get(`${component}/${self.prefix}/${lang}${self.suffix}`)
.map((res: Response) => res.json())
.catch( (err: any, source: Observable<any>, caught: Observable<any>) => {
.catch( (/*err: any, source: Observable<any>, caught: Observable<any>*/) => {
// Empty Observable just to go ahead
return Observable.of('');
}));

View File

@@ -15,8 +15,8 @@
* limitations under the License.
*/
import { Injectable, Optional } from 'angular2/core';
import { Http } from 'angular2/http';
import { Injectable, Optional } from '@angular/core';
import { Http } from '@angular/http';
import { MissingTranslationHandler, TranslateService } from 'ng2-translate/ng2-translate';
import { AlfrescoTranslationLoader } from './AlfrescoTranslationLoader.service';

View File

@@ -15,10 +15,10 @@
* limitations under the License.
*/
import {Injectable} from 'angular2/core';
import {Injectable} from '@angular/core';
import {Subject} from 'rxjs/Rx';
@Injectable()
export class ContextMenuService {
public show: Subject<{event: MouseEvent, obj: any[]}> = new Subject();
public show: Subject<{event: MouseEvent, obj: any[]}> = new Subject<{event: MouseEvent, obj: any[]}>();
}