Pārlūkot izejas kodu

Merge pull request #1322 from transloadit/fix/robodog-readme

robodog: update readme
Artur Paikin 6 gadi atpakaļ
vecāks
revīzija
be2a3afd18
1 mainītis faili ar 13 papildinājumiem un 61 dzēšanām
  1. 13 61
      packages/@uppy/robodog/README.md

+ 13 - 61
packages/@uppy/robodog/README.md

@@ -1,80 +1,32 @@
-# @uppy/transloadit
+# @uppy/robodog
 
 <img src="https://uppy.io/images/logos/uppy-dog-head-arrow.svg" width="120" alt="Uppy logo: a superman puppy in a pink suit" align="right">
 
-<a href="https://www.npmjs.com/package/@uppy/transloadit"><img src="https://img.shields.io/npm/v/@uppy/transloadit.svg?style=flat-square"></a>
+<a href="https://www.npmjs.com/package/@uppy/robodog"><img src="https://img.shields.io/npm/v/@uppy/robodog.svg?style=flat-square"></a>
 <a href="https://travis-ci.org/transloadit/uppy"><img src="https://img.shields.io/travis/transloadit/uppy/master.svg?style=flat-square" alt="Build Status"></a>
 
-The Transloadit plugin can be used to upload files to Transloadit for all kinds of processing, such as transcoding video, resizing images, zipping/unzipping, [and more](https://transloadit.com/services/).
+Robodog is an Uppy-based library that pulls your files through Transloadit for all kinds of processing, such as transcoding video, resizing images, zipping/unzipping, [and more](https://transloadit.com/services/).
 
-[Try it live →](https://uppy.io/examples/transloadit/)
-
-Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile file encoding service.
-
-## Example
-
-`transloadit.form` attaches Transloadit to an existing HTML form.
-It could act like the jQuery SDK using the `@uppy/file-input` plugin,
-or it could also add the `@uppy/dashboard`.
-Uploads files on form submission, adds results to a hidden input,
-then really submits the form.
-
-```js
-const transloadit = require('@uppy/robodog')
-
-transloadit.form('#form', {
-  params: {
-    auth: { key: '' },
-    template_id: ''
-  }
-})
-```
-
-Adding Dashboard could be optional, eg
+## Installation
 
-```js
-transloadit.form('#form', {
-  ...
-  dashboard: true // or css selector, true means input[type=file]
-})
+```bash
+$ npm install @uppy/robodog --save
 ```
-The file input would be replaced by a button that opens the dashboard modal.
-Needs:
-- a way of having a 'Done' button instead of 'Upload' that closes the modal but doesn't trigger upload.
 
-`transloadit.modal` opens the Dashboard and allows the user to select files.
-When the user is done, presses 'upload', files are uploaded and the modal closes.
-Promise resolves with results.
+We recommend installing from npm and then using a module bundler such as [Webpack](http://webpack.js.org/), [Browserify](http://browserify.org/) or [Rollup.js](http://rollupjs.org/).
 
-Needs:
-- `{multi: false}` option in core, so that no new files can be added once `upload()` was called
-- `{autoClose: true}` option in dashboard, that closes it once upload is complete
+Alternatively, you can also use this package in a pre-built bundle from Transloadit's CDN: Edgly.
 
-```js
-transloadit.modal({
-  params: {
-    auth: { key: '' },
-    template_id: ''
-  }
-}).then(({ successful, failed }) => {
-  // successful, failed are uppy.upload() result
-  // perhaps it could be assembly status or assembly results instead
-})
+```html
+<link rel="stylesheet" href="https://transloadit.edgly.net/releases/uppy/v0.30.2/robodog.min.css">
+<script src="https://transloadit.edgly.net/releases/uppy/v0.30.2/robodog.min.js"></script>
 ```
 
-## Installation
-
-```bash
-$ npm install @uppy/transloadit --save
-```
-
-We recommend installing from npm and then using a module bundler such as [Webpack](http://webpack.github.io/), [Browserify](http://browserify.org/) or [Rollup.js](http://rollupjs.org/).
-
-Alternatively, you can also use this plugin in a pre-built bundle from Transloadit's CDN: Edgly. In that case `Uppy` will attach itself to the global `window.Uppy` object. See the [main Uppy documentation](https://uppy.io/docs/#Installation) for instructions.
+Then, a global `Robodog` variable will be available. For usage instructions, please see the [main Robodog documentation](https://uppy.io/docs/robodog).
 
 ## Documentation
 
-Documentation for this plugin can be found on the [Uppy website](https://uppy.io/docs/transloadit).
+For further details, please read the documentation on the [Uppy website](https://uppy.io/docs/robodog)!
 
 ## License