mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#9 readme updates and minor code improvements
This commit is contained in:
@@ -6,15 +6,6 @@
|
|||||||
npm install --save <TBD>
|
npm install --save <TBD>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build from sources
|
|
||||||
|
|
||||||
Alternatively you can build component from sources with the following commands:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@@ -346,3 +337,27 @@ export class MyView {
|
|||||||
|
|
||||||
Typically you may want populating all your custom actions at the application root level or
|
Typically you may want populating all your custom actions at the application root level or
|
||||||
by means of custom application service.
|
by means of custom application service.
|
||||||
|
|
||||||
|
|
||||||
|
## Build from sources
|
||||||
|
|
||||||
|
Alternatively you can build component from sources with the following commands:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running unit tests
|
||||||
|
|
||||||
|
You can run test with the
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm test
|
||||||
|
```
|
||||||
|
|
||||||
|
or alternatively if you want to enable watchers and live reload:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm run test:w
|
||||||
|
```
|
||||||
|
@@ -44,7 +44,7 @@ System.register(['angular2/core', './document-list'], function(exports_1, contex
|
|||||||
// so that content children can access it
|
// so that content children can access it
|
||||||
}
|
}
|
||||||
ContentActionList.prototype.registerAction = function (action) {
|
ContentActionList.prototype.registerAction = function (action) {
|
||||||
if (action) {
|
if (this.documentList && action) {
|
||||||
this.documentList.actions.push(action);
|
this.documentList.actions.push(action);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"content-action-list.js","sourceRoot":"","sources":["content-action-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBACI,2BAAoB,YAA0B;oBAA1B,iBAAY,GAAZ,YAAY,CAAc;oBAC1C,sCAAsC;oBACtC,yCAAyC;gBAC7C,CAAC;gBAED,0CAAc,GAAd,UAAe,MAA0B;oBACrC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;wBACT,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBAC3C,CAAC;gBACL,CAAC;gBAdL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,iBAAiB;wBAC3B,QAAQ,EAAE,EAAE;qBACf,CAAC;;qCAAA;gBAYF,wBAAC;YAAD,CAAC,AAXD,IAWC;YAXD,iDAWC,CAAA"}
|
{"version":3,"file":"content-action-list.js","sourceRoot":"","sources":["content-action-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBACI,2BAAoB,YAA0B;oBAA1B,iBAAY,GAAZ,YAAY,CAAc;oBAC1C,sCAAsC;oBACtC,yCAAyC;gBAC7C,CAAC;gBAED,0CAAc,GAAd,UAAe,MAA0B;oBACrC,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,IAAI,MAAM,CAAC,CAAC,CAAC;wBAC9B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBAC3C,CAAC;gBACL,CAAC;gBAdL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,iBAAiB;wBAC3B,QAAQ,EAAE,EAAE;qBACf,CAAC;;qCAAA;gBAYF,wBAAC;YAAD,CAAC,AAXD,IAWC;YAXD,iDAWC,CAAA"}
|
@@ -30,7 +30,7 @@ export class ContentActionList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
registerAction(action: ContentActionModel) {
|
registerAction(action: ContentActionModel) {
|
||||||
if (action) {
|
if (this.documentList && action) {
|
||||||
this.documentList.actions.push(action);
|
this.documentList.actions.push(action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -65,9 +65,10 @@ System.register(['angular2/core', 'ng2-alfresco-login/ng2-alfresco-login', 'angu
|
|||||||
router_1.RouteConfig([
|
router_1.RouteConfig([
|
||||||
{ path: '/', name: 'Login', component: ng2_alfresco_login_1.AlfrescoLoginComponent, useAsDefault: true }
|
{ path: '/', name: 'Login', component: ng2_alfresco_login_1.AlfrescoLoginComponent, useAsDefault: true }
|
||||||
]),
|
]),
|
||||||
__metadata('design:paramtypes', [ng2_alfresco_login_2.AlfrescoAuthenticationService, router_1.Router, services_1.AlfrescoSettingsService])
|
__metadata('design:paramtypes', [(typeof (_a = typeof ng2_alfresco_login_2.AlfrescoAuthenticationService !== 'undefined' && ng2_alfresco_login_2.AlfrescoAuthenticationService) === 'function' && _a) || Object, router_1.Router, (typeof (_b = typeof services_1.AlfrescoSettingsService !== 'undefined' && services_1.AlfrescoSettingsService) === 'function' && _b) || Object])
|
||||||
], AppComponent);
|
], AppComponent);
|
||||||
return AppComponent;
|
return AppComponent;
|
||||||
|
var _a, _b;
|
||||||
}());
|
}());
|
||||||
exports_1("AppComponent", AppComponent);
|
exports_1("AppComponent", AppComponent);
|
||||||
}
|
}
|
||||||
|
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"app.component.js","sourceRoot":"","sources":["app.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkBH;gBAEI,sBAAmB,IAAkC,EAClC,MAAa,EACpB,uBAA+C;oBAFxC,SAAI,GAAJ,IAAI,CAA8B;oBAClC,WAAM,GAAN,MAAM,CAAO;oBAE5B,uBAAuB,CAAC,IAAI,GAAG,4BAA4B,CAAC;gBAEhE,CAAC;gBAED,sCAAe,GAAf,UAAgB,MAAM;oBAClB,OAAO,CAAC,GAAG,CAAC,wCAAwC,GAAC,MAAM,CAAC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