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
Laurens Valk
67de6c3af9
app: fill vertically & horizontally
...
Do not use a fixed height for the editor, but responsively scale to the remaining available height.
Also fill horizontally for a responsive layout. This gives us room to add left or right columns with docs or settings.
2020-05-29 10:24:05 -05:00
David Lechner
0d30e113da
use i18n for buttons
2020-05-27 20:57:22 -05:00
David Lechner
24acab901c
remove use of thunk action in ble and hub
...
This is a step towards moving these to sagas
2020-05-27 20:57:22 -05:00
David Lechner
99fd62100d
rename open and save as buttons
2020-05-27 20:57:22 -05:00
David Lechner
5da915851c
strongly type MessageId
...
This way we can add tests to ensure proper mapping in .json
2020-05-27 20:57:22 -05:00
David Lechner
c373b3abc5
begin rework of notifications
...
The notification reducer should decide when to display notifications rather than having notifications scattered throughout the code.
Also start using translations so that user-visible strings are not scattered in code.
2020-05-26 21:20:08 -05:00
David Lechner
6e4b22f841
Add common top-level Action type
...
This makes for better type inference.
2020-05-26 21:20:08 -05:00
David Lechner
3e4ea382e5
move images out of public/static folder
...
This way, we get compile error if there problem with images. Also allows
images to be optimized.
2020-05-26 21:20:08 -05:00
David Lechner
33861d970b
Package firmware in app
...
- includes firmware .zip for movehub and cplushub
- firmware flash button no longer opens file dialog
- now connects first, then choses firmware based on connected device
- drag and drop of custom firmware still works
2020-05-25 21:31:35 -05:00
David Lechner
df34cd4ae5
Ignore CTRL+S in editor
...
Some programmers have the habbit of always pressing
CTRL+S which opens the browsers save as dialog and
interrupts workflow. We already automatically save
the current file, so we can just ignore they keypress.
2020-05-25 21:31:35 -05:00
David Lechner
dd9d789e9a
license
2020-05-22 19:54:48 -05:00
David Lechner
2a0cba80b8
remove incorrect use of ThunkDispatch
2020-05-22 19:54:48 -05:00
David Lechner
1898787eb5
add open and save button
...
Chrome has an annoying warning when downloading .py files, e.g https://stackoverflow.com/q/34130774/1976323
Workaround is to enable the "Ask where to save each file before downloading" setting.
2020-05-22 19:54:48 -05:00
David Lechner
23566a7d4a
Check Web Bluetooth capabilities
...
This adds/improves checks for the various Web Bluetooth capabilities
that we are using and notifies the user when capabilities are missing.
2020-05-20 21:31:51 -05:00
David Lechner
3ae2fb2eef
wire up firmware flash progress
...
Also turn off logging and longer checksum interval to improve performance
94K movehub fw flashes in about 1:45
2020-05-20 19:57:23 -05:00
David Lechner
90817a1ae7
github: add CI for pull requests
...
and hacks to get tests working
2020-05-20 14:52:45 -05:00
David Lechner
01374b6890
update for react-dropzone API change
2020-05-20 13:08:34 -05:00
David Lechner
a44e97f4a3
terminal resizing
2020-05-04 22:08:44 -05:00
David Lechner
02d4726092
update to @pybricks/mpy-cross-4 v2
...
v2 allows us to pass the mpy-cross options from the firmware to the
mpy-cross compiler.
2020-05-04 14:05:18 -05:00
David Lechner
c7b7162693
implement flashing firmware from new zip format
2020-05-02 14:40:18 -05:00