现代化的上传组件。 https://uppy.io/

Artur Paikin 57c31299a9 Moved DragDrop to examples folder 9 anos atrás
bin b34d3a5628 Merge 9 anos atrás
examples 557415dd19 Moved dropbox example to website/src/examples 9 anos atrás
src 12cfb9a32e Dropbox requests without SDK 9 anos atrás
test d07360a207 Rename to uppy 9 anos atrás
website 57c31299a9 Moved DragDrop to examples folder 9 anos atrás
.babelrc a57389fdc8 Styles and babel config for the future 9 anos atrás
.browsersync.js 68cd643a91 renamed bs-config.js to .browsersync.js 9 anos atrás
.editorconfig d257f8ff52 Add tests and eslint 9 anos atrás
.eslintrc be4d3f07b7 Ideally it should just ignore window, document and such 9 anos atrás
.gitignore 0b6f902b95 Add static app.js to gitignore 9 anos atrás
.travis.yml cdab835310 Automatically deploy website onto gh-pages (if master and not PR). Fixes #34 9 anos atrás
.zuul.yml d257f8ff52 Add tests and eslint 9 anos atrás
CONTRIBUTING.md d4744fc5da Expose contributing docs in online guide 9 anos atrás
LICENSE 320c8a16ef Getting a sandbox going with the worst possible layout 9 anos atrás
Makefile e1a36bcf67 Automatically update the website with ./dist information 9 anos atrás
README.md d4744fc5da Expose contributing docs in online guide 9 anos atrás
package.json 45f8a14d87 Added superagent to package.json 9 anos atrás

README.md

uppy

A work in progress - nothing to see here.

Interesting places if you want to dig in:

Uppy Development

First clone and install the project:

git clone git@github.com:transloadit/uppy.git
cd uppy
npm install

Our website's examples section is also our playground. To get it to run locally type:

make website-preview

Website Development

We keep the uppyjs.io website in ./website for so it's easy to keep docs & code in sync as we're still iterating at high velocity. For those reading this screaming murder, HashiCorp does this for all their projects, and it's working well for them on a scale vastly more impressive than :dog:'s.

The site is built with Hexo, and Travis automatically deploys this onto GitHub Pages (it overwrites the gh-pages branch at every deploy).

Content is written in Markdown and located in ./website/src. Feel free to fork & hack!

./website/update.js is called during website builds to inject the Uppy versions & filesizes into the documentation. website in an independent folder (with e.g. its own package.json) and so it cannot rely on anything from the root project directly. update.js is the bridge that explicitly makes information available by injecting it into the website.

It's recommended to exclude ./website/public/ from your editor if you want efficient searches.

For local previews on http://127.0.0.1:4000 type:

make website-preview

FAQ

Why does your site look like vuejs.org?

The website is currently a clone of Yuxi Evan You's wonderful Vue.js website (view license) - just so we can hit the ground running in terms of Haxo boilerplate, etc. Obviously as soon as possible, we'll start rolling out our own layout & content and make this place our own. We'll keep the Vue website MIT license & credit in the footer in tact of course.

What does Travis do?

Travis should:

  • check out code
  • build project
  • run unit tests
  • run acceptance tests
  • copy/install the built project into any examples/*/
  • deploy the examples to our hackathon S3 bucket in a folder named by branch (http://hackathon.transloadit.com/uppy/master/index.html), so we can all play with the current state of the project & examples per branch, without installing everything locally.