Commit graph

18 commits

Author SHA1 Message Date
Antoine du Hamel
06d5b3e254 deps: remove mkdirp in favor of the built-in fs.mkdir 2021-07-07 15:49:39 +02:00
Renée Kooi
ee2f527395 build: lint fixes in build scripts 2021-06-24 15:12:16 +02: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
Kevin van Zonneveld
764c2ccada
Update Linter (#2796)
* relocate .vscode

* Switch to transloadit linter

* Update .eslintrc.json

* autofix code

* unlink and install eslint-config-transloadit@1.1.1

* Change 0 to "off"

* Don't change 'use strict'

* Do not vertically align

* disable key-spacing

* add import/no-extraneous-dependencies per package

* add more react/a11y warnings

* Revert "autofix code"

This reverts commit 14c8a8cde8.

* add import/no-extraneous-dependencies per example and main package

* autofix code (2)

* Allow devDependencies in ./bin

* Change import/no-extraneous-dependencies to warn again

* upgrade linter

* Set import/no-extraneous-dependencies to warn
2021-03-15 16:25:17 +00:00
Renée Kooi
52760d2bb7
dashboard: improve support for right-to-left scripts (#2705)
* dashboard: fix modal position on rtl pages, fixes #2495

* Align text to the right on right-to-left pages

* core: fix default text alignment on right-to-left pages

* dashboard: fix margin in provider browser on right-to-left pages

* dashboard: use direction-aware offset properties

* provider-views: use logical offset CSS properties

* status-bar: use logical offset CSS properties

* dashboard: fix addMore icon margin on RTL pages

* dashboard: some more logical properties

* build: compile logical properties to old CSS

* dashboard: set dir attribute if page did not provide one

* status-bar: set fallback text direction if not provided

* support direction option for inline and modal dashboard

* use companion.uppy.io on deploy previews

* provider-views: fix RTL alignment of file icons

* put the dir attribute on a wrapper div

* fix icon alignment in RTL provider views

* informer: fix ? alignment in RTL mode
2021-01-27 17:13:38 +00:00
Renée Kooi
06245cd85a
switch to Dart Sass (#2661)
* switch to Dart Sass

* make hexo work wherever its installed?
2020-11-27 11:28:47 +00:00
Renée Kooi
9513d1c0b1
Some Windows support (#2211)
* build: explicitly use `sh` for shell scripts

* build: fix css path check on windows

* build: use NODE_PATH instead of symlink for local package resolution in e2e tests

* build: actually with new lerna we do not need NODE_PATH

* build: sh → bash
2020-04-22 09:56:34 +02:00
Renée Kooi
c62ec3665d Update eslint to v6 (#1777)
* Update eslint

* Do eslint --fix

* Do not access Object.prototype method 'hasOwnProperty' from target object

* utils: add hasProperty

* eslint --fix

* Disable quote-props for locale files

* add back quotes in locale files

* revert locale files to state on master

* Update react-scripts
2019-08-13 21:45:30 +03:00
Artur Paikin
e200e4f500 don’t use postcss-safe-important
we’ll try more specificity instead
2019-03-11 16:56:35 +03:00
Artur Paikin
61fd9861d8 Add Robodog to CDN (#1304)
* build robodog.css and robodog.js

* copy @uppy/robodog/dist to uppy/dist/robodog

* loose the robodog folder prefix — copy robodog/dist to uppy/dist

* Update upload-to-cdn.sh
2019-02-21 16:22:21 +01:00
Renée Kooi
81c500c8cb
build: Enable cssnano safe mode. 2018-08-27 11:50:12 +02:00
Renée Kooi
2c67c89b8d
Small build fixes. 2018-06-18 12:41:28 +02:00
Renée Kooi
382f4fba95
Move stylesheets into packages. 2018-06-18 12:35:47 +02:00
Artur Paikin
99a8a948e4 Add postcss-safe-important and typescript
Let’s see if !important everywhere will be a good enough style protection
2018-04-09 20:55:08 -04:00
Artur Paikin
1eb235ace0 add error catching to css build 2018-03-27 15:35:21 -04:00
Renée Kooi
e9849f7b29
Update dev dependencies 2018-01-15 09:58:03 +01:00
Artur Paikin
5f80d4c596 regular + min + gzipped versions of the bundle 2016-06-12 23:58:08 -04:00
Artur Paikin
7cdbe9623b Minification of the bundle, npm-run-all 2016-05-30 07:19:06 -04:00