Commit graph

529 commits

Author SHA1 Message Date
Ifedapo Olarewaju
e991169249 test: working provider e2e test for local env 2019-07-22 13:02:50 +01:00
Ifedapo Olarewaju
3582c9c650 e2e: reintroduce e2e test for providers locally 2019-07-21 10:29:28 +01:00
Renée Kooi
9bd18e9fd8
companion: add necessary devDependencies for isolated build 2019-07-19 13:01:16 +02:00
Renée Kooi
10bc79574e
lerna link convert (#1730)
* lerna link convert

* ci: use npm ci

* update lockfile

* companion: set `bin` to source file

Since typescript doesn't actually transform anything, we can just use
this.

In a next major version we could set `noEmit: true` in the tsconfig and
stop publishing `lib`.

* companion: do chmod +x on start-server.js

* build: remove obsolete lerna config

* build: explicitly install latest versions when building e2e tests for ci

* Remove versions from private packages

* fix regex

* try fix

* ci: force npm to install to endtoend folder

* ci: fold up e2e build output

* Update netlify deploy preview command

* Remove mentions of npm run bootstrap

* Edit .github/CONTRIBUTING.md instead

* companion: add proxy executable

* companion: fix publish

* Downgrade jest to appease create-react-app
2019-07-19 12:16:36 +02:00
Renée Kooi
5d24dfcc78
ci: deploy tweak #3465242374 2019-07-15 12:12:50 +02:00
Renée Kooi
c4f5e30a19
ci: attempt to fix website deploy condition 2019-07-09 11:57:58 +02:00
Renée Kooi
0a40f2c444
Update webdriverio to v5 (#1675)
* build: update webdriverio to v5

* build: update wdio services config syntax

* e2e test updates for wdio 5

* Sync pinned versions between repo root and companion

* build: enable all e2e tests for this PR run

* waitForExist

* test: await browser.url() calls

* test: awaitify url-plugin test

* test: use sauceConnect

* test: upload files to sauce before using them

* fall back to fakechoosefile a lot?

* fall back to fakechoosefile more

* Disable file selection on saucelabs

* test: need to await this thing

* test: make more-sure that the input is visible

* test: use currently low load transloadit region so i dont have to wait

* test: update but disable xhr-limit

* test: change the order

* test: newer firefoxes

* test: change the order back

* kinda sucks that they only have super old browsers on linux

* ci: disable url-plugin and transloadit e2e tests again

* test: use local tus-node-server for integration tests

* test: use envify to check env variables and select appropriate URL

* test: use companion.test:1080 for tus uploads on Travis

* test: fix env vars in typescript and CRA tests

* test: use getBoundingClientRect, may work better in android

* test: try getSize AND getBoundingClientRect

* test: do not check image width in android

* test: allow retrying tests that are prone to flakiness

* test: be more verbose during e2e tests

* test: force <input> visibility in more tests

* test: warn if using test:endtoend not on CI
2019-07-05 13:45:43 +02:00
Renée Kooi
7282fdcf7c
build: sync dependency version numbers to make lerna happier 2019-07-01 14:06:53 +02:00
Renée Kooi
119016761c
Pin babel-eslint to make create-react-app happy 2019-06-19 16:50:49 +02:00
Renée Kooi
abf080e4ca
deps: get rid of eslint-config-standard-preact (#1678)
It's outdated and brings in a million outdated dependencies (notably,
babel 6 and for some reason eslint 4)

Instead we can directly use the standard-jsx config and configure it to
use `h` as the react createElement function just like standard-preact
does internally.
2019-06-19 16:32:26 +02:00
Evgenia Karunus
6bcf2040e9 Feature/accessibility (#1507)
* @uppy/provider-views - added accessibility

* @uppy/provider-views - simplified checkbox css

* @uppy/dashboard - on tab set focus to the current verlay

* @uppy/dashboard - factored out code related to focus into a separate file

* @uppy/dashboard, and connected plugins - made focus travel well, and be managed in a single place in Dashboard

* @uppy/dashboard - made modal opener button focus keep focus on modal close

* @uppy/dashboard - focus management for uploaded-files

* @uppy/dashboard - made informer read messages without interruption

* @uppy/provider-views - removed the bug of focus jumping on safari

* @uppy/dashboard - made focus travel well in instagram in firefox

* @uppy - moved lodash.debounce dependency from / to @uppy/dashboard

* everywhere - made <ul>s not focusable for firefox

* @uppy/provider-views - unnested scss, copypasted alex's :focus changes

* Added JSDoc eslint package and rules, and fixed some JSDoc comments

* .eslintrc - made jsdoc errors warnings instead

* package-lock.json for new package.json

* eslint fix

* @uppy/dashboard - avoid forcing focus when we are inline

* @uppy/dashboard - in firefox, made sure superfocus is not switching back to uppy

* @uppy/dashboard - no focus jump for .info() inline,  fix for firefox

Made focus not interrupt .info() when we are in the inline mode;
Made firefox start superfocusing when we either tab into, or click on some element in Uppy

* @uppy/dashboard - only listen to click/focus on uppy

* @uppy/dashboard - started trapping focus in inline mode too

* @uppy/dashboard - restricted trapFocus() event listener to this.el

* @uppy/core - started throttling progress emits.

1. To fix heat up in firefox
2. To fix focus in firefox

* @uppy/core - fixed tests by adding .flush()-s for progress emits

* @uppy/dashboard - stopped trapping focus in inline mode, made background inert

* @uppy/dashboard - added MutationObserver polyfill

* tests - made locale-packs.js pass

* REVERTED last 3 commits that introduced inert

Inert requires too many polyfills, atm tests fail in IE 10.0, wicg-inert library reportedly has performance issues. We decided to at least wait until _some_ browser introduce inert html property natively.

* @uppy/dashboard - IE11 fix for focusing

* @uppy/dashboard - fix for a bug in Safari for long uploads with checkbox clicking

* RERUN TESTS - tiny commit to rerun tests

* @uppy/dashboard - removed useless touchstart event listener

* Cancel superFocus in recordIfFocusedOnUppyRecently, when focus moves away from Uppy

* @uppy/provider-views - made Filter not swallow letters

* @uppy/dashboard - stopped superfocus from refocusing if we're already in the overlay
2019-06-11 19:10:32 +03:00
Renée Kooi
a9a563169d
Fix mime types on CDN (#1636)
* Fix mime types on CDN

The mime-types library is already in use by companion, hence no lockfile
update

* fix region and bucket

* add --force to overwrite existing release

* Fix for doing --force without a specific version
2019-06-05 20:04:10 +02:00
Renée Kooi
9eb274cfbd
Merge branch 'master' into fix/uploadcdn 2019-06-05 16:21:14 +02:00
Renée Kooi
e903340f0b
Merge branch 'master' into fix/uploadcdn 2019-06-05 16:20:18 +02:00
Renée Kooi
b64705fce2
New sync version (#1600)
New sync version
2019-06-05 16:19:48 +02:00
Evgenia Karunus
8be2004826 Feature/replace dnd in drag drop package (#1565)
* /examples/dev - added drag-drop plugin dev environment

* @uppy/drag-drop - moved isDragDropSupported() to @uppy/utils

* @uppy/drag-drop - got rid of drag-drop npm library

* examples/dev - made compiled files placed in /output instead of /lib

* ~/examples/dev - made watchify only watch files once

* @uppy/drag-drop - add onPaste

* /examples/dev - readded html css override-attempts

* @uppy/drag-drop - made whole area clickable, and made it accessible

* @uppy/drag-drop - removed excessive outline in firefox

* REVERTED last 2 commits
2019-06-05 17:04:34 +03:00
Renée Kooi
a07d81c5ef
add events.once 2019-05-29 10:52:00 +02:00
Renée Kooi
982d19a23c
Remove object-rest-spread plugin. 2019-05-27 16:56:41 +02:00
Renée Kooi
980210f76c
Add VERSION properties to all plugins.
And remove the proposal-object-rest-spread plugin because it is built
into preset-env now.
2019-05-27 16:53:47 +02:00
Renée Kooi
bc6da2a637
Run build after version bump 2019-05-27 16:53:27 +02:00
Renée Kooi
27da43a8c9
Convert sync-version-numbers to Node.js script 2019-05-27 16:38:50 +02:00
Renée Kooi
46ce4dbb34
Update verdaccio to v4 2019-05-27 15:24:44 +02:00
Renée Kooi
faf92703a7
Update verdaccio and lint-staged to fix security warnings 2019-05-27 15:23:00 +02:00
Renée Kooi
25b3d26314
run npm audit fix 2019-05-27 15:17:13 +02:00
Renée Kooi
98ec8ebdba
Merge branch 'master' into fix/uploadcdn 2019-05-27 12:13:47 +02:00
Renée Kooi
722c31262d
Switch to Node.js uploadcdn script 2019-05-22 12:21:39 +02:00
Renée Kooi
1abebd7506
do the upload-to-cdn.js thing 2019-05-20 15:35:43 +02:00
Renée Kooi
dc07b986a4
test 2019-05-20 14:35:36 +02:00
Renée Kooi
ad7dcf7e00
update to postcss 7 2019-05-20 11:31:38 +02:00
Renée Kooi
ccd1138bec
Update typescript to v3 2019-05-20 11:29:10 +02:00
Renée Kooi
ad37793467
Update eslint-plugin-compat and eslint-plugin-jest 2019-05-20 11:28:44 +02:00
Renée Kooi
f97b3931bb
Upgrade eslint. 2019-05-20 11:28:44 +02:00
Renée Kooi
aced95aad2
Upgrade Babel to v7 and Jest to 24 2019-05-20 11:27:00 +02:00
Kevin van Zonneveld
5c9e271e11 Fix contributor list in README.md 2019-05-01 10:14:08 +02:00
Artur Paikin
be4aeff303
Merge pull request #1489 from transloadit/tus-file-reader-expo
rn-expo: add custom file reader example for tus
2019-04-25 14:19:27 +03:00
Artur Paikin
1f588323e1 Merge branch 'master' into tus-file-reader-expo 2019-04-25 11:58:20 +03:00
Ifedapo Olarewaju
057fb6200d point to real tus-js-client 2019-04-25 08:00:26 +01:00
Kevin van Zonneveld
c9abb4e200 Add stars on github for Ser @nqst 2019-04-24 14:48:22 +02:00
Renée Kooi
165ca03416
update lockfile + depend explicitly on eslint-plugin-react
eslint-plugin-react is used by eslint-config-standard-preact, and is a
dependency of it. when eslint is run, it tries to
require('eslint-plugin-react') from the root of the project, which isn't
guaranteed to work (although npm hoisting will _normally_ let it work).
if we depend on it explicitly this will always work.
2019-04-24 11:42:11 +02:00
Kevin van Zonneveld
692a807784 Fix locale pack building on Travis
complaining about requiring companion not working
2019-04-17 14:30:43 +02:00
Artur Paikin
28fce1a137 Default locale for all plugins (#1443)
* first swing at building locale pack

* expose default locale on the plugin instance

* write a pretty en_US locale to a file, using stringify-object and template.js

* generated locale pack

* start adding a script that checks for unused locale strings

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Update bin/build-locale-pack.js

* Console output improvements

* Also sort plugin locale keys

* Support dependencies when digging up sources

because e.g. 'emptyFolderAdded' is used in provider-views but set in Dashboard's defaultLocale

* More complex matching

So can can support cases like: `uppy.i18n(error.isAuthError ? 'companionAuthError' : 'companionError')`

* Remaining const defaultLocale -> this.defaultLocale

* Update packages/@uppy/locales/en_US.js

* Mock browser environment so all plugins can be instantiated

* Clean up output a bit

* Update bin/build-locale-pack.js

* Add all remaining plugin's locales to en_US bundle

* Update packages/@uppy/dashboard/src/index.js

* Update en_US.js

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* remove unused strings

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Also write csv because that makes it real easy to import to friendlier places for translators /cc @arturi

* don’t set locale: this.defaultLocale — it overrides the lang pack

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Add 'russian plural' for english, for consistency

Allows us to signal that this is possible in new target languages, and also run better linting

* Cleanup

* No longer write csv

* WIP for NL

* Create package.json

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* move locales to /src

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* ignore locales themselves

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* build minified locale packs

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* expose Uppy.locale = {} placeholder object

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Update ru_RU.js

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* add locale bundles to example

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Upload locales to cdn

* Allow to run tests with upload-to-cdn by setting a versionSuffix

* Move locale build to function, to make room for test()

* Bring ru_RU in sync with English

now that we've added 3 plural types across the board

* Document using locales as a consuming dev, and plugin dev

* Add linting for missing/excess locale strings

* Add the locales we had to remove to the legacy folder

and explain why they cannot make it back

* Move legacy outside of src so they are definitely not transpiled, etc

* Update packages/@uppy/locales/src/nl_NL.js

* Update website/src/docs/uppy.md
2019-04-17 13:34:23 +02:00
Artur Paikin
40a2557a6b add ** to watch, dev script only watches lib and css
//cc @kvz @lakesare

https://github.com/mysticatea/npm-run-all/blob/HEAD/docs/npm-run-all.md#glob-like-pattern-matching-for-script-names
2019-04-04 17:46:46 +03:00
Artur Paikin
feb98f44bb add watch:css to web:start 2019-04-01 15:20:11 +03:00
Renée Kooi
e9f20282bc
Update a bunch of dependencies 2019-04-01 11:20:57 +02:00
Kevin van Zonneveld
5f4f1cf17e
Refactor npm scripts, clean up unused ones (#1392)
Co-Authored-By: Artur Paikin <artur@arturpaikin.com>
2019-03-29 14:55:23 +01:00
Kevin van Zonneveld
f0ca917a1e Refactor npm scripts (a little bit)
- sort them
- fix db touch in travis hexo clean
- rename update.js to inject.js which i think is less generic
- use colons (vs dashes) for delimiting as is idiomatic
2019-03-29 11:35:09 +01:00
Artur Paikin
952a9d9572 clean before deploying
//cc @kvz
2019-03-28 13:35:31 +03:00
Kevin van Zonneveld
3c65ce2520 Update package.json 2019-03-27 21:48:05 +01:00
Kevin van Zonneveld
73ec4a9467 touch db.json to combat travis not building with hexo-include-markdown
https://travis-ci.org/transloadit/uppy/builds/509314852#L3345
https://github.com/tea3/hexo-include-markdown/issues/2
2019-03-21 09:36:38 +01:00
Kevin van Zonneveld
ec4470acf1 More verbose websites builds to debug travis fail
https://travis-ci.org/transloadit/uppy/builds/509026120#L3461
2019-03-21 09:16:03 +01:00