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

View File

@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
import { Component } from 'angular2/core'; import { Component } from '@angular/core';
import { ContextMenuService } from './../services/context-menu.service'; import { ContextMenuService } from './../services/context-menu.service';
@Component({ @Component({
@@ -59,7 +59,7 @@ import { ContextMenuService } from './../services/context-menu.service';
template: ` template: `
<div [ngStyle]="locationCss" class="menu-container"> <div [ngStyle]="locationCss" class="menu-container">
<ul class="context-menu"> <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}} {{link.title || link.model?.title}}
</li> </li>
</ul> </ul>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -15,7 +15,7 @@
* limitations under the License. * 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 { TranslatePipe } from 'ng2-translate/ng2-translate';
import { AlfrescoTranslationService } from './AlfrescoTranslationService.service'; import { AlfrescoTranslationService } from './AlfrescoTranslationService.service';

View File

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

View File

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

View File

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

View File

@@ -15,10 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
import {Injectable} from 'angular2/core'; import {Injectable} from '@angular/core';
import {Subject} from 'rxjs/Rx'; import {Subject} from 'rxjs/Rx';
@Injectable() @Injectable()
export class ContextMenuService { 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[]}>();
} }