diff --git a/react-app/build/helloworld.js b/react-app/build/helloworld.js index 55428c0333..55b3d9f85d 100644 --- a/react-app/build/helloworld.js +++ b/react-app/build/helloworld.js @@ -2,7 +2,7 @@ var CommentBox = React.createClass({ displayName: 'CommentBox', getInitialState: function () { - return { accept: 'image/*', action: 'target.php', droppable: '' }; + return { accept: 'image/*', action: 'http://192.168.99.100:8080/alfresco/service/api/upload', droppable: '' }; }, onChangeAccept: function (e) { diff --git a/react-app/index.html b/react-app/index.html index 3cf3b59c6e..4bbb0b0f95 100644 --- a/react-app/index.html +++ b/react-app/index.html @@ -25,7 +25,7 @@ - + diff --git a/react-app/src/helloworld.js b/react-app/src/helloworld.js index fd0c69ec53..6e9b4537ce 100644 --- a/react-app/src/helloworld.js +++ b/react-app/src/helloworld.js @@ -1,6 +1,6 @@ var CommentBox = React.createClass({ getInitialState: function() { - return { accept: 'image/*', action: 'target.php', droppable: ''}; + return { accept: 'image/*', action: 'http://192.168.99.100:8080/alfresco/service/api/upload', droppable: ''}; }, onChangeAccept: function(e) { diff --git a/react-app/webcomponents/bower.json b/react-app/webcomponents/bower.json new file mode 100755 index 0000000000..e89e540bf3 --- /dev/null +++ b/react-app/webcomponents/bower.json @@ -0,0 +1,33 @@ +{ + "name": "file-upload", + "version": "1.6.4", + "authors": [ + "Winston Howes " + ], + "description": "An element for using ajax to upload files.", + "keywords": [ + "web-component", + "web-components", + "polymer", + "file", + "ajax", + "upload" + ], + "main": "file-upload.html", + "license": "MIT", + "homepage": "https://github.com/winhowes/file-upload/", + "ignore": [ + "/.*", + "/test/", + "/demo/", + "/bower_components/" + ], + "dependencies": { + "polymer": "Polymer/polymer#^1.0.0", + "paper-progress": "PolymerElements/paper-progress#^1.0.0" + }, + "devDependencies": { + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "web-component-tester": "*" + } +} diff --git a/react-app/webcomponents/file-upload/.bower.json b/react-app/webcomponents/file-upload/.bower.json new file mode 100644 index 0000000000..5d24dd80e4 --- /dev/null +++ b/react-app/webcomponents/file-upload/.bower.json @@ -0,0 +1,43 @@ +{ + "name": "file-upload", + "version": "1.6.4", + "authors": [ + "Winston Howes " + ], + "description": "An element for using ajax to upload files.", + "keywords": [ + "web-component", + "web-components", + "polymer", + "file", + "ajax", + "upload" + ], + "main": "file-upload.html", + "license": "MIT", + "homepage": "https://github.com/winhowes/file-upload/", + "ignore": [ + "/.*", + "/test/", + "/demo/", + "/bower_components/" + ], + "dependencies": { + "polymer": "Polymer/polymer#^1.0.0", + "paper-progress": "PolymerElements/paper-progress#^1.0.0" + }, + "devDependencies": { + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "web-component-tester": "*" + }, + "_release": "1.6.4", + "_resolution": { + "type": "version", + "tag": "v1.6.4", + "commit": "eeaa8d62ac0d7ae2f5adb9531c427bfba3952f1c" + }, + "_source": "git://github.com/winhowes/file-upload.git", + "_target": "~1.6.4", + "_originalSource": "file-upload", + "_direct": true +} \ No newline at end of file diff --git a/react-app/webcomponents/file-upload/LICENSE b/react-app/webcomponents/file-upload/LICENSE new file mode 100644 index 0000000000..f400d49829 --- /dev/null +++ b/react-app/webcomponents/file-upload/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 Winston Howes + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/react-app/webcomponents/file-upload/README.md b/react-app/webcomponents/file-upload/README.md new file mode 100755 index 0000000000..540032943e --- /dev/null +++ b/react-app/webcomponents/file-upload/README.md @@ -0,0 +1,10 @@ +# Introduction +This repository contains an element for file uploads using ajax. It supports multi-file selection as well as optional drop zones for drag-and-drop. The element is designed for use in Polymer 1.0. + +Check out the demo and docs here: https://winhowes.github.io/file-upload/components/file-upload/. + +# Installation +To install simply run: +``` +bower install --save file-upload +``` diff --git a/react-app/webcomponents/file-upload/file-upload.html b/react-app/webcomponents/file-upload/file-upload.html new file mode 100755 index 0000000000..34915076f2 --- /dev/null +++ b/react-app/webcomponents/file-upload/file-upload.html @@ -0,0 +1,509 @@ + + + + + + + + + + + + + + + + + + diff --git a/react-app/webcomponents/file-upload/index.html b/react-app/webcomponents/file-upload/index.html new file mode 100755 index 0000000000..0557d150fa --- /dev/null +++ b/react-app/webcomponents/file-upload/index.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + +