mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Upgrade ng2-alfresco-tag
This commit is contained in:
@@ -20,7 +20,7 @@ import { HttpModule } from '@angular/http';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { TranslateModule } from 'ng2-translate/ng2-translate';
|
||||
import { ALFRESCO_CORE_PROVIDERS } from 'ng2-alfresco-core';
|
||||
import { CoreModule } from 'ng2-alfresco-core';
|
||||
|
||||
import { AlfrescoSearchService } from './src/services/alfresco-search.service';
|
||||
import { AlfrescoThumbnailService } from './src/services/alfresco-thumbnail.service';
|
||||
@@ -51,13 +51,13 @@ export const ALFRESCO_SEARCH_PROVIDERS: [any] = [
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
HttpModule,
|
||||
TranslateModule
|
||||
TranslateModule,
|
||||
CoreModule
|
||||
],
|
||||
declarations: [
|
||||
...ALFRESCO_SEARCH_DIRECTIVES
|
||||
],
|
||||
providers: [
|
||||
...ALFRESCO_CORE_PROVIDERS,
|
||||
...ALFRESCO_SEARCH_PROVIDERS
|
||||
],
|
||||
exports: [
|
||||
|
@@ -15,6 +15,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
import { HttpModule } from '@angular/http';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from 'ng2-translate/ng2-translate';
|
||||
import { CoreModule } from 'ng2-alfresco-core';
|
||||
|
||||
import { TagActionsComponent } from './src/components/tag-actions.component';
|
||||
import { TagList } from './src/components/tag-list.component';
|
||||
import { TagNodeList } from './src/components/tag-node-list.component';
|
||||
@@ -25,17 +32,42 @@ export * from './src/components/tag-list.component';
|
||||
export * from './src/components/tag-node-list.component';
|
||||
export * from './src/services/tag.service';
|
||||
|
||||
export default {
|
||||
components: [TagActionsComponent, TagList, TagNodeList]
|
||||
};
|
||||
|
||||
export const TAGCOMPONENT: [any] = [
|
||||
export const TAG_DIRECTIVES: any[] = [
|
||||
TagActionsComponent,
|
||||
TagList,
|
||||
TagNodeList
|
||||
];
|
||||
|
||||
export const TAGSERVICES: [any] = [
|
||||
export const TAG_PROVIDERS: any[] = [
|
||||
TagService
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
HttpModule,
|
||||
TranslateModule,
|
||||
CoreModule
|
||||
],
|
||||
declarations: [
|
||||
...TAG_DIRECTIVES
|
||||
],
|
||||
providers: [
|
||||
...TAG_PROVIDERS
|
||||
],
|
||||
exports: [
|
||||
...TAG_DIRECTIVES
|
||||
]
|
||||
})
|
||||
export class TagModule {
|
||||
static forRoot(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: TagModule,
|
||||
providers: [
|
||||
...TAG_DIRECTIVES
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -31,24 +31,24 @@
|
||||
"url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular/common": "2.0.0-rc.3",
|
||||
"@angular/compiler": "2.0.0-rc.3",
|
||||
"@angular/core": "2.0.0-rc.3",
|
||||
"@angular/http": "2.0.0-rc.3",
|
||||
"@angular/platform-browser": "2.0.0-rc.3",
|
||||
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||
"@angular/router": "3.0.0-alpha.7",
|
||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||
"@angular/upgrade": "2.0.0-rc.3",
|
||||
"systemjs": "0.19.27",
|
||||
"core-js": "^2.4.0",
|
||||
"alfresco-js-api": "^0.3.0",
|
||||
|
||||
"ng2-translate": "2.2.2",
|
||||
"ng2-alfresco-core": "0.3.2",
|
||||
"@angular/common": "2.0.0",
|
||||
"@angular/compiler": "2.0.0",
|
||||
"@angular/core": "2.0.0",
|
||||
"@angular/forms": "2.0.0",
|
||||
"@angular/http": "2.0.0",
|
||||
"@angular/platform-browser": "2.0.0",
|
||||
"@angular/platform-browser-dynamic": "2.0.0",
|
||||
"@angular/router": "3.0.0",
|
||||
"@angular/upgrade": "2.0.0",
|
||||
"core-js": "^2.4.1",
|
||||
"reflect-metadata": "^0.1.3",
|
||||
"rxjs": "5.0.0-beta.6",
|
||||
"zone.js": "^0.6.12"
|
||||
"rxjs": "5.0.0-beta.12",
|
||||
"systemjs": "0.19.27",
|
||||
"zone.js": "^0.6.23",
|
||||
|
||||
"alfresco-js-api": "^0.3.0",
|
||||
"ng2-translate": "2.5.0",
|
||||
"ng2-alfresco-core": "0.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/core-js": "^0.9.32",
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
import { it, describe, inject, beforeEachProviders, beforeEach, afterEach } from '@angular/core/testing';
|
||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||
import { AlfrescoAuthenticationService, AlfrescoSettingsService, AlfrescoApiService } from 'ng2-alfresco-core';
|
||||
@@ -141,3 +141,4 @@ describe('Tag actions list', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
import { it, describe, inject, beforeEachProviders, beforeEach, afterEach } from '@angular/core/testing';
|
||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||
import { AlfrescoAuthenticationService, AlfrescoSettingsService, AlfrescoApiService } from 'ng2-alfresco-core';
|
||||
@@ -96,3 +97,4 @@ describe('Tag list All ECM', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
import { it, describe, inject, beforeEachProviders, beforeEach, afterEach } from '@angular/core/testing';
|
||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||
import { AlfrescoAuthenticationService, AlfrescoSettingsService, AlfrescoApiService } from 'ng2-alfresco-core';
|
||||
@@ -122,3 +122,4 @@ describe('Tag relative node list', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
@@ -15,6 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
import { describe, expect, it, inject, beforeEachProviders, beforeEach, afterEach } from '@angular/core/testing';
|
||||
import { AlfrescoAuthenticationService, AlfrescoSettingsService, AlfrescoApiService } from 'ng2-alfresco-core';
|
||||
import { TagService } from './tag.service';
|
||||
@@ -113,3 +114,4 @@ describe('Tag service', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
@@ -14,21 +14,6 @@
|
||||
<a href='https://www.npmjs.com/package/ng2-alfresco-webscript'>
|
||||
<img src='https://img.shields.io/npm/dt/ng2-alfresco-webscript.svg' alt='npm downloads' />
|
||||
</a>
|
||||
<a href='https://github.com/Alfresco/alfresco-ng2-components/blob/master/LICENSE'>
|
||||
<img src='https://img.shields.io/hexpm/l/plug.svg' alt='license' />
|
||||
</a>
|
||||
<a href='https://www.alfresco.com/'>
|
||||
<img src='https://img.shields.io/badge/style-component-green.svg?label=alfresco' alt='alfresco component' />
|
||||
</a>
|
||||
<a href='https://angular.io/'>
|
||||
<img src='https://img.shields.io/badge/style-2-red.svg?label=angular' alt='angular 2' />
|
||||
</a>
|
||||
<a href='https://www.typescriptlang.org/docs/tutorial.html'>
|
||||
<img src='https://img.shields.io/badge/style-lang-blue.svg?label=typescript' alt='typescript' />
|
||||
</a>
|
||||
<a href='https://www.alfresco.com/'>
|
||||
<img src='https://img.shields.io/badge/style-%3E5.0.0-blue.svg?label=node%20version' alt='node version' />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
### Node
|
||||
@@ -56,7 +41,7 @@ The following component needs to be added to your systemjs.config:
|
||||
|
||||
- ng2-translate
|
||||
- ng2-alfresco-core
|
||||
- ng2-alfresco-dataœtable
|
||||
- ng2-alfresco-datatable
|
||||
|
||||
Please refer to the following example to have an idea of how your systemjs.config should look like :
|
||||
|
||||
|
Reference in New Issue
Block a user