diff --git a/plugins/eos/cue.ejs b/plugins/eos/cue.ejs
index 627aa91..da82e26 100644
--- a/plugins/eos/cue.ejs
+++ b/plugins/eos/cue.ejs
@@ -1,83 +1,80 @@
+ <% for(var partNumber in q){ %>
+ <% var part = q[partNumber] %>
+ <%if(part.scene.length>0 && partNumber==0){ %>
+
+ |
+
+
+ <%= part.scene %>
+ |
+
+ <% } %>
-<% for(var partNumber in q){ %>
-
- <% var part = q[partNumber] %>
-
-
- <% if(part.scene.length>0 && partNumber==0){ %>
-
- |
- <%= part.scene %> |
-
- <% } %>
-
- <% if(isActive){ %>
-
-<% }else{ %>
-
-<% } %>
-
- <% if(partNumber!=0){ %>
- P<%= partNumber %> |
- <% }else{ %>
- <%= cueNumber %> |
- <% } %>
-
- <% if(partNumber!=0 || part.partcount==0){ %>
-
-
- <% if(part.uptimeduration == part.downtimeduration || part.downtimeduration==-1){ %>
- <%= prettyDuration(part.uptimedelay) || "" %><%= prettyDuration(part.uptimeduration, true) %> |
- <% }else{ %>
- <%= prettyDuration(part.uptimedelay) || "" %><%= prettyDuration(part.uptimeduration, true) %> |
- <%= prettyDuration(part.downtimeduration, true) %> |
- <% } %>
-
- <%= prettyDuration(part.focustimeduration, true) %> |
- <%= prettyDuration(part.colortimeduration, true) %> |
- <%= prettyDuration(part.beamtimeduration, true) %> |
- <%= prettyDuration(part.duration) %> |
-
- <% }else{ %>
- |
- |
- |
- |
- |
-
- <% } %>
-
- <%= part.mark %> |
- <%= part.block %> |
- <%= part.assert %> |
-
- <%= (part.follow>=0)? "F"+prettyDuration(part.follow) : "" %>
- <%= (part.hang>=0)? "H"+prettyDuration(part.hang) : "" %>
- |
-
- <%= (partNumber==0 ? "": " ") %>
- <%= part.label %>
- |
- <%= part.extlinks %> |
-
-
-
-
-<% } %>
-
-
-
-<%
-function prettyDuration(milliseconds, box){
- if(milliseconds==-1){
- return "";
- }
- var num = Math.round(milliseconds/100)/10;
- if(box){
- return "
+ <% } %>
-}
-%>
\ No newline at end of file
+ <% if(partNumber!=0){ %>
+ |
+ P<%= partNumber %>
+ |
+ <% }else{ %>
+ <%= cueNumber %> |
+ <% } %>
+
+ <% if(partNumber !== 0 || part.partCount === 0){ %>
+
+
+ <% if(part.uptimeDuration === part.downtimeDuration || part.downtimeDuration === -1){ %>
+
+ <%= part.prettyDuration(part.uptimeDelay) || "" %>
+ <%= part.prettyDuration(part.uptimeDuration, true) %>
+ |
+ <% }else{ %>
+
+ <%= part.prettyDuration(part.uptimeDelay) || "" %>
+ <%= part.prettyDuration(part.uptimeDuration, true) %>
+ |
+
+ <%= part.prettyDuration(part.downtimeDuration, true) %>
+ |
+ <% } %>
+
+
+ <%= part.prettyDuration(part.focusDimeDuration, true) %>
+ |
+
+ <%= part.prettyDuration(part.colorDimeDuration, true) %>
+ |
+
+ <%= part.prettyDuration(part.beamDimeDuration, true) %>
+ |
+ <%= part.prettyDuration(part.duration) %> |
+
+ <% }else{ %>
+ |
+ |
+ |
+ |
+ |
+ <% } %>
+
+ <%= part.mark %> |
+ <%= part.block %> |
+ <%= part.assert %> |
+
+ <%= (part.follow>=0)? "F"+part.prettyDuration(part.follow) : "" %>
+ <%= (part.hang>=0)? "H"+part.prettyDuration(part.hang) : "" %>
+ |
+
+ <%= (partNumber==0 ? "": " ") %>
+ <%= part.label %>
+ |
+ <%= part.extLinks %> |
+
+ <% } %>
+
diff --git a/plugins/eos/cue.js b/plugins/eos/cue.js
new file mode 100644
index 0000000..c5c298e
--- /dev/null
+++ b/plugins/eos/cue.js
@@ -0,0 +1,40 @@
+/* eslint-disable class-methods-use-this */
+class Cue {
+ constructor(args) {
+ this.uid = args[1];
+ this.label = args[2];
+ this.uptimeDuration = args[3];
+ this.uptimeDelay = args[4];
+ this.downtimeDuration = args[5];
+ this.downtimeDelay = args[6];
+ this.focusTimeDuration = args[7];
+ this.focusTimeDelay = args[8];
+ this.colorTimeDuration = args[9];
+ this.colorTimeDelay = args[10];
+ this.beamTimeDuration = args[11];
+ this.beamTimeDelay = args[12];
+ this.mark = args[16];
+ this.block = args[17];
+ this.assert = args[18];
+ this.follow = args[20];
+ this.hang = args[21];
+ this.partCount = args[26];
+ this.scene = args[28];
+ this.duration = Math.max(args[3], args[5], args[7], args[9], args[11]);
+ }
+
+ prettyDuration(milliseconds, box) {
+ if (milliseconds === -1) {
+ return '';
+ }
+
+ const num = Math.round(milliseconds / 100) / 10;
+ if (box) {
+ return `