add markdown linter (#2048)

This commit is contained in:
Eugenio Romano
2017-07-05 19:35:07 +02:00
parent 48de045ee3
commit cc42169d14
12 changed files with 156 additions and 94 deletions

View File

@@ -0,0 +1,10 @@
{
"MD032": false,
"MD004": false,
"MD024": false,
"MD009": false,
"MD013": false,
"MD036": false,
"MD033" : false,
"MD031" : false
}

View File

@@ -31,84 +31,82 @@
<!-- CORE DIRECTIVE START--> <!-- CORE DIRECTIVE START-->
- [adf-context-menu](ng2-alfresco-core/README.md) - [adf-context-menu](ng2-alfresco-core/README.md)
- [adf-mdl-menu](ng2-alfresco-core/README.md)
- [adf-mdl-textfield](ng2-alfresco-core/README.md) - [adf-mdl-textfield](ng2-alfresco-core/README.md)
- [adf-mdl-menu](ng2-alfresco-core/README.md)
- [adf-mdl-button](ng2-alfresco-core/README.md) - [adf-mdl-button](ng2-alfresco-core/README.md)
- [adf-upload](ng2-alfresco-core/README.md)<!-- CORE DIRECTIVE END--> - [adf-upload](ng2-alfresco-core/README.md)<!-- CORE DIRECTIVE END-->
## Content service ## Content service
### Components ### Components
<!-- CONTENT START--> <!-- CONTENT START-->
- [adf-userinfo](ng2-alfresco-userinfo/README.md) - [adf-search-autocomplete](ng2-alfresco-search/README.md)
- [adf-search-control](ng2-alfresco-search/README.md)
- [adf-search](ng2-alfresco-search/README.md)
- [adf-viewer](ng2-alfresco-viewer/README.md) - [adf-viewer](ng2-alfresco-viewer/README.md)
- [adf-userinfo](ng2-alfresco-userinfo/README.md)
- [adf-file-uploading-list](ng2-alfresco-upload/README.md) - [adf-file-uploading-list](ng2-alfresco-upload/README.md)
- [adf-upload-button](ng2-alfresco-upload/README.md) - [adf-upload-button](ng2-alfresco-upload/README.md)
- [adf-upload-drag-area](ng2-alfresco-upload/README.md) - [adf-upload-drag-area](ng2-alfresco-upload/README.md)
- [adf-tag-node-list](ng2-alfresco-tag/README.md) - [adf-tag-node-list](ng2-alfresco-tag/README.md)
- [adf-tag-list](ng2-alfresco-tag/README.md)
- [adf-tag-node-actions-list](ng2-alfresco-tag/README.md) - [adf-tag-node-actions-list](ng2-alfresco-tag/README.md)
- [adf-login](ng2-alfresco-login/README.md) - [adf-tag-list](ng2-alfresco-tag/README.md)
- [adf-search-autocomplete](ng2-alfresco-search/README.md)
- [adf-search-control](ng2-alfresco-search/README.md)
- [adf-search](ng2-alfresco-search/README.md)
- [adf-like](ng2-alfresco-social/README.md)
- [adf-rating](ng2-alfresco-social/README.md) - [adf-rating](ng2-alfresco-social/README.md)
- [adf-webscript-get](ng2-alfresco-webscript/README.md) - [adf-like](ng2-alfresco-social/README.md)
- [adf-breadcrumb](ng2-alfresco-documentlist/README.md) - [adf-breadcrumb](ng2-alfresco-documentlist/README.md)
- [adf-document-menu-action](ng2-alfresco-documentlist/README.md) - [adf-document-menu-action](ng2-alfresco-documentlist/README.md)
- [adf-document-list](ng2-alfresco-documentlist/README.md) - [adf-document-list](ng2-alfresco-documentlist/README.md)
- [adf-login](ng2-alfresco-login/README.md)
- [adf-webscript-get](ng2-alfresco-webscript/README.md)
- [adf-pagination](ng2-alfresco-datatable/README.md) - [adf-pagination](ng2-alfresco-datatable/README.md)
- [adf-datatable](ng2-alfresco-datatable/README.md) - [adf-datatable](ng2-alfresco-datatable/README.md)
- [adf-datatable-cell](ng2-alfresco-datatable/README.md)<!-- CONTENT END--> - [adf-datatable-cell](ng2-alfresco-datatable/README.md)<!-- CONTENT END-->
<!-- CONTENT END--> <!-- CONTENT END-->
<!-- CONTENT DIRECTIVE START--><!-- CONTENT DIRECTIVE END--> <!-- CONTENT DIRECTIVE START--><!-- CONTENT DIRECTIVE END-->
## Business service ## Business service
### components ### components
<!-- BUSINESS START--> <!-- BUSINESS START-->
- [adf-publish-task](ng2-activiti-diagrams/README.md) - [adf-diagram-icon-publish-task](ng2-activiti-diagrams/README.md)
- [adf-publish-task](ng2-activiti-diagrams/README.md) - [adf-diagram-publish-task](ng2-activiti-diagrams/README.md)
- [adf-create-task-attachment](ng2-activiti-tasklist/README.md) - [adf-start-form](ng2-activiti-form/README.md)
- [adf-content](ng2-activiti-form/README.md)
- [adf-form-list](ng2-activiti-form/README.md)
- [adf-form](ng2-activiti-form/README.md)
- [adf-people-list](ng2-activiti-tasklist/README.md) - [adf-people-list](ng2-activiti-tasklist/README.md)
- [adf-task-attachment-list](ng2-activiti-tasklist/README.md) - [adf-create-task-attachment](ng2-activiti-tasklist/README.md)
- [adf-people-search](ng2-activiti-tasklist/README.md) - [adf-people-search](ng2-activiti-tasklist/README.md)
- [adf-start-task](ng2-activiti-tasklist/README.md) - [adf-start-task](ng2-activiti-tasklist/README.md)
- [adf-task-details](ng2-activiti-tasklist/README.md)
- [adf-filters](ng2-activiti-tasklist/README.md) - [adf-filters](ng2-activiti-tasklist/README.md)
- [adf-task-details](ng2-activiti-tasklist/README.md)
- [adf-task-header](ng2-activiti-tasklist/README.md) - [adf-task-header](ng2-activiti-tasklist/README.md)
- [adf-people](ng2-activiti-tasklist/README.md) - [adf-people](ng2-activiti-tasklist/README.md)
- [adf-task-attachment-list](ng2-activiti-tasklist/README.md)
- [adf-comments](ng2-activiti-tasklist/README.md) - [adf-comments](ng2-activiti-tasklist/README.md)
- [adf-apps](ng2-activiti-tasklist/README.md)
- [adf-checklist](ng2-activiti-tasklist/README.md) - [adf-checklist](ng2-activiti-tasklist/README.md)
- [adf-tasklist](ng2-activiti-tasklist/README.md) - [adf-tasklist](ng2-activiti-tasklist/README.md)
- [adf-apps](ng2-activiti-tasklist/README.md)
- [adf-process-instance-comments](ng2-activiti-processlist/README.md) - [adf-process-instance-comments](ng2-activiti-processlist/README.md)
- [adf-process-instance-variables](ng2-activiti-processlist/README.md)
- [adf-process-instance-tasks](ng2-activiti-processlist/README.md) - [adf-process-instance-tasks](ng2-activiti-processlist/README.md)
- [adf-process-instance-variables](ng2-activiti-processlist/README.md)
- [adf-process-instance-header](ng2-activiti-processlist/README.md) - [adf-process-instance-header](ng2-activiti-processlist/README.md)
- [adf-diagram](ng2-activiti-diagrams/README.md) - [adf-diagram](ng2-activiti-diagrams/README.md)
- [adf-create-process-attachment](ng2-activiti-processlist/README.md) - [adf-create-process-attachment](ng2-activiti-processlist/README.md)
- [adf-process-attachment-list](ng2-activiti-processlist/README.md)
- [adf-start-process](ng2-activiti-processlist/README.md) - [adf-start-process](ng2-activiti-processlist/README.md)
- [adf-process-instance-details](ng2-activiti-processlist/README.md) - [adf-process-instance-details](ng2-activiti-processlist/README.md)
- [adf-process-instance-list](ng2-activiti-processlist/README.md) - [adf-process-attachment-list](ng2-activiti-processlist/README.md)
- [adf-process-instance-filters](ng2-activiti-processlist/README.md) - [adf-process-instance-filters](ng2-activiti-processlist/README.md)
- [adf-start-form](ng2-activiti-form/README.md) - [adf-process-instance-list](ng2-activiti-processlist/README.md)
- [adf-content](ng2-activiti-form/README.md)
- [adf-form](ng2-activiti-form/README.md)
- [adf-analytics-generator](ng2-activiti-analytics/README.md) - [adf-analytics-generator](ng2-activiti-analytics/README.md)
- [adf-analytics](ng2-activiti-analytics/README.md)<!-- BUSINESS END--> - [adf-analytics](ng2-activiti-analytics/README.md)<!-- BUSINESS END-->
<!-- BUSINESS END--> <!-- BUSINESS END-->
<!-- BUSINESS DIRECTIVE START--><!-- BUSINESS DIRECTIVE END--> <!-- BUSINESS DIRECTIVE START--><!-- BUSINESS DIRECTIVE END-->
You can browse all the components at the following address: You can browse all the components at the following address:
http://devproducts.alfresco.com/ [http://devproducts.alfresco.com/](http://devproducts.alfresco.com/)

View File

@@ -197,8 +197,7 @@ to specify some basic details needed to start a new process instance.
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| appId | (required): Limit the list of processes which can be started to those contained in the specified app | | appId | (required): Limit the list of processes which can be started to those contained in the specified app |
| variables | Variables in input to the process [RestVariable]**](https://github.com/Alfresco/alfresco-js-api/tree/master/src/alfresco-activiti-rest-api/docs/RestVariable.md)| | variables | Variables in input to the process [RestVariable](https://github.com/Alfresco/alfresco-js-api/tree/master/src/alfresco-activiti-rest-api/docs/RestVariable.md)|
### Events ### Events
@@ -207,7 +206,6 @@ to specify some basic details needed to start a new process instance.
| start | Raised when the process start | | start | Raised when the process start |
| error | Raised when the start process fail | | error | Raised when the start process fail |
## Process Details component ## Process Details component
This component displays detailed information on a specified process instance This component displays detailed information on a specified process instance

View File

@@ -176,7 +176,7 @@ The component shows the details of the task id passed in input
By default the Activiti Task Details provides the following message for the empty task details: By default the Activiti Task Details provides the following message for the empty task details:
``` ```html
No Tasks No Tasks
``` ```
@@ -247,7 +247,6 @@ You can use inside the filter one of the following property
} }
``` ```
## Activiti Filter ## Activiti Filter
The component shows all the available filters. The component shows all the available filters.
@@ -281,8 +280,10 @@ If both `appId` and `appName` are specified then `appName` will take precedence
<adf-filters <adf-filters
[filterParam]="{name:'My tasks'}"> [filterParam]="{name:'My tasks'}">
</adf-filters> </adf-filters>
``` ```
You can use inside the filterParam one of the following property. You can use inside the filterParam one of the following property.
### FilterParamsModel ### FilterParamsModel
@@ -422,6 +423,7 @@ The purpose of the component is populate the local variable called `properties`
| claim | Raised when the task is claimed. | | claim | Raised when the task is claimed. |
## TaskDetailsModel ## TaskDetailsModel
```json ```json
{ {
"id": "string", "id": "string",
@@ -431,6 +433,7 @@ The purpose of the component is populate the local variable called `properties`
"description": "string" "description": "string"
} }
``` ```
## Task People Component ## Task People Component
This component displays involved users to a specified task This component displays involved users to a specified task

View File

@@ -18,6 +18,9 @@
- [Alfresco Api Service](#alfresco-api-service) - [Alfresco Api Service](#alfresco-api-service)
- [AppConfigService](#appconfigservice) - [AppConfigService](#appconfigservice)
* [Different configurations based on environment settings](#different-configurations-based-on-environment-settings) * [Different configurations based on environment settings](#different-configurations-based-on-environment-settings)
* [Variable substitution in configuration strings](#variable-substitution-in-configuration-strings)
* [Unit testing](#unit-testing)
- [User Preferences Service](#user-preferences-service)
- [Notification Service](#notification-service) - [Notification Service](#notification-service)
- [Context Menu directive](#context-menu-directive) - [Context Menu directive](#context-menu-directive)
- [Accordion Component](#accordion-component) - [Accordion Component](#accordion-component)
@@ -30,7 +33,6 @@
- [AlfrescoTranslationService](#alfrescotranslationservice) - [AlfrescoTranslationService](#alfrescotranslationservice)
- [Renditions Service](#renditions-service) - [Renditions Service](#renditions-service)
- [Build from sources](#build-from-sources) - [Build from sources](#build-from-sources)
- [Build from sources](#build-from-sources-1)
- [NPM scripts](#npm-scripts) - [NPM scripts](#npm-scripts)
- [Demo](#demo) - [Demo](#demo)
- [License](#license) - [License](#license)
@@ -41,7 +43,7 @@
## Prerequisites ## Prerequisites
Before you start using this development framework, make sure you have installed all required software and done all the 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). necessary configuration, see this [page](https://github.com/Alfresco/alfresco-ng2-components/blob/master/PREREQUISITES.md).
> If you plan using this component with projects generated by Angular CLI, please refer to the following article: [Using ADF with Angular CLI](https://github.com/Alfresco/alfresco-ng2-components/wiki/Angular-CLI) > If you plan using this component with projects generated by Angular CLI, please refer to the following article: [Using ADF with Angular CLI](https://github.com/Alfresco/alfresco-ng2-components/wiki/Angular-CLI)
@@ -74,17 +76,17 @@ npm install ng2-alfresco-core
## Upload Directive ## Upload Directive
Allows your components or common HTML elements reacting on File drag and drop in order to upload content. Allows your components or common HTML elements reacting on File drag and drop in order to upload content.
Used by attaching to an element or component. Used by attaching to an element or component.
### Basic usage ### Basic usage
The directive itself does not do any file management process, The directive itself does not do any file management process,
but collects information on dropped files and raises corresponding events instead. but collects information on dropped files and raises corresponding events instead.
```html ```html
<div style="width:100px; height:100px" <div style="width:100px; height:100px"
[adf-upload]="true" [adf-upload]="true"
[adf-upload-data]="{ some: 'data' }"> [adf-upload-data]="{ some: 'data' }">
Drop files here... Drop files here...
</div> </div>
@@ -113,7 +115,7 @@ Directive supports several modes:
- **drop** mode, where decorated element acts like a drop zone for files (**default** mode) - **drop** mode, where decorated element acts like a drop zone for files (**default** mode)
- **click** mode, where decorated element invokes File Dialog to select files or folders. - **click** mode, where decorated element invokes File Dialog to select files or folders.
It is also possible combining modes together. It is also possible combining modes together.
```html ```html
<div [adf-upload]="true" mode="['click']">...</div> <div [adf-upload]="true" mode="['click']">...</div>
@@ -145,7 +147,7 @@ For the click mode you can provide additional attributes for the File Dialog:
#### Drop mode #### Drop mode
For the moment upload directive supports only Files (single or multiple). For the moment upload directive supports only Files (single or multiple).
Support for Folders and `accept` filters is subject to implement. Support for Folders and `accept` filters is subject to implement.
### Events ### Events
@@ -162,7 +164,7 @@ The DOM event is configured to have `bubbling` enabled, so any component up the
```ts ```ts
onUploadFiles(e: CustomEvent) { onUploadFiles(e: CustomEvent) {
console.log(e.detail.files); console.log(e.detail.files);
// your code // your code
} }
``` ```
@@ -669,7 +671,6 @@ class MyComponent {
**Important note**: `addTranslationFolder` method redirects **all** languages to a new folder, you may need implementing multiple languages **Important note**: `addTranslationFolder` method redirects **all** languages to a new folder, you may need implementing multiple languages
or copying existing translation files to a new path. or copying existing translation files to a new path.
## Renditions Service ## Renditions Service
* getRenditionsListByNodeId(nodeId: string) * getRenditionsListByNodeId(nodeId: string)
@@ -679,15 +680,6 @@ or copying existing translation files to a new path.
## Build from sources ## Build from sources
Alternatively you can build component from sources with the following commands:
```sh
npm install
npm run build
```
## Build from sources
You can build component from sources with the following commands: You can build component from sources with the following commands:
```sh ```sh

View File

@@ -4,31 +4,31 @@
<!-- toc --> <!-- toc -->
* [Prerequisites](#prerequisites) - [Prerequisites](#prerequisites)
* [Install](#install) - [Install](#install)
* [Basic usage](#basic-usage) - [Basic usage](#basic-usage)
+ [DataTable Properties](#datatable-properties) * [DataTable Properties](#datatable-properties)
+ [DataColumn Properties](#datacolumn-properties) * [DataColumn Properties](#datacolumn-properties)
+ [DataTable Events](#datatable-events) * [DataTable Events](#datatable-events)
+ [DataTable DOM Events](#datatable-dom-events) * [DataTable DOM Events](#datatable-dom-events)
+ [Empty content template](#empty-content-template) * [Empty content template](#empty-content-template)
+ [Loading content template](#loading-content-template) * [Loading content template](#loading-content-template)
+ [Column Templates](#column-templates) * [Column Templates](#column-templates)
+ [Events](#events) * [Events](#events)
- [rowClick event](#rowclick-event) + [rowClick event](#rowclick-event)
- [rowDblClick event](#rowdblclick-event) + [rowDblClick event](#rowdblclick-event)
- [showRowContextMenu event](#showrowcontextmenu-event) + [showRowContextMenu event](#showrowcontextmenu-event)
- [showRowActionsMenu event](#showrowactionsmenu-event) + [showRowActionsMenu event](#showrowactionsmenu-event)
- [executeRowAction event](#executerowaction-event) + [executeRowAction event](#executerowaction-event)
* [Data sources](#data-sources) - [Data sources](#data-sources)
* [Generate schema](#generate-schema) - [Generate schema](#generate-schema)
- [Pagination Component](#pagination-component) - [Pagination Component](#pagination-component)
+ [Properties](#properties) * [Properties](#properties)
+ [Events](#events-1) * [Events](#events-1)
* [Build from sources](#build-from-sources) - [Build from sources](#build-from-sources)
* [NPM scripts](#npm-scripts) - [NPM scripts](#npm-scripts)
* [Demo](#demo) - [Demo](#demo)
* [License](#license) - [License](#license)
<!-- tocstop --> <!-- tocstop -->
@@ -58,6 +58,7 @@ npm install ng2-alfresco-datatable
[data]="data"> [data]="data">
</adf-datatable> </adf-datatable>
``` ```
**app.component.ts** **app.component.ts**
```ts ```ts
@@ -571,13 +572,12 @@ let schema = ObjectDataTableAdapter.generateSchema(data);
``` ```
# Pagination Component ## Pagination Component
The pagination object is a generic component to paginate component. The Alfresco API are paginated and returns a Pagination object. You can use the pagination object to feed the pagination component and then listen to the event which return the current pagination and query again the API with the options choose by the user. The pagination object is a generic component to paginate component. The Alfresco API are paginated and returns a Pagination object. You can use the pagination object to feed the pagination component and then listen to the event which return the current pagination and query again the API with the options choose by the user.
![DataTable demo](docs/assets/pagination-demo.png) ![DataTable demo](docs/assets/pagination-demo.png)
### Properties ### Properties
| Name | Type | Default | Description | Name | Type | Default | Description

View File

@@ -163,7 +163,7 @@ In this case you can use `alfresco-js-api` to get node details based on it's rel
Let's try setting default folder to `/Sites/swsdp/documentLibrary` without knowing it's ID beforehand. Let's try setting default folder to `/Sites/swsdp/documentLibrary` without knowing it's ID beforehand.
For the sake of simplicity example below shows only main points you may need paying attention to: For the sake of simplicity example below shows only main points you may need paying attention to:
```ts ```ts
import { ChangeDetectorRef } from '@angular/core'; import { ChangeDetectorRef } from '@angular/core';
import { AlfrescoApiService } from 'ng2-alfresco-core'; import { AlfrescoApiService } from 'ng2-alfresco-core';
@@ -284,7 +284,6 @@ DocumentList provides simple breadcrumb element to indicate the current position
***Note:*** the `<adf-document-list-breadcrumb>` and `<adf-breadcrumb>` are the same component you can still use the old tag name ***Note:*** the `<adf-document-list-breadcrumb>` and `<adf-breadcrumb>` are the same component you can still use the old tag name
![Breadcrumb](docs/assets/breadcrumb.png) ![Breadcrumb](docs/assets/breadcrumb.png)
### Properties ### Properties
@@ -317,7 +316,6 @@ When the "New Folder" button is pressed the dialog appears.
![Creation Menu Action](docs/assets/document-list-creation-menu-actions-2.png) ![Creation Menu Action](docs/assets/document-list-creation-menu-actions-2.png)
## Custom columns ## Custom columns
It is possible to reorder, extend or completely redefine data columns displayed by the component. It is possible to reorder, extend or completely redefine data columns displayed by the component.
@@ -563,7 +561,6 @@ All document actions are rendered as a dropdown menu as on the picture below:
![Document Actions](docs/assets/document-actions.png) ![Document Actions](docs/assets/document-actions.png)
#### Default action handlers #### Default action handlers
The following action handlers are provided out-of-box: The following action handlers are provided out-of-box:
@@ -772,8 +769,8 @@ _Note that for the sake of simplicity the example code below was reduced to the
``` ```
**View1.component.ts** **View1.component.ts**
```ts
```ts
import { RowFilter, ShareDataRow } from 'ng2-alfresco-documentlist'; import { RowFilter, ShareDataRow } from 'ng2-alfresco-documentlist';
export class View1 { export class View1 {
@@ -817,6 +814,7 @@ Your function can return `null` or `false` values to fallback to default image r
_Note that for the sake of simplicity the example code below was reduced to the main points of interest only._ _Note that for the sake of simplicity the example code below was reduced to the main points of interest only._
**View1.component.html** **View1.component.html**
```html ```html
<adf-document-list <adf-document-list
[imageResolver]="folderImageResolver"> [imageResolver]="folderImageResolver">
@@ -830,6 +828,7 @@ _Note that for the sake of simplicity the example code below was reduced to the
``` ```
**View1.component.ts** **View1.component.ts**
```ts ```ts
import { DataColumn, DataRow } from 'ng2-alfresco-datatable'; import { DataColumn, DataRow } from 'ng2-alfresco-datatable';
import { ImageResolver } from 'ng2-alfresco-documentlist'; import { ImageResolver } from 'ng2-alfresco-documentlist';

View File

@@ -1,6 +1,5 @@
# Alfresco File Viewer Component # Alfresco File Viewer Component
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it--> <!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
<!-- toc --> <!-- toc -->
@@ -83,7 +82,6 @@ Using with file url:
Note for unsupported extension the viewer will offer the possibility to convert it in PDF is that kind of extension is supported by the [content service renditions service](https://community.alfresco.com/docs/DOC-5879-rendition-service) Note for unsupported extension the viewer will offer the possibility to convert it in PDF is that kind of extension is supported by the [content service renditions service](https://community.alfresco.com/docs/DOC-5879-rendition-service)
## Custom extension handler ## Custom extension handler
If you want handle other file formats that are not yet supported by the ng2-alfresco-viewer you can define your own custom handler. If you want handle other file formats that are not yet supported by the ng2-alfresco-viewer you can define your own custom handler.

View File

@@ -20,7 +20,6 @@
<!-- markdown-toc end --> <!-- markdown-toc end -->
## Prerequisites ## Prerequisites
Before you start using this development framework, make sure you have installed all required software and done all the Before you start using this development framework, make sure you have installed all required software and done all the
@@ -85,7 +84,6 @@ export class AppComponent {
| onSuccess | event | | You can get the plain data from the webscript through the **onSuccess** event parameter and use it as you need in your application | | onSuccess | event | | You can get the plain data from the webscript through the **onSuccess** event parameter and use it as you need in your application |
| showData | booleann | true | render the webscript data | | showData | booleann | true | render the webscript data |
**contentType** {string} **contentType** {string}
***data*** {string} data contain the plain value get from the webscipt is an output parameter ***data*** {string} data contain the plain value get from the webscipt is an output parameter
@@ -94,7 +92,7 @@ export class AppComponent {
This sample demonstrates how to implement a Webscript component that renders the HTML contents that come from a webscript This sample demonstrates how to implement a Webscript component that renders the HTML contents that come from a webscript
This sample Web Scripts reside in your Alfresco Server AND you can access the folder webscript here: This sample Web Scripts reside in your Alfresco Server AND you can access the folder webscript here:
http://localhost:8080/alfresco/service/sample/folder/Company%20Home ```http://localhost:8080/alfresco/service/sample/folder/Company%20Home```
```html ```html
<adf-webscript-get <adf-webscript-get
@@ -112,7 +110,7 @@ http://localhost:8080/alfresco/service/sample/folder/Company%20Home
This sample demonstrates how to implement a Webscript component that renders the JSON contents that come from a webscript This sample demonstrates how to implement a Webscript component that renders the JSON contents that come from a webscript
http://localhost:8080/alfresco/service/sample/folder/DATATABLE ```http://localhost:8080/alfresco/service/sample/folder/DATATABLE```
```html ```html
<adf-webscript-get <adf-webscript-get
@@ -170,7 +168,7 @@ that will render the follow table
This sample demonstrates how to implement a Webscript component that renders the JSON contents that come from a webscript This sample demonstrates how to implement a Webscript component that renders the JSON contents that come from a webscript
This sample Web Scripts reside in your Alfresco Server AND you can access the folder webscript here: This sample Web Scripts reside in your Alfresco Server AND you can access the folder webscript here:
http://localhost:8080/alfresco/service/sample/folder/JSON%EXAMPLE ```http://localhost:8080/alfresco/service/sample/folder/JSON%EXAMPLE```
```html ```html
<adf-webscript-get <adf-webscript-get

View File

@@ -6,12 +6,13 @@
"scripts": { "scripts": {
"clean": "rimraf node_modules", "clean": "rimraf node_modules",
"clean-lock": "rimraf package-lock.json", "clean-lock": "rimraf package-lock.json",
"build": "npm run webpack -- --config config/webpack.build.js --progress --profile --bail", "build": "npm run toc && npm run markdownlint && npm run webpack -- --config config/webpack.build.js --progress --profile --bail",
"pkg-build": "package-json-merge ng2-alfresco-core/package.json ng2-alfresco-datatable/package.json ng2-activiti-diagrams/package.json ng2-activiti-analytics/package.json ng2-activiti-form/package.json ng2-activiti-tasklist/package.json ng2-activiti-processlist/package.json ng2-alfresco-documentlist/package.json ng2-alfresco-login/package.json ng2-alfresco-search/package.json ng2-alfresco-tag/package.json ng2-alfresco-upload/package.json ng2-alfresco-viewer/package.json ng2-alfresco-webscript/package.json ng2-alfresco-webscript/package.json ng2-alfresco-userinfo/package.json ng2-alfresco-social/package.json package-base.json > package.json", "pkg-build": "package-json-merge ng2-alfresco-core/package.json ng2-alfresco-datatable/package.json ng2-activiti-diagrams/package.json ng2-activiti-analytics/package.json ng2-activiti-form/package.json ng2-activiti-tasklist/package.json ng2-activiti-processlist/package.json ng2-alfresco-documentlist/package.json ng2-alfresco-login/package.json ng2-alfresco-search/package.json ng2-alfresco-tag/package.json ng2-alfresco-upload/package.json ng2-alfresco-viewer/package.json ng2-alfresco-webscript/package.json ng2-alfresco-webscript/package.json ng2-alfresco-userinfo/package.json ng2-alfresco-social/package.json package-base.json > package.json",
"test": "node node_modules/karma/bin/karma start --reporters mocha,coverage --single-run --component .", "test": "node node_modules/karma/bin/karma start --reporters mocha,coverage --single-run --component .",
"test-browser": "node node_modules/karma/bin/karma start karma.conf.js --reporters kjhtml", "test-browser": "node node_modules/karma/bin/karma start karma.conf.js --reporters kjhtml",
"toc": "markdown-toc -i ng2-alfresco-core/README.md && markdown-toc -i ng2-alfresco-datatable/README.md && markdown-toc -i ng2-activiti-diagrams/README.md && markdown-toc -i ng2-activiti-analytics/README.md && markdown-toc -i ng2-activiti-form/README.md && markdown-toc -i ng2-activiti-tasklist/README.md && markdown-toc -i ng2-activiti-processlist/README.md && markdown-toc -i ng2-alfresco-documentlist/README.md && markdown-toc -i ng2-alfresco-login/README.md && markdown-toc -i ng2-alfresco-search/README.md && markdown-toc -i ng2-alfresco-tag/README.md && markdown-toc -i ng2-alfresco-upload/README.md && markdown-toc -i ng2-alfresco-viewer/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-userinfo/README.md && markdown-toc -i ng2-alfresco-social/README.md && markdown-toc -i README.md", "toc": "markdown-toc -i ng2-alfresco-core/README.md && markdown-toc -i ng2-alfresco-datatable/README.md && markdown-toc -i ng2-activiti-diagrams/README.md && markdown-toc -i ng2-activiti-analytics/README.md && markdown-toc -i ng2-activiti-form/README.md && markdown-toc -i ng2-activiti-tasklist/README.md && markdown-toc -i ng2-activiti-processlist/README.md && markdown-toc -i ng2-alfresco-documentlist/README.md && markdown-toc -i ng2-alfresco-login/README.md && markdown-toc -i ng2-alfresco-search/README.md && markdown-toc -i ng2-alfresco-tag/README.md && markdown-toc -i ng2-alfresco-upload/README.md && markdown-toc -i ng2-alfresco-viewer/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-userinfo/README.md && markdown-toc -i ng2-alfresco-social/README.md && markdown-toc -i README.md",
"doc": "npm run toc && npm run npm run webpack -- --config config/webpack.doc.js --progress --profile --bail", "markdownlint": "markdownlint ng2-alfresco-core/README.md && markdownlint ng2-alfresco-datatable/README.md && markdownlint ng2-activiti-diagrams/README.md && markdownlint ng2-activiti-analytics/README.md && markdownlint ng2-activiti-form/README.md && markdownlint ng2-activiti-tasklist/README.md && markdownlint ng2-activiti-processlist/README.md && markdownlint ng2-alfresco-documentlist/README.md && markdownlint ng2-alfresco-login/README.md && markdownlint ng2-alfresco-search/README.md && markdownlint ng2-alfresco-tag/README.md && markdownlint ng2-alfresco-upload/README.md && markdownlint ng2-alfresco-viewer/README.md && markdownlint ng2-alfresco-webscript/README.md && markdownlint ng2-alfresco-webscript/README.md && markdownlint ng2-alfresco-userinfo/README.md && markdownlint ng2-alfresco-social/README.md && markdownlint README.md",
"doc": "npm run toc && npm run markdownlint && npm run npm run webpack -- --config config/webpack.doc.js --progress --profile --bail",
"tslint": "", "tslint": "",
"prepublish": "", "prepublish": "",
"tsc": "", "tsc": "",
@@ -69,6 +70,7 @@
"karma-systemjs": "^0.16.0", "karma-systemjs": "^0.16.0",
"karma-webpack": "^2.0.2", "karma-webpack": "^2.0.2",
"markdown-toc": "1.1.0", "markdown-toc": "1.1.0",
"markdownlint-cli": "^0.3.1",
"script-loader": "0.7.0", "script-loader": "0.7.0",
"webpack": "^2.2.1", "webpack": "^2.2.1",
"webpack-dev-server": "^2.3.0", "webpack-dev-server": "^2.3.0",

View File

@@ -4301,6 +4301,12 @@
"integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
"dev": true "dev": true
}, },
"linkify-it": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.0.3.tgz",
"integrity": "sha1-2UpGSPmxwXnWT6lykSaL22zpQ08=",
"dev": true
},
"list-item": { "list-item": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz",
@@ -4433,6 +4439,12 @@
"integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=", "integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=",
"dev": true "dev": true
}, },
"lodash.flatten": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.3.0.tgz",
"integrity": "sha1-5exO/ofvxZzlL5F8uovxYGNkac8=",
"dev": true
},
"lodash.isarguments": { "lodash.isarguments": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz",
@@ -4505,6 +4517,12 @@
"integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=",
"dev": true "dev": true
}, },
"lodash.values": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/lodash.values/-/lodash.values-4.2.0.tgz",
"integrity": "sha1-kyYl99LJVLY9uJUlVUjztJ8SDpo=",
"dev": true
},
"lodash.words": { "lodash.words": {
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/lodash.words/-/lodash.words-3.2.0.tgz", "resolved": "https://registry.npmjs.org/lodash.words/-/lodash.words-3.2.0.tgz",
@@ -4597,6 +4615,12 @@
"integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=",
"dev": true "dev": true
}, },
"markdown-it": {
"version": "8.3.1",
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-8.3.1.tgz",
"integrity": "sha1-L0tiKUjM3Bk9ZvPKLUMSWsSscyM=",
"dev": true
},
"markdown-link": { "markdown-link": {
"version": "0.1.1", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz",
@@ -4617,6 +4641,32 @@
} }
} }
}, },
"markdownlint": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.4.1.tgz",
"integrity": "sha1-NzIMqUSTgCT9a0IbJAGtNJNJWIo=",
"dev": true
},
"markdownlint-cli": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.3.1.tgz",
"integrity": "sha1-fgWAnyfn9QiGvwWtx9LSW7OwUpM=",
"dev": true,
"dependencies": {
"glob": {
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.0.6.tgz",
"integrity": "sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo=",
"dev": true
},
"rc": {
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/rc/-/rc-1.1.7.tgz",
"integrity": "sha1-xepWS7B6/5/TpbMukGwdOmWUD+o=",
"dev": true
}
}
},
"material-design-icons": { "material-design-icons": {
"version": "2.2.3", "version": "2.2.3",
"resolved": "https://registry.npmjs.org/material-design-icons/-/material-design-icons-2.2.3.tgz", "resolved": "https://registry.npmjs.org/material-design-icons/-/material-design-icons-2.2.3.tgz",
@@ -4638,6 +4688,12 @@
"resolved": "https://registry.npmjs.org/md-date-time-picker/-/md-date-time-picker-2.2.0.tgz", "resolved": "https://registry.npmjs.org/md-date-time-picker/-/md-date-time-picker-2.2.0.tgz",
"integrity": "sha1-aIdfznnbbtEiNevEZ6qTSEX04dY=" "integrity": "sha1-aIdfznnbbtEiNevEZ6qTSEX04dY="
}, },
"mdurl": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz",
"integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=",
"dev": true
},
"media-typer": { "media-typer": {
"version": "0.3.0", "version": "0.3.0",
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
@@ -7519,6 +7575,12 @@
"integrity": "sha1-w8yxbdqgsjFN4DHn5v7onlujRrw=", "integrity": "sha1-w8yxbdqgsjFN4DHn5v7onlujRrw=",
"dev": true "dev": true
}, },
"uc.micro": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.3.tgz",
"integrity": "sha1-ftUNXg+an7ClczeSWfKndFjVAZI=",
"dev": true
},
"uglify-js": { "uglify-js": {
"version": "3.0.22", "version": "3.0.22",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.0.22.tgz", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.0.22.tgz",

View File

@@ -7,14 +7,15 @@
"clean": "rimraf node_modules", "clean": "rimraf node_modules",
"clean-lock": "rimraf package-lock.json", "clean-lock": "rimraf package-lock.json",
"rimraf": "rimraf", "rimraf": "rimraf",
"build": "npm run webpack -- --config config/webpack.build.js --progress --profile --bail", "build": "npm run toc && npm run markdownlint && npm run webpack -- --config config/webpack.build.js --progress --profile --bail",
"test": "node node_modules/karma/bin/karma start --reporters mocha,coverage --single-run --component .", "test": "node node_modules/karma/bin/karma start --reporters mocha,coverage --single-run --component .",
"test-browser": "node node_modules/karma/bin/karma start karma.conf.js --reporters kjhtml", "test-browser": "node node_modules/karma/bin/karma start karma.conf.js --reporters kjhtml",
"coverage": "", "coverage": "",
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
"pkg-build": "package-json-merge ng2-alfresco-core/package.json ng2-alfresco-datatable/package.json ng2-activiti-diagrams/package.json ng2-activiti-analytics/package.json ng2-activiti-form/package.json ng2-activiti-tasklist/package.json ng2-activiti-processlist/package.json ng2-alfresco-documentlist/package.json ng2-alfresco-login/package.json ng2-alfresco-search/package.json ng2-alfresco-tag/package.json ng2-alfresco-upload/package.json ng2-alfresco-viewer/package.json ng2-alfresco-webscript/package.json ng2-alfresco-webscript/package.json ng2-alfresco-userinfo/package.json ng2-alfresco-social/package.json package-base.json > package.json", "pkg-build": "package-json-merge ng2-alfresco-core/package.json ng2-alfresco-datatable/package.json ng2-activiti-diagrams/package.json ng2-activiti-analytics/package.json ng2-activiti-form/package.json ng2-activiti-tasklist/package.json ng2-activiti-processlist/package.json ng2-alfresco-documentlist/package.json ng2-alfresco-login/package.json ng2-alfresco-search/package.json ng2-alfresco-tag/package.json ng2-alfresco-upload/package.json ng2-alfresco-viewer/package.json ng2-alfresco-webscript/package.json ng2-alfresco-webscript/package.json ng2-alfresco-userinfo/package.json ng2-alfresco-social/package.json package-base.json > package.json",
"toc": "markdown-toc -i ng2-alfresco-core/README.md && markdown-toc -i ng2-alfresco-datatable/README.md && markdown-toc -i ng2-activiti-diagrams/README.md && markdown-toc -i ng2-activiti-analytics/README.md && markdown-toc -i ng2-activiti-form/README.md && markdown-toc -i ng2-activiti-tasklist/README.md && markdown-toc -i ng2-activiti-processlist/README.md && markdown-toc -i ng2-alfresco-documentlist/README.md && markdown-toc -i ng2-alfresco-login/README.md && markdown-toc -i ng2-alfresco-search/README.md && markdown-toc -i ng2-alfresco-tag/README.md && markdown-toc -i ng2-alfresco-upload/README.md && markdown-toc -i ng2-alfresco-viewer/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-userinfo/README.md && markdown-toc -i ng2-alfresco-social/README.md && markdown-toc -i README.md", "toc": "markdown-toc -i ng2-alfresco-core/README.md && markdown-toc -i ng2-alfresco-datatable/README.md && markdown-toc -i ng2-activiti-diagrams/README.md && markdown-toc -i ng2-activiti-analytics/README.md && markdown-toc -i ng2-activiti-form/README.md && markdown-toc -i ng2-activiti-tasklist/README.md && markdown-toc -i ng2-activiti-processlist/README.md && markdown-toc -i ng2-alfresco-documentlist/README.md && markdown-toc -i ng2-alfresco-login/README.md && markdown-toc -i ng2-alfresco-search/README.md && markdown-toc -i ng2-alfresco-tag/README.md && markdown-toc -i ng2-alfresco-upload/README.md && markdown-toc -i ng2-alfresco-viewer/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-userinfo/README.md && markdown-toc -i ng2-alfresco-social/README.md && markdown-toc -i README.md",
"doc": "npm run toc && npm run webpack -- --config config/webpack.doc.js --progress --profile --bail", "markdownlint": "markdownlint ng2-alfresco-core/README.md && markdownlint ng2-alfresco-datatable/README.md && markdownlint ng2-activiti-diagrams/README.md && markdownlint ng2-activiti-analytics/README.md && markdownlint ng2-activiti-form/README.md && markdownlint ng2-activiti-tasklist/README.md && markdownlint ng2-activiti-processlist/README.md && markdownlint ng2-alfresco-documentlist/README.md && markdownlint ng2-alfresco-login/README.md && markdownlint ng2-alfresco-search/README.md && markdownlint ng2-alfresco-tag/README.md && markdownlint ng2-alfresco-upload/README.md && markdownlint ng2-alfresco-viewer/README.md && markdownlint ng2-alfresco-webscript/README.md && markdownlint ng2-alfresco-webscript/README.md && markdownlint ng2-alfresco-userinfo/README.md && markdownlint ng2-alfresco-social/README.md && markdownlint README.md",
"doc": "npm run markdownlint && npm run toc && npm run webpack -- --config config/webpack.doc.js --progress --profile --bail",
"tslint": "", "tslint": "",
"prepublish": "", "prepublish": "",
"tsc": "", "tsc": "",
@@ -124,6 +125,8 @@
"karma-systemjs": "^0.16.0", "karma-systemjs": "^0.16.0",
"karma-webpack": "^2.0.2", "karma-webpack": "^2.0.2",
"loader-utils": "^1.1.0", "loader-utils": "^1.1.0",
"markdown-toc": "1.1.0",
"markdownlint-cli": "^0.3.1",
"merge-stream": "1.0.1", "merge-stream": "1.0.1",
"node-sass": "4.5.3", "node-sass": "4.5.3",
"null-loader": "^0.1.1", "null-loader": "^0.1.1",
@@ -147,8 +150,7 @@
"webpack": "^2.2.1", "webpack": "^2.2.1",
"webpack-dev-server": "^2.3.0", "webpack-dev-server": "^2.3.0",
"webpack-merge": "2.6.1", "webpack-merge": "2.6.1",
"wsrv": "0.1.7", "wsrv": "0.1.7"
"markdown-toc": "1.1.0"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"module": "./index.js", "module": "./index.js",