Commit Graph

48 Commits

Author SHA1 Message Date
ead9aab888 Remove enzyme (#640)
The test that was added is not a good test. If we want to test things, we should be testing logic that is error prone such as all the mouse handling logic and state management. Adding a test for something trivial as displaying a list of data is just going to be annoying when we eventually change the UI and the test breaks.

Since this is the only test using enzyme, I also removed enzyme. We can add it back if we want to test a component using it.
2020-01-31 21:32:09 +00:00
e4919e2e6c Replace i18n by a custom implementation (#638)
There are two problems with the current localization strategy:
- We download the translations on-demand, which means that it does a serial roundtrip for nothing.
- withTranslation helper actually renders the app 3 times on startup, instead of once (I haven't tried to debug it)
2020-01-31 21:06:06 +00:00
4ad38e317e 485: Ability to switch to previously loaded ids in UI (#583) 2020-01-30 21:39:37 +02:00
82717bceda Remove eslint-plugin-json-format (#609)
* Remove eslint-plugin-json-format

* json
2020-01-29 11:26:40 +01:00
5418f68cc5 Update deps 2020-01-29 03:05:00 +02:00
a862d12ac1 Bump browser-nativefs version to v0.2.0 (#586)
* Bump browser-nativefs version to v0.2.0

In reply to https://github.com/tomayac/browser-nativefs/issues/2.

* Update package-lock.json
2020-01-27 10:14:44 +01:00
209bd84257 Bump lint-staged from 10.0.0 to 10.0.2 (#549)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.0 to 10.0.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.0.0...v10.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:20:07 +02:00
048d535b6e Bump browser-nativefs from 0.1.0 to 0.1.1 (#547)
Bumps [browser-nativefs](https://github.com/tomayac/browser-nativefs) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/tomayac/browser-nativefs/releases)
- [Commits](https://github.com/tomayac/browser-nativefs/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:04:22 +02:00
6dcb88b8f6 Bump @types/react from 16.9.17 to 16.9.19 (#546)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.17 to 16.9.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:04:03 +02:00
3cf9cad52e Bump husky from 4.0.10 to 4.2.1 (#545)
Bumps [husky](https://github.com/typicode/husky) from 4.0.10 to 4.2.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v4.0.10...v4.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:03:04 +02:00
62063ccb72 Bump nanoid from 2.1.9 to 2.1.10 (#544)
Bumps [nanoid](https://github.com/ai/nanoid) from 2.1.9 to 2.1.10.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/2.1.9...2.1.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:02:49 +02:00
41b384e6e6 Bump @types/react-dom from 16.9.4 to 16.9.5 (#548)
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.4 to 16.9.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:02:38 +02:00
01c7796713 Bump @types/jest from 24.9.0 to 24.9.1 (#543)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.9.0 to 24.9.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:02:25 +02:00
d24b9c4d78 Update to browser-nativefs v0.1.0 (#523) 2020-01-23 18:15:44 +02:00
4942a452e0 Lint tweaks (#502)
* lint json files & add lint ignore list

* lint against plain console logs

* Update .lintstagedrc.js

Co-Authored-By: Lipis <lipiridis@gmail.com>

* format .tsconfig

* don't lint against console.info

* change log to console.info

Co-authored-by: Lipis <lipiridis@gmail.com>
2020-01-22 15:13:00 +01:00
d1fb824369 Move file system operations to separate module (#510) 2020-01-22 13:55:13 +01:00
ff7a340d2f Internationalization support (#477)
* add i18next lib
add some translations

* add translations

* fix font-family

* fix pin versions
2020-01-20 15:14:10 -08:00
2918a28bf0 Bump lint-staged from 9.5.0 to 10.0.0 (#466)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.5.0 to 10.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v9.5.0...v10.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 12:06:57 +02:00
7f6e1f420e Pure node rendering (#443) 2020-01-19 13:21:33 -08:00
8e526384b9 Sort package.json (#438)
* Sort package.json

* Keywords
2020-01-17 17:02:13 -08:00
1923607112 Remove www from URLs (#437)
* Remove www from URLs

* typo

* slash
2020-01-18 02:24:35 +02:00
4b692da01d Test only the app.. lint is separate (#426) 2020-01-17 20:34:26 +02:00
aa9e98e52b Update the name in package.json (#410) 2020-01-16 16:53:38 -08:00
86eadf379d Update Prettier scripts and supported files (#402) 2020-01-16 23:50:02 +02:00
42968ef44d enable curveFitting & bump roughjs (#373) 2020-01-15 20:01:50 +01:00
d2a3ed7931 Bump roughjs version to fix ellipse fills (#367) 2020-01-13 21:39:42 -08:00
8dbd1b80df Update to rough.js 4.0.1 (#363)
* upgrade to latest rough.js

* remove random.ts because roughjs now supports seeding.
2020-01-13 11:04:28 -08:00
8785bef523 Support transparent background + inline picker (#325)
Unfortunately, react-color has a bug where transparent color doesn't trigger onChange. I've been annoyed by the huge dependency anyway so decided to take the generated html (which is awesome) and reimplement a specific component for it.

I also made sure that we don't actually render anything when the background is transparent on rough (I looked at the generated path and made sure it didn't have the commands for the background)
2020-01-11 19:10:41 -08:00
068dca604f prevent commit on eslint warnings & fix lint (#268) 2020-01-08 20:08:43 +01:00
4b7eb2f04a Add IDs to elements (#236)
* Add IDs to elements

- Move round rect function within the renderer

* Generate IDs using nanoid

* If element ID does not exist, add the ID during restoration
2020-01-07 23:49:39 +04:00
85365e5bcb Extract Sidebar panels into separate components (#230)
* Extract Sidebar panels into separate components

* Add Jest TS types
2020-01-07 15:06:22 +04:00
b5c67260d7 Improved color picker (#174)
* Add react-color

* Prettier

* Better styles

* Use enum for color pickers instead of strings

* Run prettier on .scss file
2020-01-05 13:05:55 -08:00
79959cab34 Removed lodash (#135) 2020-01-04 12:53:45 -08:00
3172109050 Inline font-awesome icons (#134) 2020-01-04 12:47:12 -08:00
a1bcfb401c move css to scss 2020-01-04 19:14:12 +01:00
b1a90c0020 Side panel (#95)
* Side panel

* Update arrow icon
2020-01-03 19:58:20 -08:00
585967ff8e Remove gh-pages 2020-01-03 22:43:41 +01:00
7bcce8bb1b Fixes package-lock 2020-01-03 22:13:41 +01:00
d920b34af1 Fix package.json 2020-01-03 22:11:01 +01:00
f5c923ab01 Merge branch 'master' into issue-68 2020-01-03 22:02:23 +01:00
493f06e6ba Add --passWithNoTests to test script
This is mandatory to pass the step currently, because we don't have tests.
2020-01-03 21:59:36 +01:00
a7516f6cb8 Remove lint
We have to investigate on this, because after the Typescript integration is not working anymore, so I have to deepen how we can configure the usage with TypesScript.
2020-01-03 21:56:03 +01:00
b36110ef03 Build and deploy via yarn deploy 2020-01-04 01:52:52 +05:00
7d9cc2ac56 Deploy static to gh-pages 2020-01-04 01:52:09 +05:00
499035c267 Add lint script 2020-01-03 21:51:24 +01:00
36b36e8dc3 Add github workflow 2020-01-03 21:32:29 +01:00
1383758aa7 TS, Prettier, Eslint (#39)
* TS, Prettier, Eslint

* Used rough ts definitions
2020-01-02 11:03:48 -08:00
6278cd9366 Initial commit 2020-01-01 17:04:47 -08:00