Quellcode durchsuchen

Use new releases domain (#2608)

Kevin van Zonneveld vor 4 Jahren
Ursprung
Commit
63ac4ebdba

+ 4 - 4
CHANGELOG.md

@@ -752,15 +752,15 @@ This Release offers Dashboard redesign (Dark mode), and support for Google Docs
 This release moves `@uppy/facebook` out of beta to a `1.0.0` and adds `Uppy.Facebook` to the Uppy CDN bundle:
 
 ```
-https://transloadit.edgly.net/releases/uppy/v1.10.1/uppy.min.js
-https://transloadit.edgly.net/releases/uppy/v1.10.1/uppy.min.css
+https://releases.transloadit.com/uppy/v1.10.1/uppy.min.js
+https://releases.transloadit.com/uppy/v1.10.1/uppy.min.css
 ```
 
 - uppy: add @uppy/facebook to `uppy` NPM and CDN bundles
 - @uppy/facebook: Get Facebook integration on its feet (@ifedapoolarewaju)
 - website: Add featured customers logos (#2120 / @nqst)
 
-You can optionally download `1.10.1` release bundle: https://transloadit.edgly.net/releases/uppy/v1.10.1/uppy-v1.10.1.zip
+You can optionally download `1.10.1` release bundle: https://releases.transloadit.com/uppy/v1.10.1/uppy-v1.10.1.zip
 
 ### 1.10.0
 
@@ -2652,7 +2652,7 @@ Theme: Getting together.
 - tus: add `resumable` capability flag (@arturi)
 - tus: start fixing pause/resume issues and race conditions (@arturi)
 - test: working Uppy example on Require Bin — latest version straight from NPM http://requirebin.com/?gist=54e076cccc929cc567cb0aba38815105 (@arturi @acconut)
-- meta: update readme docs, add unpkg CDN links (https://transloadit.edgly.net/releases/uppy/v0.22.0/dist/uppy.min.css) (@arturi)
+- meta: update readme docs, add unpkg CDN links (https://releases.transloadit.com/uppy/v0.22.0/dist/uppy.min.css) (@arturi)
 - meta: write 0.10 release blog post (@arturi)
 
 ### 0.9.0

+ 4 - 4
README.md

@@ -65,7 +65,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://transloadit.edgly.net/releases/uppy/v1.22.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.22.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.
 
@@ -73,10 +73,10 @@ Alternatively, you can also use a pre-built bundle from Transloadit's CDN: Edgly
 
 ```html
 <!-- 1. Add CSS to `<head>` -->
-<link href="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
+<link href="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
 
 <!-- 2. Add JS before the closing `</body>` -->
-<script src="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.js"></script>
 
 <!-- 3. Initialize -->
 <div class="UppyDragDrop"></div>
@@ -174,7 +174,7 @@ const Uppy = require('@uppy/core')
 If you're using Uppy from CDN, `es6-promise` and `whatwg-fetch` are already included in the bundle, so no need to include anything additionally:
 
 ```html
-<script src="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.js"></script>
 ```
 
 ## FAQ

+ 3 - 3
bin/upload-to-cdn.js

@@ -5,7 +5,7 @@
 //
 //  - Assumes EDGLY_KEY and EDGLY_SECRET are available (e.g. set via Travis secrets)
 //  - Assumes a fully built uppy is in root dir (unless a specific tag was specified, then it's fetched from npm)
-//  - Collects dist/ files that would be in an npm package release, and uploads to eg. https://transloadit.edgly.net/releases/uppy/v1.0.1/uppy.css
+//  - Collects dist/ files that would be in an npm package release, and uploads to eg. https://releases.transloadit.com/uppy/v1.0.1/uppy.css
 //  - Uses local package by default, if [version] argument was specified, takes package from npm
 //
 // Run as:
@@ -37,8 +37,8 @@ function delay (ms) {
 }
 
 const AWS_REGION = 'us-east-1'
-const AWS_BUCKET = 'crates.edgly.net'
-const AWS_DIRECTORY = '756b8efaed084669b02cb99d4540d81f/default'
+const AWS_BUCKET = 'releases.transloadit.com'
+const AWS_DIRECTORY = 'uppy'
 
 /**
  * Get remote dist/ files by fetching the tarball for the given version

+ 2 - 2
examples/cdn-example/index.html

@@ -4,11 +4,11 @@
     <title></title>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <link href="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
+    <link href="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
   </head>
   <body>
     <button id="uppyModalOpener">Open Modal</button>
-    <script src="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
+    <script src="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.js"></script>
     <script>
       const uppy = Uppy.Core({debug: true, autoProceed: false})
         .use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })

+ 1 - 1
examples/transloadit-textarea/index.html

@@ -2,7 +2,7 @@
 <html>
   <head>
     <meta charset="utf-8">
-    <link rel="stylesheet" href="https://transloadit.edgly.net/releases/uppy/robodog/v1.9.9/robodog.css">
+    <link rel="stylesheet" href="https://releases.transloadit.com/uppy/robodog/v1.9.9/robodog.css">
     <style>
       body {
         font-family: Roboto, Open Sans;

+ 2 - 2
examples/uppy-with-companion/client/index.html

@@ -4,11 +4,11 @@
     <title></title>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <link href="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
+    <link href="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
   </head>
   <body>
     <button id="uppyModalOpener">Open Modal</button>
-    <script src="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
+    <script src="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.js"></script>
     <script>
       const uppy = Uppy.Core({debug: true, autoProceed: false})
         .use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })

+ 2 - 2
packages/@uppy/robodog/README.md

@@ -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://transloadit.edgly.net/releases/uppy/v1.22.0/robodog.min.css">
-<script src="https://transloadit.edgly.net/releases/uppy/v1.22.0/robodog.min.js"></script>
+<link rel="stylesheet" href="https://releases.transloadit.com/uppy/v1.22.0/robodog.min.css">
+<script src="https://releases.transloadit.com/uppy/v1.22.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).

+ 1 - 1
website/inject.js

@@ -222,7 +222,7 @@ function injectLocaleList () {
     const languageName = LocaleCode.getLanguageName(localeNameWithDash)
     const countryName = LocaleCode.getCountryName(localeNameWithDash)
     const npmPath = `<code class="raw"><a href="https://www.npmjs.com/package/@uppy/locales">@uppy/locales</a>/lib/${localeName}</code>`
-    const cdnPath = `[\`${localeName}.min.js\`](https://transloadit.edgly.net/releases/uppy/locales/v${localePackageVersion}/${localeName}.min.js)`
+    const cdnPath = `[\`${localeName}.min.js\`](https://releases.transloadit.com/uppy/locales/v${localePackageVersion}/${localeName}.min.js)`
     const githubSource = `[\`${localeName}.js\`](https://github.com/transloadit/uppy/blob/master/packages/%40uppy/locales/src/${localeName}.js)`
     const mdTableRow = `| ${languageName}<br/> <small>${countryName}</small>${variant ? `<br /><small>(${variant})</small>` : ''} | ${npmPath} | ${cdnPath} | ✏️ ${githubSource} |`
     mdRows.push(mdTableRow)

+ 2 - 2
website/src/_posts/2019-03-0.30.md

@@ -44,8 +44,8 @@ npm install @uppy/robodog --save
 Or import it by using an HTML script tag:
 
 ```html
-<link rel="stylesheet" href="https://transloadit.edgly.net/releases/uppy/v0.30.3/robodog.min.css">
-<script src="https://transloadit.edgly.net/releases/uppy/v0.30.3/robodog.min.js"></script>
+<link rel="stylesheet" href="https://releases.transloadit.com/uppy/v0.30.3/robodog.min.css">
+<script src="https://releases.transloadit.com/uppy/v0.30.3/robodog.min.js"></script>
 ```
 
 <center><img src="https://media.giphy.com/media/MqGA1Za9ar6lG/giphy.gif"></center>

+ 2 - 2
website/src/_posts/2019-04-liftoff-23.md

@@ -27,8 +27,8 @@ and if you'd use the CDN version of Uppy (instead of bundling and hosting yourse
 
 
 ```html
-<script src="https://transloadit.edgly.net/releases/uppy/v0.30.5/uppy.min.js"></script>
-<script src="https://transloadit.edgly.net/releases/uppy/v0.30.5/locales/ru_RU.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/v0.30.5/uppy.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/v0.30.5/locales/ru_RU.min.js"></script>
 <script>
 var uppy = Uppy.Core({ 
   locale: Uppy.locales.ru_RU

+ 1 - 1
website/src/_posts/2020-03-1.9.md

@@ -89,7 +89,7 @@ See [PR #1918](https://github.com/transloadit/uppy/pull/1918) for all the detail
 Uppy is now available as a downloadable ZIP archive from the Transloadit CDN! NPM down? Don’t like build tools? Looking for a quick way to play around with Uppy? We’ve got you covered:
 
 ```
-https://transloadit.edgly.net/releases/uppy/v1.9.3/uppy-v1.9.3.zip
+https://releases.transloadit.com/uppy/v1.9.3/uppy-v1.9.3.zip
 ```
 
 ## Locales

+ 1 - 1
website/src/_posts/2020-03-custom-providers.md

@@ -544,7 +544,7 @@ module.exports = (api) => {
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>Uppy Custom provider Example</title>
-    <link href="https://transloadit.edgly.net/releases/uppy/v1.15.0/uppy.min.css" rel="stylesheet">
+    <link href="https://releases.transloadit.com/uppy/v1.15.0/uppy.min.css" rel="stylesheet">
   </head>
   <body>
     <script src="bundle.js"></script>

+ 5 - 5
website/src/docs/index.md

@@ -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://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
+    <link href="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
   </head>
   <body>
     <div id="drag-drop-area"></div>
 
-    <script src="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
+    <script src="https://releases.transloadit.com/uppy/v1.22.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://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.js"></script>
 ```
 
 2\. Add CSS to `<head>`:
 ``` html
-<link href="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
+<link href="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
 ```
 
 3\. Initialize at the bottom of the closing `</body>` tag:
@@ -174,5 +174,5 @@ const Uppy = require('@uppy/core')
 If you're using Uppy from CDN, `es6-promise` and  `whatwg-fetch` are already included in the bundle, no need to include anything additionally:
 
 ```html
-<script src="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.js"></script>
 ```

+ 2 - 2
website/src/docs/locales.md

@@ -33,8 +33,8 @@ 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://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
-<script src="https://transloadit.edgly.net/releases/uppy/locales/v1.16.9/de_DE.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/locales/v1.16.9/de_DE.min.js"></script>
 
 <script>
 var uppy = Uppy.Core({

+ 4 - 4
website/src/docs/robodog-form.md

@@ -136,7 +136,7 @@ $(selector).transloadit({
 ```
 ```html
 <!-- The new Robodog way! -->
-<script src="//transloadit.edgly.net/releases/uppy/robodog/v1.9.9/robodog.min.js"></script>
+<script src="//releases.transloadit.com/uppy/robodog/v1.9.9/robodog.min.js"></script>
 
 <script>
 window.Robodog.form(selector, {
@@ -148,7 +148,7 @@ window.Robodog.form(selector, {
 Make sure to also include the Uppy css file in your `<head>` tag in case you want to use the `modal: true` option:
 ```html
 <head>
-  <link rel="stylesheet" href="https://transloadit.edgly.net/releases/uppy/robodog/v1.9.9/robodog.min.css">
+  <link rel="stylesheet" href="https://releases.transloadit.com/uppy/robodog/v1.9.9/robodog.min.css">
 </head>
 ```
 
@@ -160,7 +160,7 @@ Notice how the form is submitted to the inexistant `/uploads` route once all tra
 <html>
   <head>
     <title>Testing Robodog</title>
-    <link rel="stylesheet" href="https://transloadit.edgly.net/releases/uppy/robodog/v1.9.9/robodog.min.css">
+    <link rel="stylesheet" href="https://releases.transloadit.com/uppy/robodog/v1.9.9/robodog.min.css">
   </head>
   <body>
     <form id="upload-form" action="/uploads" enctype="multipart/form-data" method="POST">
@@ -170,7 +170,7 @@ Notice how the form is submitted to the inexistant `/uploads` route once all tra
       <button type="submit">Upload</button>
     </form>
 
-    <script src="https://transloadit.edgly.net/releases/uppy/robodog/v1.9.9/robodog.min.js"></script>
+    <script src="https://releases.transloadit.com/uppy/robodog/v1.9.9/robodog.min.js"></script>
     <script type="text/javascript">
     window.Robodog.form('#upload-form', {
       waitForEncoding: true,

+ 2 - 2
website/src/docs/robodog.md

@@ -31,8 +31,8 @@ require('@uppy/robodog/dist/robodog.css')
 If you are not using a bundler, you can also import Robodog using an HTML script tag.
 
 ```html
-<link rel="stylesheet" href="https://transloadit.edgly.net/releases/uppy/robodog/v1.9.9/robodog.min.css">
-<script src="https://transloadit.edgly.net/releases/uppy/robodog/v1.9.9/robodog.min.js"></script>
+<link rel="stylesheet" href="https://releases.transloadit.com/uppy/robodog/v1.9.9/robodog.min.css">
+<script src="https://releases.transloadit.com/uppy/robodog/v1.9.9/robodog.min.js"></script>
 <!-- you can now use: window.Robodog.pick() -->
 ```
 

+ 1 - 1
website/src/examples/dashboard/app.es6

@@ -185,7 +185,7 @@ function loadLocaleFromCDN (localeName) {
   var head = document.getElementsByTagName('head')[0]
   var js = document.createElement('script')
   js.type = 'text/javascript'
-  js.src = `https://transloadit.edgly.net/releases/uppy/locales/v1.16.9/${localeName}.min.js`
+  js.src = `https://releases.transloadit.com/uppy/locales/v1.16.9/${localeName}.min.js`
 
   head.appendChild(js)
 }

+ 9 - 9
website/src/examples/i18n/app.html

@@ -1,7 +1,7 @@
-<!-- Load Uppy CSS bundle. It is advisable to install Uppy 
+<!-- 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://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.css">
+<link rel="stylesheet" href="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.css">
 
 <div class="UppyDragDrop"></div>
 <div class="for-ProgressBar"></div>
@@ -12,11 +12,11 @@
 </div>
 
 <!-- Load Uppy JS bundle. -->
-<script src="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
-<script src="https://transloadit.edgly.net/releases/uppy/locales/v1.16.9/ru_RU.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.js"></script>
+<script src="https://releases.transloadit.com/uppy/locales/v1.16.9/ru_RU.min.js"></script>
 <script>
-  var uppy = Uppy.Core({ 
-    debug: true, 
+  var uppy = Uppy.Core({
+    debug: true,
     autoProceed: true,
     locale: Uppy.locales.ru_RU
   });
@@ -30,15 +30,15 @@
       }
     }
   });
-  uppy.use(Uppy.ProgressBar, { 
+  uppy.use(Uppy.ProgressBar, {
     target: '.for-ProgressBar',
-     hideAfterFinish: false 
+     hideAfterFinish: false
   });
   uppy.use(Uppy.Tus, { endpoint: 'https://master.tus.io/files/' });
   uppy.on('upload-success', function (file, response) {
     var url = response.uploadURL
     var fileName = file.name
-  
+
     document.querySelector('.uploaded-files ol').innerHTML +=
       '<li><a href="' + url + '" target="_blank">' + fileName + '</a></li>'
   });

+ 1 - 1
website/src/examples/markdown-snippets/app.es6

@@ -3,7 +3,7 @@ const marked = require('marked')
 const dragdrop = require('drag-drop')
 // Add Robodog JS. It is advisable to install Robodog from npm/yarn.
 // But for experimenting, you can use also Transloadit’s CDN, Edgly:
-// <script src="https://transloadit.edgly.net/releases/uppy/robodog/v1.9.9/robodog.min.js"></script>
+// <script src="https://releases.transloadit.com/uppy/robodog/v1.9.9/robodog.min.js"></script>
 const robodog = require('@uppy/robodog')
 
 const TRANSLOADIT_EXAMPLE_KEY = '35c1aed03f5011e982b6afe82599b6a0'

+ 1 - 1
website/src/examples/markdown-snippets/app.html

@@ -1,6 +1,6 @@
 <!-- Add Robodog styles. It is advisable to install Robodog from npm/yarn.
   But for experimenting, you can use also Transloadit’s CDN, Edgly:
-  <link rel="stylesheet" href="https://transloadit.edgly.net/releases/uppy/robodog/v1.9.9/robodog.min.css"> -->
+  <link rel="stylesheet" href="https://releases.transloadit.com/uppy/robodog/v1.9.9/robodog.min.css"> -->
   <link rel="stylesheet" href="/uppy/robodog.min.css">
   <form id="new" class="form-snippet">
     <h2>Create a new snippet</h2>

+ 2 - 2
website/themes/uppy/layout/index.ejs

@@ -167,8 +167,8 @@
   <p>© <%- date(Date.now(), 'YYYY') %> <a href="https://transloadit.com" target="_blank">Transloadit</a></p>
 </footer>
 
-<link href="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
-<script src="https://transloadit.edgly.net/releases/uppy/v1.22.0/uppy.min.js"></script>
+<link href="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.css" rel="stylesheet">
+<script src="https://releases.transloadit.com/uppy/v1.22.0/uppy.min.js"></script>
 
 <script>
   var TUS_ENDPOINT = 'https://master.tus.io/files/'