From 183187d7a1c848fc78897ca897e5923284885ca7 Mon Sep 17 00:00:00 2001
From: Antoine du Hamel
Date: Mon, 22 Aug 2022 17:13:24 +0200
Subject: [PATCH] example: replace Robodog example with Transloadit +
RemoteSources + Form (#4027)
* example: remove Robodog example
Co-authored-by: Artur Paikin
* Update examples/transloadit/index.html
Co-authored-by: Antoine du Hamel
Co-authored-by: Artur Paikin
---
examples/transloadit/README.md | 9 ++--
examples/transloadit/index.html | 78 ++++++++++++++++---------------
examples/transloadit/main.js | 38 ++++++---------
examples/transloadit/package.json | 17 +++----
examples/transloadit/server.cjs | 28 ++++++-----
yarn.lock | 7 +--
6 files changed, 81 insertions(+), 96 deletions(-)
mode change 100644 => 100755 examples/transloadit/server.cjs
diff --git a/examples/transloadit/README.md b/examples/transloadit/README.md
index 28a149cd10..8fb41a3480 100644
--- a/examples/transloadit/README.md
+++ b/examples/transloadit/README.md
@@ -1,10 +1,7 @@
-# Robodog
+# Transloadit example
-This example shows all the different Robodog APIs in action on a single page.
-Robodog has been deprecated, so this example shows how to replicate Robodog
-features without using it. If you are new with Uppy, this example is probably
-not for you, as it is specifically aimed for Robodog users looking to migrate
-out of it.
+This example shows how to make advantage of Uppy API to upload files to
+[Transloadit](https://transloadit.com/).
## Run it
diff --git a/examples/transloadit/index.html b/examples/transloadit/index.html
index 6626d53000..22c8045904 100644
--- a/examples/transloadit/index.html
+++ b/examples/transloadit/index.html
@@ -3,7 +3,7 @@
- Robodog playground
+ Transloadit Example
-
Robodog playground
+
Uppy Transloadit playground
- This page contains small examples for every API offered by the Robodog library. Please see the Github repository for the source code.
-
+ This page contains small examples for different ways you can use Uppy with Transloadit. Please see the Github repository for the source code.
+
-
robodog.form()
+
Form
- The form API allows you to easily send files through Transloadit's encoding backend. When the user submits the form, any files are uploaded to Transloadit. The form data is then sent to your own backend, with additional data about the Transloadit Assemblies that were started.
-
+ The form API allows you to easily send files through Transloadit’s encoding backend. When the user submits the form, any files are uploaded to Transloadit. The form data is then sent to your own backend, with additional data about the Transloadit Assemblies that were started.
+
-
+
-
robodog.form() with dashboard
+
Form with inline Dashboard
- You can also use the Dashboard UI inside a plain old HTML form by specifying a dashboard: '.target-css-selector' option.
-
+ You can also use the Dashboard UI inside a plain old HTML form.
+
-
robodog.dashboard()
-
+
Inline Dashboard
The robodog.dashboard API allows you to embed a Dashboard at any location. Users can continuously upload files through this UI, so please make sure this fits your use case!
-
-
+
+
-
robodog.pick()
-
-
- This API is a one-shot upload UI using a modal overlay. Call the function and receive a Promise with upload results ✌️
+
Dashboard Modal
-
+ This API is a one-shot upload UI using a modal overlay. Call the function and receive a listen to an event with upload results ✌️
+
+
-
-
robodog.upload()
+
uppy.upload()
- An <input type=file> backed by robodog.upload:
-
+ An <input type=file> backed by uppy.upload():
+