diff --git a/ng2-components/ng2-alfresco-userinfo/README.md b/ng2-components/ng2-alfresco-userinfo/README.md index a7519e00ea..247591e3ef 100644 --- a/ng2-components/ng2-alfresco-userinfo/README.md +++ b/ng2-components/ng2-alfresco-userinfo/README.md @@ -1,75 +1,43 @@ -# Alfresco Tag Component for Angular 2 -

- - travis
-    Status - - - travis
-    Status - - - Coverage Status - - - npm downloads - - - license - - - alfresco component - - - angular 2 - - - typescript - - - node version - -

+# Alfresco User Info Component for Angular 2 +This component will show the user information for ECM and BPM -### Node -To correctly use this component check that on your machine is running Node version 5.0.0 or higher. -## Install +## Prerequisites -```sh -npm install --save ng2-alfresco-tag +Before you start using this development framework, make sure you have installed all required software and done all the +necessary configuration, see this [page](https://github.com/Alfresco/alfresco-ng2-components/blob/master/PREREQUISITES.md). + +## Installation + +```bash +npm install ng2-alfresco-userinfo --save ``` - -Components included: - -* Alfresco Tag Component - -#### Dependencies +## Dependencies Add the following dependency to your index.html: - ```html ``` + +You must separately install the following libraries for your application: + +- [ng2-translate](https://github.com/ocombe/ng2-translate) +- [ng2-alfresco-core](https://www.npmjs.com/package/ng2-alfresco-core) -The following component needs to be added to your systemjs.config: +```sh +npm install --save ng2-translate ng2-alfresco-core +``` + +#### Material Design Lite -- ng2-translate -- ng2-alfresco-core - -Please refer to the following example to have an idea of how your systemjs.config should look like : - -https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-alfresco-tag/demo/systemjs.config.js - -#### Style -The style of this component is based on material design, so if you want to visualize it correctly you have to add the material +The style of this component is based on [material design](https://getmdl.io/), so if you want to visualize it correctly you have to add the material design dependency to your project: ```sh npm install --save material-design-icons material-design-lite ``` -Also make sure you include these dependencies in your .html page: +Also make sure you include these dependencies in your `index.html` file: ```html @@ -77,293 +45,29 @@ Also make sure you include these dependencies in your .html page: ``` - -#### Basic usage - -In this component are present three different tags : - -* alfresco-tag-node-actions-list -* alfresco-tag-list -* alfresco-tag-node-list - -## alfresco-tag-node-actions-list + +## Example ```html - -``` - -```ts -import { Component, OnInit, Input } from '@angular/core'; -import { bootstrap } from '@angular/platform-browser-dynamic'; -import { HTTP_PROVIDERS } from '@angular/http'; -import { - ALFRESCO_CORE_PROVIDERS, - AlfrescoSettingsService, - AlfrescoAuthenticationService -} from 'ng2-alfresco-core'; -import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag'; - -@Component({ - selector: 'alfresco-tag-demo', - template: ` -
- -
- `, - directives: [TAGCOMPONENT], - providers: [TAGSERVICES] -}) -class TagDemo implements OnInit { - - @Input() - nodeId: string = '74cd8a96-8a21-47e5-9b3b-a1b3e296787d'; - - authenticated: boolean; - - ecmHost: string = 'http://127.0.0.1:8080'; - - ticket: string; - - constructor(private authService: AlfrescoAuthenticationService, - private settingsService: AlfrescoSettingsService) { - settingsService.ecmHost = this.ecmHost; - settingsService.setProviders('ECM'); - } - - ngOnInit() { - this.login(); - } - - login() { - this.authService.login('admin', 'admin').subscribe( - ticket => { - this.authenticated = true; - }, - error => { - this.authenticated = false; - }); - } - - public updateHost(): void { - this.settingsService.ecmHost = this.ecmHost; - this.login(); - } - - logData(data) { - console.log(data); - } -} -bootstrap(TagDemo, [ - HTTP_PROVIDERS, - ALFRESCO_CORE_PROVIDERS -]); -``` - -### Options - -Attribute | Options | Default | Description | Mandatory ---- | --- | --- | --- | --- -`nodeId` | *string* | | The identifier of a node.| - -![Custom columns](docs/assets/tag3.png) - -## alfresco-tag-node-list - -```html - -``` - -```ts -import { Component, OnInit, Input } from '@angular/core'; -import { bootstrap } from '@angular/platform-browser-dynamic'; -import { HTTP_PROVIDERS } from '@angular/http'; -import { - ALFRESCO_CORE_PROVIDERS, - AlfrescoSettingsService, - AlfrescoAuthenticationService -} from 'ng2-alfresco-core'; - -import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag'; - -@Component({ - selector: 'alfresco-tag-demo', - template: ` -
- -
- `, - directives: [TAGCOMPONENT], - providers: [TAGSERVICES] -}) -class TagDemo implements OnInit { - - @Input() - nodeId: string = '74cd8a96-8a21-47e5-9b3b-a1b3e296787d'; - - authenticated: boolean; - - ecmHost: string = 'http://127.0.0.1:8080'; - - ticket: string; - - constructor(private authService: AlfrescoAuthenticationService, - private settingsService: AlfrescoSettingsService) { - settingsService.ecmHost = this.ecmHost; - settingsService.setProviders('ECM'); - } - - ngOnInit() { - this.login(); - } - - login() { - this.authService.login('admin', 'admin').subscribe( - ticket => { - this.authenticated = true; - }, - error => { - this.authenticated = false; - }); - } - - public updateHost(): void { - this.settingsService.ecmHost = this.ecmHost; - this.login(); - } - - logData(data) { - console.log(data); - } -} -bootstrap(TagDemo, [ - HTTP_PROVIDERS, - ALFRESCO_CORE_PROVIDERS -]); -``` - -### Options - -Attribute | Options | Default | Description | Mandatory ---- | --- | --- | --- | --- -`nodeId` | *string* | | The identifier of a node.| - -![Custom columns](docs/assets/tag1.png) - -## alfresco-tag-list - -```html - -``` - -```ts -import { Component, OnInit, Input } from '@angular/core'; -import { bootstrap } from '@angular/platform-browser-dynamic'; -import { HTTP_PROVIDERS } from '@angular/http'; -import { - ALFRESCO_CORE_PROVIDERS, - AlfrescoSettingsService, - AlfrescoAuthenticationService -} from 'ng2-alfresco-core'; - -import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag'; - -@Component({ - selector: 'alfresco-tag-demo', - template: ` -
- -
- `, - directives: [TAGCOMPONENT], - providers: [TAGSERVICES] -}) -class TagDemo implements OnInit { - - authenticated: boolean; - - ecmHost: string = 'http://127.0.0.1:8080'; - - constructor(private authService: AlfrescoAuthenticationService, - private settingsService: AlfrescoSettingsService) { - settingsService.ecmHost = this.ecmHost; - settingsService.setProviders('ECM'); - } - - ngOnInit() { - this.login(); - } - - login() { - this.authService.login('admin', 'admin').subscribe( - ticket => { - this.authenticated = true; - }, - error => { - this.authenticated = false; - }); - } - - public updateHost(): void { - this.settingsService.ecmHost = this.ecmHost; - this.login(); - } - - logData(data) { - console.log(data); - } -} -bootstrap(TagDemo, [ - HTTP_PROVIDERS, - ALFRESCO_CORE_PROVIDERS -]); -``` - -![Custom columns](docs/assets/tag2.png) - - -## Build from sources -Alternatively you can build component from sources with the following commands: - - -```sh -npm install -npm run build + ``` +This will show a round icon with user and on click some user information are showed. +If user is logged in with ECM and BPM the ECM image will be showed. -##Build the files and keep watching for changes +## NPM scripts -```sh -npm run build:w -``` - -## Running unit tests +| Command | Description | +| --- | --- | +| npm run build | Build component | +| npm run build:w | Build component and keep watching the changes | +| npm run test | Run unit tests in the console | +| npm run test-browser | Run unit tests in the browser +| npm run coverage | Run unit tests and display code coverage report | -```sh -npm test -``` +## History -## Running unit tests in browser +For detailed changelog, check [Releases](https://github.com/alfresco/ng2-alfresco-userinfo/releases). -```sh -npm test-browser -``` - -This task rebuilds all the code, runs tslint, license checks and other quality check tools -before performing unit testing. - -## Code coverage - -```sh -npm run coverage -``` - -## Demo - -If you want have a demo of how the component works, please check the demo folder : - -```sh -cd demo -npm install -npm start -``` +## Contributors +[Contributors](https://github.com/alfresco/ng2-alfresco-userinfo/graphs/contributors) \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-userinfo/demo/.editorconfig b/ng2-components/ng2-alfresco-userinfo/demo/.editorconfig new file mode 100644 index 0000000000..8ed330c4a2 --- /dev/null +++ b/ng2-components/ng2-alfresco-userinfo/demo/.editorconfig @@ -0,0 +1,10 @@ + +root = true + +[{src,scripts}/**.{ts,json,js}] +end_of_line = crlf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 4 diff --git a/ng2-components/ng2-alfresco-userinfo/demo/.gitignore b/ng2-components/ng2-alfresco-userinfo/demo/.gitignore index 6afdbb8367..25beca4c27 100644 --- a/ng2-components/ng2-alfresco-userinfo/demo/.gitignore +++ b/ng2-components/ng2-alfresco-userinfo/demo/.gitignore @@ -1,6 +1,6 @@ -typings/ -node_modules/ +node_modules .idea -dist/ +coverage +dist +typings !systemjs.config.js -!browser-sync-config.js diff --git a/ng2-components/ng2-alfresco-userinfo/demo/.npmignore b/ng2-components/ng2-alfresco-userinfo/demo/.npmignore new file mode 100644 index 0000000000..c51c008259 --- /dev/null +++ b/ng2-components/ng2-alfresco-userinfo/demo/.npmignore @@ -0,0 +1,3 @@ +node_modules +dist +typings \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-userinfo/demo/README.md b/ng2-components/ng2-alfresco-userinfo/demo/README.md index 8d399e6fef..14f9e8502c 100644 --- a/ng2-components/ng2-alfresco-userinfo/demo/README.md +++ b/ng2-components/ng2-alfresco-userinfo/demo/README.md @@ -1,19 +1,13 @@ -# ng2-alfresco-tag - Demo +# User info demo -* To install dependencies +Install: -```sh -$ npm install +``` +npm install ``` -* To provide a live demo +Run the project: -```sh -$ npm run start -``` - -* To clean npm_modules and typings folder - -```sh -$ npm run clean ``` +npm start +``` \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-userinfo/demo/index.html b/ng2-components/ng2-alfresco-userinfo/demo/index.html index ee97252ec1..b73b46517f 100644 --- a/ng2-components/ng2-alfresco-userinfo/demo/index.html +++ b/ng2-components/ng2-alfresco-userinfo/demo/index.html @@ -2,38 +2,33 @@ - Alfresco Angular 2 Tag - Demo + Angular 2 TaskList - Demo - + - - - + diff --git a/ng2-components/ng2-alfresco-userinfo/demo/package.json b/ng2-components/ng2-alfresco-userinfo/demo/package.json new file mode 100644 index 0000000000..368099bb09 --- /dev/null +++ b/ng2-components/ng2-alfresco-userinfo/demo/package.json @@ -0,0 +1,77 @@ +{ + "name": "ng2-activiti-tasklist-demo", + "description": "Alfresco Angular2 Task List Component - Demo", + "version": "0.1.0", + "author": "Alfresco Software, Ltd.", + "main": "index.js", + "scripts": { + "clean": "rimraf dist node_modules", + "postinstall": "npm run build", + "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ", + "server": "wsrv -o -s -l", + "build": "npm run tslint && rimraf dist && npm run tsc", + "tsc": "tsc", + "tsc:w": "tsc -w", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts" + }, + "license": "Apache-2.0", + "dependencies": { + "@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.12", + "systemjs": "0.19.27", + "zone.js": "^0.6.23", + + "material-design-icons": "2.2.3", + "material-design-lite": "1.2.1", + "ng2-translate": "2.5.0", + + "alfresco-js-api": "^0.3.0", + "ng2-alfresco-core": "^0.3.0", + "ng2-alfresco-userinfo": "0.3.2" + }, + "devDependencies": { + "@types/core-js": "^0.9.32", + "@types/jasmine": "^2.2.33", + "concurrently": "^2.2.0", + "rimraf": "2.5.2", + "tslint": "3.8.1", + "license-check": "1.1.5", + "typescript": "^2.0.2", + "wsrv": "^0.1.5" + }, + "keywords": [ + "angular2", + "typescript" + ], + "license-check-config": { + "src": [ + "**/*.js", + "**/*.ts", + "!/**/coverage/**/*", + "!/**/demo/**/*", + "!/**/node_modules/**/*", + "!/**/typings/**/*", + "!*.js" + ], + "contributors": [ + { + "name": "Vito Albano", + "email": "vito.albano@alfresco.com" + } + ], + "path": "assets/license_header.txt", + "blocking": true, + "logInfo": false, + "logError": true + } +} diff --git a/ng2-components/ng2-alfresco-userinfo/demo/src/main.ts b/ng2-components/ng2-alfresco-userinfo/demo/src/main.ts index 8af97cc33a..98ef59e2a1 100644 --- a/ng2-components/ng2-alfresco-userinfo/demo/src/main.ts +++ b/ng2-components/ng2-alfresco-userinfo/demo/src/main.ts @@ -15,100 +15,130 @@ * limitations under the License. */ -import { NgModule, Component, Input, OnInit } from '@angular/core'; +import { NgModule, Component } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { UserInfoComponentModule } from 'ng2-alfresco-userinfo'; +import { CoreModule, MDL } from 'ng2-alfresco-core'; -import { CoreModule, AlfrescoSettingsService, AlfrescoAuthenticationService } from 'ng2-alfresco-core'; -import { TagModule } from 'ng2-alfresco-tag'; +import { AlfrescoAuthenticationService, AlfrescoSettingsService } from 'ng2-alfresco-core'; @Component({ - selector: 'alfresco-tag-demo', - template: ` -
-
-
-

-
- Authentication failed to ip {{ ecmHost }} with user: admin, admin, you can still try to add a valid ticket to perform - operations. + selector: 'alfresco-userinfo-demo', + template: `

START DEMO USERINFO

+
+

+ +

+

+ +

-
-
-
-
-
-
-
List Tags ECM
-
- Tag list By Node ID - -
-
-
- ` +
+ +
+

+
+

+ Username + +

+

+ Password + +

+ +
+ {{loginErrorMessage}} + `, + styles: [ + ':host > .container {padding: 10px}', + '.p-10 { padding: 10px; }' + ] }) -class TagDemo implements OnInit { +class UserInfoDemo implements onInit{ - @Input() - nodeId: string = '74cd8a96-8a21-47e5-9b3b-a1b3e296787d'; + public userToLogin: string = 'admin'; + public password: string = 'admin'; + public loginErrorMessage: string; + public providers: string = 'BPM'; + private authenticated: boolean; + private token: any; - authenticated: boolean; + constructor(private authService: AlfrescoAuthenticationService, + private settingsService: AlfrescoSettingsService) { + } - ecmHost: string = 'http://127.0.0.1:8080'; + ngOnInit() { + this.settingsService.setProviders(this.providers); + } - ticket: string; + attemptLogin() { + this.loginErrorMessage = ''; + this.login(this.userToLogin, this.password); + } - constructor(private authService: AlfrescoAuthenticationService, - private settingsService: AlfrescoSettingsService) { + logout() { + this.authService.logout(); + } - settingsService.ecmHost = this.ecmHost; - settingsService.setProviders('ECM'); + login(user, password) { + this.settingsService.setProviders(this.providers); + this.authService.login(user, password).subscribe( + token => { + console.log(token); + this.token = token; + this.authenticated = true; + }, + error => { + console.log(error); + this.authenticated = false; + this.loginErrorMessage = error; + }); + } - if (this.authService.getTicketEcm()) { - this.ticket = this.authService.getTicketEcm(); - } - } + isLoggedIn(): boolean { + return this.authService.isLoggedIn(); + } - ngOnInit() { - this.login(); - } + toggleECM(checked) { + if (checked && this.providers === 'BPM') { + this.providers = 'ALL'; + } else if (checked) { + this.providers = 'ECM'; + } else { + this.providers = undefined; + } + } - login() { - this.authService.login('admin', 'admin').subscribe( - ticket => { - console.log(ticket); - this.ticket = this.authService.getTicketEcm(); - this.authenticated = true; - }, - error => { - console.log(error); - this.authenticated = false; - }); - } + toggleBPM(checked) { + if (checked && this.providers === 'ECM') { + this.providers = 'ALL'; + } else if (checked) { + this.providers = 'BPM'; + } else { + this.providers = undefined; + } + } - public updateTicket(): void { - localStorage.setItem('ticket-ECM', this.ticket); - } - - public updateHost(): void { - this.settingsService.ecmHost = this.ecmHost; - this.login(); - } - - logData(data) { - console.log(data); - } } @NgModule({ imports: [ BrowserModule, CoreModule.forRoot(), - TagModule + UserInfoComponentModule.forRoot() ], - declarations: [ TagDemo ], - bootstrap: [ TagDemo ] + declarations: [ UserInfoDemo ], + bootstrap: [ UserInfoDemo ] }) export class AppModule { } diff --git a/ng2-components/ng2-alfresco-userinfo/demo/systemjs.config.js b/ng2-components/ng2-alfresco-userinfo/demo/systemjs.config.js new file mode 100644 index 0000000000..0e5c19f9a4 --- /dev/null +++ b/ng2-components/ng2-alfresco-userinfo/demo/systemjs.config.js @@ -0,0 +1,49 @@ +/** + * System configuration for Angular 2 samples + * Adjust as necessary for your application needs. + */ +(function (global) { + System.config({ + paths: { + // paths serve as alias + 'npm:': 'node_modules/' + }, + // map tells the System loader where to look for things + map: { + // our app is within the app folder + app: 'dist', + // angular bundles + '@angular/core': 'npm:@angular/core/bundles/core.umd.js', + '@angular/common': 'npm:@angular/common/bundles/common.umd.js', + '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', + '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', + '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', + '@angular/http': 'npm:@angular/http/bundles/http.umd.js', + '@angular/router': 'npm:@angular/router/bundles/router.umd.js', + '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', + // other libraries + 'rxjs': 'npm:rxjs', + 'ng2-translate': 'npm:ng2-translate', + 'ng2-alfresco-core': 'npm:ng2-alfresco-core/dist', + 'ng2-alfresco-login': 'npm:ng2-alfresco-login/dist', + 'ng2-alfresco-userinfo': 'npm:ng2-alfresco-userinfo/dist', + 'alfresco-js-api': 'npm:alfresco-js-api/dist' + }, + // packages tells the System loader how to load when no filename and/or no extension + packages: { + app: { + main: './main.js', + defaultExtension: 'js' + }, + rxjs: { + defaultExtension: 'js' + }, + 'ng2-translate': { defaultExtension: 'js' }, + + 'ng2-alfresco-core': { main: './index.js', defaultExtension: 'js'}, + 'ng2-alfresco-login': { main: './index.js', defaultExtension: 'js'}, + 'ng2-alfresco-userinfo': { main: './index.js', defaultExtension: 'js'}, + 'alfresco-js-api': { main: './alfresco-js-api.js', defaultExtension: 'js'} + } + }); +})(this); diff --git a/ng2-components/ng2-alfresco-userinfo/demo/tsconfig.json b/ng2-components/ng2-alfresco-userinfo/demo/tsconfig.json new file mode 100644 index 0000000000..b1effea355 --- /dev/null +++ b/ng2-components/ng2-alfresco-userinfo/demo/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "system", + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "sourceMap": true, + "removeComments": true, + "declaration": true, + "noLib": false, + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noImplicitAny": false, + "noImplicitReturns": false, + "noImplicitUseStrict": false, + "noFallthroughCasesInSwitch": true, + "outDir": "dist", + "types": ["core-js", "jasmine"] + }, + "exclude": [ + "demo", + "node_modules", + "dist" + ] +} diff --git a/ng2-components/ng2-alfresco-userinfo/demo/tslint.json b/ng2-components/ng2-alfresco-userinfo/demo/tslint.json index e550ac11d4..85e9df53c1 100644 --- a/ng2-components/ng2-alfresco-userinfo/demo/tslint.json +++ b/ng2-components/ng2-alfresco-userinfo/demo/tslint.json @@ -1,124 +1,121 @@ { - "rules": { - "align": [ - true, - "parameters", - "arguments", - "statements" - ], - "ban": false, - "class-name": true, - "comment-format": [ - true, - "check-space", - "check-lowercase" - ], - "curly": true, - "eofline": true, - "forin": true, - "indent": [ - true, - "spaces" - ], - "interface-name": false, - "jsdoc-format": true, - "label-position": true, - "label-undefined": true, - "max-line-length": [ - true, - 180 - ], - "member-ordering": [ - true, - "public-before-private", - "static-before-instance", - "variables-before-functions" - ], - "no-any": false, - "no-arg": true, - "no-bitwise": true, - "no-conditional-assignment": true, - "no-consecutive-blank-lines": false, - "no-console": [ - true, - "debug", - "info", - "time", - "timeEnd", - "trace" - ], - "no-construct": true, - "no-constructor-vars": false, - "no-debugger": true, - "no-duplicate-key": true, - "no-duplicate-variable": true, - "no-empty": true, - "no-eval": true, - "no-inferrable-types": false, - "no-internal-module": true, - "no-require-imports": true, - "no-shadowed-variable": true, - "no-switch-case-fall-through": true, - "no-trailing-whitespace": true, - "no-unreachable": true, - "no-unused-expression": true, - "no-unused-variable": true, - "no-use-before-declare": true, - "no-var-keyword": true, - "no-var-requires": true, - "object-literal-sort-keys": false, - "one-line": [ - true, - "check-open-brace", - "check-catch", - "check-else", - "check-whitespace" - ], - "quotemark": [ - true, - "single", - "avoid-escape" - ], - "radix": true, - "semicolon": true, - "switch-default": true, - "trailing-comma": [ - true, - { - "multiline": "never", - "singleline": "never" - } - ], - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef": false, - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "use-strict": false, - "variable-name": [ - true, - "check-format", - "allow-leading-underscore", - "ban-keywords" - ], - "whitespace": [ - true, - "check-branch", - "check-operator", - "check-separator", - "check-type", - "check-module", - "check-decl" - ] - } + "rules": { + "align": [ + true, + "parameters", + "statements" + ], + "ban": false, + "class-name": true, + "comment-format": [ + true, + "check-space" + ], + "curly": true, + "eofline": true, + "forin": true, + "indent": [ + true, + "spaces" + ], + "interface-name": false, + "jsdoc-format": true, + "label-position": true, + "label-undefined": true, + "max-line-length": [ + true, + 180 + ], + "member-ordering": [ + true, + "static-before-instance", + "variables-before-functions" + ], + "no-any": false, + "no-arg": true, + "no-bitwise": false, + "no-conditional-assignment": true, + "no-consecutive-blank-lines": false, + "no-console": [ + true, + "debug", + "info", + "time", + "timeEnd", + "trace" + ], + "no-construct": true, + "no-constructor-vars": false, + "no-debugger": true, + "no-duplicate-key": true, + "no-duplicate-variable": true, + "no-empty": false, + "no-eval": true, + "no-inferrable-types": false, + "no-internal-module": true, + "no-require-imports": true, + "no-shadowed-variable": true, + "no-switch-case-fall-through": true, + "no-trailing-whitespace": true, + "no-unreachable": true, + "no-unused-expression": true, + "no-unused-variable": true, + "no-use-before-declare": true, + "no-var-keyword": true, + "no-var-requires": true, + "object-literal-sort-keys": false, + "one-line": [ + true, + "check-open-brace", + "check-catch", + "check-else", + "check-whitespace" + ], + "quotemark": [ + true, + "single", + "avoid-escape" + ], + "radix": true, + "semicolon": true, + "switch-default": true, + "trailing-comma": [ + true, + { + "multiline": "never", + "singleline": "never" + } + ], + "triple-equals": [ + true, + "allow-null-check" + ], + "typedef": false, + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "use-strict": false, + "variable-name": [ + true, + "check-format", + "allow-leading-underscore", + "ban-keywords" + ], + "whitespace": [ + true, + "check-branch", + "check-operator", + "check-separator", + "check-type", + "check-module", + "check-decl" + ] + } } diff --git a/ng2-components/ng2-alfresco-userinfo/demo/wsrv-config.json b/ng2-components/ng2-alfresco-userinfo/demo/wsrv-config.json new file mode 100644 index 0000000000..d8f11c2698 --- /dev/null +++ b/ng2-components/ng2-alfresco-userinfo/demo/wsrv-config.json @@ -0,0 +1,5 @@ +{ + "watch": [ + "node_modules/ng2-alfresco-tag/dist/**/*.{html,htm,css,js}" + ] +} diff --git a/ng2-components/update.sh b/ng2-components/update.sh index df9f5c4548..0f7732c5ba 100755 --- a/ng2-components/update.sh +++ b/ng2-components/update.sh @@ -34,3 +34,6 @@ (cd ng2-alfresco-tag; npm update;) (cd ng2-alfresco-tag/demo; npm update;) + +(cd ng2-alfresco-userinfo; npm update;) +(cd ng2-alfresco-userinfo/demo; npm update;)