Skip to content

Commit 0da8081

Browse files
committed
initial files
1 parent acdd1a8 commit 0da8081

30 files changed

+726
-1
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Build files
2+
.tmp
3+
bower_components
4+
node_modules
5+
coverage
6+
.sass-cache
7+
.idea
8+
.env
9+
npm-debug.log
10+
.DS_Store

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.2.0

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: node_js
2+
node_js:
3+
- 5.2.0
4+
before_install:
5+
- npm install
6+
sudo: false
7+
before_deploy:
8+
- npm-prepublish --verbose
9+
deploy:
10+
- provider: npm
11+
email: "$NPM_EMAIL"
12+
api_key: "$NPM_API_KEY"
13+
on:
14+
tags: true
15+
env:
16+
global:
17+
# NPM_EMAIL
18+
- secure: "XVgfIy4vm0kOX+saefkpE98aHSzvSk0S9OydHC2/TfNnnfJfrdySOPyuVhfgtap/pKd9R2VtofSCIAy1bRNeE3wsFOpXNv/V/wQQ40cyJGQRL6uCJDkc7yvYnhCh5ZD6Jh2kJzB2FcT8V18+u12Azftbxz+SM0/wk4tgw5akRtUGVEZ01PaivY4VIESJ2qBJZiXeKfMCtCDi/a3OnUMUA6b8tbP+n35zl6JZGJtJhwcYqliyxzgnIR5bCDqPcab32cHsdcb7E8+Q/Co8vYc2ZVI6aQ/Oe+Cd2ON+WyTHZoWfKlKnXuYJ3DUnUxaDRTgfz+AdFZHwvlwfuDLexoTOS5Lps/aNh5/4kt7LwJyj3N4kxW/XgoZzJvn6foIYCqd6RnvTp05PVTUWiLKQwiMN9QxTLPhVv0RBqo+N9sDflq4eORv9WlsRF3XawZIr8GSqLiu7WM8w9wzdn66V94j4qO+gHQH/U3ck4z4Bie+QeDeOc8oYckbH5PaUcoRc3vEnGy9YKMwZ0RwJKZHXLE+g4xbDzJfhovC6835Hb6Sj81muSz4E8WVAsnyEtLs+JaWHA90qpfwsNB11aZHB7YO0HrHnMKA9P1F6A8eRagj6Ynhbl5Ko4Agtz0bqHVhyWi9bcF1V8WneuJSreC9naoWVvLYoyKc4UY/Qt7j7mdynm7w="
19+
# NPM_API_KEY
20+
- secure: "S9r5O41PS0+95/N5CTr8Euf5GISLmE8E6Rn9UWhuigjfuiquU3D7MWtl+v3Nyog7HH4k7wP13yg7UtmXekB9T5axSg3ViXiFAedGH7breS0nl0CCUCFCJdNiBDxiMTCDpI2C0KWKvTFdU1aCXJfRhVfDQE1kjJksdQ1BQvr0rLF5OIjh0JgRl6lmR9gMI3kY9hB/m6DRbvjonVe5T9yoWGKWPDODdkLT3GXW7hAQABluX01ARodHwvo5t/5dfIVjm3A2TKt7UHpR33ZM18zZ6qaJKsHosoWZ7JxuN4FrUvfxC4G/bXQML4a8MG566qV2Jr8cl6CYWY9sVyFWwgncbJdJEsYXongr6Mm41wREX0efXh0Fy9rDSGmXxVJSqY33MyYXGNQHzQ38V+dNascQ2V4Sk++3kfGGcDQ5s3yQpFdYXTORBra+O/eYwP8midJlLSJLD+vmrzTg/NWiFJeCvr0mqOMuQ+1Rwyf7xx6Qa2vhq8Bb8qEZgoPlefgHl5ivUzHT7JFiCcuigyeAGuOdR8Rdi6CEvmRpEy8KDvc/VtdBEXRCx2MZ/SGT4Q0h3Q4bdbeFDaXz8slLqt9uKhzHI5e+1CU5csHwpzkXrnsX/JZWYZtCT+3QopMwZYuDUNYF0hIJNCps6NCODrU2MulokcbTxUDMSkA8GQlNriGgF/0="

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Appirio
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
# react-components
1+
# Appirio File Uploader
2+
3+
## Using the repo in your app
4+
5+
## Install
6+
7+
```shell
8+
npm install appirio-tech-file-uploader
9+
```
10+
11+
## Developing
12+
13+
```shell
14+
nvm use
15+
npm install
16+
npm run example
17+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
require './ExampleApp.scss'
2+
3+
React = require 'react'
4+
ExampleNav = require '../ExampleNav/ExampleNav.cjsx'
5+
6+
component =
7+
render: ->
8+
<div className="ExampleApp">
9+
<main>{this.props.children}</main>
10+
11+
<ExampleNav />
12+
</div>
13+
14+
15+
16+
module.exports = React.createClass component
17+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@import "work/work-styles";
2+
3+
body {
4+
background-color: $grey-lighter;
5+
padding: 15px;
6+
7+
.invisible {
8+
opacity: .3;
9+
visibility: visible;
10+
}
11+
12+
h1 {
13+
margin : 80px 0 40px 0;
14+
text-align : center;
15+
padding-bottom: 10px;
16+
border-bottom : 1px solid $grey-light;
17+
}
18+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
'use strict'
2+
3+
require './ExampleNav.scss'
4+
5+
React = require 'react'
6+
classNames = require 'classnames'
7+
8+
{ Link } = require 'react-router'
9+
10+
component = ({data, state}) ->
11+
<ul className="ExampleNav">
12+
<li>
13+
<Link to="/">FileUploaderContainer</Link>
14+
15+
<Link to="/UploadedFileExamples">UploadedFile</Link>
16+
17+
<Link to="/UploadedFilesExamples">UploadedFiles</Link>
18+
19+
<Link to="/FileUploaderExamples">FileUploader</Link>
20+
</li>
21+
</ul>
22+
23+
module.exports = component
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.ExampleNav {
2+
position: fixed;
3+
bottom: 0;
4+
background-color: #fff;
5+
opacity: 0.6;
6+
7+
li {
8+
display: inline-block;
9+
}
10+
11+
a {
12+
margin: 10px;
13+
display: inline-block;
14+
}
15+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
'use strict'
2+
3+
require './FileUploaderStyles'
4+
5+
React = require 'react'
6+
UploadedFilesContainer = require '../UploadedFiles/UploadedFilesContainer'
7+
Dropzone = require 'react-dropzone'
8+
Loader = require 'appirio-tech-ng-ui-components/components/Loader/Loader.cjsx'
9+
10+
FileUploader = ({ multiple, onChange, loading}) ->
11+
<div className="FileUploader">
12+
{
13+
if loading
14+
<Loader />
15+
}
16+
<UploadedFilesContainer/>
17+
18+
<div className="dropzone-container">
19+
<Dropzone multiple={multiple} onDrop={onChange} className="Dropzone">
20+
<button>Choose files to upload.</button>
21+
</Dropzone>
22+
</div>
23+
</div>
24+
25+
module.exports = FileUploader
26+
27+

0 commit comments

Comments
 (0)