Renée Kooi 6 rokov pred
rodič
commit
6376d68fd5

+ 5 - 5
bin/build-js.js

@@ -35,7 +35,7 @@ function buildBundle (srcFile, bundleFile, { minify = false } = {}) {
 }
 }
 
 
 mkdirp.sync('./packages/uppy/dist')
 mkdirp.sync('./packages/uppy/dist')
-mkdirp.sync('./packages/@uppy/transloadit-wrapper/dist')
+mkdirp.sync('./packages/@uppy/robodog/dist')
 
 
 Promise.all([
 Promise.all([
   buildBundle(
   buildBundle(
@@ -48,12 +48,12 @@ Promise.all([
     { minify: true }
     { minify: true }
   ),
   ),
   buildBundle(
   buildBundle(
-    './packages/@uppy/transloadit-wrapper/bundle.js',
-    './packages/@uppy/transloadit-wrapper/dist/transloadit.js'
+    './packages/@uppy/robodog/bundle.js',
+    './packages/@uppy/robodog/dist/transloadit.js'
   ),
   ),
   buildBundle(
   buildBundle(
-    './packages/@uppy/transloadit-wrapper/bundle.js',
-    './packages/@uppy/transloadit-wrapper/dist/transloadit.min.js',
+    './packages/@uppy/robodog/bundle.js',
+    './packages/@uppy/robodog/dist/transloadit.min.js',
     { minify: true }
     { minify: true }
   )
   )
 ]).then(function () {
 ]).then(function () {

+ 1 - 1
examples/transloadit-textarea/main.js

@@ -1,7 +1,7 @@
 /* eslint-env browser */
 /* eslint-env browser */
 const marked = require('marked')
 const marked = require('marked')
 const dragdrop = require('drag-drop')
 const dragdrop = require('drag-drop')
-const transloadit = require('@uppy/transloadit-wrapper')
+const transloadit = require('@uppy/robodog')
 
 
 // TOP SECRET!!!!!!!
 // TOP SECRET!!!!!!!
 const TRANSLOADIT_KEY = '05a61ed019fe11e783fdbd1f56c73eb0'
 const TRANSLOADIT_KEY = '05a61ed019fe11e783fdbd1f56c73eb0'

+ 1 - 1
examples/transloadit/main.js

@@ -1,4 +1,4 @@
-const transloadit = require('@uppy/transloadit-wrapper')
+const transloadit = require('@uppy/robodog')
 
 
 /**
 /**
  * transloadit.form
  * transloadit.form

+ 1 - 1
examples/transloadit/package-lock.json

@@ -1,5 +1,5 @@
 {
 {
-  "name": "uppy-transloadit-wrapper-example",
+  "name": "uppy-robodog-example",
   "requires": true,
   "requires": true,
   "lockfileVersion": 1,
   "lockfileVersion": 1,
   "dependencies": {
   "dependencies": {

+ 1 - 1
examples/transloadit/package.json

@@ -1,6 +1,6 @@
 {
 {
   "private": true,
   "private": true,
-  "name": "uppy-transloadit-wrapper-example",
+  "name": "uppy-robodog-example",
   "scripts": {
   "scripts": {
     "css": "cp ../../packages/uppy/dist/uppy.min.css .",
     "css": "cp ../../packages/uppy/dist/uppy.min.css .",
     "start": "npm run css && (node server & budo main.js:bundle.js -- -t babelify -g aliasify & wait)"
     "start": "npm run css && (node server & budo main.js:bundle.js -- -t babelify -g aliasify & wait)"

+ 0 - 0
packages/@uppy/transloadit-wrapper/LICENSE → packages/@uppy/robodog/LICENSE


+ 1 - 1
packages/@uppy/transloadit-wrapper/README.md → packages/@uppy/robodog/README.md

@@ -20,7 +20,7 @@ Uploads files on form submission, adds results to a hidden input,
 then really submits the form.
 then really submits the form.
 
 
 ```js
 ```js
-const transloadit = require('@uppy/transloadit-wrapper')
+const transloadit = require('@uppy/robodog')
 
 
 transloadit.form('#form', {
 transloadit.form('#form', {
   params: {
   params: {

+ 0 - 0
packages/@uppy/transloadit-wrapper/bundle.js → packages/@uppy/robodog/bundle.js


+ 1 - 1
packages/@uppy/transloadit-wrapper/package.json → packages/@uppy/robodog/package.json

@@ -1,5 +1,5 @@
 {
 {
-  "name": "@uppy/transloadit-wrapper",
+  "name": "@uppy/robodog",
   "description": "Transloadit SDK for browsers based on Uppy",
   "description": "Transloadit SDK for browsers based on Uppy",
   "version": "0.0.0",
   "version": "0.0.0",
   "license": "MIT",
   "license": "MIT",

+ 0 - 0
packages/@uppy/transloadit-wrapper/src/AttachFileInputs.js → packages/@uppy/robodog/src/AttachFileInputs.js


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/TransloaditFormResult.js → packages/@uppy/robodog/src/TransloaditFormResult.js


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/TransloaditResultsPlugin.js → packages/@uppy/robodog/src/TransloaditResultsPlugin.js


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/addProviders.js → packages/@uppy/robodog/src/addProviders.js


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/addTransloaditPlugin.js → packages/@uppy/robodog/src/addTransloaditPlugin.js


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/createUppy.js → packages/@uppy/robodog/src/createUppy.js


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/form.js → packages/@uppy/robodog/src/form.js


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/index.js → packages/@uppy/robodog/src/index.js


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/pick.js → packages/@uppy/robodog/src/pick.js


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/style.scss → packages/@uppy/robodog/src/style.scss


+ 0 - 0
packages/@uppy/transloadit-wrapper/src/upload.js → packages/@uppy/robodog/src/upload.js


+ 8 - 8
website/src/docs/transloadit-wrapper-form.md

@@ -1,9 +1,9 @@
 ---
 ---
 type: docs
 type: docs
 order: 12
 order: 12
-title: "Transloadit Wrapper: Form API"
+title: "Robodog: Form API"
 menu: "Form"
 menu: "Form"
-permalink: docs/transloadit-wrapper/form/
+permalink: docs/robodog/form/
 ---
 ---
 
 
 Add resumable uploads and Transloadit's processing to your existing HTML upload forms. Selected files will be uploaded to Transloadit, and the Assembly information will be submitted to your form endpoint.
 Add resumable uploads and Transloadit's processing to your existing HTML upload forms. Selected files will be uploaded to Transloadit, and the Assembly information will be submitted to your form endpoint.
@@ -60,7 +60,7 @@ If provided, the [`<input accept>`](https://developer.mozilla.org/en-US/docs/Web
 
 
 ## Progress Reporting
 ## Progress Reporting
 
 
-Uploads using HTML forms have no builtin progress reporting. With the Transloadit Wrapper, you can use the `statusBar` option to show an [@uppy/status-bar](/docs/status-bar): an element styled like a progress bar, reporting both upload and Assembly execution progress.
+Uploads using HTML forms have no builtin progress reporting. With the Robodog, you can use the `statusBar` option to show an [@uppy/status-bar](/docs/status-bar): an element styled like a progress bar, reporting both upload and Assembly execution progress.
 
 
 Point it to an element or a CSS selector:
 Point it to an element or a CSS selector:
 
 
@@ -88,7 +88,7 @@ The progress bar will be inserted _into_ that element (thus _not_ replace it).
 
 
 We now recommend using Uppy over the jQuery SDK. Uppy is framework- and library-agnostic, and much more extensible.
 We now recommend using Uppy over the jQuery SDK. Uppy is framework- and library-agnostic, and much more extensible.
 
 
-Like the Transloadit jQuery SDK, this API enhances an existing form. That makes this a good candidate for migration. Most of the jQuery SDK options have a direct equivalent in the Transloadit Wrapper.
+Like the Transloadit jQuery SDK, this API enhances an existing form. That makes this a good candidate for migration. Most of the jQuery SDK options have a direct equivalent in the Robodog.
 
 
 First, change your import URLs and initialization code:
 First, change your import URLs and initialization code:
 
 
@@ -102,8 +102,8 @@ $(selector).transloadit({
 </script>
 </script>
 ```
 ```
 ```html
 ```html
-<!-- The new Transloadit Wrapper way! -->
-<script src="//transloadit.edgly.net/transloadit-wrapper/v1.0.0/dist/transloadit.js"></script>
+<!-- The new Robodog way! -->
+<script src="//transloadit.edgly.net/robodog/v1.0.0/dist/transloadit.js"></script>
 <script>
 <script>
 transloadit.form(selector, {
 transloadit.form(selector, {
   ...options
   ...options
@@ -115,7 +115,7 @@ The equivalent options are listed below.
 
 
 ### Options
 ### Options
 
 
-| jQuery option | Transloadit Wrapper option |
+| jQuery option | Robodog option |
 |---------------|---------------------------|
 |---------------|---------------------------|
 | `service` | `service` |
 | `service` | `service` |
 | `region` | Not supported, instead set the `service` option to `https://api2-regionname.transloadit.com` |
 | `region` | Not supported, instead set the `service` option to `https://api2-regionname.transloadit.com` |
@@ -144,7 +144,7 @@ As for the options that are unavailable:
 
 
 The `transloadit.form()` method returns an Uppy object, so you can listen to events there. There are no `on*()` _options_ anymore, but an `.on('*')` method is provided instead.
 The `transloadit.form()` method returns an Uppy object, so you can listen to events there. There are no `on*()` _options_ anymore, but an `.on('*')` method is provided instead.
 
 
-| jQuery option | Transloadit Wrapper Event |
+| jQuery option | Robodog Event |
 |---------------|--------------------------|
 |---------------|--------------------------|
 | `onStart` | `uppy.on('transloadit:assembly-created')` |
 | `onStart` | `uppy.on('transloadit:assembly-created')` |
 | `onExecuting` | `uppy.on('transloadit:assembly-executing')` |
 | `onExecuting` | `uppy.on('transloadit:assembly-executing')` |

+ 2 - 2
website/src/docs/transloadit-wrapper-picker.md

@@ -1,8 +1,8 @@
 ---
 ---
 type: docs
 type: docs
-title: "Transloadit Wrapper: File Picker API"
+title: "Robodog: File Picker API"
 menu: "File Picker"
 menu: "File Picker"
-permalink: docs/transloadit-wrapper/picker/
+permalink: docs/robodog/picker/
 order: 11
 order: 11
 ---
 ---
 
 

+ 2 - 2
website/src/docs/transloadit-wrapper-upload.md

@@ -1,8 +1,8 @@
 ---
 ---
 type: docs
 type: docs
-title: "Transloadit Wrapper: Upload API"
+title: "Robodog: Upload API"
 menu: "Upload"
 menu: "Upload"
-permalink: docs/transloadit-wrapper/upload/
+permalink: docs/robodog/upload/
 order: 13
 order: 13
 ---
 ---
 
 

+ 14 - 14
website/src/docs/transloadit-wrapper.md

@@ -1,40 +1,40 @@
 ---
 ---
 type: docs
 type: docs
 order: 10
 order: 10
-title: "Transloadit Wrapper"
+title: "Robodog"
 menu: "Introduction"
 menu: "Introduction"
-module: "@uppy/transloadit-wrapper"
-permalink: docs/transloadit-wrapper/
+module: "@uppy/robodog"
+permalink: docs/robodog/
 ---
 ---
 
 
 [Transloadit][transloadit] is a service that helps you handle file uploads, resize, crop and watermark your images, make GIFs, transcode your videos, extract thumbnails, generate audio waveforms, and so much more. In short, [Transloadit][transloadit] is the Swiss Army Knife for your files.
 [Transloadit][transloadit] is a service that helps you handle file uploads, resize, crop and watermark your images, make GIFs, transcode your videos, extract thumbnails, generate audio waveforms, and so much more. In short, [Transloadit][transloadit] is the Swiss Army Knife for your files.
 
 
-The Transloadit Wrapper is an Uppy-based library that helps you talk to the Transloadit API. It includes a modal UI file picker with support for imports from third-party services, integration with HTML forms, and more. Because it's based on Uppy, you can add any existing Uppy plugin to add more functionality.
+Robodog is an Uppy-based library that helps you talk to the Transloadit API. It includes a modal UI file picker with support for imports from third-party services, integration with HTML forms, and more. Because it's based on Uppy, you can add any existing Uppy plugin to add more functionality.
 
 
 ## Install
 ## Install
 
 
-The Transloadit Wrapper can be downloaded from npm:
+Robodog can be downloaded from npm:
 
 
 ```shell
 ```shell
-npm install --save @uppy/transloadit-wrapper
+npm install --save @uppy/robodog
 ```
 ```
 
 
 Then, with a bundler such as [webpack][webpack] or [Browserify][browserify], do:
 Then, with a bundler such as [webpack][webpack] or [Browserify][browserify], do:
 
 
 ```js
 ```js
-const transloadit = require('@uppy/transloadit-wrapper')
+const transloadit = require('@uppy/robodog')
 ```
 ```
 
 
-If you are not using a bundler, you can also import the Transloadit Wrapper using an HTML script tag.
+If you are not using a bundler, you can also import the Robodog using an HTML script tag.
 
 
 ```html
 ```html
-<link rel="stylesheet" href="https://transloadit.edgly.net/releases/transloadit-wrapper/v1.0.0/dist/style.min.css">
-<script src="https://transloadit.edgly.net/releases/transloadit-wrapper/v1.0.0/dist/transloadit.min.js"></script>
+<link rel="stylesheet" href="https://transloadit.edgly.net/releases/robodog/v1.0.0/dist/style.min.css">
+<script src="https://transloadit.edgly.net/releases/robodog/v1.0.0/dist/transloadit.min.js"></script>
 ```
 ```
 
 
 ## Methods
 ## Methods
 
 
-The Transloadit Wrapper has several methods for different use cases.
+Robodog has several methods for different use cases.
 
 
 If you want to have a modal UI that users can use to select files from their local device or from third party sources like Instagram, use the [File Picker API](#File-Picker). This can be used for one-off uploads _outside_ an HTML form, like profile avatars or images to embed in a blog post.
 If you want to have a modal UI that users can use to select files from their local device or from third party sources like Instagram, use the [File Picker API](#File-Picker). This can be used for one-off uploads _outside_ an HTML form, like profile avatars or images to embed in a blog post.
 
 
@@ -59,7 +59,7 @@ const resultPromise = transloadit.pick('body', {
 
 
 **ADD IMAGE OR GIF HERE**
 **ADD IMAGE OR GIF HERE**
 
 
-<a class="MoreButton" href="/docs/transloadit-wrapper/picker">View Documentation</a>
+<a class="MoreButton" href="/docs/robodog/picker">View Documentation</a>
 
 
 ## Form
 ## Form
 
 
@@ -82,7 +82,7 @@ transloadit.form('form#myForm', {
 </script>
 </script>
 ```
 ```
 
 
-<a class="MoreButton" href="/docs/transloadit-wrapper/form">View Documentation</a>
+<a class="MoreButton" href="/docs/robodog/form">View Documentation</a>
 
 
 ## Programmatic Uploads
 ## Programmatic Uploads
 
 
@@ -97,7 +97,7 @@ const resultPromise = transloadit.upload(files, {
 })
 })
 ```
 ```
 
 
-<a class="MoreButton" href="/docs/transloadit-wrapper/upload">View Documentation</a>
+<a class="MoreButton" href="/docs/robodog/upload">View Documentation</a>
 
 
 [transloadit]: https://transloadit.com/
 [transloadit]: https://transloadit.com/
 [browserify]: https://browserify.org
 [browserify]: https://browserify.org

+ 1 - 1
website/themes/uppy/layout/partials/sidebar.ejs

@@ -1,7 +1,7 @@
 <%
 <%
 var categories = [
 var categories = [
   // order: 1x
   // order: 1x
-  { path: 'docs/transloadit-wrapper/', name: 'Transloadit Wrapper', link: true },
+  { path: 'docs/robodog/', name: 'Robodog', link: true },
   // order: 2x
   // order: 2x
   { path: 'docs/plugins/', name: 'Plugins', link: true },
   { path: 'docs/plugins/', name: 'Plugins', link: true },
   // order: 3x
   // order: 3x