mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
Roll back the CDN urls — v2.0.0-alpha.0 is not on CDN
This commit is contained in:
parent
113b627dd0
commit
f19f885a37
9 changed files with 21 additions and 21 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# Uppy
|
||||
|
||||
Hi, thanks for trying out the bundled version of the Uppy File Uploader. You can use
|
||||
this from a CDN (e.g. `<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>`) or bundle it with your webapp.
|
||||
this from a CDN (e.g. `<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>`) or bundle it with your webapp.
|
||||
|
||||
Note that the recommended way to use Uppy is to install it with yarn/npm and use a
|
||||
bundler like Webpack so that you can create a smaller custom build with just the
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ $ npm install @uppy/core @uppy/dashboard @uppy/tus
|
|||
|
||||
We recommend installing from npm and then using a module bundler such as [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Rollup.js](http://rollupjs.org/).
|
||||
|
||||
Add CSS [uppy.min.css](https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.css), either to your HTML page's `<head>` or include in JS, if your bundler of choice supports it — transforms and plugins are available for Browserify and Webpack.
|
||||
Add CSS [uppy.min.css](https://releases.transloadit.com/uppy/v1.31.0/uppy.min.css), either to your HTML page's `<head>` or include in JS, if your bundler of choice supports it — transforms and plugins are available for Browserify and Webpack.
|
||||
|
||||
Alternatively, you can also use a pre-built bundle from Transloadit's CDN: Edgly. In that case `Uppy` will attach itself to the global `window.Uppy` object.
|
||||
|
||||
|
|
@ -77,10 +77,10 @@ Alternatively, you can also use a pre-built bundle from Transloadit's CDN: Edgly
|
|||
|
||||
```html
|
||||
<!-- 1. Add CSS to `<head>` -->
|
||||
<link href="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.css" rel="stylesheet">
|
||||
<link href="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.css" rel="stylesheet">
|
||||
|
||||
<!-- 2. Add JS before the closing `</body>` -->
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
|
||||
<!-- 3. Initialize -->
|
||||
<div class="UppyDragDrop"></div>
|
||||
|
|
@ -190,7 +190,7 @@ If you're using Uppy from CDN, those polyfills are already included in the legac
|
|||
bundle, so no need to include anything additionally:
|
||||
|
||||
```html
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
```
|
||||
|
||||
## FAQ
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
<title></title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.css" rel="stylesheet">
|
||||
<link href="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<button id="uppyModalOpener">Open Modal</button>
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
<script>
|
||||
const uppy = Uppy.Core({debug: true, autoProceed: false})
|
||||
.use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
<title></title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.css" rel="stylesheet">
|
||||
<link href="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<button id="uppyModalOpener">Open Modal</button>
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
<script>
|
||||
const uppy = Uppy.Core({debug: true, autoProceed: false})
|
||||
.use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ We recommend installing from npm and then using a module bundler such as [Webpac
|
|||
Alternatively, you can also use this package in a pre-built bundle from Transloadit's CDN: Edgly.
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/robodog.min.css">
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/robodog.min.js"></script>
|
||||
<link rel="stylesheet" href="https://releases.transloadit.com/uppy/v1.31.0/robodog.min.css">
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/robodog.min.js"></script>
|
||||
```
|
||||
|
||||
Then, a global `Robodog` variable will be available. For usage instructions, please see the [main Robodog documentation](https://uppy.io/docs/robodog).
|
||||
|
|
|
|||
|
|
@ -19,12 +19,12 @@ Here’s the simplest example html page with Uppy (it uses a CDN bundle, while w
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Uppy</title>
|
||||
<link href="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.css" rel="stylesheet">
|
||||
<link href="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="drag-drop-area"></div>
|
||||
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
<script>
|
||||
var uppy = Uppy.Core()
|
||||
.use(Uppy.Dashboard, {
|
||||
|
|
@ -118,12 +118,12 @@ You can also use a pre-built bundle from Transloadit's CDN: Edgly. `Uppy` will a
|
|||
1\. Add a script at the bottom of the closing `</body>` tag:
|
||||
|
||||
``` html
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
```
|
||||
|
||||
2\. Add CSS to `<head>`:
|
||||
``` html
|
||||
<link href="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.css" rel="stylesheet">
|
||||
<link href="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.css" rel="stylesheet">
|
||||
```
|
||||
|
||||
3\. Initialize at the bottom of the closing `</body>` tag:
|
||||
|
|
@ -184,5 +184,5 @@ export * from '@uppy/core'
|
|||
If you're using Uppy from CDN, those polyfills are already included in the bundle, no need to include anything additionally:
|
||||
|
||||
```html
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
```
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ const uppy = new Uppy({
|
|||
Add a `<script>` tag with Uppy bundle and the locale pack you’d like to use. You can copy/paste the link from the CDN column in the [locales table](#List-of-locale-packs). The locale will attach itself to the `Uppy.locales` object.
|
||||
|
||||
```html
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/locales/v2.0.0-alpha.0/de_DE.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!-- Load Uppy CSS bundle. It is advisable to install Uppy
|
||||
from npm/yarn instead, and pick and choose the plugins/styles you need.
|
||||
But for experimenting, you can use Transloadit’s CDN, Edgly: -->
|
||||
<link rel="stylesheet" href="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.css">
|
||||
<link rel="stylesheet" href="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.css">
|
||||
|
||||
<div class="UppyDragDrop"></div>
|
||||
<div class="for-ProgressBar"></div>
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Load Uppy JS bundle. -->
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
<script src="https://releases.transloadit.com/uppy/locales/v2.0.0-alpha.0/ru_RU.min.js"></script>
|
||||
<script>
|
||||
var uppy = Uppy.Core({
|
||||
|
|
|
|||
|
|
@ -187,8 +187,8 @@
|
|||
<p>© <%- date(Date.now(), 'YYYY') %> <a href="https://transloadit.com" target="_blank">Transloadit</a></p>
|
||||
</footer>
|
||||
|
||||
<link href="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.css" rel="stylesheet">
|
||||
<script src="https://releases.transloadit.com/uppy/v2.0.0-alpha.0/uppy.min.js"></script>
|
||||
<link href="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.css" rel="stylesheet">
|
||||
<script src="https://releases.transloadit.com/uppy/v1.31.0/uppy.min.js"></script>
|
||||
|
||||
<script>
|
||||
var TUS_ENDPOINT = 'https://tusd.tusdemo.net/files/'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue