Upgrade Upload to angular 2.0.0-rc.1

This commit is contained in:
Denys Vuika
2016-06-14 11:02:41 +01:00
parent 91cb3bf906
commit 2428396ab6
17 changed files with 258 additions and 209 deletions

View File

@@ -15,6 +15,15 @@
* limitations under the License.
*/
import { describe, it, expect } from '@angular/core/testing';
describe('FileUploadDialog', () => {
it ('should be migrated to angular 2 rc.1', () => {
expect(false).toBe(true);
});
});
/*
import { TEST_BROWSER_PLATFORM_PROVIDERS, TEST_BROWSER_APPLICATION_PROVIDERS } from 'angular2/platform/testing/browser';
import { it, describe, expect, injectAsync, beforeEachProviders, TestComponentBuilder, setBaseTestProviders } from 'angular2/testing';
import { provide } from 'angular2/core';
@@ -53,3 +62,4 @@ describe('FileUploadDialog', () => {
});
}));
});
*/

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, ChangeDetectorRef, OnInit } from 'angular2/core';
import { Component, ChangeDetectorRef, OnInit } from '@angular/core';
import { FileModel } from '../models/file.model';
import { FileUploadingListComponent } from './file-uploading-list.component';
import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';

View File

@@ -10,7 +10,7 @@
<th>{{'FILE_UPLOAD.FILE_INFO.SIZE' | translate}}</th>
<th>{{'FILE_UPLOAD.FILE_INFO.ACTION' | translate}}</th>
</tr>
<tr *ngFor="#file of filesUploadingList">
<tr *ngFor="let file of filesUploadingList">
<td class="mdl-data-table__cell--non-numeric"><div class="truncate">{{file.name}}</div></td>
<td _ngcontent-hvq-3="">
<div _ngcontent-hvq-3="" class="mdl-progress mdl-js-progress is-upgraded" id="{{file.id}}"

View File

@@ -16,7 +16,7 @@
*/
import { Component, ElementRef, Input } from 'angular2/core';
import { Component, ElementRef, Input } from '@angular/core';
import { FileModel } from '../models/file.model';
import { AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';

View File

@@ -15,6 +15,16 @@
* limitations under the License.
*/
import { describe, it, expect } from '@angular/core/testing';
describe('AlfrescoUploadButton', () => {
it ('should be migrated to angular 2 rc.1', () => {
expect(false).toBe(true);
});
});
/*
import { it, describe, expect, injectAsync, beforeEachProviders, TestComponentBuilder } from 'angular2/testing';
import { provide } from 'angular2/core';
import { UploadButtonComponent } from './upload-button.component';
@@ -105,3 +115,4 @@ describe('AlfrescoUploadButton', () => {
});
}));
});
*/

View File

@@ -16,7 +16,7 @@
*/
import { Component, ViewChild, ElementRef, Input, Output, EventEmitter } from 'angular2/core';
import { Component, ViewChild, ElementRef, Input, Output, EventEmitter } from '@angular/core';
import { UploadService } from '../services/upload.service';
import { FileModel } from '../models/file.model';
import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, ViewChild, Input, Output, EventEmitter } from 'angular2/core';
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
import { UploadService } from '../services/upload.service';
import { FileDraggableDirective } from '../directives/file-draggable.directive';
import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';