Commit graph

381 commits

Author SHA1 Message Date
jean-emmanuel
34de7420e2 midi: move python src to server folder to be as consistent as possible with the build result 2025-09-12 11:45:21 +02:00
jean-emmanuel
18568d40c6 server: fix var name 2025-09-12 10:48:52 +02:00
jean-emmanuel
45f5ae870b midi: move dist bin to python folder 2025-09-12 10:47:47 +02:00
jean-emmanuel
9d9462685b midi: only freeze python loader and keep python source editable to reduce future need for midi bin rebuild 2025-09-12 10:38:21 +02:00
jean-emmanuel
3a2a186e42 electron: clean 2025-09-12 02:51:41 +02:00
jean-emmanuel
fb3def071f server: use electron as node for server process 2025-09-12 02:49:44 +02:00
jean-emmanuel
3a1a05636b server: migrate to esm, split node and electron code 2025-09-12 02:44:06 +02:00
jean-emmanuel
f4fb4e7d2c midi: check if midi should be there without eval 2025-09-10 16:07:06 +02:00
jean-emmanuel
803fa2a4e9 build: remove main ace lib from bundle, just copy 2025-09-10 12:15:01 +02:00
jean-emmanuel
4cde746a74 server: fix resolving absolute file urls containing the remote-root path 2025-08-27 22:47:13 +02:00
jean-emmanuel
83fd78e322 tray: fix (?) quit menu action 2025-07-23 08:17:09 +02:00
jean-emmanuel
28c0877dc9 launcher: add hide action if using tray 2025-07-22 19:34:30 +02:00
jean-emmanuel
5cf59ea97c tray: make it optional and disabled by default 2025-07-22 19:24:50 +02:00
jean-emmanuel
015736486c tray: only quit if server is stopped; hide in tray when starting minimzed 2025-07-22 19:02:41 +02:00
jean-emmanuel
14f8a0bf29 midi: allow arm64/darwin midi 2025-07-16 20:02:30 +02:00
jean-emmanuel
a5d5586dc3 tray: code lint, retina icon for mac, keep alive launcher and tray when closing if there's a client window 2025-07-08 16:58:02 +02:00
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