Commit graph

5927 commits

Author SHA1 Message Date
jean-emmanuel
8fb4662bd1 mobile: fix build (broken in f891442e28) 2024-10-05 17:30:01 +02:00
jean-emmanuel
f891442e28 mobile: apply root's (or themes) background color the the browser's topbar when possible 2024-10-04 15:46:11 +02:00
jean-emmanuel
4451cffd36 editor: missing position dot in color picker pad (since f93056d21e) 2024-10-04 15:02:25 +02:00
jean-emmanuel
b194519071 patchbay: fix ìgnoreDefaults 2024-09-05 19:38:07 +02:00
jean-emmanuel
98ed962976 doc: patchbay scripting 2024-09-05 19:29:09 +02:00
jean-emmanuel
5d3f770e3b patchbay: address not working properly when set to auto 2024-09-05 19:22:42 +02:00
jean-emmanuel
04b7994e9a led, text: fix client sync 2024-08-29 10:43:17 +02:00
jean-emmanuel
f2b2dbe9f6 server: fix read-only + fullscreen option combo 2024-08-10 10:07:56 +02:00
jean-emmanuel
8878c9283b noop: typo 2024-08-09 12:48:34 +02:00
jean-emmanuel
0bc7848b06 log: fix formatting 2024-07-26 12:45:31 +02:00
jean-emmanuel
adb27b35fb docs: udpate ref 2024-07-26 12:41:43 +02:00
jean-emmanuel
359d467f4d docs: fix build 2024-07-26 12:41:27 +02:00
jean-emmanuel
abf943da5f ui: allow disabling notifications globally 2024-07-26 12:30:58 +02:00
jean-emmanuel
30ee07c52b clean 2024-07-26 12:17:09 +02:00
jean-emmanuel
1510ebb80d ui: allow dismissing notifications with a click 2024-07-26 12:14:36 +02:00
jean-emmanuel
31700de021 package: next is 1.27 2024-07-25 09:20:06 +02:00
jean-emmanuel
3547da8bdf client: file browser now remembers the last displayed directory 2024-07-24 11:59:54 +02:00
jean-emmanuel
8a34f9c81c clean 2024-07-24 11:57:51 +02:00
jean-emmanuel
026230d8e1 custom module: add stop() callback (runs when the server stops 2024-07-15 11:03:07 +02:00
jean-emmanuel
c56a5bfbeb log: latest changes 2024-06-22 12:11:13 +02:00
jean-emmanuel
c06107a07f remote control: ignore unsaved changes on /SESSION/CREATE 2024-06-22 12:08:22 +02:00
jean-emmanuel
ed6489a794 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2024-06-22 12:04:58 +02:00
jean-emmanuel
92d71019c6
Merge pull request #852 from matthijskooijman/create-session-osc-command
remote control: Add `/SESSION/CREATE` command
2024-06-22 12:04:53 +02:00
jean-emmanuel
118c064e86 custom module: error message formatting 2024-06-22 12:03:47 +02:00
jean-emmanuel
a21e789437
Merge pull request #851 from matthijskooijman/custom-module-reload-function
custom-module: Call reload() function on auto-reload
2024-06-22 12:00:52 +02:00
jean-emmanuel
f93056d21e pads: expose/clean --point-size css var, make pointSize property dynamic 2024-06-20 14:30:08 +02:00
jean-emmanuel
da6c5d02c7 clean 2024-06-20 13:38:04 +02:00
jean-emmanuel
dad35b6166 package lock update 2024-06-20 13:37:38 +02:00
jean-emmanuel
0e3119226b theme: fix issues with autoreload (correctly detect when stylesheet is reloaded) 2024-06-19 14:03:29 +02:00
jean-emmanuel
0e1ef27eb5 server/launcher: app address / qr code not updating when network changes 2024-06-19 12:53:44 +02:00
jean-emmanuel
33d0b54dad osc/custom module: more error backtraces 2024-06-19 12:51:24 +02:00
Matthijs Kooijman
c02146c9b1 remote control: Add /SESSION/CREATE command
This allows creating a new empty session. This is useful for projects
that want to dynamically create the entire session using a custom module.

Without this, you can also create an empty session json file and load
that with `--load`, but then you would have to manage that file, and if
you accidentaly press control-s, it gets overwritten to contain any
dynamically created widgets.

With this commit, such a custom module can just create a new session on
startup and then populate it. This takes a bit of fiddling to get the
order of events correct, this commit also adds an example showing how to
do this.
2024-06-18 09:41:10 +02:00
Matthijs Kooijman
c5314fe17a custom-module: Call reload() function on auto-reload
This allows modules to re-initialize any state they need whenever the
module is reloaded.

Without this, any such initialization can also be done in the top
level of the custom module, but this has two problems:

 1. Top-level module code runs on load and reload, and for the initial
    load, it runs *before* the connections are set up, so trying to use
    send() would produce an error on load (not reload).

 2. Top-level module code runs for the primary custom module, but also
    for any nested modules, removing control about the process and
    ordering from the primary custom module. In addition, a module that
    can be used both as primary and nested module, there is no clean way
    to distinguish between these cases.

Both of these problems can be solved by doing some bookkeeping in the
global object, but that produces messy code.

This commit allows modules to define a reload() function, which is
called (for the primary module only) after the module is reloaded. This
means that any initialization for the first load can be done in init()
and for reloads in reload(), and in both cases all connections will
already have been set up solving issue 1. In addition, neither of these
functions are called for nested modules, solving issue 2 (and the
primary module can then stil explicitly call a reload function on nested
modules if needed, as shown in the examples).
2024-06-18 09:37:01 +02:00
Matthijs Kooijman
a3194a3bb8 custom-module: Fix example for unload with nested modules
The unload method is actually called on all modules, not just the main
one, so it makes no sense to have the module merger example call it
explicitly on its submodules.
2024-06-18 09:32:35 +02:00
jean-emmanuel
71182cfd2e
Merge pull request #850 from matthijskooijman/udp-backtraces
server: Print backtraces for errors in UDP handler
2024-06-17 09:17:14 +02:00
Matthijs Kooijman
dfeb30a57d server: Print backtraces for errors in UDP handler
This applies to errors in e.g. the oscInFilter defined by a custom
plugin module. Previously, just the exception backtrace was shown,
without any indication of the exception type or where the error
occurred, e.g.:

    (ERROR, UDP) links is not defined

With this commit, the full exception including backtrace is printed,
making debugging a lot easier, e.g.:

    (ERROR, UDP) ReferenceError: links is not defined
	at CustomModule.oscInFilter (/app/custom-module.js:221:83)
	at OscServer.oscInFilter (/open-stage-control/app/server/src/server/osc/index.js:148:1)
	at OscServer.oscInHandler (/open-stage-control/app/server/src/server/osc/index.js:162:1)
	at OscServer.oscInHandlerWrapper (/open-stage-control/app/server/src/server/osc/index.js:174:1)
	at osc.UDPPort.emit (node:events:394:28)
	at Object.osc.firePacketEvents (/open-stage-control/app/server/node_modules/osc/src/osc-transports.js:25:1)
	at osc.UDPPort.p.decodeOSC (/open-stage-control/app/server/node_modules/osc/src/osc-transports.js:85:1)
2024-06-16 22:57:23 +02:00
jean-emmanuel
a8f9c263a2 package: update package.lock 2024-04-12 18:30:34 +02:00
jean-emmanuel
a4f27e32d4 package: fix building with node <= 20 2024-04-12 18:30:06 +02:00
jean-emmanuel
ac995b2dd1 lint 2024-04-03 10:01:05 +02:00
jean-emmanuel
a71df8177f advanced syntaxes: display an error in the console in some unsupported advanced syntaxes use cases 2024-04-03 09:50:28 +02:00
jean-emmanuel
b31b911a15 package: next is 1.26.2 2024-04-03 08:48:25 +02:00
jean-emmanuel
20d5091622 server: fix cookie parsing (user resources not loading when using an external browser) 2024-04-03 08:47:19 +02:00
jean-emmanuel
ededaee55b misc: lint 2024-03-13 18:17:41 +01:00
jean-emmanuel
0e68557b85 advanced syntaxes: restore stupid-simple resolution order, deduping value changes brings more problem than it solves
history: fe682693b1, 0e54c11f13, 182941a22c, 3a5fdf17c7, 8b92400c1e
2024-03-13 18:04:43 +01:00
jean-emmanuel
1a4b971b18 mac: unable to show launcher windows when starting minimized 2024-02-22 09:29:35 +01:00
jean-emmanuel
b63402fce8 docs: update widget ref 2024-02-21 11:06:09 +01:00
jean-emmanuel
fb09616030 package: v1.26 2024-02-21 11:05:30 +01:00
jean-emmanuel
0ecc104f4b lint 2024-02-21 11:02:49 +01:00
jean-emmanuel
e87891cb7c switch: allow resubmitting the same value 2024-02-21 11:01:50 +01:00
jean-emmanuel
3ed11f3894 custom-module: expose tcpServer 2024-02-21 10:52:40 +01:00