Sort hover popup lists for Art-Net, sACN, and Dante
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -124,7 +124,7 @@ locations:
|
|||||||
- "ac:44:f2:4e:87:27" # MAIN2-R bridge interface
|
- "ac:44:f2:4e:87:27" # MAIN2-R bridge interface
|
||||||
- ART6 # Wash
|
- ART6 # Wash
|
||||||
- ART7 # Wash
|
- ART7 # Wash
|
||||||
- ART8 # Wash
|
- DMX8 # Wash
|
||||||
- ART19 # Focus
|
- ART19 # Focus
|
||||||
|
|
||||||
- name: Booth
|
- name: Booth
|
||||||
@@ -144,7 +144,7 @@ locations:
|
|||||||
- "SK_RACKPRO2 [452514]"
|
- "SK_RACKPRO2 [452514]"
|
||||||
- pigeon
|
- pigeon
|
||||||
- showpi1
|
- showpi1
|
||||||
- showpi2
|
- d8:3a:dd:e3:5b:db # showpi2/artmap
|
||||||
|
|
||||||
- name: Sound Control
|
- name: Sound Control
|
||||||
nodes:
|
nodes:
|
||||||
|
|||||||
@@ -1741,6 +1741,11 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
danteNodes.forEach(info => {
|
||||||
|
info.txTo.sort((a, b) => a.split('\n')[0].localeCompare(b.split('\n')[0]));
|
||||||
|
info.rxFrom.sort((a, b) => a.split('\n')[0].localeCompare(b.split('\n')[0]));
|
||||||
|
});
|
||||||
|
|
||||||
const artnetData = data.artnet_nodes || [];
|
const artnetData = data.artnet_nodes || [];
|
||||||
const artnetNodes = new Map();
|
const artnetNodes = new Map();
|
||||||
|
|
||||||
@@ -1755,8 +1760,8 @@
|
|||||||
return net + ':' + subnet + ':' + universe + ' (' + u + ')';
|
return net + ':' + subnet + ':' + universe + ' (' + u + ')';
|
||||||
};
|
};
|
||||||
|
|
||||||
const inputs = (an.inputs || []).map(formatUniverse);
|
const inputs = (an.inputs || []).slice().sort((a, b) => a - b).map(formatUniverse);
|
||||||
const outputs = (an.outputs || []).map(formatUniverse);
|
const outputs = (an.outputs || []).slice().sort((a, b) => a - b).map(formatUniverse);
|
||||||
|
|
||||||
artnetNodes.set(nodeId, {
|
artnetNodes.set(nodeId, {
|
||||||
isOut: outputs.length > 0,
|
isOut: outputs.length > 0,
|
||||||
@@ -1773,7 +1778,7 @@
|
|||||||
const nodeId = sn.node?.typeid;
|
const nodeId = sn.node?.typeid;
|
||||||
if (!nodeId) return;
|
if (!nodeId) return;
|
||||||
|
|
||||||
const universes = (sn.universes || []).map(u => String(u));
|
const universes = (sn.universes || []).slice().sort((a, b) => a - b).map(u => String(u));
|
||||||
|
|
||||||
sacnNodes.set(nodeId, {
|
sacnNodes.set(nodeId, {
|
||||||
isConsumer: universes.length > 0,
|
isConsumer: universes.length > 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user