diff --git a/demo-shell-ng2/webcomponents/alfresco-login/.bower.json b/demo-shell-ng2/webcomponents/alfresco-login/.bower.json new file mode 100644 index 0000000000..615867600e --- /dev/null +++ b/demo-shell-ng2/webcomponents/alfresco-login/.bower.json @@ -0,0 +1,23 @@ +{ + "name": "alfresco-login", + "description": "Provide the Alfresco login .", + "keywords": [ + "web-component", + "web-components", + "polymer", + "alfresco" + ], + "main": "alfresco-login.html", + "license": "MIT", + "ignore": [ + "/.*", + "/test/", + "/demo/", + "/bower_components/" + ], + "dependencies": { + "polymer": "Polymer/polymer#^1.0.0" + }, + "_originalSource": "alfresco-login", + "_direct": true +} \ No newline at end of file diff --git a/demo-shell-ng2/webcomponents/alfresco-login/README.md b/demo-shell-ng2/webcomponents/alfresco-login/README.md new file mode 100755 index 0000000000..f68d160179 --- /dev/null +++ b/demo-shell-ng2/webcomponents/alfresco-login/README.md @@ -0,0 +1,96 @@ +# Introduction +This repository contains an element for the Alfresco login REST API. The element is designed for use in Polymer 1.0. + +## Install + +Install the component using [Bower](http://bower.io/): + +```sh +$ bower install alfresco-login --save +``` + +Or [download as ZIP](https://github.com/TODO/master.zip). + +## Usage + +1. Import Web Components' polyfill: + + ```html + + ``` + +2. Import Custom Element: + + ```html + + ``` + +3. Start using it! + + ```html + + ``` + +## Options + +Attribute | Options | Default | Description +--- | --- | --- | --- +`method` | *string* | `GET` | Type of HTTP Request. + +## Events + +Event | Description +--- | --- +`onsubmit` | The event is fired if a user signs in Alfresco successfully. +--- | --- +`onerror` | The event is fired if a user is not signed into Alfresco.. + +## Development + +In order to run it locally you'll need to fetch some dependencies and a basic server setup. + +* Install [Bower](http://bower.io/) & [Grunt](http://gruntjs.com/): + + ```sh + $ [sudo] npm install -g bower grunt-cli + ``` + +* Install local dependencies: + + ```sh + $ bower install && npm install + ``` + +* To test your project, start the development server and open `http://localhost:8000`. + + ```sh + $ grunt server + ``` + +* To build the distribution files before releasing a new version. + + ```sh + $ grunt build + ``` + +* To provide a live demo, send everything to `gh-pages` branch. + + ```sh + $ grunt deploy + ``` + +## Contributing + +1. Fork it! +2. Create your feature branch: `git checkout -b my-new-feature` +3. Commit your changes: `git commit -m 'Add some feature'` +4. Push to the branch: `git push origin my-new-feature` +5. Submit a pull request :D + +## History + +For detailed changelog, check [Releases](https://github.com/TODO/alfresco-file-list/releases). + +## License + +[MIT License](http://opensource.org/licenses/MIT) \ No newline at end of file diff --git a/demo-shell-ng2/webcomponents/alfresco-login/alfresco-login.html b/demo-shell-ng2/webcomponents/alfresco-login/alfresco-login.html new file mode 100755 index 0000000000..2e230716af --- /dev/null +++ b/demo-shell-ng2/webcomponents/alfresco-login/alfresco-login.html @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + diff --git a/demo-shell-ng2/webcomponents/alfresco-login/index.html b/demo-shell-ng2/webcomponents/alfresco-login/index.html new file mode 100755 index 0000000000..1859d04779 --- /dev/null +++ b/demo-shell-ng2/webcomponents/alfresco-login/index.html @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + +