Commit graph

2301 commits

Author SHA1 Message Date
Antoine du Hamel
79611cc8df deps: update browserify to v17 2021-07-07 16:53:00 +02:00
Antoine du Hamel
def967d5ee deps: upgrade remark-cli to v9 2021-07-07 15:49:42 +02:00
Antoine du Hamel
0481f5d9b9 deps: update autoprefixer to v10 2021-07-07 15:49:42 +02:00
Antoine du Hamel
06d5b3e254 deps: remove mkdirp in favor of the built-in fs.mkdir 2021-07-07 15:49:39 +02:00
Murderlon
fe96096c3d
Merge branch 'master' into 2.0
* master: (23 commits)
  A bit of polish (#2986)
  Companion: Fix typescript error
  Companion: Fix invalid referrer crashing the process
  Publish 1.30 blog post
  Release
  Build: Companion needs to be built before locale-pack
  Release
  Fix build: locale-pack first, integrations second
  changelog for 1.30
  Release
  Update package.json
  Only log info if debug is true (#2855)
  build(deps): bump prismjs from 1.23.0 to 1.24.0 (#2971)
  Angular Integration (#2871)
  ci: don't run markdown tests in type tests
  Add types for `uppy.once` method (#2965)
  build: lint fixes in build scripts
  Fix typo in docs/progressbar.md (#2962)
  Document `uppy.once` in `docs/uppy.md` (#2960)
  Add `props` example to docs/vue.md (#2959)
  ...
2021-07-07 15:32:38 +02:00
AJvanLoon
2c94be81c1
A bit of polish (#2986) 2021-07-07 11:33:48 +01:00
Antoine du Hamel
c48064ba56
doc: lint JS code snippets (#2954)
* doc: lint JS code snippets

* deps: update `lint-staged` deps

* Fix remaining lint warnings and errors

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-07-04 19:32:50 +02:00
Artur Paikin
b601da6cb2 Publish 1.30 blog post 2021-07-02 20:52:46 +01:00
Artur Paikin
4b782ffbbb Release 2021-06-30 23:07:21 +01:00
Masao Kitamura
0682223f51
Only log info if debug is true (#2855)
* Only log info if debug is true

* Add option logClientVersion

defaults to true

* Update companion.md

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-06-30 12:50:51 +01:00
Merlijn Vos
acb6566ec0
Always enable strict types and remove .run method (#2957)
* Always use strict types and remove `.run` method

* Remove accidental package-lock.json files

* Actually remove `.run` method
2021-06-30 12:05:10 +01:00
Andrew
8f4cc89a9e
Angular Integration (#2871)
* feature(integration): initial Angular framework implementation

* Package cleanup

* Actually add the components this time

* fix rendering bug

* Add documentation

* dependency fixes

* add broken example

* Make locales ignore angular

* dependency updates

* Update package-lock.json

* Fix broken example

* Make example consistent with docs

* angular: Update styling advice

* angular: Build system stuff

* angular: Escape dependency hell

* angular: Add dashboard-modal component

* angular: Update package.json/prepare for release

* angular: Fix styling bugs

* add Angular dependencies

* Update README.md

* lint fixes — those deps are in root

* Update README.md

Co-authored-by: Adam Medford <adammedford@gmail.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-06-30 11:36:57 +01:00
Merlijn Vos
f0f1105ef0
Resolve or remove miscellaneous todos (#2967) 2021-06-29 12:54:19 +02:00
Antoine du Hamel
c315329399
Remove IE polyfills and special casing (#2947)
* Remove IE polyfills and special casing

* dashboard: remove `resize-observer-polyfill`

* deps: remove url-parse to use global `URL` instead

* Update documentation for browser support

* Add a migration guide

* Update e2e test platforms

* Remove polyfills from examples and add those missing in CDN bundle

* Use Node.js v16.x on CI because of `AbortController`

* Update bundle builder to produce two builds: `uppy.js` without polyfills, `uppy.legacy.js` with polyfills.

* Upgrade create-react-app deps

* remove null coalescing operator as it's not supported by the build chain

* disable Safari testing (for now)


Co-authored-by: Renée Kooi <renee@kooi.me>
2021-06-28 11:34:51 +02:00
a-kriya
229f070cf8
Fix typo in docs/progressbar.md (#2962) 2021-06-24 15:06:47 +02:00
a-kriya
6afc518fda
Document uppy.once in docs/uppy.md (#2960)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2021-06-24 13:47:52 +02:00
Julio Montoya
1336ed31d8
Add props example to docs/vue.md (#2959) 2021-06-23 17:04:11 +02:00
Antoine du Hamel
56c86e2f18
doc: use ESM syntax in code snippets (#2953)
In preparation for a future release of Uppy which drop support for
CommonJS, we should start nudging our users to use ESM syntax.

Fixes: https://github.com/transloadit/uppy/issues/2951
2021-06-22 10:30:24 +02:00
Merlijn Vos
ecec3d3213
Split Plugin into BasePlugin and extended UIPlugin (#2944) 2021-06-18 13:23:16 +02:00
Artur Paikin
b817e84e77
dashboard: set default trigger: null (#2942) 2021-06-17 10:39:09 +01:00
Artur Paikin
e5061b1194
locales: remove es_GL that was kept for backwards-compat (#2943)
* remove es_GL for good — it was kept for backwards-compat

* remove legacy
2021-06-17 10:38:48 +01:00
Antoine du Hamel
6efecf6f0f
xhr: change default name depending on whether bundle is set (#2933)
* temporarily add cheerio-select-tmp to devDependencies to fix tests

* xhr: change default name depending on whether `bundle` is set

Fixes: https://github.com/transloadit/uppy/issues/782

* Update docs
2021-06-16 22:18:08 +01:00
Merlijn Vos
33dbe58cb3
Expose drag-drop events (#2914)
* Expose drag-drop events

* we need to call DragDrop.renderArrowSvg without this, since it’s now static

* Update docs based on feedback

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-06-14 12:22:01 +01:00
Antoine du Hamel
0c510ee799
add more granular image rotation control (#2838)
* add more granular image rotation control

Fixes: https://github.com/transloadit/uppy/issues/2636

* fixup! add more granular image rotation control

* fixup! add more granular image rotation control

* fixup! add more granular image rotation control

* fixup! add more granular image rotation control

* add input-range-scss dependency

* Modify the rotation slider

- Better visual styles for the slider
- Position a toggle in the center of the slider
- Make it work better on moblile
- 90° rotation: rotate counterclockwise
- 90° rotation: update icon

* Use black background for the canvas when rotating (instead of gray)

* Use smaller range for granular rotation input

* Optimize event listeners

* Fix styles and state unsyncronisation

* Update package-lock.json

Co-authored-by: Alexander Zaytsev <nqst@users.noreply.github.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-06-13 14:31:19 +01:00
AJvanLoon
fae701a4a2
Some polish (#2913) 2021-06-01 18:17:04 +01:00
Antoine du Hamel
1aa17533ee
core: enrich error event for use from postproocessor (#2909)
Fixes: https://github.com/transloadit/uppy/issues/2840
2021-05-31 12:43:18 +01:00
Murderlon
44679babf5
Edit and publish website/src/_posts/2021-04-1.29.md 2021-05-31 12:08:02 +02:00
Artur Paikin
e86ee41be3 add 1.29 post draft 2021-05-29 23:29:46 +01:00
Artur Paikin
23e4a537a6 Release 2021-05-28 11:54:17 +01:00
Artur Paikin
12b7bd34e8 Release 2021-05-27 21:35:08 +01:00
Artur Paikin
c4a637655d
Golden Retriever 2: Return of the Ghost (#2701)
* don’t store file.data on local files when we save to localStorage, add isGhost: true, additional event restore-confirmed

Co-Authored-By: Renée Kooi <github@kooi.me>

* Don’t double-emit upload-started for Golden Retriever-restored files that were already started

Co-Authored-By: Renée Kooi <github@kooi.me>

* removeFile: delete updatedUploads[uploadID] instead of calling _removeUpload to avoide excess state updates

Co-Authored-By: Renée Kooi <github@kooi.me>

* clear preview, throttle saving state

* add service message and ghost icons

* regenerate thumnails on restore properly

* allow replacing duplicate files if it’s a ghost

* re-generate thumbnails on componentDidUpdate

* tweak styles for ghosts

* Dashboard cleanup

* refactor: load IndexedDBStore and ServiceWorkerStore together, add uninstall, handle file-edit-complete

* recoveredState — show upload button as “restore”, hide progress pause/resume, handle abortRestore

* tweak serviceMsg mobile styles

* use i18n for strings

* Handle aborting, complete and last file removal with MetaDataStore.cleanup(instanceID)

* fix all the tests

* import .eslintrc from master

* autofix

* add lodash.throttle

* when re-selecting ghost files, only replace the blob, keeping progress, meta, etc

* Delete package-lock.json

* Update en_US locale

* add golden retriever support to darkmode styles

* add golden retriever to website example

* Update package-lock.json

Co-authored-by: Renée Kooi <github@kooi.me>
2021-05-12 16:30:30 +01:00
Artur Paikin
a87e8a8b80 Release 2021-05-11 23:15:55 +01:00
Artur Paikin
209a0079d3 Release 2021-05-05 21:50:17 +01:00
吕立青
ed268a55f5
Update transloadit.md (#2859) 2021-05-04 23:38:24 +01:00
Jace Zhu
ab5cb3e1e9
Update index.js (#2864)
* Update index.js

This PR added companion cookies rule to every provider except Box.
https://github.com/transloadit/uppy/pull/2618

(Not sure if there's a reason Box was left out)

* Update docs for the change
2021-04-28 00:02:48 +01:00
Artur Paikin
3253d5766e
Dashboard: Implement disableLocalFiles option — disables drag & drop, hides “browse” and “My Device” buttons (#2852)
* implement disableLocalFiles option

* don’t show dashed border if drag-drop is disabled

* Update en_US.js
2021-04-27 15:39:37 +01:00
Artur Paikin
b760b0e918
add uppy.logout() (#2850) 2021-04-27 15:37:02 +01:00
Mikael Finstad
d8d27ad1f1
Pull out metric middleware logic (#2854)
* Pull out metric middleware logic

* improve number conversion

* change logic as discussed in PR

* npm run build:locale-pack
2021-04-22 14:53:37 +02:00
Joseph Szobody
ee73d58b48
Fix npm package name for drop-target (#2857) 2021-04-15 08:42:59 +02:00
Artur Paikin
b1716ffa97 Update 2021-04-1.27.md 2021-04-08 00:27:23 +01:00
Artur Paikin
8fb863d5b5 add download section to the post 2021-04-07 20:46:10 +01:00
Artur Paikin
00b5de0c16 publish 1.27 post 2021-04-05 12:25:45 +01:00
Artur Paikin
66445942a4 add video demo 2021-04-05 11:56:23 +01:00
Artur Paikin
edb08e415e add draft 1.27 post 2021-04-03 19:39:16 +01:00
Artur Paikin
1751241362 Release 2021-03-31 23:59:08 +01:00
Artur Paikin
1fcb99540c
Add @uppy/drop-target — drag and drop files on any existing DOM element (#2836)
* Add dom-target plugin

* add dom-target to bundle and website — had trouble with css otherwise

* cleanup and dev setup

* newline at the end, restore inline: false by default

* dom-target --> drop-target, remove paste

* add docs, bundle, website example

* add types

@goto-bus-stop this should probably be something other than Uppy.PluginTarget since it won’t accept an uppy plugin?

* fix types

* Update examples/dev/Dashboard.js

Co-authored-by: Renée Kooi <renee@kooi.me>

* type string | Element

* Update packages/@uppy/drop-target/package.json

Co-authored-by: Renée Kooi <renee@kooi.me>

* Update packages/@uppy/drop-target/package.json

Co-authored-by: Renée Kooi <renee@kooi.me>

* Update examples/dev/Dashboard.js

Co-authored-by: Renée Kooi <renee@kooi.me>

* Create package-lock.json

* Update package-lock.json

* Update package-lock.json

Co-authored-by: Renée Kooi <renee@kooi.me>
2021-03-31 16:29:03 +01:00
Renée Kooi
24fb4fb6ba
docs: companion should be mounted on a subpath 2021-03-31 13:47:29 +02:00
Antoine du Hamel
9e82431a16
add dynamic metaFields option (#2834)
* add dynamic metaFields option

Fixes: https://github.com/transloadit/uppy/issues/2591

* fixup! add dynamic metaFields option

* fixup! add dynamic metaFields option

* Update website/src/docs/dashboard.md

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-03-30 21:33:08 +01:00
Antonio B
1831f8e98d
Corrected hanging sentence, added an example (#2842)
There was a hanging sentence, that made this documentation unclear. Fixed the sentence, added an example.
2021-03-29 15:40:56 +01:00
Renée Kooi
63421991bf
website: clarify oauthDomain option, remove some language
master/slave is not fun to read and does not help to understand what
this option does
2021-03-29 12:14:54 +02:00