Commit graph

9 commits

Author SHA1 Message Date
Renée Kooi
632c95a094
Remove unused runPromiseSequence util. 2018-06-28 14:15:17 +02:00
Renée Kooi
07eb4fc0b9
Move truncateString util into @uppy/dashboard. 2018-06-28 14:00:17 +02:00
Renée Kooi
a59efea878
Remove unused getArrayBuffer util. 2018-06-28 13:58:03 +02:00
Renée Kooi
e875df7996
Move copyToClipboard util into @uppy/dashboard. 2018-06-28 13:56:40 +02:00
Renée Kooi
d494e7df3c
Unit test fixes. 2018-06-18 15:49:59 +02:00
Renée Kooi
382f4fba95
Move stylesheets into packages. 2018-06-18 12:35:47 +02:00
Renée Kooi
2c4e7eaa68
Move Translator into @uppy/utils package.
Available as `@uppy/utils/lib/Translator`.
The Translator tests were using `Core()` instead of `Translator()`, so I
changed it to using `Translator` instances directly. The functionality
being tested did not change.

Steps taken:

```bash
git mv src/core/Translator.* packages/@uppy/utils/src
sed -i 's/[./]*\/core\/Translator/@uppy\/utils\/lib\/Translator/' src/**/*.js
vim packages/@uppy/utils/src/Translator.test.js # Fix tests
```
2018-06-14 16:31:19 +02:00
Renée Kooi
2e257b7e55
Move utils files to @uppy/utils package.
And rewrite all the require calls.

```bash
git mv src/utils/* packages/@uppy/utils/src
sed -i 's/[./]*\/utils\//@uppy\/utils\/lib\//' src/**/*.js # transform (../)*utils → @uppy/utils
```
2018-06-14 16:31:19 +02:00
Renée Kooi
c1d378de21
Add @uppy/utils skeleton.
```bash
mkdir -p packages/@uppy
cp -R package-template packages/@uppy/utils
vim packages/@uppy/utils/{README.md,package.json}
```

Next up, copying the implementation.
2018-06-14 16:31:19 +02:00