Commit Graph

121 Commits

Author SHA1 Message Date
Ingvar Stepanyan
b682303c75 Move more things to the ui folder 2021-11-30 19:15:29 +00:00
Ingvar Stepanyan
85b8cc8546 Remove flag that now breaks uname syscall 2021-11-30 18:35:12 +00:00
Ingvar Stepanyan
9628b52f0d Update libusb fork 2021-11-30 16:05:22 +00:00
Ingvar Stepanyan
743495f17d Upgrade Emscripten 2021-11-30 15:58:50 +00:00
Ingvar Stepanyan
fb6fc2582e Upgrade libusb fork 2021-11-30 15:58:45 +00:00
Ingvar Stepanyan
b39e701c32 Update submodules 2021-11-25 19:05:56 +00:00
Ingvar Stepanyan
d843ebe522 Try to increase timeout 2021-09-14 13:19:07 +00:00
Ingvar Stepanyan
e1b0fae48c Revert "Rely on upstream timeout"
This reverts commit f7f0c8c470.
2021-09-14 13:00:54 +00:00
Ingvar Stepanyan
f3c8770bb5 Restructure & add Netlify config 2021-09-14 13:00:52 +00:00
Ingvar Stepanyan
f7f0c8c470 Rely on upstream timeout 2021-09-14 11:20:38 +00:00
Ingvar Stepanyan
b3d1e668b2 Update Dockerfile 2021-08-16 19:08:41 +01:00
Ingvar Stepanyan
57ae59785b Add missing -fexceptions link flag 2021-08-09 13:42:47 +00:00
Ingvar Stepanyan
89c83afe4e Add explicit -pthread to api.cpp 2021-08-09 13:15:47 +00:00
Ingvar Stepanyan
61c2db8ae1 Comment out log 2021-08-09 12:46:30 +00:00
Ingvar Stepanyan
1001e71b48 Add serve config & more instructions 2021-08-09 12:44:48 +00:00
Ingvar Stepanyan
b0dcdb7775 Few more (final?) fixes for Docker build 2021-08-09 12:42:14 +00:00
Ingvar Stepanyan
43f7e941b3 Move canvas update to slightly better position 2021-08-06 23:58:43 +00:00
Ingvar Stepanyan
c1b98d4e52 Fix Git lock errors and a bit of cleanup 2021-08-06 23:52:40 +00:00
Ingvar Stepanyan
3c89a9c932 Add short README 2021-08-06 23:14:36 +00:00
Ingvar Stepanyan
5eb471b0b3 Add missing gpp_rethrow 2021-08-06 23:12:27 +00:00
Ingvar Stepanyan
6add480400 Reuse Emscripten's sysroot 2021-08-06 22:14:41 +00:00
Ingvar Stepanyan
3e071027d2 Further build improvements 2021-08-06 21:49:59 +00:00
Ingvar Stepanyan
2665a5bc41 Add build with Docker, make and submodules
Starting to pull out hacks and custom instructions into a reproducible build.
2021-08-06 20:49:19 +00:00
Ingvar Stepanyan
8600639023 Further fixes; improve error handling 2021-08-06 13:48:08 +00:00
Ingvar Stepanyan
a9accb2e4e Remove now-unused enum bindings 2021-07-26 18:04:27 +00:00
Ingvar Stepanyan
8f30a60c2e Add handling for "camera actions" 3rd checkbox state 2021-07-26 15:00:35 +00:00
Ingvar Stepanyan
36ed35192c Consume all pending events at once 2021-07-26 13:25:51 +00:00
Ingvar Stepanyan
92c785dc73 Fix in-progress config rendering 2021-07-26 13:24:35 +00:00
Ingvar Stepanyan
1072d5faa5 Remove triggerCapture 2021-07-26 13:09:38 +00:00
Ingvar Stepanyan
e3ea463db5 Integrate supported ops into the UI 2021-07-26 13:09:10 +00:00
Ingvar Stepanyan
95ed711729 Return supported ops as an object 2021-07-26 12:52:38 +00:00
Ingvar Stepanyan
c41c0962d5 Use requestIdleCallback for config updates 2021-07-23 20:09:20 +00:00
Ingvar Stepanyan
dfcb610df1 Remove console.log 2021-07-23 20:05:26 +00:00
Ingvar Stepanyan
a37aa2853b Commit typings 2021-07-23 20:04:42 +00:00
Ingvar Stepanyan
ca75f61289 Check for pending events before updating the config
Small optimisation that significantly reduces number of config updates.
2021-07-23 20:04:32 +00:00
Ingvar Stepanyan
86f9be758f Fix context error handler
This can be called deep in the gphoto2 callstack, and throwing here would prevent proper C cleanup.

Instead, just log an error here and rely on status values higher up in the APIs to throw actual C++ errors.
2021-07-23 19:22:34 +00:00
Ingvar Stepanyan
fc52ce5c84 Remove few unused C++ funcs 2021-07-23 19:20:06 +00:00
Ingvar Stepanyan
a8fa8cdf4c Gracefully handle unsupported capture 2021-07-23 19:19:40 +00:00
Ingvar Stepanyan
fcb67b1517 Gracefully handle unsupported preview operation 2021-07-23 17:22:29 +00:00
Ingvar Stepanyan
585001bd4e Optimise Widget rendering
Names and lists of values should always remain the same, only update on value/readonly changes.
2021-07-23 17:01:40 +00:00
Ingvar Stepanyan
fa2084a9d7 Build with optimisations 2021-07-23 16:40:43 +00:00
Ingvar Stepanyan
7b37bed6f2 Add stats.js for the preview panel when ?debug is on 2021-07-22 17:40:30 +00:00
Ingvar Stepanyan
4371da9270 Extract CaptureButton; allow non-singletone connections 2021-07-21 16:38:18 +00:00
Ingvar Stepanyan
73148dbc11 Split out Preview component
- Self-host the wrapper div.
 - Make component accept getPreview as an async function prop.
 - Explicitly dispose ResizeObserver on unmount.
 - Move to a new file.
2021-07-21 15:26:59 +00:00
Ingvar Stepanyan
686dba0812 Detach Widget from setValue impl 2021-07-21 14:47:52 +00:00
Ingvar Stepanyan
70a35d1b70 Extract some modules 2021-07-21 14:37:57 +00:00
Ingvar Stepanyan
5e54c25c55 Reduce scope of temp camera file 2021-07-21 14:14:58 +00:00
Ingvar Stepanyan
3b85b63d20 Delete camera file in destructor
This makes sure it gets deleted even on exception.
2021-07-21 14:13:39 +00:00
Ingvar Stepanyan
e4afa15c2c Remove Wasm preload; instead, actually load it sooner 2021-07-20 16:14:14 +00:00
Ingvar Stepanyan
379c6ead81 Shuffle around some ops in PreviewCanvas 2021-07-20 15:07:22 +00:00