mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Upgrade ng2-alfresco-upload
This commit is contained in:
@@ -64,7 +64,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<main class="mdl-layout__content">
|
<main class="mdl-layout__content">
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<alfresco-login></alfresco-login>
|
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
@@ -26,23 +26,14 @@ import { SearchModule } from 'ng2-alfresco-search';
|
|||||||
import { LoginModule } from 'ng2-alfresco-login';
|
import { LoginModule } from 'ng2-alfresco-login';
|
||||||
import { DataTableModule } from 'ng2-alfresco-datatable';
|
import { DataTableModule } from 'ng2-alfresco-datatable';
|
||||||
import { DocumentListModule } from 'ng2-alfresco-documentlist';
|
import { DocumentListModule } from 'ng2-alfresco-documentlist';
|
||||||
|
import { UploadModule } from 'ng2-alfresco-upload'
|
||||||
|
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { routing } from './app.routes';
|
import { routing } from './app.routes';
|
||||||
|
|
||||||
/*
|
|
||||||
import {
|
|
||||||
MDL,
|
|
||||||
ALFRESCO_CORE_PROVIDERS,
|
|
||||||
CONTEXT_MENU_DIRECTIVES,
|
|
||||||
CONTEXT_MENU_PROVIDERS,
|
|
||||||
MATERIAL_DESIGN_DIRECTIVES
|
|
||||||
} from 'ng2-alfresco-core';
|
|
||||||
*/
|
|
||||||
import { ALFRESCO_TASKLIST_DIRECTIVES } from 'ng2-activiti-tasklist';
|
import { ALFRESCO_TASKLIST_DIRECTIVES } from 'ng2-activiti-tasklist';
|
||||||
import { ACTIVITI_PROCESSLIST_DIRECTIVES } from 'ng2-activiti-processlist';
|
import { ACTIVITI_PROCESSLIST_DIRECTIVES } from 'ng2-activiti-processlist';
|
||||||
import { ActivitiForm, ATIVITI_FORM_PROVIDERS } from 'ng2-activiti-form';
|
import { ActivitiForm, ATIVITI_FORM_PROVIDERS } from 'ng2-activiti-form';
|
||||||
import { ALFRESCO_ULPOAD_COMPONENTS, ALFRESCO_ULPOAD_DIRECTIVES, ALFRESCO_ULPOAD_SERVICES } from 'ng2-alfresco-upload';
|
|
||||||
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer';
|
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer';
|
||||||
import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag';
|
import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag';
|
||||||
import { WEBSCRIPTCOMPONENT } from 'ng2-alfresco-webscript';
|
import { WEBSCRIPTCOMPONENT } from 'ng2-alfresco-webscript';
|
||||||
@@ -51,7 +42,6 @@ import { AlfrescoTranslationLoader } from 'ng2-alfresco-core';
|
|||||||
import { Http } from '@angular/http';
|
import { Http } from '@angular/http';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
UploadButtonComponent,
|
|
||||||
DataTableDemoComponent,
|
DataTableDemoComponent,
|
||||||
SearchComponent,
|
SearchComponent,
|
||||||
SearchBarComponent,
|
SearchBarComponent,
|
||||||
@@ -121,24 +111,19 @@ const ACTIVITI_FORM_DIRECTIVES: any[] = [
|
|||||||
LoginModule,
|
LoginModule,
|
||||||
SearchModule.forRoot(),
|
SearchModule.forRoot(),
|
||||||
DataTableModule,
|
DataTableModule,
|
||||||
DocumentListModule.forRoot()
|
DocumentListModule.forRoot(),
|
||||||
|
UploadModule.forRoot()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
SearchBarComponent,
|
SearchBarComponent,
|
||||||
// MDL,
|
|
||||||
...ALFRESCO_TASKLIST_DIRECTIVES,
|
...ALFRESCO_TASKLIST_DIRECTIVES,
|
||||||
...ACTIVITI_PROCESSLIST_DIRECTIVES,
|
...ACTIVITI_PROCESSLIST_DIRECTIVES,
|
||||||
...ACTIVITI_FORM_DIRECTIVES,
|
...ACTIVITI_FORM_DIRECTIVES,
|
||||||
// ...CONTEXT_MENU_DIRECTIVES,
|
|
||||||
...ALFRESCO_ULPOAD_COMPONENTS,
|
|
||||||
...VIEWERCOMPONENT,
|
...VIEWERCOMPONENT,
|
||||||
...TAGCOMPONENT,
|
...TAGCOMPONENT,
|
||||||
...WEBSCRIPTCOMPONENT,
|
...WEBSCRIPTCOMPONENT,
|
||||||
...ALFRESCO_ULPOAD_COMPONENTS, ...ALFRESCO_ULPOAD_DIRECTIVES,
|
|
||||||
// ...MATERIAL_DESIGN_DIRECTIVES,
|
|
||||||
|
|
||||||
UploadButtonComponent,
|
|
||||||
DataTableDemoComponent,
|
DataTableDemoComponent,
|
||||||
SearchComponent,
|
SearchComponent,
|
||||||
SearchBarComponent,
|
SearchBarComponent,
|
||||||
@@ -152,11 +137,8 @@ const ACTIVITI_FORM_DIRECTIVES: any[] = [
|
|||||||
FormNodeViewer
|
FormNodeViewer
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
// ...ALFRESCO_CORE_PROVIDERS,
|
|
||||||
...ATIVITI_FORM_PROVIDERS,
|
...ATIVITI_FORM_PROVIDERS,
|
||||||
...TAGSERVICES,
|
...TAGSERVICES
|
||||||
...ALFRESCO_ULPOAD_SERVICES// ,
|
|
||||||
// ...CONTEXT_MENU_PROVIDERS
|
|
||||||
],
|
],
|
||||||
bootstrap: [ AppComponent ]
|
bootstrap: [ AppComponent ]
|
||||||
})
|
})
|
||||||
|
@@ -20,7 +20,6 @@ import { Routes, RouterModule } from '@angular/router';
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
FilesComponent,
|
FilesComponent,
|
||||||
UploadButtonComponent,
|
|
||||||
DataTableDemoComponent,
|
DataTableDemoComponent,
|
||||||
SearchComponent,
|
SearchComponent,
|
||||||
LoginDemoComponent,
|
LoginDemoComponent,
|
||||||
@@ -32,6 +31,8 @@ import {
|
|||||||
FormNodeViewer
|
FormNodeViewer
|
||||||
} from './components/index';
|
} from './components/index';
|
||||||
|
|
||||||
|
import { UploadButtonComponent } from 'ng2-alfresco-upload';
|
||||||
|
|
||||||
export const appRoutes: Routes = [
|
export const appRoutes: Routes = [
|
||||||
{ path: 'home', component: FilesComponent },
|
{ path: 'home', component: FilesComponent },
|
||||||
{ path: 'files', component: FilesComponent },
|
{ path: 'files', component: FilesComponent },
|
||||||
|
@@ -15,7 +15,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export { UploadButtonComponent } from 'ng2-alfresco-upload';
|
|
||||||
export { DataTableDemoComponent } from './datatable/datatable-demo.component';
|
export { DataTableDemoComponent } from './datatable/datatable-demo.component';
|
||||||
export { SearchComponent } from './search/search.component';
|
export { SearchComponent } from './search/search.component';
|
||||||
export { SearchBarComponent } from './search/search-bar.component';
|
export { SearchBarComponent } from './search/search-bar.component';
|
||||||
|
@@ -22,9 +22,6 @@ import { TranslateModule } from 'ng2-translate/ng2-translate';
|
|||||||
import { CoreModule } from 'ng2-alfresco-core';
|
import { CoreModule } from 'ng2-alfresco-core';
|
||||||
import { DataTableModule } from 'ng2-alfresco-datatable';
|
import { DataTableModule } from 'ng2-alfresco-datatable';
|
||||||
|
|
||||||
// import { ALFRESCO_CORE_PROVIDERS/*, CONTEXT_MENU_DIRECTIVES*/ } from 'ng2-alfresco-core';
|
|
||||||
// import { ALFRESCO_DATATABLE_DIRECTIVES } from 'ng2-alfresco-datatable';
|
|
||||||
|
|
||||||
import { DocumentList } from './src/components/document-list';
|
import { DocumentList } from './src/components/document-list';
|
||||||
import { ContentColumn } from './src/components/content-column';
|
import { ContentColumn } from './src/components/content-column';
|
||||||
import { ContentColumnList } from './src/components/content-column-list';
|
import { ContentColumnList } from './src/components/content-column-list';
|
||||||
@@ -58,7 +55,7 @@ export * from './src/services/document-list.service';
|
|||||||
export * from './src/models/content-action.model';
|
export * from './src/models/content-action.model';
|
||||||
export * from './src/models/document-library.model';
|
export * from './src/models/document-library.model';
|
||||||
|
|
||||||
export const DOCUMENT_LIST_DIRECTIVES: [any] = [
|
export const DOCUMENT_LIST_DIRECTIVES: any[] = [
|
||||||
DocumentList,
|
DocumentList,
|
||||||
ContentColumn,
|
ContentColumn,
|
||||||
ContentColumnList,
|
ContentColumnList,
|
||||||
@@ -68,7 +65,7 @@ export const DOCUMENT_LIST_DIRECTIVES: [any] = [
|
|||||||
DocumentListBreadcrumb
|
DocumentListBreadcrumb
|
||||||
];
|
];
|
||||||
|
|
||||||
export const DOCUMENT_LIST_PROVIDERS: [any] = [
|
export const DOCUMENT_LIST_PROVIDERS: any[] = [
|
||||||
DocumentListService,
|
DocumentListService,
|
||||||
FolderActionsService,
|
FolderActionsService,
|
||||||
DocumentActionsService
|
DocumentActionsService
|
||||||
@@ -86,7 +83,6 @@ export const DOCUMENT_LIST_PROVIDERS: [any] = [
|
|||||||
...DOCUMENT_LIST_DIRECTIVES
|
...DOCUMENT_LIST_DIRECTIVES
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
// ...ALFRESCO_CORE_PROVIDERS,
|
|
||||||
...DOCUMENT_LIST_PROVIDERS
|
...DOCUMENT_LIST_PROVIDERS
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
|
@@ -20,14 +20,13 @@ import { HttpModule } from '@angular/http';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { TranslateModule } from 'ng2-translate/ng2-translate';
|
import { TranslateModule } from 'ng2-translate/ng2-translate';
|
||||||
|
import { CoreModule } from 'ng2-alfresco-core';
|
||||||
import { ALFRESCO_CORE_PROVIDERS } from 'ng2-alfresco-core';
|
|
||||||
|
|
||||||
import { AlfrescoLoginComponent } from './src/components/alfresco-login.component';
|
import { AlfrescoLoginComponent } from './src/components/alfresco-login.component';
|
||||||
|
|
||||||
export * from './src/components/alfresco-login.component';
|
export * from './src/components/alfresco-login.component';
|
||||||
|
|
||||||
export const ALFRESCO_LOGIN_DIRECTIVES: [any] = [AlfrescoLoginComponent];
|
export const ALFRESCO_LOGIN_DIRECTIVES: any[] = [AlfrescoLoginComponent];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -35,14 +34,13 @@ export const ALFRESCO_LOGIN_DIRECTIVES: [any] = [AlfrescoLoginComponent];
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
HttpModule,
|
HttpModule,
|
||||||
TranslateModule
|
TranslateModule,
|
||||||
|
CoreModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...ALFRESCO_LOGIN_DIRECTIVES
|
...ALFRESCO_LOGIN_DIRECTIVES
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [],
|
||||||
...ALFRESCO_CORE_PROVIDERS
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
...ALFRESCO_LOGIN_DIRECTIVES
|
...ALFRESCO_LOGIN_DIRECTIVES
|
||||||
]
|
]
|
||||||
|
@@ -15,6 +15,12 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
import { HttpModule } from '@angular/http';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { TranslateModule } from 'ng2-translate/ng2-translate';
|
||||||
|
import { CoreModule } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
import { UploadDragAreaComponent } from './src/components/upload-drag-area.component';
|
import { UploadDragAreaComponent } from './src/components/upload-drag-area.component';
|
||||||
import { FileDraggableDirective } from './src/directives/file-draggable.directive';
|
import { FileDraggableDirective } from './src/directives/file-draggable.directive';
|
||||||
import { UploadButtonComponent } from './src/components/upload-button.component';
|
import { UploadButtonComponent } from './src/components/upload-button.component';
|
||||||
@@ -45,17 +51,42 @@ export * from './src/services/upload.service';
|
|||||||
export * from './src/directives/file-draggable.directive';
|
export * from './src/directives/file-draggable.directive';
|
||||||
export * from './src/components/file-uploading-list.component';
|
export * from './src/components/file-uploading-list.component';
|
||||||
|
|
||||||
export const ALFRESCO_ULPOAD_COMPONENTS: [any] = [
|
export const UPLOAD_DIRECTIVES: any[] = [
|
||||||
|
FileDraggableDirective,
|
||||||
UploadDragAreaComponent,
|
UploadDragAreaComponent,
|
||||||
UploadButtonComponent,
|
UploadButtonComponent,
|
||||||
FileUploadingDialogComponent,
|
FileUploadingDialogComponent,
|
||||||
FileUploadingListComponent
|
FileUploadingListComponent
|
||||||
];
|
];
|
||||||
|
|
||||||
export const ALFRESCO_ULPOAD_DIRECTIVES: [any] = [
|
export const UPLOAD_PROVIDERS: any[] = [
|
||||||
FileDraggableDirective
|
|
||||||
];
|
|
||||||
|
|
||||||
export const ALFRESCO_ULPOAD_SERVICES: [any] = [
|
|
||||||
UploadService
|
UploadService
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HttpModule,
|
||||||
|
TranslateModule,
|
||||||
|
CoreModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
...UPLOAD_DIRECTIVES
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
...UPLOAD_PROVIDERS
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
...UPLOAD_DIRECTIVES
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class UploadModule {
|
||||||
|
static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: UploadModule,
|
||||||
|
providers: [
|
||||||
|
...UPLOAD_PROVIDERS
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -53,29 +53,25 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.3",
|
"@angular/common": "2.0.0",
|
||||||
"@angular/compiler": "2.0.0-rc.3",
|
"@angular/compiler": "2.0.0",
|
||||||
"@angular/core": "2.0.0-rc.3",
|
"@angular/core": "2.0.0",
|
||||||
"@angular/forms": "0.1.1",
|
"@angular/forms": "2.0.0",
|
||||||
"@angular/http": "2.0.0-rc.3",
|
"@angular/http": "2.0.0",
|
||||||
"@angular/platform-browser": "2.0.0-rc.3",
|
"@angular/platform-browser": "2.0.0",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
"@angular/platform-browser-dynamic": "2.0.0",
|
||||||
"@angular/router": "3.0.0-alpha.7",
|
"@angular/router": "3.0.0",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0",
|
||||||
"@angular/upgrade": "2.0.0-rc.3",
|
"core-js": "^2.4.1",
|
||||||
|
"reflect-metadata": "^0.1.3",
|
||||||
|
"rxjs": "5.0.0-beta.12",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "2.4.0",
|
"zone.js": "^0.6.23",
|
||||||
"reflect-metadata": "0.1.3",
|
|
||||||
"rxjs": "5.0.0-beta.6",
|
"ng2-translate": "2.5.0",
|
||||||
"zone.js": "0.6.12",
|
|
||||||
"ng2-translate": "2.2.2",
|
|
||||||
"alfresco-js-api": "^0.3.0",
|
"alfresco-js-api": "^0.3.0",
|
||||||
"ng2-alfresco-core": "0.3.2"
|
"ng2-alfresco-core": "0.3.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
|
||||||
"material-design-icons": "^2.2.3",
|
|
||||||
"material-design-lite": "^1.1.3"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/core-js": "^0.9.32",
|
"@types/core-js": "^0.9.32",
|
||||||
"@types/jasmine": "^2.2.33",
|
"@types/jasmine": "^2.2.33",
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
import { PLATFORM_PIPES } from '@angular/core';
|
import { PLATFORM_PIPES } from '@angular/core';
|
||||||
import { describe, expect, it, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
|
import { describe, expect, it, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
|
||||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||||
@@ -163,3 +164,4 @@ describe('FileUploadDialog', () => {
|
|||||||
expect(compiled.querySelector('.minimize-button').getAttribute('class')).toEqual('minimize-button active');
|
expect(compiled.querySelector('.minimize-button').getAttribute('class')).toEqual('minimize-button active');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Component, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
|
import { Component, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
|
||||||
import { FileModel } from '../models/file.model';
|
import { FileModel } from '../models/file.model';
|
||||||
import { FileUploadingListComponent } from './file-uploading-list.component';
|
|
||||||
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||||
import { UploadService } from '../services/upload.service';
|
import { UploadService } from '../services/upload.service';
|
||||||
|
|
||||||
@@ -37,7 +36,6 @@ declare let __moduleName: string;
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'file-uploading-dialog',
|
selector: 'file-uploading-dialog',
|
||||||
moduleId: __moduleName,
|
moduleId: __moduleName,
|
||||||
directives: [FileUploadingListComponent],
|
|
||||||
templateUrl: './file-uploading-dialog.component.html',
|
templateUrl: './file-uploading-dialog.component.html',
|
||||||
styleUrls: ['./file-uploading-dialog.component.css'],
|
styleUrls: ['./file-uploading-dialog.component.css'],
|
||||||
host: {'[class.dialog-show]': 'toggleShowDialog'}
|
host: {'[class.dialog-show]': 'toggleShowDialog'}
|
||||||
|
@@ -15,8 +15,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
import { PLATFORM_PIPES } from '@angular/core';
|
import { PLATFORM_PIPES } from '@angular/core';
|
||||||
import { describe, expect, it, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
|
import { beforeEachProviders } from '@angular/core/testing';
|
||||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||||
import { HTTP_PROVIDERS } from '@angular/http';
|
import { HTTP_PROVIDERS } from '@angular/http';
|
||||||
|
|
||||||
@@ -163,3 +164,4 @@ describe('AlfrescoUploadButton', () => {
|
|||||||
component.onDirectoryAdded(fakeEvent);
|
component.onDirectoryAdded(fakeEvent);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
import { PLATFORM_PIPES } from '@angular/core';
|
import { PLATFORM_PIPES } from '@angular/core';
|
||||||
import { describe, expect, it, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
|
import { describe, expect, it, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
|
||||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||||
@@ -223,3 +224,4 @@ describe('AlfrescoUploadDragArea', () => {
|
|||||||
component.onFolderEntityDropped(folderEntry);
|
component.onFolderEntityDropped(folderEntry);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { UploadService } from '../services/upload.service';
|
import { UploadService } from '../services/upload.service';
|
||||||
import { FileDraggableDirective } from '../directives/file-draggable.directive';
|
|
||||||
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||||
import { FileModel } from '../models/file.model';
|
import { FileModel } from '../models/file.model';
|
||||||
|
|
||||||
@@ -38,7 +37,6 @@ const ERROR_FOLDER_ALREADY_EXIST = 409;
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'alfresco-upload-drag-area',
|
selector: 'alfresco-upload-drag-area',
|
||||||
moduleId: __moduleName,
|
moduleId: __moduleName,
|
||||||
directives: [FileDraggableDirective],
|
|
||||||
templateUrl: './upload-drag-area.component.html',
|
templateUrl: './upload-drag-area.component.html',
|
||||||
styleUrls: ['./upload-drag-area.component.css']
|
styleUrls: ['./upload-drag-area.component.css']
|
||||||
})
|
})
|
||||||
|
@@ -15,7 +15,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, expect, beforeEach, it } from '@angular/core/testing';
|
|
||||||
import { FileDraggableDirective } from '../directives/file-draggable.directive';
|
import { FileDraggableDirective } from '../directives/file-draggable.directive';
|
||||||
|
|
||||||
describe('AlfrescoDirectiveFileDraggable', () => {
|
describe('AlfrescoDirectiveFileDraggable', () => {
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
import { it, describe, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
|
import { it, describe, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
|
||||||
import { EventEmitter } from '@angular/core';
|
import { EventEmitter } from '@angular/core';
|
||||||
import { UploadService } from './upload.service';
|
import { UploadService } from './upload.service';
|
||||||
@@ -234,3 +235,4 @@ describe('AlfrescoUploadService', () => {
|
|||||||
expect(jasmine.Ajax.requests.mostRecent().params.has('majorVersion')).toBe(true);
|
expect(jasmine.Ajax.requests.mostRecent().params.has('majorVersion')).toBe(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
Reference in New Issue
Block a user