Commit graph

7480 commits

Author SHA1 Message Date
AJvanLoon
9ecc54dfd2
A little polish 2020-04-03 18:16:57 +02:00
Artur Paikin
120e3b6172
Rename 2020-03-1.10.md to 2020-04-1.10.md 2020-04-03 14:15:23 +02:00
Artur Paikin
0f5b6e9223 publish 1.10.1: Facebook and OneDrive post 2020-04-03 13:32:19 +02:00
Artur Paikin
e8eeb1b850 Changelog for 1.12.1 2020-04-01 22:35:17 +02:00
Artur Paikin
4eee20aa18 Release 2020-04-01 22:29:44 +02:00
Artur Paikin
b46685d186 Update package-lock.json 2020-04-01 22:22:31 +02:00
Ifedapo .A. Olarewaju
7d972e09a4
tus,xhr-upload: emit error when companion returns error during upload creation (#2166) 2020-04-01 22:14:45 +02:00
Artur Paikin
89c04b8516
Add facebook and onedrive (#2167)
🙈
2020-04-01 21:14:10 +02:00
Renée Kooi
972e3d2eeb
changelog: 1.12.0 2020-04-01 17:46:13 +02:00
Renée Kooi
700863e46e
Release 2020-04-01 17:32:30 +02:00
Renée Kooi
72425316e2
test: fix create-react-app test 2020-04-01 17:02:22 +02:00
agreene-coursera
71e83504d3
transloadit: fix progress with very different Assembly runtimes (#2143)
* FIX: if an assembly has fully completed during the upload step (because it was smaller than other files in the batch), complete it during post processing

* FIX: linter error

* TRY: creating AssemblyWatcher before connecting assembly

* REMOVE: Assembly watcher changes

* transloadit: track completed files by ID

* transloadit: fix postprocess progress bar

* transloadit: create AssemblyWatchers when restoring files

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-04-01 16:40:52 +02:00
Renée Kooi
3b54808cc7
Loosen metaFields.render types again to fix React/preact typings conflict 2020-04-01 13:04:34 +02:00
Artur Paikin
8ad7eddaa3
Add Facebook and OneDrive to Robodog (#2165) 2020-03-31 20:32:19 +02:00
Ifedapo .A. Olarewaju
eceff59bb6
Merge pull request #2160 from transloadit/validate-upload-data
companion: validate all upload data provided by Uppy Client
2020-03-30 15:36:12 +01:00
Daniel Placinta
bd87af3d8a
Romanian [ro_RO] language pack added (#2162)
* ro_RO locale added

* ro_RO language several updates
2020-03-30 16:32:09 +02:00
ifedapoolarewaju
6c784ea1a8
Merge branch 'master' of github.com:transloadit/uppy 2020-03-30 15:25:37 +01:00
ifedapoolarewaju
be59f514d1
blog post: revise OneDrive + Facebook release post 2020-03-30 15:24:22 +01:00
Renée Kooi
697ad04a34
examples: document npm run build, closes #2024 2020-03-30 16:07:24 +02:00
ifedapoolarewaju
8d5890ca3f
chores: remove blank line 2020-03-30 14:43:32 +01:00
Renée Kooi
894c739883
Remove obsolete strings from language files. 2020-03-30 15:41:52 +02:00
ifedapoolarewaju
d272ff210e
companion: validate all client provided upload data 2020-03-30 14:00:14 +01:00
Leonardo Galli
8735c896a5
[Dashboard] Allow setting the input type when editing files in Dashboard plugin (#2147)
* Added possibility of specifying form field type.

* remove log statements

* Change to allow providing custom render function

* Add Types and Docs.

* Pass Uppy-styled CSS class names, so developers can leverege them when adding their custom inputs

@goto-bus-stop as we’ve discussed, what do you think?

* Fix var name

* dashboard: make typings for `render()` stricter

so people will get type errors if they try to return React elements or
raw DOM nodes.

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
Co-authored-by: Renée Kooi <renee@kooi.me>
2020-03-30 13:12:52 +02:00
Artur Paikin
f32b77455b docs fix 2020-03-27 15:49:04 +01:00
Artur Paikin
f614aee76a add Uppy 1.10.1 Facebook and OneDrive post draft 2020-03-27 15:48:45 +01:00
Renée Kooi
8e79920097
docs: document XHRUpload#validateStatus option (#2154) 2020-03-27 11:20:45 +01:00
Ifedapo .A. Olarewaju
a925881995
build: abort release script when there are uncomitted git changes (#2155) 2020-03-26 18:34:02 +01:00
Artur Paikin
7629854db5 Merge branch 'MikeKovarik-master' 2020-03-26 18:12:20 +01:00
Artur Paikin
6b2cb1a1fa Merge branch 'master' of https://github.com/MikeKovarik/uppy into MikeKovarik-master 2020-03-26 18:11:21 +01:00
Artur Paikin
0b1187e523
Delete package-lock.json
we don’t need `@uppy/thumbnail-generator/package-lock.json`, it should be in the root only, right @goto-bus-stop?
2020-03-26 18:08:47 +01:00
Ibrahim Shindy
e7dc7bd9cc
Fix fragment URL (#2156)
* Fix fragment URL

The hashtag: "#Configure-Standalone" is not correct and doesn't lead to anything. Fixed that.

* Update website/src/docs/companion.md

* Apply suggestions from code review

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-03-26 16:52:07 +01:00
ifedapoolarewaju
3f89cee4f0
Merge branch 'master' of github.com:transloadit/uppy 2020-03-25 14:13:42 +01:00
ifedapoolarewaju
8d3ecd0a9d
more release changelog 2020-03-25 14:12:05 +01:00
Renée Kooi
fe81bc5ab0
Fix locale pack test output (#2153)
This was broken by #2077. Instead of the keys and values that were
missing, it was printing things like:

```
de_DE locale has missing string: '91' that is present in en_US with value: 'exceedsSize'
```

Which is not super helpful.
2020-03-25 14:11:41 +01:00
ifedapoolarewaju
c32b6bfed3
Add Release Changelog 2020-03-25 13:23:54 +01:00
ifedapoolarewaju
fa32da7cf3
Release 2020-03-25 12:37:44 +01:00
ifedapoolarewaju
9642a63259
Release 2020-03-25 12:03:11 +01:00
Artur Paikin
305ee8a4df website: add Dark Mode docs and example demo 2020-03-25 11:32:40 +01:00
Kevin van Zonneveld
71fa8397ad Remove Serverless example
Because it doesn't work well. and we don't have the resources to make it work well. Community PRs welcome to patch this up! Until then, let's not confuse any more users.

https://github.com/transloadit/uppy/issues/1306#issuecomment-510811306

https://github.com/transloadit/uppy/issues/2149

https://community.transloadit.com/t/websockets-with-companion-and-serverless-on-aws/15233
2020-03-24 20:38:12 +01:00
Renée Kooi
876f8a2fc0
webcam: Try to respect restrictions (#2090)
* webcam: request a video mime type listed in `allowedFileTypes`

* webcam: stop recording when we are about to reach the max file size

* webcam: request an image mime type listed in `allowedFileTypes`

* docs: add Webcam#preferredImageMimeType

* locale: add `recordingStoppedMaxSize` string

* changelog: check webcam restrictions

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-03-24 18:53:36 +01:00
Artur Paikin
5079d98584
dashboard: 2020 redesign 🍿 (#2015)
* ProviderViews: Improve Instagram’s “video thumbnail”

* Update all provider icons to nicer round ones

* Change “drop files” copy depending on number of acquirers and Dashboard width

* Translator: support multiple components in options

When the source contains multiple placeholders for interpolation, we should ignore chunks that are not strings, because those can be JSX objects and will be otherwise incorrectly turned into strings.

Without this condition we’d get this: [object Object] hello [object Object] my <button>

* Remove unused locale strings

* Rever renderSingleInlineProvider, use Browse button instead of link, tweak styles

* Try “Browse My Device” button

* Introduce “Dark Mode“: new Dashboard option 'theme': 'light', 'dark' or 'auto'

* Refactor to also add uninstall/removeListener for the darkModeMediaQuery; remove all bindings in favor of class properties

* More dark mode styles: Providers, FileCard, tweaking focus, inputs, etc

* My Device: mobile and desktop icons

* add isMobileDevice capability, very simple detection

* More dark mode styles

* refactor

* switch back to single simple my device icon

* chrome 78 for android doesn’t support document.querySelector 👌

* nobr --> span white-space: nowrap

* Major style tweaks for mobile provider list, show dashed borders only when DnD is supported

* Add color after “import from”

just for Russian for now, because I’m thinking if this should be a part of the language string or html? @goto-bus-stop @kvz, what do you think?

* improve isMobileDevice, add tests

* don’t set the isMobileDevice capability in core for now

* add checks for typeof window !== 'undefined', otherwise fails in Node/RN

* update locales

* refactor renderDropFilesSubtitle
2020-03-24 18:05:11 +01:00
dkisic
2d9f4f5cb2
Croatian translations added (#2150) 2020-03-23 15:36:47 +01:00
Ifedapo .A. Olarewaju
a133903402
Merge pull request #2145 from transloadit/gsuite-files
companion: add support to download gsuite (google docs, google spreadsheet files
2020-03-23 14:25:16 +01:00
ifedapoolarewaju
5fe7b54a43
companion[test]: remove flaky test 2020-03-23 14:18:47 +01:00
ifedapoolarewaju
bfd5d217fe
companion: fix test 2020-03-23 12:32:59 +01:00
Clement Fradet Normand
59e658e983
Add meta.relativePath explicit example (#2106)
* Add meta.relativePath explicit example

Spent hours to test it to add a relativePath and non unique ids for files with the same name but coming from different folders.

It works like it but it's confusing with the `setMeta` method.

* tweak comment

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-03-23 11:11:43 +01:00
Artur Paikin
f4497838da
Only _startIfAutoProceed if some files were actually added (#2146) 2020-03-21 11:03:56 +01:00
Mike Kovařík
450050c820 fixed png and gif support of extracting exif 2020-03-19 17:18:39 +01:00
ifedapoolarewaju
1e5e54bc9d
companion: add support to download gsuite (google docs, google sreadsheet) files 2020-03-19 16:30:47 +01:00
Renée Kooi
5e25b2a939
Fix translations that did not respect word order (#2077)
* Fix translations that did not respect word order

Fixes #2069

We were still using raw string concatenation in these two places. To
maintain backwards compatibility, this commit adds _new_ translations
that are substitution-based instead of concatenation-based. The old
translation is passed in as a possible substitution parameter
`backwardsCompat`, and the default (English) translations use this
parameter.

With this, if you are using a custom locale that overrides eg. the
`exceedsSize` string, Uppy will first get your `exceedsSize`
translation, and then use the default `exceedsSize2` translation which
concatenates that result and the file size. So it works the same as it
did in the past.
If a translation requires a different word order, it can override the
`exceedsSize2` translation instead.
```js
new Uppy({
  locale: {
    strings: {
      exceedsSize2: 'Maximum file size of %{size} exceeded',
      poweredBy2: '%{uppy} made this!'
    }
  }
})
```

In 2.0, we can remove all the old strings and only use `poweredBy2` (and
probably rename them to `poweredBy` too, heh)

* website: add missing dashboard strings to docs

* locales: remove unused second plural form from EN and NL

* build: allow different numbers of plural forms

* utils: add test for new throwing behaviour

* docs: insert PR url

* locales: revert ko_KR changes

* changelog: add 2.0 backlog entry

* locales: var → const

* docs: add brief note that translators should supply a pluralize function

* locales: update en_US with new template

* fix HEIGHT_MD = 400

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-03-19 14:41:14 +01:00