mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-10 16:23:40 +00:00
cf1874a29b
commit38962ff052Merge:d6cc11f57324c8Author: sparks-alec <sparks.alec@gmail.com> Date: Sun Jun 11 20:54:13 2023 -0400 Merge pull request #108 from stagehacks/qlab-refactor Qlab refactor commit57324c82e9Author: sparks-alec <sparks.alec@gmail.com> Date: Sun Jun 11 15:31:34 2023 -0400 add .draw() to make sure troubleshooting info is displayed commitbf06ec7f3aAuthor: sparks-alec <sparks.alec@gmail.com> Date: Sun Jun 11 15:20:32 2023 -0400 remove debugging mark commit382dc8a0feAuthor: sparks-alec <sparks.alec@gmail.com> Date: Sun Jun 11 15:18:55 2023 -0400 make playhead a tad smaller commit0444d3976eAuthor: sparks-alec <sparks.alec@gmail.com> Date: Sun Jun 11 15:18:39 2023 -0400 improved cueList data structure magic commitc61b189634Author: Joel Wetzell <jwetzell@yahoo.com> Date: Tue May 30 17:38:44 2023 -0500 update /chidren endpoint for qlab 4 commit09ceb01963Author: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 16:27:46 2023 -0400 failing to remove a full /cueLists update ideally when an /update message is received for a Group cue, we should just get the new list of children cues and stick that into the data.workspaces tree in the right spot. commitaf1094d3cdAuthor: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 16:24:54 2023 -0400 remove full draws when Elapsed progress updates commitc0d8c58e90Merge:6d69bacaec2effAuthor: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 13:53:19 2023 -0400 Merge branch 'qlab-refactor' of https://github.com/stagehacks/Cue-View into qlab-refactor commit6d69bac639Author: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 13:53:17 2023 -0400 set version for all workspaces commitdbb7064385Author: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 13:52:58 2023 -0400 helpful text if no workspace is open commitaec2effee1Author: Joel Wetzell <jwetzell@yahoo.com> Date: Mon May 29 08:33:15 2023 -0500 update playback/display for QLab 4 compatibility commit454e794d4cAuthor: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 05:11:58 2023 -0400 add playhead information overlay commit55ede73f22Author: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 04:07:17 2023 -0400 remove bullet if tile doesn't have a cue number commit76d8f5e736Author: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 03:57:04 2023 -0400 tidy up commitbd9894c596Author: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 03:56:45 2023 -0400 prevent error when many cues are made in QLab commit77549aff56Author: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 03:38:25 2023 -0400 improve resiliency when passcode is incorrect commita237841a3aAuthor: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 01:14:44 2023 -0400 update cart styles for QLab 5 commit0364924f24Author: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 01:14:32 2023 -0400 add carts! commitd7508c1e22Author: sparks-alec <sparks.alec@gmail.com> Date: Mon May 29 01:13:43 2023 -0400 add source img commit4cf68d3a07Author: sparks-alec <sparks.alec@gmail.com> Date: Sun May 28 07:14:44 2023 -0400 bugfix error when no playbackPos commit03ad8f9682Author: sparks-alec <sparks.alec@gmail.com> Date: Sun May 28 07:06:57 2023 -0400 refactor QLab commitf273dab45dAuthor: sparks-alec <sparks.alec@gmail.com> Date: Sun May 28 07:06:18 2023 -0400 update styles for QLab 5 commitd6cc11f97dMerge:d5cec875503ac9Author: Joel Wetzell <jwetzell@yahoo.com> Date: Mon May 22 11:31:37 2023 -0500 Merge pull request #100 from stagehacks/dependabot/npm_and_yarn/eslint-8.41.0 Bump eslint from 8.40.0 to 8.41.0 commit5503ac9888Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon May 22 10:02:34 2023 +0000 Bump eslint from 8.40.0 to 8.41.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.40.0 to 8.41.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.40.0...v8.41.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> commitd5cec8799aAuthor: Joel Wetzell <jwetzell@cait.org> Date: Wed May 10 16:30:05 2023 -0500 fix for mac notarization commit39d95bb87fMerge:dbadb6d3e9b433Author: Joel Wetzell <jwetzell@yahoo.com> Date: Wed May 10 15:21:55 2023 -0500 Merge pull request #97 from stagehacks/dependabot/npm_and_yarn/electron-builder-24.4.0 Bump electron-builder from 24.2.0 to 24.4.0 commit3e9b433056Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed May 10 20:13:01 2023 +0000 Bump electron-builder from 24.2.0 to 24.4.0 Bumps [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder) from 24.2.0 to 24.4.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/v24.4.0/packages/electron-builder) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> commitdbadb6d1adMerge:de7c2675f2967aAuthor: Joel Wetzell <jwetzell@yahoo.com> Date: Wed May 10 15:11:26 2023 -0500 Merge pull request #96 from stagehacks/dependabot/npm_and_yarn/eslint-8.40.0 Bump eslint from 8.38.0 to 8.40.0 commitde7c2674bdMerge:b617369711eaafAuthor: Joel Wetzell <jwetzell@yahoo.com> Date: Wed May 10 15:09:36 2023 -0500 Merge pull request #92 from stagehacks/dependabot/npm_and_yarn/prettier-2.8.8 Bump prettier from 2.8.7 to 2.8.8 commit5f2967afaeAuthor: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon May 8 10:03:22 2023 +0000 Bump eslint from 8.38.0 to 8.40.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.38.0 to 8.40.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.38.0...v8.40.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> commit711eaaf69eAuthor: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 24 10:03:33 2023 +0000 Bump prettier from 2.8.7 to 2.8.8 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.7 to 2.8.8. - [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/2.8.7...2.8.8) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> commitb6173695ceMerge:41384cba91c67aAuthor: Joel Wetzell <jwetzell@yahoo.com> Date: Mon Apr 10 11:19:13 2023 -0500 Merge pull request #88 from stagehacks/dependabot/npm_and_yarn/minimatch-and-electron-builder-3.1.2 Bump minimatch and electron-builder commita91c67a323Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 10 16:10:51 2023 +0000 Bump minimatch and electron-builder Bumps [minimatch](https://github.com/isaacs/minimatch) to 3.1.2 and updates ancestor dependency [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder). These dependencies need to be updated together. Updates `minimatch` from 3.0.4 to 3.1.2 - [Release notes](https://github.com/isaacs/minimatch/releases) - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2) Updates `electron-builder` from 23.6.0 to 24.2.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/v24.2.0/packages/electron-builder) --- updated-dependencies: - dependency-name: minimatch dependency-type: indirect - dependency-name: electron-builder dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> commit41384cb66cMerge:7769ad97dc37a7Author: Joel Wetzell <jwetzell@yahoo.com> Date: Mon Apr 10 11:10:05 2023 -0500 Merge pull request #87 from stagehacks/dependabot/npm_and_yarn/eslint-8.38.0 Bump eslint from 8.37.0 to 8.38.0 commit7dc37a7fcbAuthor: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 10 10:03:19 2023 +0000 Bump eslint from 8.37.0 to 8.38.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.37.0 to 8.38.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.37.0...v8.38.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> commit7769ad9059Merge:159da19a8d8092Author: Joel Wetzell <jwetzell@yahoo.com> Date: Tue Apr 4 11:46:35 2023 -0500 Merge pull request #85 from stagehacks/dependabot/npm_and_yarn/eslint-8.37.0 Bump eslint from 8.36.0 to 8.37.0 commit159da195d3Merge:90e06ca88ad920Author: Joel Wetzell <jwetzell@yahoo.com> Date: Tue Apr 4 10:51:36 2023 -0500 Merge pull request #78 from stagehacks/plugin-atem This has passed tests and has been cleaned up, send it! commita8d8092e65Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 3 10:04:27 2023 +0000 Bump eslint from 8.36.0 to 8.37.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.36.0 to 8.37.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.36.0...v8.37.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> commit88ad9207e2Merge:bd2b19037a3fdeAuthor: Joel Wetzell <jwetzell@yahoo.com> Date: Wed Mar 29 06:55:00 2023 -0500 Merge branch 'plugin-atem' of github.com:stagehacks/Cue-View into plugin-atem commitbd2b190facMerge:50d836390e06caAuthor: Joel Wetzell <jwetzell@cait.org> Date: Tue Mar 28 13:50:13 2023 -0500 Merge branch 'main' into plugin-atem commit50d8363a4aAuthor: Joel Wetzell <jwetzell@cait.org> Date: Tue Mar 28 13:41:04 2023 -0500 regenerate package-lock using node v18.13.0 commit90e06cab99Merge:98a0c9c3b24dcbAuthor: Joel Wetzell <jwetzell@yahoo.com> Date: Tue Mar 28 07:18:53 2023 -0500 Merge pull request #79 from stagehacks/dependabot/npm_and_yarn/osc-2.4.4 Bump osc from 2.4.3 to 2.4.4 commit98a0c9c31bMerge:5c28a0cf5e8e72Author: Joel Wetzell <jwetzell@yahoo.com> Date: Tue Mar 28 07:18:41 2023 -0500 Merge pull request #81 from stagehacks/dependabot/npm_and_yarn/eslint-config-prettier-8.8.0 Bump eslint-config-prettier from 8.7.0 to 8.8.0 commit5c28a0c6b3Merge:b314735095d7fbAuthor: Joel Wetzell <jwetzell@yahoo.com> Date: Tue Mar 28 07:18:31 2023 -0500 Merge pull request #83 from stagehacks/dependabot/npm_and_yarn/prettier-2.8.7 Bump prettier from 2.8.4 to 2.8.7 commit095d7fb89fAuthor: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Mar 27 10:05:23 2023 +0000 Bump prettier from 2.8.4 to 2.8.7 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.4 to 2.8.7. - [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/2.8.4...2.8.7) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> commitf5e8e729e8Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Mar 27 10:04:15 2023 +0000 Bump eslint-config-prettier from 8.7.0 to 8.8.0 Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.7.0 to 8.8.0. - [Release notes](https://github.com/prettier/eslint-config-prettier/releases) - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.7.0...v8.8.0) --- updated-dependencies: - dependency-name: eslint-config-prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> commit3b24dcb063Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Mar 20 10:08:41 2023 +0000 Bump osc from 2.4.3 to 2.4.4 Bumps [osc](https://github.com/colinbdclark/osc.js) from 2.4.3 to 2.4.4. - [Release notes](https://github.com/colinbdclark/osc.js/releases) - [Commits](https://github.com/colinbdclark/osc.js/compare/2.4.3...2.4.4) --- updated-dependencies: - dependency-name: osc dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
251 lines
7.4 KiB
Plaintext
251 lines
7.4 KiB
Plaintext
<% let cueKeys = allCues[cue.uniqueID]; %>
|
|
<% let playbackPosition = workspace.playbackPosition==cue.uniqueID ? "playback-position" : "" %>
|
|
<% let selected = workspace.selected.includes(cue.uniqueID) ? "selected": "" %>
|
|
|
|
<% if(cueKeys && cueKeys.parent){ %>
|
|
|
|
<tr class="q-<%= cueKeys.colorName %> q-armed-<%= cueKeys.armed %> <%= playbackPosition %> <%= selected %>" id="<%= cueKeys.uniqueID %>">
|
|
|
|
<!-- playhead/color indicator -->
|
|
<td class="playhead"></td>
|
|
|
|
|
|
<!-- status indicator -->
|
|
<td><center>
|
|
<% if(cueKeys.isBroken){ %>
|
|
<img src="./plugins/qlab/img/status_broken.png" height="18px">
|
|
|
|
<% }else if(cueKeys.isRunning){ %>
|
|
<img src="./plugins/qlab/img/status_running.png" height="18px">
|
|
|
|
<% }else if(cueKeys.isPaused){ %>
|
|
<img src="./plugins/qlab/img/status_paused.png" height="18px">
|
|
|
|
<% }else if(cueKeys.isLoaded){ %>
|
|
<img src="./plugins/qlab/img/status_loaded.png" height="18px">
|
|
|
|
<% }else if(cueKeys.isFlagged){ %>
|
|
<img src="./plugins/qlab/img/status_flagged.png" height="20px">
|
|
|
|
<% }else{ %>
|
|
|
|
<% } %>
|
|
</center></td>
|
|
|
|
|
|
<!-- cue type icon -->
|
|
<% if(cueKeys.type == "Group" && cueKeys.mode){ %>
|
|
<td><img src="./plugins/qlab/img/v5/group-<%= cueKeys.mode %>.png" height="20px"></td>
|
|
|
|
<% }else{ %>
|
|
<td><img src="./plugins/qlab/img/<%= cueKeys.type.toLowerCase().replace(' ','-') %>.png" height="20px"></td>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<!-- cue number -->
|
|
<td><center><%= cueKeys.number || " " %></center></td>
|
|
|
|
|
|
<% let nextCue = cueKeys.cueInWorkspace.parent.cues[cueKeys.cueInWorkspace.sortIndex+1]; %>
|
|
|
|
<!-- spaces before name -->
|
|
<% for(let i=0; i<cueKeys.parentKeys.length; i++){ %>
|
|
<% let parent = cueKeys.parentKeys[i+1]; %>
|
|
<% %>
|
|
|
|
<% if(cueKeys.type=="Group" && cueKeys.cues.length==0 && i==cueKeys.parentKeys.length-1){ %>
|
|
<td class="gMode-<%= cueKeys.mode %> gLeft gTop gBot group-arrow"></td>
|
|
|
|
<% }else if(cueKeys.type=="Group" && i==cueKeys.parentKeys.length-1){ %>
|
|
<td class="gMode-<%= cueKeys.mode %> gLeft gTop group-arrow"></td>
|
|
|
|
<%}else if(parent){%>
|
|
|
|
<% let parentCues = parent.cueInWorkspace.cues %>
|
|
<% let lastCueInMe = parentCues[parentCues.length-1]%>
|
|
|
|
<% while(lastCueInMe.type=="Group" && lastCueInMe.cues.length){
|
|
parentCues = lastCueInMe.cues;
|
|
lastCueInMe = parentCues[parentCues.length-1];
|
|
} %>
|
|
|
|
<% if(lastCueInMe.uniqueID == cueKeys.uniqueID){ %>
|
|
<td class="gMode-<%= parent.mode %> gLeft gBot"></td>
|
|
|
|
<% }else{ %>
|
|
<td class="gMode-<%= parent.mode %> gLeft"></td>
|
|
|
|
|
|
<% } %>
|
|
|
|
|
|
<% }else if(cueKeys.parentKeys[i]){ %>
|
|
<% let nextCue2 = cueKeys.parentKeys[i].cues[cueKeys.cueInWorkspace.sortIndex+1]; %>
|
|
|
|
<% if(!nextCue2){ %>
|
|
<td class="gMode-<%= cueKeys.parentKeys[i].mode %> gBot"></td>
|
|
|
|
<% }else{ %>
|
|
<td></td>
|
|
|
|
<% } %>
|
|
|
|
|
|
<% } %>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<!-- cue name -->
|
|
|
|
<% if(cue.type=="Group"){ %>
|
|
|
|
<% if(cue.cues && cue.cues.length==0){ %>
|
|
<td id="cue-name" colspan="<%= 11-cueKeys.parentKeys.length %>" class="gMode-<%= cueKeys.mode %> gTop gBot gRight"><%= cueKeys.listName %></td>
|
|
|
|
<% }else{ %>
|
|
<td id="cue-name" colspan="<%= 11-cueKeys.parentKeys.length %>" class="gMode-<%= cueKeys.mode %> gTop gRight"><%= cueKeys.listName %></td>
|
|
|
|
<% } %>
|
|
|
|
<% }else if(!nextCue){ %>
|
|
<td colspan="<%= 11-cueKeys.parentKeys.length %>" class="cue-name gMode-<%= cueKeys.parent.mode %> gBot gRight"><%= cueKeys.listName %></td>
|
|
|
|
<% }else{ %>
|
|
<td colspan="<%= 11-cueKeys.parentKeys.length %>" class="cue-name gMode-<%= cueKeys.parent.mode %> gRight"><%= cueKeys.listName %></td>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
|
|
<!-- cue target -->
|
|
<% if(cueKeys.currentCueTarget){ %>
|
|
<td class="q-target hide-medium"><%= allCues[cueKeys.currentCueTarget].number || allCues[cueKeys.currentCueTarget].listName %></td>
|
|
|
|
<% }else{ %>
|
|
<td class="q-target hide-medium"></td>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<!-- cue preWait -->
|
|
<% if(cueKeys.preWait){ %>
|
|
<td class="q-time hide-small"><%= elapsedTime(cueKeys.preWait, cueKeys.preWaitElapsed, "preWait", cueKeys) %></td>
|
|
|
|
<% }else{ %>
|
|
<td class="q-time q-gray-text hide-small">00:00.00</td>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<!-- cue duration -->
|
|
<% let cueTypesWithAction = ["Audio", "Mic", "Video", "Camera", "Text", "Light", "Fade", "Network", "MIDI File", "Timecode", "Wait"]; %>
|
|
<% if((cueKeys.type=="Group" && cueKeys.mode==3) || (cueKeys.type=="Group" && cueKeys.mode==6) || cueTypesWithAction.includes(cueKeys.type)){ %>
|
|
<td class="q-time hide-medium"><%= elapsedTime(cueKeys.duration, cueKeys.actionElapsed, "action", cueKeys) %></td>
|
|
|
|
<% }else{ %>
|
|
<td class="hide-medium"></td>
|
|
|
|
<% } %>
|
|
|
|
|
|
<!-- cue postWait -->
|
|
<% if(cueKeys.postWait){ %>
|
|
<td class="q-time hide-medium"><%= elapsedTime(cueKeys.postWait, cueKeys.postWaitElapsed, "postWait", cueKeys) %></td>
|
|
|
|
<% }else{ %>
|
|
<td class="q-time q-gray-text hide-medium">00:00.00</td>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<!-- cue continueMode -->
|
|
<% if(cueKeys.continueMode==2){ %>
|
|
<td class="hide-small"><center><img src="plugins/qlab/img/auto_follow.png" height="20px"></center></td>
|
|
|
|
<% }else if(cueKeys.continueMode==1){ %>
|
|
<td class="hide-small"><center><img src="plugins/qlab/img/auto_continue.png" height="20px"></center></td>
|
|
|
|
<% }else{ %>
|
|
<td class="hide-small"></td>
|
|
|
|
<% } %>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<% }else{ %>
|
|
|
|
<tr class="q-<%= cue.colorName %> q-armed-<%= cue.armed %> " id="<%= cue.uniqueID %>">
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td><center><%= cue.number || " " %></center></td>
|
|
<td colspan="11" id="cue-name"><%= cue.listName %></td>
|
|
<td class="q-time hide-medium"></td>
|
|
<td class="q-time q-gray-text hide-small">00:00.00</td>
|
|
<td class="hide-medium"></td>
|
|
<td class="q-time q-gray-text hide-medium">00:00.00</td>
|
|
<td class="hide-small"></td>
|
|
</tr>
|
|
|
|
<% } %>
|
|
|
|
<%
|
|
function prettyFormatTime(seconds){
|
|
if(!seconds){
|
|
return "00:00.00";
|
|
}
|
|
var startIndex = 14;
|
|
if(seconds>=3600){
|
|
startIndex = 11;
|
|
}
|
|
var string = new Date(seconds * 1000).toISOString()
|
|
return string.substring(startIndex, string.length-2)
|
|
}
|
|
|
|
function elapsedTime(def, value, type, cue){
|
|
|
|
if(type=="action" && cue.isPaused){
|
|
value-=cue.preWait;
|
|
}
|
|
|
|
let border, fill;
|
|
if(cue.isPaused){
|
|
border = "#f6e737";
|
|
fill = "rgba(255, 240, 60, 0.7)";
|
|
}else{
|
|
border = "#48ba41";
|
|
fill = "rgba(0, 200, 50, 0.5)";
|
|
}
|
|
|
|
|
|
if(value>0){
|
|
let percent = value/def*100;
|
|
let bg = `style='background: black; background: linear-gradient(90deg, ${fill} ${percent}%, transparent ${percent}%);`;
|
|
|
|
if(cue.isPaused){
|
|
bg+= "outline-color: "+border+";";
|
|
bg+= "color: white;";
|
|
}
|
|
bg+="'";
|
|
|
|
return `<div class='q-time-elapsed' ${bg}>${prettyFormatTime(Math.min(def, value))}</span>`;
|
|
|
|
}else if(type=="postWait" && cue.continueMode==0){
|
|
return `<span class='q-gray-text'>${prettyFormatTime(def)}</span>`;
|
|
|
|
}else{
|
|
return prettyFormatTime(def);
|
|
|
|
}
|
|
}
|
|
%> |