Commit Graph
83 Commits
Author SHA1 Message Date
David Lechner d7dbaaa12d add dark mode setting 2021-01-11 23:36:48 -06:00
David Lechner 41a1cee092 change support button to settings button
and add new empty settings drawer
2021-01-11 23:36:48 -06:00
David Lechner fedef66931 replace doc icon with question mark 2021-01-11 23:36:48 -06:00
David Lechner 4923ca3759 change button grouping 2021-01-11 23:36:48 -06:00
David Lechner 2342023f71 use craco
This lets us modify some config without ejecting create-react-app.

This allows us to target esnext which works around a number of issues
with multi-targeted packages like blueprintsjs and react-i18n.
2021-01-08 18:05:51 -06:00
David Lechner 7fc5142924 fix use of private type in i18n 2021-01-08 17:27:47 -06:00
David Lechner ae996453e8 drop polyfill for chromimum < v85
This removes the polyfill for using older chrome browsers before the
writeWithResponse and writeWithoutResponse APIs were added.
2020-12-21 13:05:47 -06:00
Andreas Litt de237b13f9 remove stickiness of toolbar to avoid breaking the layout
clicking on a link with a URI fragment (e.g. https://docs.pybricks.com/en/latest/parameters.html#pybricks.parameters.Port)
inside the documentation iframe breaks the layout.
The browser seems to force the parent frame to scroll to the position as well.
As the toolbar is fixed, the rest of the content is scrolled under it.
Rerendering after the link click fixes the layout (at least if done manually).
But a more elegant solutions is to remove the absolute positioning of the toolbar.
It is not really necessary to pin it, as the rest of the layout always
spans over the complete width and height of the browser window.
2020-12-13 21:58:08 +01:00
David Lechner 0cf3aad910 Add keyboard shortcuts to action buttons
Just run and stop button have keys assigned for now.
2020-12-10 21:37:21 -06:00
David Lechner 113243828f add snippets for primehub and inventor hub 2020-12-10 16:59:37 -06:00
David Lechner 98feab2555 All CTRL+V in terminal
Fixes https://github.com/pybricks/support/issues/172
2020-12-10 16:28:43 -06:00
David Lechner 91fbea13f4 fix terminal losing focus after opening context menu
Fixes https://github.com/pybricks/support/issues/170
2020-12-10 15:14:39 -06:00
David Lechner 71ad9c1b1b Update to create-react-app 4
- had to update eslint deps
- ran into https://github.com/palantir/blueprint/issues/4112
- had to move beta.svg out of static/
- had to fix prettier formatting changes
- ran into https://github.com/facebook/jest/issues/7780
2020-11-20 21:08:53 -06:00
Laurens Valk 5561de530b Rename CPlusHub to TechnicHub 2020-10-09 20:26:52 -05:00
David Lechner 68021545c5 Add Clear command to terminal context menu
Fixes pybricks/support#103
2020-07-17 20:40:00 -05:00
David Lechner 6d998b9736 remove encoding snippets 2020-07-15 13:01:56 -05:00
David Lechner a1d5fd531a fix indentation of cityhub snippet 2020-07-15 13:01:56 -05:00
David Lechner 7b49d84876 add code snippet for city hub 2020-07-02 21:37:00 -05:00
David Lechner 2fdcea091e add beta watermark 2020-06-16 09:39:09 +02:00
David Lechner 30db09daf5 enable code snippets in auto completion 2020-06-15 14:53:16 -05:00
Laurens Valk 44607ca410 images: add support and pybricks docs buttons 2020-06-13 16:38:22 +02:00
Laurens Valk cab8b66117 images: remove local references 2020-06-13 16:38:22 +02:00
David Lechner e0e2d98cd0 rename translation files
This fixes case-insensitive file name conflicts, e.g. editor.ts Editor.ts
2020-06-13 00:00:42 -05:00
David Lechner 72a90df92a implement context menu in terminal 2020-06-12 21:46:00 -05:00
David Lechner 084fc4b599 implement CTRL+SHIFT+C to copy from terminal 2020-06-12 21:46:00 -05:00
David Lechner 9e0a567172 fix unused state props type 2020-06-12 21:46:00 -05:00
David Lechner 7a4c05a89a add support button 2020-06-12 21:46:00 -05:00
David Lechner 95a98241e8 simplify editor getter 2020-06-12 21:46:00 -05:00
David Lechner dd146b5f36 fix binding of editor reference
This was causing resizing of the editor to not work properly
2020-06-12 21:46:00 -05:00
David Lechner 1e0ef476ef Add docs toggle button 2020-06-12 21:46:00 -05:00
David Lechner bda007c17a convert ble service to saga 2020-06-11 22:53:38 -05:00
David Lechner 7509c329d6 fix editor scroll bar on first load
It seems that some container of the Editor component is breaking the
resize calculation when the page firsts loads. So we have to be bit
hacky and defer the call the resize until after all components have
been rendered.
2020-06-11 10:06:16 -05:00
David Lechner 31c3e2b52e refactor common test helpers into test/
This way we can share them with multiple tests
2020-06-10 21:59:34 -05:00
David Lechner e09fd8713f convert terminal from epic to saga 2020-06-10 21:59:34 -05:00
David Lechner 07d0b5ef39 split firmware flashing from lwp3-bootloader
BLE won't always be the only way to flash firmware
2020-06-09 23:51:32 -05:00
David Lechner 6d81da0df0 Show notification when program is changed in another window 2020-06-09 23:51:32 -05:00
David Lechner 67f9202fb6 use session storage instead of local storage
This will allow use of multiple tabs/windows
2020-06-08 20:56:00 -05:00
David Lechner b6be163ccb refactor lookup function 2020-06-08 20:56:00 -05:00
David Lechner e8ddf09323 add context menu 2020-06-08 20:56:00 -05:00
David Lechner 89f93b0faf add i18n to editor 2020-06-08 20:56:00 -05:00
David Lechner 0940226a4d use utility classes
similar to how bootstrap works
2020-06-07 21:39:58 -05:00
David Lechner d9211b5b10 switch to blueprintjs UI toolkit 2020-06-07 18:59:02 -05:00
Laurens Valk d0f5a42c85 app: allow doc videos to be full screen
Without this, the videos can be somewhat hard to see.
2020-06-05 16:47:38 +02:00
David Lechner c975613e1c rename bootloader to lwp3-bootloader
we will probably have DFU bootloader in the future
2020-06-04 11:28:13 -05:00
Laurens Valk 5190ee3878 app: fix docs not hiding on small viewports
This broke when the nested containers were dropped.

Also change breakpoint from medium to large, so that docs only show in large viewports.
2020-06-01 13:20:30 +02:00
Laurens Valk aa334c2d82 app: drop nested container
This achives the responsive editor height without a nested container.
2020-06-01 13:07:14 +02:00
Laurens Valk 2ee64e3711 app: update button icons 2020-05-29 10:24:05 -05:00
Laurens Valk d04958bb01 app: configure environment color
Blue will be reserved for the buttons, not the borders
2020-05-29 10:24:05 -05:00
Laurens Valk c302b8aa91 app: remove duplicate padding due nested row/col 2020-05-29 10:24:05 -05:00
Laurens Valk f8fa09d866 app: show docs
Show only on large viewports, hide it on small viewports.
2020-05-29 10:24:05 -05:00