Skip to content

Commit

Permalink
Post-release website fixes (#4038)
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed Aug 23, 2022
1 parent 2ce8036 commit ff32dde
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 20 deletions.
1 change: 1 addition & 0 deletions packages/@uppy/utils/package.json
Expand Up @@ -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": {
Expand Down
3 changes: 0 additions & 3 deletions website/src/docs/file-input.md
Expand Up @@ -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',
},
}
Expand Down
2 changes: 1 addition & 1 deletion website/src/docs/image-editor.md
Expand Up @@ -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"
---

Expand Down
19 changes: 4 additions & 15 deletions website/src/docs/migration-guides.md
Expand Up @@ -34,20 +34,14 @@ 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'
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,
Expand All @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion website/src/docs/transloadit.md
Expand Up @@ -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"
---

Expand Down

0 comments on commit ff32dde

Please sign in to comment.