Commit graph

365 commits

Author SHA1 Message Date
wicast
a89f24d2f1 fix: macos tray icon size 2025-07-08 11:53:37 +08:00
wicast
0666d4677e feat: add tray icon 2025-07-08 11:00:47 +08:00
jean-emmanuel
84cba42d86 cli: regression (1.28) preventing from setting options from a terminal on windows 2025-05-24 13:22:29 +02:00
jean-emmanuel
dc9f1435e3 misc: combining --read-only and --fullscreen now disables F11 on built-in client 2025-04-08 10:48:46 +02:00
jean-emmanuel
36c89648b8 win: fix drive listing 2025-04-03 15:39:33 +02:00
jean-emmanuel
afc7d677e5 win: attempt to use powershell to lst drives 2025-04-03 15:20:19 +02:00
jean-emmanuel
bdf3ad1958 misc: on win32 display full error when failing to list disks 2025-04-02 10:20:34 +02:00
jean-emmanuel
0e703d95e3 server: missing coma 2025-03-07 10:51:51 +01:00
jean-emmanuel
1138933aa9 server: fix ELECTRON_RUN_AS_NODE 2025-03-07 10:46:46 +01:00
jean-emmanuel
e65e928f88 server: fix debug log for outgoing rgba messages 2025-02-28 13:58:27 +01:00
jean-emmanuel
af9c4c5fb0 launcher: fix electron-remote for recent electron 2025-02-08 12:36:06 +01:00
jean-emmanuel
bdd83657c8 custom module: receive() and send() now accept host and port to be provided as a single string argument joined by a colon 2025-01-11 16:41:07 +01:00
jean-emmanuel
df8e4bbcbf file browser: fallback to home directory when last visited directory is not accessible 2024-10-17 10:34:27 +02:00
jean-emmanuel
f2b2dbe9f6 server: fix read-only + fullscreen option combo 2024-08-10 10:07:56 +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
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
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
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
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
ac995b2dd1 lint 2024-04-03 10:01:05 +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
1a4b971b18 mac: unable to show launcher windows when starting minimized 2024-02-22 09:29:35 +01:00
jean-emmanuel
3ed11f3894 custom-module: expose tcpServer 2024-02-21 10:52:40 +01:00
jean-emmanuel
f78814ba45 launcher: start hidden on mac is "start minimized" is set 2024-02-21 10:10:55 +01:00
jean-emmanuel
690add4b38 server: fix config file read/write initial check 2024-02-04 09:57:22 +01:00
jean-emmanuel
9181c2a3aa remote control: /EDIT* commands sent by a custom module are not affected by the server's read-only option anymore 2024-01-17 16:05:03 +01:00
jean-emmanuel
4ef3595125 server: print config file read error 2023-11-23 09:42:32 +01:00
jean-emmanuel
3e74271e12 code editor: update ace (use upstream), update syntax (es7), do some cleanup, prevent middle clicking (causes issues on linux) 2023-09-08 18:08:54 +02:00
jean-emmanuel
04e4e95c04 ipc: fix --authentication on iOS clients (don't rely on headers to pass credentials)
misc: remove "new Buffer()" deprecation warning
2023-09-06 23:44:21 +02:00
jean-emmanuel
90b34d7475 custom module: receive() not passing boolean arguments properly 2023-08-30 13:13:29 +02:00
jean-emmanuel
afeb726ddb cli: electron might take a capital E, take it into account when parsing args 2023-07-02 16:09:12 +02:00
jean-emmanuel
6954727196 server: --client-size and --client-position options not parsed correctly 2023-04-15 13:23:12 +02:00
jean-emmanuel
a93d27f08e server: print multiple qrcodes if multiple network interfaces are available and prevent printing a qrcode for the localhost address 2023-04-06 00:35:11 +02:00
jean-emmanuel
b480889b70 custom module: add optional errorCallback argument toloadJSON and saveJSON 2023-04-05 22:57:50 +02:00
jean-emmanuel
9b2fa156ac midi: bump version 2023-03-15 08:42:05 +01:00
jean-emmanuel
23ca4ac9a7 misc: add css classes to some notification popups to allow targetting them with css themes 2023-03-10 10:09:06 +01:00
jean-emmanuel
81b6ca0557 custom module:don't restrict file extension in loadJSON() and saveJSON functions 2023-03-05 01:27:12 +01:00
jean-emmanuel
885886d0c9 midi: optional nrpn/rpn packing/unpacking 2023-01-31 16:10:20 +01:00
jean-emmanuel
abcd214114 lint 2022-12-25 17:37:13 +01:00
jean-emmanuel
3fd9c694ce image: add support for special value "qrcode" 2022-12-25 17:33:18 +01:00
jean-emmanuel
cebca61e30 qrcode: optional (cli) and on demand (launcher) 2022-12-25 17:17:08 +01:00
jean-emmanuel
454884eb81 custom module: fix autoreload on nested submodules 2022-11-29 16:58:48 +01:00
jean-emmanuel
6ef1d412f9 custom module: expose global object that persists accross module reloads. 2022-11-29 08:36:09 +01:00
jean-emmanuel
ddcf186a66 custom module: prevent error when module.exports is not defined 2022-11-29 08:02:11 +01:00
jean-emmanuel
738df79708 qrcode pr: refactor for terminal compatibility 2022-11-26 18:34:36 +01:00
jean-emmanuel
924b3c924e misc: rename launcher>->server event 2022-11-26 18:33:53 +01:00