Compare commits

...

53 Commits

Author SHA1 Message Date
Joel Wetzell a9f836e20c bump macos runner version 2026-04-07 14:23:43 -05:00
Joel Wetzell 72cb7ce05b bump version to v1.3.0 2026-04-07 14:20:22 -05:00
Joel Wetzell e2d83fe49f Merge pull request #352 from stagehacks/dependabot/npm_and_yarn/electron-builder-26.8.1
Bump electron-builder from 26.7.0 to 26.8.1
2026-04-07 14:15:02 -05:00
Joel Wetzell 4dd5dbf2cc Merge pull request #361 from stagehacks/dependabot/npm_and_yarn/lodash-4.18.1
Bump lodash from 4.17.23 to 4.18.1
2026-04-07 14:14:43 -05:00
dependabot[bot] 0d22fc3c8d Bump electron-builder from 26.7.0 to 26.8.1
Bumps [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder) from 26.7.0 to 26.8.1.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/electron-builder@26.8.1/packages/electron-builder)

---
updated-dependencies:
- dependency-name: electron-builder
  dependency-version: 26.8.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-07 19:13:43 +00:00
dependabot[bot] 098d54ecf3 Bump lodash from 4.17.23 to 4.18.1
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.23 to 4.18.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.23...4.18.1)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-07 19:12:30 +00:00
Joel Wetzell 3a421fab4f Merge pull request #359 from stagehacks/dependabot/npm_and_yarn/electron-39.8.5
Bump electron from 39.2.4 to 39.8.5
2026-04-07 14:12:17 -05:00
Joel Wetzell 2f6188e2d8 add ip package as an actual dependency 2026-04-07 14:11:03 -05:00
Joel Wetzell d7e1f8ffc1 Merge pull request #353 from stagehacks/dependabot/npm_and_yarn/flatted-3.4.2
Bump flatted from 3.2.7 to 3.4.2
2026-04-07 13:59:38 -05:00
Joel Wetzell 5b616301c0 Merge pull request #355 from stagehacks/dependabot/npm_and_yarn/picomatch-4.0.4
Bump picomatch from 4.0.3 to 4.0.4
2026-04-07 13:57:41 -05:00
Joel Wetzell 55522c4910 Merge pull request #356 from stagehacks/dependabot/npm_and_yarn/xmldom/xmldom-0.8.12
Bump @xmldom/xmldom from 0.8.11 to 0.8.12
2026-04-07 13:57:16 -05:00
sparks-alec 687fe9aa85 Merge pull request #360 from rsmck/rh/eos-realtime-cue-timers
Add real-time timer updates to Eos
2026-04-06 16:26:00 -04:00
Ross Henderson f26d1a9d49 Add real-time timer updates to Eos 2026-04-06 20:57:28 +01:00
dependabot[bot] 3ce7956b18 Bump electron from 39.2.4 to 39.8.5
Bumps [electron](https://github.com/electron/electron) from 39.2.4 to 39.8.5.
- [Release notes](https://github.com/electron/electron/releases)
- [Commits](https://github.com/electron/electron/compare/v39.2.4...v39.8.5)

---
updated-dependencies:
- dependency-name: electron
  dependency-version: 39.8.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-03 22:28:28 +00:00
dependabot[bot] 60dc91385e Bump @xmldom/xmldom from 0.8.11 to 0.8.12
Bumps [@xmldom/xmldom](https://github.com/xmldom/xmldom) from 0.8.11 to 0.8.12.
- [Release notes](https://github.com/xmldom/xmldom/releases)
- [Changelog](https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xmldom/xmldom/compare/0.8.11...0.8.12)

---
updated-dependencies:
- dependency-name: "@xmldom/xmldom"
  dependency-version: 0.8.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-01 04:49:28 +00:00
dependabot[bot] d466e7646f Bump picomatch from 4.0.3 to 4.0.4
Bumps [picomatch](https://github.com/micromatch/picomatch) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/4.0.3...4.0.4)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-26 07:20:37 +00:00
dependabot[bot] 9ff1ea8db6 Bump flatted from 3.2.7 to 3.4.2
Bumps [flatted](https://github.com/WebReflection/flatted) from 3.2.7 to 3.4.2.
- [Commits](https://github.com/WebReflection/flatted/compare/v3.2.7...v3.4.2)

---
updated-dependencies:
- dependency-name: flatted
  dependency-version: 3.4.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-19 17:55:36 +00:00
Joel Wetzell bf2a975b4b Merge pull request #342 from stagehacks/dependabot/npm_and_yarn/electron-updater-6.7.3
Bump electron-updater from 6.6.2 to 6.7.3
2026-03-11 10:25:19 -05:00
dependabot[bot] 1afc71ada2 Bump electron-updater from 6.6.2 to 6.7.3
Bumps [electron-updater](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-updater) from 6.6.2 to 6.7.3.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-updater/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/electron-updater@6.7.3/packages/electron-updater)

---
updated-dependencies:
- dependency-name: electron-updater
  dependency-version: 6.7.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-11 15:25:00 +00:00
Joel Wetzell 20d81a0289 Merge pull request #350 from stagehacks/dependabot/npm_and_yarn/tar-7.5.11
Bump tar from 7.5.10 to 7.5.11
2026-03-11 10:23:33 -05:00
Joel Wetzell 674b5d305d Merge pull request #344 from stagehacks/dependabot/npm_and_yarn/atem-connection-3.8.2
Bump atem-connection from 3.8.0 to 3.8.2
2026-03-11 10:23:19 -05:00
dependabot[bot] ae996e0b5c Bump atem-connection from 3.8.0 to 3.8.2
Bumps [atem-connection](https://github.com/Sofie-Automation/sofie-atem-connection) from 3.8.0 to 3.8.2.
- [Changelog](https://github.com/Sofie-Automation/sofie-atem-connection/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Sofie-Automation/sofie-atem-connection/compare/v3.8.0...v3.8.2)

---
updated-dependencies:
- dependency-name: atem-connection
  dependency-version: 3.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-11 15:23:04 +00:00
dependabot[bot] a1cf536cf5 Bump tar from 7.5.10 to 7.5.11
Bumps [tar](https://github.com/isaacs/node-tar) from 7.5.10 to 7.5.11.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.5.10...v7.5.11)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.11
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-11 15:22:50 +00:00
Joel Wetzell 62085183f6 Merge pull request #346 from stagehacks/dependabot/npm_and_yarn/bonjour-3.5.1
Bump bonjour from 3.5.0 to 3.5.1
2026-03-11 10:22:05 -05:00
Joel Wetzell e9f37994b2 Merge pull request #348 from stagehacks/dependabot/npm_and_yarn/multi-bf627a84bc
Bump minimatch
2026-03-11 10:21:53 -05:00
Joel Wetzell f3574cdc3b Merge pull request #349 from stagehacks/dependabot/npm_and_yarn/tar-7.5.10
Bump tar from 7.5.7 to 7.5.10
2026-03-11 10:21:43 -05:00
dependabot[bot] e6949e9d9f Bump tar from 7.5.7 to 7.5.10
Bumps [tar](https://github.com/isaacs/node-tar) from 7.5.7 to 7.5.10.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.5.7...v7.5.10)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.10
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 13:24:37 +00:00
dependabot[bot] 5f2978452a Bump minimatch
Bumps  and [minimatch](https://github.com/isaacs/minimatch). These dependencies needed to be updated together.

Updates `minimatch` from 3.1.2 to 3.1.5
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 9.0.5 to 9.0.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 5.1.6 to 5.1.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 10.1.1 to 10.2.4
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 9.0.9
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 5.1.9
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 10.2.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-28 04:58:22 +00:00
dependabot[bot] a907c21a48 Bump bonjour from 3.5.0 to 3.5.1
Bumps [bonjour](https://github.com/watson/bonjour) from 3.5.0 to 3.5.1.
- [Commits](https://github.com/watson/bonjour/compare/v3.5.0...v3.5.1)

---
updated-dependencies:
- dependency-name: bonjour
  dependency-version: 3.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-16 10:12:56 +00:00
Joel Wetzell 97da2c41fb Merge pull request #339 from stagehacks/dependabot/npm_and_yarn/electron-builder-26.7.0
Bump electron-builder from 26.0.12 to 26.7.0
2026-02-03 11:36:38 -06:00
dependabot[bot] d1cd5b9f42 Bump electron-builder from 26.0.12 to 26.7.0
Bumps [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder) from 26.0.12 to 26.7.0.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/electron-builder@26.7.0/packages/electron-builder)

---
updated-dependencies:
- dependency-name: electron-builder
  dependency-version: 26.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 23:48:17 +00:00
Joel Wetzell c83b49f6d9 Merge pull request #338 from stagehacks/dependabot/npm_and_yarn/prettier-3.8.1
Bump prettier from 3.7.3 to 3.8.1
2026-02-02 13:42:51 -06:00
Joel Wetzell 7ffdbcaa06 Merge pull request #340 from stagehacks/dependabot/npm_and_yarn/atem-connection-3.8.0
Bump atem-connection from 3.7.0 to 3.8.0
2026-02-02 13:41:49 -06:00
dependabot[bot] 3fef025aa3 Bump atem-connection from 3.7.0 to 3.8.0
Bumps [atem-connection](https://github.com/Sofie-Automation/sofie-atem-connection) from 3.7.0 to 3.8.0.
- [Changelog](https://github.com/Sofie-Automation/sofie-atem-connection/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Sofie-Automation/sofie-atem-connection/compare/v3.7.0...v3.8.0)

---
updated-dependencies:
- dependency-name: atem-connection
  dependency-version: 3.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 10:31:03 +00:00
dependabot[bot] 40daba698a Bump prettier from 3.7.3 to 3.8.1
Bumps [prettier](https://github.com/prettier/prettier) from 3.7.3 to 3.8.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.7.3...3.8.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.8.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 10:30:44 +00:00
Joel Wetzell 62e9e355d3 Merge pull request #328 from stagehacks/dependabot/npm_and_yarn/js-yaml-4.1.1
Bump js-yaml from 4.1.0 to 4.1.1
2026-01-27 17:01:23 -06:00
Joel Wetzell 95cd95d3a2 Merge pull request #330 from stagehacks/dependabot/npm_and_yarn/atem-connection-3.7.0
Bump atem-connection from 3.5.0 to 3.7.0
2026-01-27 17:01:15 -06:00
Joel Wetzell e0cc525d40 Merge pull request #332 from stagehacks/dependabot/github_actions/actions/checkout-6
Bump actions/checkout from 5 to 6
2026-01-27 17:00:58 -06:00
Joel Wetzell 3e800a9d36 Merge pull request #333 from stagehacks/dependabot/npm_and_yarn/electron-39.2.4
Bump electron from 39.1.1 to 39.2.4
2026-01-27 17:00:47 -06:00
Joel Wetzell 4263eb1e8b Merge pull request #334 from stagehacks/dependabot/npm_and_yarn/prettier-3.7.3
Bump prettier from 3.6.2 to 3.7.3
2026-01-27 17:00:07 -06:00
Joel Wetzell e5a10aa7c3 Merge pull request #336 from stagehacks/dependabot/npm_and_yarn/lodash-4.17.23
Bump lodash from 4.17.21 to 4.17.23
2026-01-27 16:59:55 -06:00
dependabot[bot] 4ca0855f9e Bump lodash from 4.17.21 to 4.17.23
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 02:10:26 +00:00
dependabot[bot] 12db688c39 Bump prettier from 3.6.2 to 3.7.3
Bumps [prettier](https://github.com/prettier/prettier) from 3.6.2 to 3.7.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.6.2...3.7.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.7.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 09:58:42 +00:00
dependabot[bot] 6e1fdcacba Bump electron from 39.1.1 to 39.2.4
---
updated-dependencies:
- dependency-name: electron
  dependency-version: 39.2.4
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 09:58:31 +00:00
dependabot[bot] 2d7d733fe8 Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 09:21:48 +00:00
dependabot[bot] 957ee656ea Bump js-yaml from 4.1.0 to 4.1.1
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.0...4.1.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-23 21:27:04 +00:00
dependabot[bot] 7b4727b9c4 Bump atem-connection from 3.5.0 to 3.7.0
Bumps [atem-connection](https://github.com/Sofie-Automation/sofie-atem-connection) from 3.5.0 to 3.7.0.
- [Changelog](https://github.com/Sofie-Automation/sofie-atem-connection/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Sofie-Automation/sofie-atem-connection/compare/v3.5.0...v3.7.0)

---
updated-dependencies:
- dependency-name: atem-connection
  dependency-version: 3.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-23 21:27:03 +00:00
Joel Wetzell 61e394bb2b Merge pull request #268 from stagehacks/qlab-faster-redraw-fix
better handling of DOM updates for device drawing
2025-11-23 15:25:47 -06:00
jwetzell 691a5ac7a5 sync package-lock 2025-11-23 15:23:42 -06:00
jwetzell 71c34eecbf create diffs directly against the current DOM 2025-11-23 15:23:28 -06:00
jwetzell e02a7d7819 convert view.draw to virtual dom based body 2025-11-23 15:23:28 -06:00
jwetzell 8b653b00fe rework qlab draw to skip draws if more incoming updates 2025-11-23 15:18:01 -06:00
jwetzell 86c31e1057 add contentBodyElement to device 2025-11-23 15:18:01 -06:00
9 changed files with 1479 additions and 6157 deletions
+4 -4
View File
@@ -9,7 +9,7 @@ jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
@@ -19,7 +19,7 @@ jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
@@ -27,7 +27,7 @@ jobs:
- run: npm ci
- run: npm run release
build-macos:
runs-on: macos-13
runs-on: macos-14
env:
CSC_LINK: ${{ secrets.MACOS_CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.MACOS_CSC_KEY_PASSWORD }}
@@ -35,7 +35,7 @@ jobs:
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
+1193 -6108
View File
File diff suppressed because it is too large Load Diff
+12 -9
View File
@@ -1,7 +1,7 @@
{
"name": "cue-view",
"productName": "Cue View",
"version": "1.2.4",
"version": "1.3.0",
"description": "A dashboard for everything in your show",
"main": "main.js",
"scripts": {
@@ -20,24 +20,27 @@
"repository": "https://github.com/stagehacks/Cue-View",
"devDependencies": {
"@electron/notarize": "3.1.1",
"electron": "39.1.1",
"electron-builder": "26.0.12",
"electron": "39.8.5",
"electron-builder": "26.8.1",
"eslint": "8.57.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-import": "2.32.0",
"prettier": "3.6.2"
"prettier": "3.8.1"
},
"dependencies": {
"@jwetzell/posistagenet": "2.1.1",
"atem-connection": "3.5.0",
"bonjour": "3.5.0",
"electron-updater": "6.6.2",
"lodash": "4.17.21",
"atem-connection": "3.9.0",
"bonjour": "3.5.1",
"electron-updater": "6.8.3",
"html-to-vdom": "0.7.0",
"ip": "2.0.1",
"lodash": "4.18.1",
"md5": "2.3.0",
"netmask": "2.0.2",
"osc": "2.4.5",
"uuid": "13.0.0"
"uuid": "13.0.0",
"virtual-dom": "2.1.1"
},
"build": {
"appId": "com.stagehacks.cueview",
+22 -9
View File
@@ -11,7 +11,9 @@
</tr>
<% } %>
<% if(isActive){ %>
<% if(isRunning){ %>
<tr class="running-cue scroll-position">
<% }else if(isComplete || isActive){ %>
<tr class="active-cue scroll-position">
<% }else{ %>
</tr>
@@ -53,7 +55,8 @@
<td class="black hide-medium">
<%= part.prettyDuration(part.beamTimeDuration, true) %>
</td>
<td class="hide-small"><%= part.prettyDuration(part.duration) %></td>
<% var durValue = (isRunning && remainingDuration !== null && remainingDuration !== undefined) ? remainingDuration : part.duration %>
<td class="hide-small"><%= part.prettyDuration(durValue) %></td>
<% }else{ %>
<td class="black" colspan="2"></td>
@@ -63,13 +66,23 @@
<td class="hide-small"></td>
<% } %>
<td class="black hide-small"><%= part.mark %></td>
<td class="black hide-small"><%= part.block %></td>
<td class="black hide-small"><%= part.assert %></td>
<td class="black hide-small">
<%= (part.follow>=0)? "F"+part.prettyDuration(part.follow) : "" %>
<%= (part.hang>=0)? "H"+part.prettyDuration(part.hang) : "" %>
</td>
<td class="black hide-small"><%= part.mark %></td>
<td class="black hide-small"><%= part.block %></td>
<td class="black hide-small"><%= part.assert %></td>
<% var followDisplay = (part.follow>=0)? "F"+part.prettyDuration(part.follow) : "" %>
<% var hangDisplay = (part.hang>=0)? "H"+part.prettyDuration(part.hang) : "" %>
<% var followHangDisplay = followDisplay + hangDisplay %>
<% var isFollowHangOnlyRunning = (followHangRemainingDuration !== null && followHangRemainingDuration !== undefined && followHangRemainingDuration > 0 && !isRunning) %>
<% if(followHangRemainingDuration !== null && followHangRemainingDuration !== undefined && followHangRemainingDuration > 0){ %>
<% if(part.follow >= 0){ %>
<% followHangDisplay = "F"+part.prettyDuration(followHangRemainingDuration) %>
<% }else if(part.hang >= 0 && !isRunning){ %>
<% followHangDisplay = "H"+part.prettyDuration(followHangRemainingDuration) %>
<% } %>
<% } %>
<td class="black hide-small <%= isFollowHangOnlyRunning ? 'running-follow-hang' : '' %>">
<%= followHangDisplay %>
</td>
<td class="black" style="text-align: left">
<%= (partNumber==0 ? "": "&nbsp;&nbsp;&nbsp;") %>
<%= part.label %>
+180 -4
View File
@@ -27,6 +27,9 @@ exports.config = {
action(_device) {
const device = _device;
device.data.cueListFilter = device.fields.cueListFilter;
if (device.data.EOS) {
subscribeToCueList(device);
}
device.draw();
},
},
@@ -40,10 +43,14 @@ exports.ready = function ready(_device) {
cue: _.template(fs.readFileSync(path.join(__dirname, `cue.ejs`))),
};
device.data.cueListFilter = device.fields.cueListFilter;
device.data.EOS.progressCueList = resolveConfiguredCueList(device);
device.send('/eos/get/cuelist/count');
device.send('/eos/get/version');
device.send('/eos/subscribe', [{ type: 'i', value: 1 }]);
// subscribe to the selected cue list specifically
subscribeToCueList(device);
};
exports.data = function data(_device, osc) {
@@ -80,6 +87,7 @@ exports.data = function data(_device, osc) {
device.update('cueData', {
cue: device.data.EOS.cueLists[addressParts[4]][addressParts[5]],
cueListNumber: addressParts[4],
cueNumber: addressParts[5],
uid: osc.args[1],
});
@@ -92,9 +100,88 @@ exports.data = function data(_device, osc) {
if (osc.args.length === 3) {
device.data.EOS.cueLists[addressParts[4]][addressParts[5]][0].extLinks = osc.args[2];
}
} else if (match(addressParts, ['eos', 'out', 'cuelist', '8001', '1'])) {
const cueListNumber = resolveConfiguredCueList(device);
const cueNumber = cueNumberValue(osc.args[1]);
const totalMs = nonNegativeInt(osc.args[6]);
const cueRemainingMs = nonNegativeInt(osc.args[7]);
const previousCueNumber = cueNumberValue(device.data.EOS.activeCueByList[cueListNumber]);
if (cueNumber !== undefined) {
device.data.EOS.activeCueByList[cueListNumber] = cueNumber;
device.data.EOS.activeCue = cueNumber;
}
if (cueNumber !== undefined || cueRemainingMs !== null || totalMs !== null) {
const progress = device.data.EOS.progressByList[cueListNumber] || {};
if (cueNumber !== undefined) {
progress.cueNumber = cueNumber;
}
if (cueRemainingMs !== null) {
progress.cueRemainingMs = cueRemainingMs;
}
if (totalMs !== null) {
progress.totalMs = totalMs;
}
device.data.EOS.progressByList[cueListNumber] = progress;
}
if (previousCueNumber !== undefined && previousCueNumber !== cueNumber) {
device.update('cueState', {
cueListNumber,
cueNumber: previousCueNumber,
});
}
if (cueNumber !== undefined) {
device.update('cueState', {
cueListNumber,
cueNumber,
});
}
} else if (match(addressParts, ['eos', 'out', 'cuelist', '8001'])) {
const cueListNumber = resolveConfiguredCueList(device);
const followHangRemainingMs = nonNegativeInt(osc.args[2]);
if (followHangRemainingMs !== null) {
const progress = device.data.EOS.progressByList[cueListNumber] || {};
const activeCueForList = cueNumberValue(device.data.EOS.activeCueByList[cueListNumber]);
if (progress.cueNumber === undefined && activeCueForList !== undefined) {
progress.cueNumber = activeCueForList;
}
progress.followHangRemainingMs = followHangRemainingMs;
device.data.EOS.progressByList[cueListNumber] = progress;
if (progress.cueNumber !== undefined) {
device.update('cueState', {
cueListNumber,
cueNumber: progress.cueNumber,
});
}
}
} else if (match(addressParts, ['eos', 'out', 'event', 'cue', '*', '*', 'fire'])) {
device.data.EOS.activeCue = addressParts[5];
device.draw();
const cueListNumber = cueNumberValue(addressParts[4]);
const cueNumber = cueNumberValue(addressParts[5]);
const previousCueNumber = cueNumberValue(device.data.EOS.activeCueByList[cueListNumber]);
device.data.EOS.activeCue = cueNumber;
device.data.EOS.activeCueByList[cueListNumber] = cueNumber;
device.data.EOS.progressByList[cueListNumber] = {
cueNumber,
cueRemainingMs: null,
followHangRemainingMs: null,
totalMs: null,
};
if (previousCueNumber !== undefined && previousCueNumber !== cueNumber) {
device.update('cueState', {
cueListNumber,
cueNumber: previousCueNumber,
});
}
device.update('cueState', {
cueListNumber,
cueNumber,
});
const cues = device.data.EOS.cueLists[addressParts[4]][addressParts[5]];
if (cues) {
device.update('activeCue', {
@@ -115,18 +202,48 @@ exports.data = function data(_device, osc) {
exports.update = function update(device, doc, updateType, data) {
if (updateType === 'cueData') {
const $elem = doc.getElementById(data.uid);
const cueState = cueRenderState(device, data.cueListNumber, data.cueNumber);
if ($elem) {
$elem.outerHTML = device.templates.cue({
q: data.cue,
cueNumber: data.cueNumber,
isActive: false,
isActive: cueState.isComplete,
isComplete: cueState.isComplete,
isRunning: cueState.isRunning,
remainingDuration: cueState.remainingDuration,
followHangRemainingDuration: cueState.followHangRemainingDuration,
});
} else {
device.draw();
}
} else if (updateType === 'cueState') {
const cueListNumber = cueNumberValue(data.cueListNumber);
const cueNumber = cueNumberValue(data.cueNumber);
const cues = device.data.EOS.cueLists?.[cueListNumber]?.[cueNumber];
if (!cues || !cues[0]) {
device.draw();
return;
}
const $elem = doc.getElementById(cues[0].uid);
if ($elem) {
const cueState = cueRenderState(device, cueListNumber, cueNumber);
$elem.outerHTML = device.templates.cue({
q: cues,
cueNumber,
isActive: cueState.isComplete,
isComplete: cueState.isComplete,
isRunning: cueState.isRunning,
remainingDuration: cueState.remainingDuration,
followHangRemainingDuration: cueState.followHangRemainingDuration,
});
} else {
device.draw();
}
} else if (updateType === 'activeCue') {
const $elem = doc.getElementById(data.uid);
$elem.scrollIntoView({ behavior: 'smooth', block: 'center' });
if ($elem) {
$elem.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
}
};
@@ -134,6 +251,62 @@ exports.heartbeat = function heartbeat(device) {
device.send('/eos/ping');
};
function resolveConfiguredCueList(device) {
const cueListFilter = cueNumberValue(device.data.cueListFilter);
return cueListFilter || '1';
}
function subscribeToCueList(device) {
const cueListNumber = resolveConfiguredCueList(device);
const eosState = device.data.EOS;
eosState.progressCueList = cueListNumber;
device.send(`/eos/cuelist/8001/config/${cueListNumber}/0/0`);
}
function cueRenderState(device, cueListNumber, cueNumber) {
const list = cueNumberValue(cueListNumber);
const cue = cueNumberValue(cueNumber);
const progress = device.data.EOS.progressByList[list];
const activeCue = cueNumberValue(device.data.EOS.activeCueByList[list]);
const cueRemainingMs = progress?.cueRemainingMs;
const followHangRemainingMs = progress?.followHangRemainingMs;
const isComplete = cue === activeCue;
const isRunning =
isComplete &&
progress !== undefined &&
cue === cueNumberValue(progress.cueNumber) &&
cueRemainingMs !== null &&
cueRemainingMs > 0;
const hasFollowHangCountdown = isComplete && followHangRemainingMs !== null && followHangRemainingMs > 0;
return {
isRunning,
isComplete,
remainingDuration: isRunning ? cueRemainingMs : null,
followHangRemainingDuration: hasFollowHangCountdown ? followHangRemainingMs : null,
};
}
function cueNumberValue(value) {
if (value === undefined || value === null) {
return undefined;
}
return `${value}`.trim();
}
function nonNegativeInt(value) {
if (value === undefined || value === null) {
return null;
}
const numericValue = Number(value);
if (!Number.isFinite(numericValue)) {
return null;
}
return Math.max(0, Math.round(numericValue));
}
function match(testArray, patternArray) {
let out = true;
if (testArray.length !== patternArray.length) {
@@ -152,5 +325,8 @@ class EOS {
this.showName = '';
this.cueLists = {};
this.activeCue = undefined;
this.activeCueByList = {};
this.progressByList = {};
this.progressCueList = '1';
}
}
+19
View File
@@ -63,6 +63,25 @@ tr.active-cue .time {
border-color: #c78b07;
}
tr.running-cue {
color: #ae0009;
}
tr.running-cue td.num div {
margin: 0px;
padding: 1px 6px;
background-color: #ae0009;
border-radius: 4px;
color: white;
}
tr.running-cue .time {
border-color: #ae0009;
}
td.running-follow-hang {
color: #ae0009;
font-weight: 700;
}
.list_name {
color: lightgray;
margin-left: 5px;
+17 -2
View File
@@ -25,15 +25,30 @@
</tr>
<% var cues = Object.keys(data.EOS.cueLists[i]).sort(function(a, b){return Number(a)-Number(b)}) %>
<% var activeCueByList = data.EOS.activeCueByList || {} %>
<% var progressByList = data.EOS.progressByList || {} %>
<% var activeCueNumber = (activeCueByList[i] !== undefined) ? (activeCueByList[i] + "") : undefined %>
<% var progressState = progressByList[i] || {} %>
<% var progressCueNumber = (progressState.cueNumber !== undefined && progressState.cueNumber !== null) ? (progressState.cueNumber + "") : undefined %>
<% var hasCueRemaining = (progressState.cueRemainingMs !== undefined && progressState.cueRemainingMs !== null) %>
<% var hasFollowHangRemaining = (progressState.followHangRemainingMs !== undefined && progressState.followHangRemainingMs !== null) %>
<% for(var j=0; j<cues.length; j++){ %>
<% var q = data.EOS.cueLists[i][cues[j]] %>
<% var isComplete = (activeCueNumber !== undefined && cues[j] == activeCueNumber) %>
<% var isRunning = isComplete && hasCueRemaining && progressCueNumber === cues[j] && progressState.cueRemainingMs > 0 %>
<% var remainingDuration = isRunning ? progressState.cueRemainingMs : null %>
<% var followHangRemainingDuration = (isComplete && !isRunning && hasFollowHangRemaining && progressState.followHangRemainingMs > 0) ? progressState.followHangRemainingMs : null %>
<%= templates.cue({
q: q,
cues: cues,
cueNumber: cues[j],
isActive: (cues[j]==data.EOS.activeCue+"")
isActive: isComplete,
isComplete: isComplete,
isRunning: isRunning,
remainingDuration: remainingDuration,
followHangRemainingDuration: followHangRemainingDuration
}) %>
<% } %>
+13 -1
View File
@@ -162,7 +162,19 @@ exports.data = function data(_device, oscData) {
device.data.cueKeys[msgAddr[2]].cueInWorkspace
);
}
device.draw();
if (cue.type === 'Cue List') {
// draw cue list right away
device.draw();
} else {
// set up a timeout in case more messages come along to avoid fast re-drawing
if (device.drawTimeout !== undefined) {
clearTimeout(device.drawTimeout);
}
device.drawTimeout = setTimeout(() => {
device.draw();
}, 250);
}
}
if (cue.type !== 'Cue List' && cue.type !== 'Cart') {
+19 -20
View File
@@ -2,6 +2,13 @@ const { ipcRenderer } = require('electron');
const DEVICE = require('./device.js');
const PLUGINS = require('./plugins.js');
const { saveAll } = require('./saveSlots.js');
const { h, diff, patch, create } = require('virtual-dom');
const VNode = require('virtual-dom/vnode/vnode');
const VText = require('virtual-dom/vnode/vtext');
const convertHtml = require('html-to-vdom')({
VNode,
VText,
});
const pinnedDevices = [];
module.exports.pinnedDevices = pinnedDevices;
@@ -40,17 +47,17 @@ function drawDeviceFrame(id) {
</style>
<link href='src/assets/css/plugin_default.css' rel='stylesheet' type='text/css'>
</head>
<body>
${generateBodyHTML(d)}
</body>
</html>
`;
d.contentBodyElement = create(h('body', convertHtml(generateBodyHTML(d))));
$deviceDrawArea.setAttribute('class', `${d.type} draw-area`);
$deviceDrawArea.contentWindow.document.open();
$deviceDrawArea.contentWindow.document.write(str);
$deviceDrawArea.contentWindow.document.body = d.contentBodyElement;
$deviceDrawArea.contentWindow.document.close();
$deviceDrawArea.contentWindow.document.onclick = function (e) {
$deviceDrawArea.contentWindow.document.onclick = (e) => {
switchDevice(d.id);
};
@@ -74,7 +81,7 @@ function generateBodyHTML(d) {
listName: d.displayName || d.defaultName,
});
} catch (err) {
console.log(err);
console.error(err);
return '<h3>Plugin Template Error</h3>';
}
} else {
@@ -98,23 +105,15 @@ function generateBodyHTML(d) {
module.exports.draw = function draw(device) {
const d = device;
const $deviceDrawArea = document.getElementById(`device-${d.id}-draw-area`);
if (device.drawTimeout !== undefined) {
clearTimeout(device.drawTimeout);
if (d.contentBodyElement) {
const newVNode = h('body', convertHtml(generateBodyHTML(d)));
const domPatches = diff(d.contentBodyElement, newVNode);
d.contentBodyElement = patch(d.contentBodyElement, domPatches);
} else {
drawDeviceFrame(d.id);
}
d.drawTimeout = setTimeout(() => {
if ($deviceDrawArea) {
const scriptEl = $deviceDrawArea.contentWindow.document
.createRange()
.createContextualFragment(generateBodyHTML(d));
$deviceDrawArea.contentWindow.document.body.replaceChildren(scriptEl);
} else {
drawDeviceFrame(d.id);
}
d.drawn = true;
}, 200);
d.drawn = true;
};
module.exports.update = function update(device, type, data) {