Ver código fonte

Post-release website fixes (#4038)

Merlijn Vos 2 anos atrás
pai
commit
ff32dde1fd

+ 1 - 0
packages/@uppy/utils/package.json

@@ -60,6 +60,7 @@
     "./lib/hasProperty": "./lib/hasProperty.js",
     "./lib/mimeTypes": "./lib/mimeTypes.js",
     "./lib/getDroppedFiles": "./lib/getDroppedFiles/index.js",
+    "./lib/FOCUSABLE_ELEMENTS.js": "./lib/FOCUSABLE_ELEMENTS.js",
     "./src/microtip.scss": "./src/microtip.scss"
   },
   "dependencies": {

+ 0 - 3
website/src/docs/file-input.md

@@ -87,9 +87,6 @@ The `name` attribute for the `<input type="file">` element.
 ```js
 export default {
   strings: {
-    // The same key is used for the same purpose by @uppy/robodog's `form()` API, but our
-    // locale pack scripts can't access it in Robodog. If it is updated here, it should
-    // also be updated there!
     chooseFiles: 'Choose files',
   },
 }

+ 1 - 1
website/src/docs/image-editor.md

@@ -4,7 +4,7 @@ order: 2
 title: "Image Editor"
 module: "@uppy/image-editor"
 permalink: docs/image-editor/
-category: "File Processing"
+category: "Miscellaneous"
 tagline: "allows users to crop, rotate, zoom and flip images that are added to Uppy"
 ---
 

+ 4 - 15
website/src/docs/migration-guides.md

@@ -34,7 +34,7 @@ import ScreenCapture from '@uppy/screen-capture'
 import GoldenRetriever from '@uppy/golden-retriever'
 import ImageEditor from '@uppy/image-editor'
 import Audio from '@uppy/audio'
-import Transloadit from '@uppy/transloadit'
+import Transloadit, { COMPANION_URL, COMPANION_ALLOWED_HOSTS } from '@uppy/transloadit'
 
 import '@uppy/core/dist/style.css'
 import '@uppy/dashboard/dist/style.css'
@@ -42,12 +42,6 @@ import '@uppy/audio/dist/style.css'
 import '@uppy/screen-capture/dist/style.css'
 import '@uppy/image-editor/dist/style.css'
 
-const {
-  COMPANION_URL,
-  COMPANION_ALLOWED_HOSTS,
-  TRANSLOADIT_SERVICE_URL,
-} = import.meta.env
-
 new Uppy()
   .use(Dashboard, {
     inline: true,
@@ -71,7 +65,7 @@ new Uppy()
   .use(ScreenCapture, { target: Dashboard })
   .use(ImageEditor, { target: Dashboard })
   .use(Transloadit, {
-    service: TRANSLOADIT_SERVICE_URL,
+    service: 'https://api2.transloadit.com',
     async getAssemblyOptions (file) {
       // This is where you configure your auth key, auth secret, and template ID
       // https://uppy.io/docs/transloadit/#getAssemblyOptions-file
@@ -88,16 +82,11 @@ new Uppy()
 
 ### Uppy is pure ESM
 
-Following the footsteps of many packages, we now only ship Uppy core and its plugins as
-[ECMAScript Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) (ESM).
-On Uppy 2.x, we were shipping CommonJS.
+Following the footsteps of many packages, we now only ship Uppy core and its plugins as [ECMAScript Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) (ESM). On Uppy 2.x, we were shipping CommonJS.
 
 If are already using ESM yourself, or are using the CDN builds, nothing changes for you!
 
-If you are using CommonJS, you might need to add some tooling for everything to work, or you might
-want to refactor your codebase to ESM – refer to
-the [Pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)
-gist for added information and help on how to do that.
+If you are using CommonJS, you might need to add some tooling for everything to work, or you might want to refactor your codebase to ESM – refer to the [Pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) gist for added information and help on how to do that.
 
 ### Robodog is deprecated
 

+ 1 - 1
website/src/docs/transloadit.md

@@ -4,7 +4,7 @@ order: 10
 title: "Transloadit"
 module: "@uppy/transloadit"
 permalink: docs/transloadit/
-category: "File Processing"
+category: "Destinations"
 tagline: "manipulate and transcode uploaded files using the <a href='https://transloadit.com'>transloadit.com</a> service"
 ---