Initial commit

This commit is contained in:
2023-08-29 19:55:48 +02:00
commit 7c2eec4446
473 changed files with 40947 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
exports.__esModule = true;
var Atem = require('atem-connection').Atem;
module.exports = function (ActionAPI) {
ActionAPI.onExecute(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : "none";
if (connectionID != 'none') {
var connection = ActionAPI.getConnection('bm_atem', connectionID);
if (connection && connection.instance) {
var atem = connection.instance;
atem.fadeToBlack().then(function () {
status("Atem fade to black", 'info');
})["catch"](function (error) {
status("Error whilst setting atem fadetoblack: " + error, 'error');
});
}
else
status('Atem is not online', 'error');
}
else
status('No connection specified', 'error');
});
ActionAPI.onOpenEditor(function (EditorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : "none";
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
connectionID = fieldObject.connectionID;
EditorAPI.saveProperties({ connectionID: connectionID });
});
EditorAPI.setFields([{
id: 'connectionID',
name: "Connection",
type: "connection",
connectionType: "bm_atem",
value: connectionID
}]);
});
};
//# sourceMappingURL=fadeToBlack.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fadeToBlack.js","sourceRoot":"","sources":["../../../../../../src/Integrations/buildin/blackmagick/actions/atem/fadeToBlack.ts"],"names":[],"mappings":";AAEQ,IAAA,IAAI,GAAK,OAAO,CAAC,iBAAiB,CAAC,KAA/B,CAA+B;AAE3C,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IAClC,SAAS,CAAC,SAAS,CAAC,UAAC,UAAU,EAAE,MAAM;QACnC,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAA;QAE1F,IAAI,YAAY,IAAI,MAAM,EAAE;YACxB,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,YA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PI) {
ActionAPI.onExecute(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : "none";
var input = properties.input != undefined ? properties.input : "none";
if (connectionID != 'none') {
if (input != 'none') {
var connection = ActionAPI.getConnection('bm_atem', connectionID);
if (connection && connection.instance) {
var atem = connection.instance;
try {
atem.changePreviewInput(input);
status("Atem preview was set to " + input, 'info');
}
catch (error) {
status("Error whilst setting atem input: " + error, 'error');
}
}
else
status('Atem is not online', 'error');
}
else
status('No input specified', 'error');
}
else
status('No connection specified', 'error');
});
ActionAPI.onOpenEditor(function (EditorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : "none";
var input = properties.input != undefined ? properties.input : "none";
var connectionField = {
id: 'connectionID',
name: "Connection",
type: "connection",
connectionType: "bm_atem",
value: connectionID
};
var inputField = {
id: "input",
name: "Input",
type: "select",
value: input,
values: [{ id: 'none', text: "None" }]
};
var validate = function () {
if (connectionID != 'none') {
var connection = ActionAPI.getConnection('bm_atem', connectionID);
if (connection && connection.instance) {
var atem = connection.instance;
var inputs = atem.state.inputs;
var values = [{ id: 'none', text: 'None' }];
for (var key in inputs)
if (parseInt(key) < 1000)
values.push({ id: inputs[key].inputId, text: inputs[key].longName });
inputField.values = values;
}
else
inputField.values = [{ id: 'none', text: 'none' }];
}
else
inputField.values = [{ id: 'none', text: 'none' }];
EditorAPI.setFields([connectionField, inputField]);
};
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
connectionID = fieldObject.connectionID;
input = fieldObject.input;
connectionField.value = connectionID;
inputField.value = input;
EditorAPI.saveProperties({ connectionID: connectionID, input: input });
validate();
});
validate();
});
};
//# sourceMappingURL=setPreview.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setPreview.js","sourceRoot":"","sources":["../../../../../../src/Integrations/buildin/blackmagick/actions/atem/setPreview.ts"],"names":[],"mappings":";AAKQ,IAAA,IAAI,GAAK,OAAO,CAAC,iBAAiB,CAAC,K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M,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAA;aAC5D;;gBAAM,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAA;YAEzD,SAAS,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,CAAA;QACtD,CAAC,CAAA;QAED,SAAS,CAAC,cAAc,CAAC,UAAC,MAAM;YAC5B,IAAI,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAA;YAE/D,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA;YACvC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;YAE1B,eAAe,CAAC,KAAK,GAAG,YAAY,CAAC;YACrC,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;YAEzB,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,cAAA,EAAE,KAAK,OAAA,EAAE,CAAC,CAAA;YACjD,QAAQ,EAAE,CAAA;QACd,CAAC,CAAC,CAAA;QAEF,QAAQ,EAAE,CAAA;IACd,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}

View File

@@ -0,0 +1,76 @@
exports.__esModule = true;
var Atem = require('atem-connection').Atem;
module.exports = function (ActionAPI) {
ActionAPI.onExecute(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : "none";
var input = properties.input != undefined ? properties.input : "none";
if (connectionID != 'none') {
if (input != 'none') {
var connection = ActionAPI.getConnection('bm_atem', connectionID);
if (connection && connection.instance) {
var atem = connection.instance;
try {
atem.changeProgramInput(input);
status("Atem program was set to ".concat(input), 'info');
}
catch (error) {
status("Error whilst setting atem input: ".concat(error), 'error');
}
}
else
status('Atem is not online', 'error');
}
else
status('No input specified', 'error');
}
else
status('No connection specified', 'error');
});
ActionAPI.onOpenEditor(function (EditorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : "none";
var input = properties.input != undefined ? properties.input : "none";
var connectionField = {
id: 'connectionID',
name: "Connection",
type: "connection",
connectionType: "bm_atem",
value: connectionID
};
var inputField = {
id: "input",
name: "Input",
type: "select",
value: input,
values: [{ id: 'none', text: "None" }]
};
var validate = function () {
if (connectionID != 'none') {
var connection = ActionAPI.getConnection('bm_atem', connectionID);
if (connection && connection.instance) {
var atem = connection.instance;
var inputs = atem.state.channels;
var values = [{ id: 'none', text: 'None' }];
for (var key in inputs)
values.push({ id: key, text: inputs[key].name });
inputField.values = values;
}
else
inputField.values = [{ id: 'none', text: 'none' }];
}
else
inputField.values = [{ id: 'none', text: 'none' }];
EditorAPI.setFields([connectionField, inputField]);
};
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
connectionID = fieldObject.connectionID;
input = fieldObject.input;
connectionField.value = connectionID;
inputField.value = input;
EditorAPI.saveProperties({ connectionID: connectionID, input: input });
validate();
});
validate();
});
};
//# sourceMappingURL=setProgram%20copy.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setProgram copy.js","sourceRoot":"","sources":["../../../../../../src/Integrations/buildin/blackmagick/actions/atem/setProgram copy.ts"],"names":[],"mappings":";AAEQ,IAAA,IAAI,GAAK,OAAO,CAAC,iBAAiB,CAAC,KAA/B,CAA+B;AAE3C,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IAClC,SAAS,CAAC,SAAS,CAAC,UAAC,UAAU,EAAE,MAAM;QACnC,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAA;QAC1F,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA;QAErE,IAAI,YAAY,IAAI,MAAM,EAAE;YACxB,IAAI,KAAK,IAAI,MAAM,EAAE;gBACjB,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rC,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;YAEzB,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,cAAA,EAAE,KAAK,OAAA,EAAE,CAAC,CAAA;YACjD,QAAQ,EAAE,CAAA;QACd,CAAC,CAAC,CAAA;QAEF,QAAQ,EAAE,CAAA;IACd,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}

View File

@@ -0,0 +1,76 @@
exports.__esModule = true;
var Atem = require('atem-connection').Atem;
module.exports = function (ActionAPI) {
ActionAPI.onExecute(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : "none";
var input = properties.input != undefined ? properties.input : "none";
if (connectionID != 'none') {
if (input != 'none') {
var connection = ActionAPI.getConnection('bm_atem', connectionID);
if (connection && connection.instance) {
var atem = connection.instance;
try {
atem.changeProgramInput(input);
status("Atem program was set to " + input, 'info');
}
catch (error) {
status("Error whilst setting atem input: " + error, 'error');
}
}
else
status('Atem is not online', 'error');
}
else
status('No input specified', 'error');
}
else
status('No connection specified', 'error');
});
ActionAPI.onOpenEditor(function (EditorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : "none";
var input = properties.input != undefined ? properties.input : "none";
var connectionField = {
id: 'connectionID',
name: "Connection",
type: "connection",
connectionType: "bm_atem",
value: connectionID
};
var inputField = {
id: "input",
name: "Input",
type: "select",
value: input,
values: [{ id: 'none', text: "None" }]
};
var validate = function () {
if (connectionID != 'none') {
var connection = ActionAPI.getConnection('bm_atem', connectionID);
if (connection && connection.instance) {
var atem = connection.instance;
var inputs = atem.state.inputs;
var values = [{ id: 'none', text: 'None' }];
for (var key in inputs)
values.push({ id: inputs[key].inputId, text: inputs[key].longName });
inputField.values = values;
}
else
inputField.values = [{ id: 'none', text: 'none' }];
}
else
inputField.values = [{ id: 'none', text: 'none' }];
EditorAPI.setFields([connectionField, inputField]);
};
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
connectionID = fieldObject.connectionID;
input = fieldObject.input;
connectionField.value = connectionID;
inputField.value = input;
EditorAPI.saveProperties({ connectionID: connectionID, input: input });
validate();
});
validate();
});
};
//# sourceMappingURL=setProgram.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setProgram.js","sourceRoot":"","sources":["../../../../../../src/Integrations/buildin/blackmagick/actions/atem/setProgram.ts"],"names":[],"mappings":";AAEQ,IAAA,IAAI,GAAK,OAAO,CAAC,iBAAiB,CAAC,KAA/B,CAA+B;AAE3C,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IAClC,SAAS,CAAC,SAAS,CAAC,UAAC,UAAU,EAAE,MAAM;QACnC,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAA;QAC1F,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA;QAErE,IAAI,YAAY,IAAI,MAAM,EAAE;YACxB,IAAI,KAAK,IAAI,MAAM,EAAE;gBACjB,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;gBACjE,IAAI,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE;oBACnC,IAAI,IAAI,GAAG,UAAU,CAAC,QAAQ,CAAC;oBAE/B,IAAI;wBACA,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAA;wBAC9B,MAAM,CAAC,6BAA2B,KAAO,EAAE,MAAM,CAAC,CAAA;qBACrD;oBAAC,OAAO,KAAK,EAAE;wBACZ,MAAM,CAAC,sCAAoC,KAAO,EAAE,OAAO,CAAC,CAAA;qBAC/D;iBACJ;;oBAAM,MAAM,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAA;aAC/C;;gBAAM,MAAM,CAAC,oBAAoB,EAAE,OAAO,CA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,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;oBAExE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;iBAC9B;;oBAAM,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAA;aAC5D;;gBAAM,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAA;YAEzD,SAAS,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,CAAA;QACtD,CAAC,CAAA;QAED,SAAS,CAAC,cAAc,CAAC,UAAC,MAAM;YAC5B,IAAI,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAA;YAE/D,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA;YACvC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;YAE1B,eAAe,CAAC,KAAK,GAAG,YAAY,CAAC;YACrC,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;YAEzB,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,cAAA,EAAE,KAAK,OAAA,EAAE,CAAC,CAAA;YACjD,QAAQ,EAAE,CAAA;QACd,CAAC,CAAC,CAAA;QAEF,QAAQ,EAAE,CAAA;IACd,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}

View File

@@ -0,0 +1,19 @@
exports.__esModule = true;
module.exports = {
name: 'BlackMagick',
description: "Control various BlackMagick devices",
main: require('./main'),
connections: [{
name: "Atem",
type: "bm_atem",
fields: [
{
id: "ip",
name: "IP Address",
type: "text",
value: "0.0.0.0"
}
]
}]
};
//# sourceMappingURL=integration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/blackmagick/integration.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,GAAG;IACb,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,qCAAqC;IAClD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC;IACvB,WAAW,EAAE,CAAC;YACV,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ;oBACI,EAAE,EAAE,IAAI;oBACR,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,SAAS;iBACnB;aACJ;SACJ,CAAC;CACU,CAAC"}

View File

@@ -0,0 +1,30 @@
exports.__esModule = true;
var Atem = require('atem-connection').Atem;
module.exports = function (Api) {
//----- ATEM -----
Api.registerAction('atem_setPreview', 'Set Atem preview', require('./actions/atem/setPreview'));
Api.registerAction('atem_setProgram', 'Set Atem program', require('./actions/atem/setProgram'));
Api.registerAction('atem_fadeToBlack', 'Atem fade to black', require('./actions/atem/fadeToBlack'));
Api.registerConnectionValidator('bm_atem', function (validatorAPI) {
var ip = validatorAPI.properties.ip;
var timeout;
var res = function (valid, message) {
res = function () { };
validatorAPI.callback(valid, message);
clearTimeout(timeout);
};
timeout = setTimeout(function () {
res(false, 'Timeout whilst trying to connect to atem');
}, 5000);
var atem = new Atem({ debugBuffers: true });
atem.on('error', function (error) {
res(false, error);
});
atem.on('connected', function () {
validatorAPI.setInstance(atem);
res(true);
});
atem.connect(ip);
});
};
//# sourceMappingURL=main.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/blackmagick/main.ts"],"names":[],"mappings":";AACQ,IAAA,IAAI,GAAK,OAAO,CAAC,iBAAiB,CAAC,KAA/B,CAA+B;AAE3C,MAAM,CAAC,OAAO,GAAG,UAAC,GAAmB;IACjC,kBAAkB;IAClB,GAAG,CAAC,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,E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j = to.length; i < il; i++, j++)
to[j] = from[i];
return to;
};
exports.__esModule = true;
module.exports = function (actionAPI) {
actionAPI.handle(function (properties, status, executed) {
if (properties.page != undefined) {
if (Undecked.Pages.exists(properties.page)) {
var page = Undecked.Pages.get(properties.page);
if (properties.decks != undefined && properties.decks.length > 0) {
var changed = [];
var failed = [];
for (var i = 0; i < properties.decks.length; i++) {
var serialNumber = properties.decks[i];
if (Undecked.Decks.hasDeck(serialNumber) || serialNumber == 'current') {
var deck = serialNumber != 'current' ? Undecked.Decks.getDeck(serialNumber) : executed;
deck.setPageID(page.getID());
changed.push(serialNumber);
}
else
failed.push(serialNumber);
}
if (failed.length == 0)
status("Changed " + changed.length + " deck(s) to page '" + page.name + "'", 'info');
else
status("Deck(s) '" + failed.join(', ') + "' were not found, only changed " + changed.length + " deck(s) to page '" + page.name + "'", 'warn');
}
else
status('No decks selected', 'error');
}
else
status('Page does not exist. Maybe it was removed?', 'error');
}
else
status('Missing page property', 'error');
});
actionAPI.onOpenEditor(function (editorAPI, properties) {
editorAPI.onFieldChanges(function (fields) {
var fieldsObject = editorAPI.tools.objectifyFieldsValues(fields);
editorAPI.saveProperties({
decks: fieldsObject.deck,
page: fieldsObject.page
});
});
editorAPI.setFields([
{
id: 'deck',
name: 'Deck',
type: 'select',
multi: true,
value: properties.decks != undefined
? properties.decks
: [
'current'
],
values: getDecksValues()
},
{
id: 'page',
name: 'Page',
type: 'select',
value: properties.page != undefined ? properties.page : '',
values: getPageValues()
}
]);
});
function getDecksValues() {
return __spreadArray([
{ id: 'current', text: 'Current Deck' }
], Undecked.Decks.getList().map(function (deck) {
return { id: deck.serialNumber, text: deck.name };
}));
}
function getPageValues() {
return Undecked.Pages.getNames().map(function (page) {
return { id: page.pageID, text: page.name };
});
}
};
//# sourceMappingURL=changepage.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"changepage.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/deck/actions/changepage.ts"],"names":[],"mappings":";;;;;;A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,CAAC,CAAC;IAEH,SAAS,cAAc;QACtB;YACC,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE;WACpC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,UAAC,IAAI;YACpC,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;QACnD,CAAC,CAAC,EACD;IACH,CAAC;IAED,SAAS,aAAa;QACrB,OAAO,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,UAAC,IAAI;YACzC,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;QAC7C,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC"}

View File

@@ -0,0 +1,116 @@
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
to[j] = from[i];
return to;
};
exports.__esModule = true;
module.exports = function (actionAPI) {
actionAPI.handle(function (properties, status, deck) {
if (properties.key != undefined && properties.key.length > 0) {
if (properties.color != undefined) {
var location = Undecked.Pages.KeyManager.getLocation(properties.key);
if (location) {
if (Undecked.Pages.exists(location.pageID)) {
var page = Undecked.Pages.get(location.pageID);
if (page.hasKey(location.x, location.y)) {
var key = page.getKey(location.x, location.y);
if (key.appearence == undefined)
key.appearence = {};
if (key.appearence.background == undefined)
key.appearence.background = { color: null };
key.appearence.background.color = properties.color;
page.updateKey(location.x, location.y, key, null);
status('Key color has been updated', 'info');
}
else
status('Unable to find locaton', 'error');
}
else
status('Unable to find page', 'error');
}
else
status('Invalid key ID. Maybe it was removed?', 'error');
}
else
status('No color specified', 'error');
}
else
status('No key specified', 'error');
});
actionAPI.onOpenEditor(function (editorAPI, properties) {
var lastPageState = 'current';
var initKey = 'current';
var initColor = properties.color != undefined ? properties.color : '#ff0000';
if (properties.key != undefined) {
var location = Undecked.Pages.KeyManager.getLocation(properties.key);
if (location) {
lastPageState = location.pageID == editorAPI.keyPageID ? 'current' : location.pageID;
}
initKey = properties.key == editorAPI.key.id ? 'current' : properties.key;
}
var fields = [
{
id: 'page',
name: 'Page',
type: 'select',
value: lastPageState,
values: getPageValues()
},
{
id: 'key',
name: 'Key',
type: 'select',
value: initKey,
values: getPageKeyValues(lastPageState)
},
{
id: 'color',
name: 'Color',
type: 'color',
value: initColor
}
];
editorAPI.saveProperties({
key: initKey == 'current' ? editorAPI.key.id : initKey,
color: initColor
});
editorAPI.onFieldChanges(function (changedFields) {
var fieldObject = editorAPI.tools.objectifyFieldsValues(changedFields);
fields[0].value = fieldObject.page;
fields[1].value = fieldObject.key;
fields[2].value = fieldObject.color;
if (fieldObject.page != lastPageState) {
fields[1].values = getPageKeyValues(fieldObject.page);
editorAPI.setFields(fields);
}
editorAPI.saveProperties({
key: fieldObject.key == 'current' ? editorAPI.key.id : fieldObject.key,
color: fieldObject.color
});
});
editorAPI.setFields(fields);
function getPageValues() {
return __spreadArray([
{ id: 'current', text: 'Current Page' }
], Undecked.Pages.getNames().map(function (page) {
return { id: page.pageID, text: page.name };
}));
}
function getPageKeyValues(pageID) {
var values = [
{ id: 'current', text: 'Current Key' }
];
if (pageID == 'current')
pageID = editorAPI.keyPageID;
else
values = [];
if (Undecked.Pages.exists(pageID))
return __spreadArray(__spreadArray([], values), Undecked.Pages.get(pageID).getKeyTextList().map(function (key) {
return { id: key.id, text: key.x + "," + key.y + " - " + (key.text != null ? key.text : 'Empty') };
}));
else
return [];
}
});
};
//# sourceMappingURL=setbackground.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setbackground.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/deck/actions/setbackground.ts"],"names":[],"mappings":";;;;;;AAOA,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CACf,UACC,UAA8B,EAC9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EAAE,cAAc,EAAE;eACpC,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,UAAC,IAAI;gBACrC,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;YAC7C,CAAC,CAAC,EACD;QACH,CAAC;QAED,SAAS,gBAAgB,CAAC,MAAc;YACvC,IAAI,MAAM,GAAG;gBACZ,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;aACtC,CAAC;YAEF,IAAI,MAAM,IAAI,SAAS;gBAAE,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC;;gBACjD,MAAM,GAAG,EAAE,CAAC;YAEjB,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;gBAChC,uCACI,MAAM,GACN,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,UAAC,GAAG;oBACtD,OAAO,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAK,GAAG,CAAC,CAAC,SAAI,GAAG,CAAC,CAAC,YAAM,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAE,EAAE,CAAC;gBAC7F,CAAC,CAAC,EACD;;gBACE,OAAO,EAAE,CAAC;QAChB,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,122 @@
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
to[j] = from[i];
return to;
};
exports.__esModule = true;
module.exports = function (actionAPI) {
actionAPI.handle(function (properties, status, deck) {
if (properties.key != undefined && properties.key.length > 0) {
if (properties.text != undefined) {
var location = Undecked.Pages.KeyManager.getLocation(properties.key);
if (location) {
if (Undecked.Pages.exists(location.pageID)) {
var page = Undecked.Pages.get(location.pageID);
if (page.hasKey(location.x, location.y)) {
var key = page.getKey(location.x, location.y);
if (key.appearence == undefined)
key.appearence = {};
if (key.appearence.text == undefined)
key.appearence.text = {
offsetX: 0,
offsetY: 0,
size: 20,
value: null,
color: '#ffffff'
};
key.appearence.text.value = properties.text;
page.updateKey(location.x, location.y, key, null);
status('Key text has been updated', 'info');
}
else
status('Unable to find locaton', 'error');
}
else
status('Unable to find page', 'error');
}
else
status('Invalid key ID. Maybe it was removed?', 'error');
}
else
status('No text specified', 'error');
}
else
status('No key specified', 'error');
});
actionAPI.onOpenEditor(function (editorAPI, properties) {
var lastPageState = 'current';
var initKey = '';
var initText = properties.text != undefined ? properties.text : '';
if (properties.key != undefined) {
var location = Undecked.Pages.KeyManager.getLocation(properties.key);
if (location) {
lastPageState = location.pageID == editorAPI.keyPageID ? 'current' : location.pageID;
}
initKey = properties.key == editorAPI.key.id ? 'current' : properties.key;
}
var fields = [
{
id: 'page',
name: 'Page',
type: 'select',
value: lastPageState,
values: getPageValues()
},
{
id: 'key',
name: 'Key',
type: 'select',
value: initKey,
values: getPageKeyValues(lastPageState)
},
{
id: 'text',
name: 'Text',
type: 'text',
value: initText
}
];
editorAPI.saveProperties({
key: initKey == 'current' ? editorAPI.key.id : initKey,
text: initText
});
editorAPI.onFieldChanges(function (changedFields) {
var fieldObject = editorAPI.tools.objectifyFieldsValues(changedFields);
fields[0].value = fieldObject.page;
fields[1].value = fieldObject.key;
fields[2].value = fieldObject.text;
if (fieldObject.page != lastPageState) {
fields[1].values = getPageKeyValues(fieldObject.page);
editorAPI.setFields(fields);
}
editorAPI.saveProperties({
key: fieldObject.key == 'current' ? editorAPI.key.id : fieldObject.key,
text: fieldObject.text
});
});
editorAPI.setFields(fields);
function getPageValues() {
return __spreadArray([
{ id: 'current', text: 'Current Page' }
], Undecked.Pages.getNames().map(function (page) {
return { id: page.pageID, text: page.name };
}));
}
function getPageKeyValues(pageID) {
var values = [
{ id: 'current', text: 'Current Key' }
];
if (pageID == 'current')
pageID = editorAPI.keyPageID;
else
values = [];
if (Undecked.Pages.exists(pageID))
return __spreadArray(__spreadArray([], values), Undecked.Pages.get(pageID).getKeyTextList().map(function (key) {
return { id: key.id, text: key.x + "," + key.y + " - " + (key.text != null ? key.text : 'Empty') };
}));
else
return [];
}
});
};
//# sourceMappingURL=settext.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"settext.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/deck/actions/settext.ts"],"names":[],"mappings":";;;;;;AAOA,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CACf,UACC,UAA8B,EAC9B,MAA+D,EAC/D,IAAU;QAEV,IAAI,UAAU,CAAC,GAAG,IAAI,SAAS,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE;YAC7D,IAAI,UAAU,CAAC,IAAI,IAAI,SAAS,EAAE;gBACjC,IAAI,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;gBACrE,IAAI,QAAQ,EAAE;oBACb,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;wBAC3C,IAAI,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;wBAE/C,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE;4BACxC,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;4BAC9C,IAAI,GAAG,CAAC,UAAU,IAAI,SAAS;gCAAE,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC;4BACrD,IAAI,GAAG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AC,EAAE,EAAE,IAAI,EAAK,GAAG,CAAC,CAAC,SAAI,GAAG,CAAC,CAAC,YAAM,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAE,EAAE,CAAC;gBAC7F,CAAC,CAAC,EACD;;gBACE,OAAO,EAAE,CAAC;QAChB,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,7 @@
exports.__esModule = true;
module.exports = function (api) {
api.registerAction('changepage', require('./actions/changepage'));
api.registerAction('setbackground', require('./actions/setbackground'));
api.registerAction('settext', require('./actions/settext'));
};
//# sourceMappingURL=deck.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"deck.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/deck/deck.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,GAAG,UAAC,GAAmB;IACpC,GAAG,CAAC,cAAc,CAAC,YAAY,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAClE,GAAG,CAAC,cAAc,CAAC,eAAe,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;IACxE,GAAG,CAAC,cAAc,CAAC,SAAS,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC"}

View File

@@ -0,0 +1,22 @@
exports.__esModule = true;
var Integration = {
name: 'Deck',
description: "Control the deck you're using.",
actions: [
{
id: 'changepage',
name: 'Change page'
},
{
id: 'setbackground',
name: 'Set key background color'
},
{
id: 'settext',
name: 'Set key text'
}
],
main: require('./deck')
};
module.exports = Integration;
//# sourceMappingURL=integration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/deck/integration.ts"],"names":[],"mappings":";AAEA,IAAI,WAAW,GAAgB;IAC9B,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,gCAAgC;IAC7C,OAAO,EAAE;QACR;YACC,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;SACnB;QAED;YACC,EAAE,EAAE,eAAe;YACnB,IAAI,EAAE,0BAA0B;SAChC;QAED;YACC,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,cAAc;SACpB;KACD;IACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC"}

View File

@@ -0,0 +1,7 @@
exports.__esModule = true;
var simpleGetiyoActions_1 = require("../simpleGetiyoActions");
module.exports = function (ActionAPI) {
ActionAPI.handle(function (properties, status) { return simpleGetiyoActions_1.getiyoSimpleExecute(ActionAPI, properties, status, 'continueTimelineHold'); });
ActionAPI.onOpenEditor(simpleGetiyoActions_1.getiyoSimpleOpenEditor);
};
//# sourceMappingURL=continueTimelineHold.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"continueTimelineHold.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/getiyo/actions/continueTimelineHold.ts"],"names":[],"mappings":";AAEA,8DAAoF;AAEpF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAmB;IACjC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAAM,IAAK,OAAA,yCAAmB,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,sBAAsB,CAAC,EAA1E,CAA0E,CAAC,CAAA;IAEpH,SAAS,CAAC,YAAY,CAAC,4CAAsB,CAAC,CAAA;AAClD,CAAC,CAAA"}

View File

@@ -0,0 +1,98 @@
exports.__esModule = true;
module.exports = function (ActionAPI) {
ActionAPI.onExecute(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var sectionName = properties.sectionName != undefined ? properties.sectionName : 'none';
if (connectionID != 'none') {
if (sectionName != 'none') {
var connection = ActionAPI.getConnection('channel', connectionID);
if (connection) {
var channel = connection.instance;
channel
.jumpToTimelineSections(sectionName, 'main')
.then(function () {
status("Jumped to section " + sectionName);
})["catch"](function () { return status('Unable to jump to section', 'error'); });
}
else
status("Connection doesn't exist", 'error');
}
else
status('No section name specfied', 'error');
}
else
status('No connection specfied', 'error');
});
ActionAPI.onOpenEditor(function (EditorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var sectionName = properties.sectionName != undefined ? properties.sectionName : 'none';
var connectionField = {
id: 'connectionID',
name: 'Connection',
type: 'connection',
connectionType: 'channel',
value: connectionID
};
var sectionField = {
id: 'sectionName',
name: 'Section',
type: 'select',
value: sectionName,
values: []
};
var lastConnectionID = null;
var validate = function () {
if (connectionID != lastConnectionID) {
lastConnectionID = connectionID;
if (lastConnectionID != 'none') {
var connection = ActionAPI.getConnection('channel', lastConnectionID);
if (connection) {
var channel = connection.instance;
channel
.getTimelineSections()
.then(function (sections) {
sectionField.values = sections.map(function (sectionText) {
return { id: sectionText, text: sectionText };
});
EditorAPI.setFields([
connectionField,
sectionField
]);
})["catch"](function (error) {
sectionField.values = [];
EditorAPI.setFields([
connectionField,
sectionField
]);
});
}
else {
sectionField.values = [];
EditorAPI.setFields([
connectionField,
sectionField
]);
}
}
else {
sectionField.values = [];
EditorAPI.setFields([
connectionField,
sectionField
]);
}
}
};
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
connectionID = fieldObject.connectionID;
sectionName = fieldObject.sectionName;
connectionField.value = connectionID;
sectionField.value = sectionName;
EditorAPI.saveProperties({ connectionID: connectionID, sectionName: sectionName });
validate();
});
validate();
});
};
//# sourceMappingURL=jumpToTimelineSections.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"jumpToTimelineSections.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/getiyo/actions/jumpToTimelineSections.ts"],"names":[],"mappings":";AAKA,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,SAAS,CAAC,UAAC,UAAU,EAAE,MAA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nB,eAAe;4BACf,YAAY;yBACZ,CAAC,CAAC;qBACH;iBACD;qBAAM;oBACN,YAAY,CAAC,MAAM,GAAG,EAAE,CAAC;oBACzB,SAAS,CAAC,SAAS,CAAC;wBACnB,eAAe;wBACf,YAAY;qBACZ,CAAC,CAAC;iBACH;aACD;QACF,CAAC,CAAC;QAEF,SAAS,CAAC,cAAc,CAAC,UAAC,MAAM;YAC/B,IAAI,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAEhE,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC;YACxC,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC;YAEtC,eAAe,CAAC,KAAK,GAAG,YAAY,CAAC;YACrC,YAAY,CAAC,KAAK,GAAG,WAAW,CAAC;YAEjC,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,cAAA,EAAE,WAAW,aAAA,EAAE,CAAC,CAAC;YACxD,QAAQ,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;QAEH,QAAQ,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,7 @@
exports.__esModule = true;
var simpleGetiyoActions_1 = require("../simpleGetiyoActions");
module.exports = function (ActionAPI) {
ActionAPI.handle(function (properties, status) { return simpleGetiyoActions_1.getiyoSimpleExecute(ActionAPI, properties, status, 'pauseTimeline'); });
ActionAPI.onOpenEditor(simpleGetiyoActions_1.getiyoSimpleOpenEditor);
};
//# sourceMappingURL=pauseTimeline.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"pauseTimeline.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/getiyo/actions/pauseTimeline.ts"],"names":[],"mappings":";AAEA,8DAAoF;AAEpF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAmB;IACjC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAAM,IAAK,OAAA,yCAAmB,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,CAAC,EAAnE,CAAmE,CAAC,CAAA;IAE7G,SAAS,CAAC,YAAY,CAAC,4CAAsB,CAAC,CAAA;AAClD,CAAC,CAAA"}

View File

@@ -0,0 +1,98 @@
exports.__esModule = true;
module.exports = function (ActionAPI) {
ActionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var sceneID = properties.sceneID != undefined ? properties.sceneID : 'none';
var displayID = properties.displayID != undefined ? properties.displayID : 'none';
if (connectionID != 'none') {
if (sceneID != 'none') {
if (displayID != 'none') {
var connection = ActionAPI.getConnection('channel', connectionID);
if (connection) {
var channel = connection.instance;
return channel.publishScene(sceneID, displayID);
}
else
status("Connection doesn't exist", 'error');
}
else
status('No display specfied', 'error');
}
else
status('No scene specfied', 'error');
}
else
status('No connection specfied', 'error');
});
ActionAPI.onOpenEditor(function (EditorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var sceneID = properties.sceneID != undefined ? properties.sceneID : 'none';
var displayID = properties.displayID != undefined ? properties.displayID : 'none';
var connectionField = {
id: 'connectionID',
name: "Connection",
type: "connection",
connectionType: 'channel',
value: connectionID
};
var sceneField = {
id: 'sceneID',
name: "Scene",
type: "select",
value: sceneID,
values: []
};
var displayField = {
id: 'displayID',
name: "Display",
type: "select",
value: displayID,
values: []
};
var lastConnectionID = null;
var validate = function () {
if (connectionID != lastConnectionID) {
lastConnectionID = connectionID;
if (lastConnectionID != "none") {
var connection = ActionAPI.getConnection('channel', lastConnectionID);
if (connection) {
var channel = connection.instance;
channel.getScenes().then(function (scenes) {
sceneField.values = scenes.map(function (scene) { return { id: scene.id, text: scene.name }; });
channel.getDisplays().then(function (displays) {
displayField.values = displays.map(function (display) { return { id: display.id, text: display.name }; });
EditorAPI.setFields([connectionField, sceneField, displayField]);
})["catch"](function (error) {
sceneField.values = [];
EditorAPI.setFields([connectionField, sceneField, displayField]);
});
})["catch"](function (error) {
sceneField.values = [];
EditorAPI.setFields([connectionField, sceneField, displayField]);
});
}
else {
sceneField.values = [];
EditorAPI.setFields([connectionField, sceneField, displayField]);
}
}
else {
sceneField.values = [];
EditorAPI.setFields([connectionField, sceneField, displayField]);
}
}
};
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
connectionID = fieldObject.connectionID;
sceneID = fieldObject.sceneID;
displayID = fieldObject.displayID;
connectionField.value = connectionID;
sceneField.value = sceneID;
EditorAPI.saveProperties({ connectionID: connectionID, sceneID: sceneID, displayID: displayID });
validate();
});
validate();
});
};
//# sourceMappingURL=publishScene.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"publishScene.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/getiyo/actions/publishScene.ts"],"names":[],"mappings":";AAKA,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IAClC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAAM;QAChC,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAA;QAC1F,IAAI,OAAO,GAAG,UAAU,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAA;QAC3E,IAAI,SAAS,GAAG,UAAU,CAAC,SAAS,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAA;QACjF,IAAI,YAAY,IAAI,MAAM,EAAE;YACxB,IAAI,OAAO,IAAI,MAAM,EAAE;gBACnB,IAAI,SAAS,IAAI,MAAM,EAAE;oBACrB,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;oBACjE,IAAI,UAAU,EAAE;wBACZ,IAAI,OAAO,GAAW,UAAU,CAAC,QAAQ,CAAC;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AAS,CAAC,CAAC,eAAe,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC,CAAA;wBACpE,CAAC,CAAC,CAAA;qBAIL;yBAAM;wBACH,UAAU,CAAC,MAAM,GAAG,EAAE,CAAC;wBACvB,SAAS,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC,CAAA;qBACnE;iBACJ;qBAAM;oBACH,UAAU,CAAC,MAAM,GAAG,EAAE,CAAC;oBACvB,SAAS,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC,CAAA;iBACnE;aACJ;QACL,CAAC,CAAA;QAED,SAAS,CAAC,cAAc,CAAC,UAAC,MAAM;YAC5B,IAAI,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAA;YAE/D,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA;YACvC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;YAC9B,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;YAElC,eAAe,CAAC,KAAK,GAAG,YAAY,CAAC;YACrC,UAAU,CAAC,KAAK,GAAG,OAAO,CAAA;YAG1B,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,cAAA,EAAE,OAAO,SAAA,EAAE,SAAS,WAAA,EAAE,CAAC,CAAA;YAC9D,QAAQ,EAAE,CAAA;QACd,CAAC,CAAC,CAAA;QAEF,QAAQ,EAAE,CAAA;IACd,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}

View File

@@ -0,0 +1,7 @@
exports.__esModule = true;
var simpleGetiyoActions_1 = require("../simpleGetiyoActions");
module.exports = function (ActionAPI) {
ActionAPI.handle(function (properties, status) { return simpleGetiyoActions_1.getiyoSimpleExecute(ActionAPI, properties, status, 'skipTimelineBlock'); });
ActionAPI.onOpenEditor(simpleGetiyoActions_1.getiyoSimpleOpenEditor);
};
//# sourceMappingURL=skipTimelineBlock.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"skipTimelineBlock.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/getiyo/actions/skipTimelineBlock.ts"],"names":[],"mappings":";AAEA,8DAAoF;AAEpF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAmB;IACjC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAAM,IAAK,OAAA,yCAAmB,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAvE,CAAuE,CAAC,CAAA;IAEjH,SAAS,CAAC,YAAY,CAAC,4CAAsB,CAAC,CAAA;AAClD,CAAC,CAAA"}

View File

@@ -0,0 +1,7 @@
exports.__esModule = true;
var simpleGetiyoActions_1 = require("../simpleGetiyoActions");
module.exports = function (ActionAPI) {
ActionAPI.handle(function (properties, status) { return simpleGetiyoActions_1.getiyoSimpleExecute(ActionAPI, properties, status, 'startTimeline'); });
ActionAPI.onOpenEditor(simpleGetiyoActions_1.getiyoSimpleOpenEditor);
};
//# sourceMappingURL=startTimeline.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"startTimeline.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/getiyo/actions/startTimeline.ts"],"names":[],"mappings":";AAEA,8DAAoF;AAEpF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAmB;IACjC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAAM,IAAK,OAAA,yCAAmB,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,CAAC,EAAnE,CAAmE,CAAC,CAAA;IAE7G,SAAS,CAAC,YAAY,CAAC,4CAAsB,CAAC,CAAA;AAClD,CAAC,CAAA"}

View File

@@ -0,0 +1,7 @@
exports.__esModule = true;
var simpleGetiyoActions_1 = require("../simpleGetiyoActions");
module.exports = function (ActionAPI) {
ActionAPI.handle(function (properties, status) { return simpleGetiyoActions_1.getiyoSimpleExecute(ActionAPI, properties, status, 'stopTimeline'); });
ActionAPI.onOpenEditor(simpleGetiyoActions_1.getiyoSimpleOpenEditor);
};
//# sourceMappingURL=stopTimeline.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"stopTimeline.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/getiyo/actions/stopTimeline.ts"],"names":[],"mappings":";AAEA,8DAAoF;AAEpF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAmB;IACjC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAAM,IAAK,OAAA,yCAAmB,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,EAAlE,CAAkE,CAAC,CAAA;IAE5G,SAAS,CAAC,YAAY,CAAC,4CAAsB,CAAC,CAAA;AAClD,CAAC,CAAA"}

View File

@@ -0,0 +1,182 @@
exports.__esModule = true;
exports.Getiyo = void 0;
var axios_1 = require("axios");
var Getiyo = /** @class */ (function () {
function Getiyo(settings) {
this.serverProtocol = settings.serverProtocol != undefined ? settings.serverProtocol : 'http';
this.serverAddress = settings.serverAddress;
this.serverPort = settings.serverPort;
this.channelName = settings.channelName;
this.channelApiKey = settings.channelApiKey;
}
Getiyo.prototype._getBaseURI = function () {
return this.serverProtocol + "://" + this.serverAddress + ":" + this.serverPort + "/" + this.channelName + "/api/v1/" + this
.channelApiKey + "/";
};
Getiyo.prototype.checkConnection = function (callback) {
axios_1["default"].get(this._getBaseURI()).then(function () { return callback(true); })["catch"](function () { return callback(false); });
};
Getiyo.prototype.getScenes = function () {
var _this = this;
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + 'scenes')
.then(function (response) {
if (response.data.succeed == true) {
resolve(response.data.response);
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.getDisplays = function () {
var _this = this;
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + 'displays')
.then(function (response) {
if (response.data.succeed == true) {
resolve(response.data.response);
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.getModules = function () {
var _this = this;
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + 'modules')
.then(function (response) {
if (response.data.succeed == true) {
resolve(response.data.response);
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.getTimelineSections = function () {
var _this = this;
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + 'timeline/sections')
.then(function (response) {
if (response.data.succeed == true) {
resolve(response.data.response);
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.publishScene = function (sceneID, displayID) {
var _this = this;
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + ("scenes/publish/" + sceneID + "/" + displayID))
.then(function (response) {
if (response.data.succeed == true) {
resolve();
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.startTimeline = function (createNewRunner) {
var _this = this;
if (createNewRunner === void 0) { createNewRunner = false; }
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + ("timeline/start/" + createNewRunner))
.then(function (response) {
if (response.data.succeed == true) {
resolve();
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.stopTimeline = function (runnerID) {
var _this = this;
if (runnerID === void 0) { runnerID = 'main'; }
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + ("timeline/stop/" + runnerID))
.then(function (response) {
if (response.data.succeed == true) {
resolve();
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.pauseTimeline = function (runnerID) {
var _this = this;
if (runnerID === void 0) { runnerID = 'main'; }
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + ("timeline/pause/" + runnerID))
.then(function (response) {
if (response.data.succeed == true) {
resolve();
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.skipTimelineBlock = function (runnerID) {
var _this = this;
if (runnerID === void 0) { runnerID = 'main'; }
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + ("timeline/skip/" + runnerID))
.then(function (response) {
if (response.data.succeed == true) {
resolve();
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.continueTimelineHold = function (runnerID) {
var _this = this;
if (runnerID === void 0) { runnerID = 'main'; }
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + ("timeline/hold/" + runnerID))
.then(function (response) {
if (response.data.succeed == true) {
resolve();
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
Getiyo.prototype.jumpToTimelineSections = function (sectionName, runnerID) {
var _this = this;
if (runnerID === void 0) { runnerID = 'main'; }
return new Promise(function (resolve, reject) {
axios_1["default"]
.get(_this._getBaseURI() + ("timeline/sections/jump/" + encodeURI(sectionName) + "/" + runnerID))
.then(function (response) {
if (response.data.succeed == true) {
resolve();
}
else
reject(new Error('Unable to connection to Getiyo instance'));
})["catch"](reject);
});
};
return Getiyo;
}());
exports.Getiyo = Getiyo;
//# sourceMappingURL=getiyo.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,21 @@
exports.__esModule = true;
var Integration = {
name: 'Getiyo',
description: 'Control your Getiyo channel.',
connections: [
{
type: 'channel',
name: 'Channel',
fields: [
{ id: 'protocol', name: 'Server Protocol', type: 'select', value: 'http', values: [{ id: 'http', text: "HTTP" }, { id: 'https', text: "HTTPS" }] },
{ id: 'address', name: 'Server Address', type: 'text', value: 'getiyo.com' },
{ id: 'port', name: 'Server Port', type: 'number', value: '443' },
{ id: 'channel', name: 'Channel Name', type: 'text' },
{ id: 'key', name: 'API Key', type: 'text' }
]
}
],
main: require('./main')
};
module.exports = Integration;
//# sourceMappingURL=integration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/getiyo/integration.ts"],"names":[],"mappings":";AAEA,IAAI,WAAW,GAAgB;IAC9B,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACP,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAC,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAC,EAAE,EAAC,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,OAAO,EAAC,CAAC,EAAE;gBAC3I,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE;gBAC5E,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE;gBACjE,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE;gBACrD,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE;aAC5C;SACD;KACD;IACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC"}

View File

@@ -0,0 +1,30 @@
exports.__esModule = true;
var Getiyo_1 = require("./Getiyo");
module.exports = function (api) {
api.registerAction('publishScene', 'Publish scene', require('./actions/publishScene'));
api.registerAction('startTimeline', 'Start timeline', require('./actions/startTimeline'));
api.registerAction('stopTimeline', 'Stop timeline', require('./actions/stopTimeline'));
api.registerAction('pauseTimeline', 'Pause timeline', require('./actions/pauseTimeline'));
api.registerAction('continueTimelineHold', 'Continue timeline hold', require('./actions/continueTimelineHold'));
api.registerAction('skipTimelineBlock', 'Skip timeline block', require('./actions/skipTimelineBlock'));
api.registerAction('jumpToTimelineSections', 'Jump to timeline section', require('./actions/jumpToTimelineSections'));
api.registerConnectionValidator('channel', function (ValidatorAPI) {
var properties = ValidatorAPI.properties;
var Channel = new Getiyo_1.Getiyo({
serverProtocol: properties.protocol,
serverAddress: properties.address,
serverPort: properties.port,
channelName: properties.channel,
channelApiKey: properties.key
});
Channel.checkConnection(function (succeed) {
if (succeed == true) {
ValidatorAPI.callback(true);
ValidatorAPI.setInstance(Channel);
}
else
ValidatorAPI.callback(false, 'Unable to find a Getiyo channel in this location.');
});
});
};
//# sourceMappingURL=main.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/getiyo/main.ts"],"names":[],"mappings":";AAGA,mCAAkC;AAElC,MAAM,CAAC,OAAO,GAAG,UAAC,GAAmB;IACpC,GAAG,CAAC,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACvF,GAAG,CAAC,cAAc,CAAC,eAAe,EAAE,gBAAgB,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAC1F,GAAG,CAAC,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACvF,GAAG,CAAC,cAAc,CAAC,eAAe,EAAE,gBAAgB,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAC1F,GAAG,CAAC,cAAc,CAAC,sBAAsB,EAAE,wBAAwB,EAAE,OAAO,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAChH,GAAG,CAAC,cAAc,CAAC,mBAAmB,EAAE,qBAAqB,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAC,CAAC;IACvG,GAAG,CAAC,cAAc,CAAC,wBAAwB,EAAE,0BAA0B,EAAE,OAAO,CAAC,kCAAkC,CAAC,CAAC,CAAC;IAEtH,GAAG,CAAC,2BAA2B,CAAC,SAAS,EAAE,UAAC,YAAoC;QAC/E,IAAI,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;QAGzC,IAAI,OAAO,GAAG,IAAI,eAAM,CAAC;YACxB,cAAc,EAAE,UAAU,CAAC,QAAQ;YACnC,aAAa,EAAE,UAAU,CAAC,OAAO;YACjC,UAAU,EAAE,UAAU,CAAC,IAAI;YAC3B,WAAW,EAAE,UAAU,CAAC,OAAO;YAC/B,aAAa,EAAE,UAAU,CAAC,GAAG;SAC7B,CAAC,CAAA;QAEF,OAAO,CAAC,eAAe,CAAC,UAAC,OAAO;YAC/B,IAAI,OAAO,IAAI,IAAI,EAAG;gBACrB,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;gBAC3B,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;aACjC;;gBACI,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAE,mDAAmD,CAAC,CAAA;QACvF,CAAC,CAAC,CAAA;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,184 @@
// import axios from 'axios';
// import { callbackify } from 'util';
// import { ConnectionManager_Connection } from '../../../../ConnectionManager';
// import { Log } from '../../../../Logger';
// import { ActionAPI } from '../../../ActionAPI';
// import { EditorAPI, EditorAPI_Field } from '../../../EditorAPI';
// module.exports = (actionAPI: ActionAPI) => {
// actionAPI.handle(
// (properties: Publish_Properties, status: (text: string, type?: 'info' | 'error' | 'warn') => void) => {
// var connectionID = properties.connectionID;
// var sceneID = properties.sceneID;
// var displayIDs = properties.displayIDs;
// var connection = actionAPI.getConnection('channel', connectionID);
// if (connection && connectionID != undefined && sceneID != undefined && displayIDs != undefined) {
// var url = `${getBaseURL(connection)}/scenes/publish/${sceneID}/${displayIDs.join(',')}`;
// axios
// .get(url)
// .then((response) => {
// if (response.data != undefined) {
// if (response.data.succeed == true) {
// status(`Scene ${sceneID} was published to display(s) ${displayIDs.join(', ')}`);
// } else status(response.data.error, 'error');
// }
// })
// .catch((error) => {
// status('Unable to reach Getiyo server', 'error');
// });
// }
// }
// );
// var channelSceneCache = {};
// actionAPI.onOpenEditor((editorAPI: EditorAPI, properties: Publish_Properties) => {
// var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
// var sceneID = properties.sceneID != undefined ? properties.sceneID : 'none';
// var displayIDs = properties.displayIDs != undefined ? properties.displayIDs : [];
// var connection: ConnectionManager_Connection = null;
// var lastConnectionID: string = connectionID;
// editorAPI.onFieldChanges((newFields: EditorAPI_Field[]) => {
// var fieldObject = editorAPI.tools.objectifyFieldsValues(newFields);
// editorAPI.saveProperties({
// connectionID: fieldObject.connection,
// sceneID: fieldObject.sceneID,
// displayIDs: fieldObject.displayIDs
// });
// fields[0].value = fieldObject.connection;
// if (lastConnectionID != fieldObject.connection) {
// getConnection(fieldObject.connection, () => {
// editorAPI.setFields(fields);
// });
// }
// });
// function getConnection(connectionID: string, callback: () => void) {
// var newConnection = actionAPI.getConnection('channel', connectionID);
// if (connectionID == 'none') {
// fields[1].values = [];
// fields[2].values = [];
// callback();
// } else if (newConnection != null) {
// lastConnectionID = connectionID;
// connection = newConnection;
// updateScenes(() => updateDisplays(callback));
// } else callback();
// }
// function updateScenes(callback: () => void) {
// var baseURL = getBaseURL(connection);
// if (baseURL) {
// axios
// .get(`${baseURL}/scenes`)
// .then((response) => {
// if (response.data != undefined) {
// if (response.data.succeed == true) {
// var scenes: Channel_Scene[] = response.data.response.map((scene) => {
// return { id: scene.id, text: `${scene.id} - ${scene.name}` };
// });
// fields[1].values = scenes;
// channelSceneCache[connection.properties.channel] = scenes;
// callback();
// } else {
// Log('error', response.data.error);
// callback();
// }
// }
// })
// .catch((error) => {
// Log(
// 'error',
// `Error whilst fetching Getiyo scenes for channel '${connection.properties.channel}'`,
// error
// );
// callback();
// });
// }
// }
// function updateDisplays(callback: () => void) {
// var baseURL = getBaseURL(connection);
// if (baseURL) {
// axios
// .get(`${baseURL}/displays`)
// .then((response) => {
// if (response.data != undefined) {
// if (response.data.succeed == true) {
// var scenes: Channel_Display[] = response.data.response.map((display) => {
// return { id: display.id, text: `${display.id} - ${display.name}` };
// });
// fields[2].values = scenes;
// channelSceneCache[connection.properties.channel] = scenes;
// callback();
// } else {
// Log('error', response.data.error);
// callback();
// }
// }
// })
// .catch((error) => {
// Log(
// 'error',
// `Error whilst fetching Getiyo displays for channel '${connection.properties.channel}'`,
// error
// );
// callback();
// });
// }
// }
// var defaultSceneValues = [];
// if (connection != null && connection.properties != null) {
// if (channelSceneCache[connection.properties.channel] != undefined) {
// defaultSceneValues = channelSceneCache[connection.properties.channel];
// }
// }
// var fields: EditorAPI_Field[] = [
// {
// id: 'connection',
// name: 'Connection',
// type: 'connection',
// value: connectionID,
// connectionType: 'channel'
// },
// {
// id: 'sceneID',
// name: 'Scene',
// type: 'select',
// value: sceneID,
// values: defaultSceneValues
// },
// {
// id: 'displayIDs',
// name: 'Displays',
// type: 'select',
// multi: true,
// value: displayIDs,
// values: []
// }
// ];
// getConnection(connectionID, () => editorAPI.setFields(fields));
// });
// function getBaseURL(connection) {
// if (connection != null) {
// var addressString = <string>connection.properties.address;
// var address =
// !addressString.startsWith('http://') && !addressString.startsWith('https://')
// ? `https://${addressString}`
// : addressString;
// var fullQuery = `${address}:${connection.properties.port}/api/v1/${connection.properties.key}/${connection
// .properties.channel}`;
// return fullQuery;
// }
// return null;
// }
// };
// interface Publish_Properties {
// connectionID: string;
// sceneID: string;
// displayIDs: string[];
// }
// interface Channel_Scene {
// id: string;
// text: string;
// }
// interface Channel_Display {
// id: string;
// text: string;
// scene: string;
// }
//# sourceMappingURL=publish.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/getiyo/publish.ts"],"names":[],"mappings":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I;AAEJ,8BAA8B;AAC9B,eAAe;AACf,iBAAiB;AACjB,kBAAkB;AAClB,IAAI"}

View File

@@ -0,0 +1,33 @@
exports.__esModule = true;
exports.getiyoSimpleExecute = exports.getiyoSimpleOpenEditor = void 0;
function getiyoSimpleOpenEditor(EditorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
EditorAPI.setFields([{
id: 'connectionID',
name: "Connection",
type: "connection",
connectionType: 'channel',
value: connectionID
}]);
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
EditorAPI.saveProperties({ connectionID: fieldObject.connectionID });
});
}
exports.getiyoSimpleOpenEditor = getiyoSimpleOpenEditor;
function getiyoSimpleExecute(ActionAPI, properties, status, functionName) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
if (connectionID != 'none') {
var connection = ActionAPI.getConnection('channel', connectionID);
if (connection) {
var channel = connection.instance;
return channel[functionName]();
}
else
status("Connection doesn't exist", 'error');
}
else
status('No connection specfied', 'error');
}
exports.getiyoSimpleExecute = getiyoSimpleExecute;
//# sourceMappingURL=simpleGetiyoActions.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"simpleGetiyoActions.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/getiyo/simpleGetiyoActions.ts"],"names":[],"mappings":";;AAIA,SAAgB,sBAAsB,CAAC,SAAmB,EAAE,UAAU;IAClE,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAA;IAE1F,SAAS,CAAC,SAAS,CAAC,CAAC;YACjB,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,YAAY;YAClB,cAAc,EAAE,SAAS;YACzB,KAAK,EAAE,YAAY;SACtB,CAAC,CAAC,CAAA;IAEH,SAAS,CAAC,cAAc,CAAC,UAAC,MAAM;QAC5B,IAAI,WAAW,GAAE,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAA;QAC9D,SAAS,CAAC,cAAc,CAAC,EAAC,YAAY,EAAC,WAAW,CAAC,YAAY,EAAC,CAAC,CAAA;IACrE,CAAC,CAAC,CAAA;AACN,CAAC;AAfD,wDAeC;AAGD,SAAgB,mBAAmB,CAAC,SAAmB,EAAC,UAAU,EAAE,MAAyC,EAAE,YAAmB;IAC9H,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAA;IAC1F,IAAI,YAAY,IAAI,MAAM,EAAC;QACvB,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;QACjE,IAAI,UAAU,EAAC;YACX,IAAI,OAAO,GAAU,UAAU,CAAC,QAAQ,CAAC;YAEzC,OAAO,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;SACjC;;YAAK,MAAM,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAA;KACpD;;QAAK,MAAM,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAA;AACnD,CAAC;AAVD,kDAUC"}

View File

@@ -0,0 +1,45 @@
exports.__esModule = true;
var axios = require('axios')["default"];
module.exports = function (api) {
//Register a action
api.registerAction('request', function (actionAPI) {
//Handle the action when executed
actionAPI.handle(function (properties, status) {
axios[properties.method](properties.address)
.then(function (response) {
status('Request has been delivered.');
})["catch"](function (error) {
status('Unable to deliver request.', 'error');
});
});
//Handle the interactive editor
actionAPI.onOpenEditor(function (editorAPI, properties) {
var method = properties.method != undefined ? properties.method : 'get';
var address = properties.address != undefined ? properties.address : '';
editorAPI.onFieldChanges(function (fields) {
var fieldValues = editorAPI.tools.objectifyFieldsValues(fields);
editorAPI.saveProperties({ method: fieldValues.method, address: fieldValues.address });
});
editorAPI.setFields([
{
id: 'method',
name: 'Method',
type: 'select',
value: method,
values: [
{ id: 'get', text: 'GET' },
{ id: 'post', text: 'POST' },
{ id: 'put', text: 'PUT' }
]
},
{
id: 'address',
name: 'Address',
type: 'text',
value: address
}
]);
});
});
};
//# sourceMappingURL=http.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/http/http.ts"],"names":[],"mappings":";AAGA,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,SAAO,CAAA,CAAC;AAEvC,MAAM,CAAC,OAAO,GAAG,UAAC,GAAmB;IACpC,mBAAmB;IACnB,GAAG,CAAC,cAAc,CAAC,SAAS,EAAE,UAAC,SAAoB;QAClD,iCAAiC;QACjC,SAAS,CAAC,MAAM,CACf,UAAC,UAA8B,EAAE,MAAgE;YAChG,KAAK,CACH,UAAU,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;iBACtC,IAAI,CAAC,UAAC,QAAQ;gBACd,MAAM,CAAC,6BAA6B,CAAC,CAAC;YACvC,CAAC,CAAC,CACD,OAAK,CAAA,CAAC,UAAC,KAAK;gBACZ,MAAM,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;YAC/C,CAAC,CAAC,CAAC;QACL,CAAC,CACD,CAAC;QAEF,+BAA+B;QAC/B,SAAS,CAAC,YAAY,CAAC,UAAC,SAAoB,EAAE,UAA8B;YAC3E,IAAI,MAAM,GAA+B,UAAU,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;YACpG,IAAI,OAAO,GAAW,UAAU,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YAEhF,SAAS,CAAC,cAAc,CAAC,UAAC,MAAyB;gBAClD,IAAI,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;gBAChE,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;YACxF,CAAC,CAAC,CAAC;YAEH,SAAS,CAAC,SAAS,CAAC;gBACnB;oBACC,EAAE,EAAE,QAAQ;oBACZ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE;wBACP,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;wBAC1B,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;wBAC5B,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;qBAC1B;iBACD;gBACD;oBACC,EAAE,EAAE,SAAS;oBACb,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,OAAO;iBACd;aACD,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,14 @@
exports.__esModule = true;
var Integration = {
name: 'HTTP',
description: 'Make a HTTP request.',
main: require('./http'),
actions: [
{
id: 'request',
name: 'Make HTTP request'
}
]
};
module.exports = Integration;
//# sourceMappingURL=integration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/http/integration.ts"],"names":[],"mappings":";AAEA,IAAI,WAAW,GAAgB;IAC9B,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,sBAAsB;IACnC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC;IAEvB,OAAO,EAAE;QACR;YACC,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,mBAAmB;SACzB;KACD;CACD,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC"}

View File

@@ -0,0 +1,239 @@
exports.__esModule = true;
exports.Mitti = void 0;
var HyperdeckLib = require("hyperdeck-js-lib");
var Mitti = /** @class */ (function () {
function Mitti(ip) {
this.events = {};
this.connected = false;
// console.log(`Connecting to hyperdeck at ${ip}`);
var _this = this;
this.hyperdeck = new HyperdeckLib.Hyperdeck(ip);
this.hyperdeck
.onConnected()
.then(function () {
_this.hyperdeck.getNotifier().on('asynchronousEvent', function (response) {
//console.log('Got an asynchronous event with code ' + response.code + '.');
});
_this.hyperdeck.getNotifier().on('connectionLost', function () {
_this.connected = false;
console.error('Connection lost.');
if (_this.events.connectionlost != undefined)
_this.events.connectionlost();
});
if (_this.events.connected != undefined)
_this.events.connected();
})["catch"](function (error) {
console.log(error);
_this.connected = false;
if (_this.events.connecterror != undefined)
_this.events.connecterror('Failed to connect to hyperdeck.');
});
}
Mitti.prototype.on = function (event, callback) {
if (this.events[event] != undefined)
throw new Error("Event '" + event + "' already created");
else {
this.events[event] = callback;
if (event == 'connected' && this.connected == true)
callback();
}
};
Mitti.prototype.raw = function (command) {
var _this_1 = this;
return new Promise(function (resolve, reject) {
//console.log('Sending command: ' + command);
_this_1.hyperdeck
.makeRequest(command)
.then(function (response) {
//console.log('Got response with code ' + response.code + '.');
resolve(response);
})["catch"](function (errResponse) {
if (!errResponse) {
reject(new Error('The request failed because the hyperdeck connection was lost.'));
}
else {
reject(new Error('The hyperdeck returned an error with status code ' + errResponse.code + '.'));
}
});
});
};
Mitti.prototype.getTransportInfo = function () {
var _this_1 = this;
return new Promise(function (resolve, reject) {
//console.log('Getting transport info');
_this_1.hyperdeck
.makeRequest('transport info')
.then(function (response) {
//console.log('Got response with code ' + response.code + '.');
if (response.params != undefined) {
resolve(response.params);
}
else {
reject(new Error('Response contained no params'));
}
})["catch"](function (errResponse) {
if (!errResponse) {
reject(new Error('The request failed because the hyperdeck connection was lost.'));
}
else {
reject(new Error('The hyperdeck returned an error with status code ' + errResponse.code + '.'));
}
});
});
};
Mitti.prototype.getClipCount = function () {
var _this_1 = this;
return new Promise(function (resolve, reject) {
//console.log('Getting clips');
_this_1.hyperdeck
.makeRequest('clips count')
.then(function (response) {
//console.log('Got response with code ' + response.code + '.');
if (response.params != undefined) {
if (response.params['clip count'] != undefined) {
resolve(response.params['clip count']);
}
else {
reject(new Error('Response contained no clip count data'));
}
}
else {
reject(new Error('Response contained no params data'));
}
})["catch"](function (errResponse) {
if (!errResponse) {
reject(new Error('The request failed because the hyperdeck connection was lost.'));
}
else {
reject(new Error('The hyperdeck returned an error with status code ' + errResponse.code + '.'));
}
});
});
};
Mitti.prototype.getClips = function () {
var _this_1 = this;
return new Promise(function (resolve, reject) {
//console.log('Getting clips');
_this_1.hyperdeck
.clipsGet()
.then(function (response) {
//console.log('Got response with code ' + response.code + '.');
if (response.params != undefined) {
if (response.params['clip count'] != undefined)
delete response.params['clip count'];
resolve(response.params);
}
else {
reject(new Error('Response contained no clip data'));
}
})["catch"](function (errResponse) {
if (!errResponse) {
reject(new Error('The request failed because the hyperdeck connection was lost.'));
}
else {
reject(new Error('The hyperdeck returned an error with status code ' + errResponse.code + '.'));
}
});
});
};
Mitti.prototype.selectClip = function (index) {
var _this_1 = this;
return new Promise(function (resolve, reject) {
//console.log('Selecting clip');
_this_1.hyperdeck
.makeRequest("goto: clip id: " + index)
.then(function (response) {
//console.log('Got response with code ' + response.code + '.');
resolve(true);
})["catch"](function (errResponse) {
if (!errResponse) {
reject(new Error('The request failed because the hyperdeck connection was lost.'));
}
else {
reject(new Error('The hyperdeck returned an error with status code ' + errResponse.code + '.'));
}
});
});
};
Mitti.prototype.play = function () {
var _this_1 = this;
return new Promise(function (resolve, reject) {
//console.log('Playing');
_this_1.hyperdeck
.play()
.then(function (response) {
//console.log('Got response with code ' + response.code + '.');
resolve(true);
})["catch"](function (errResponse) {
if (!errResponse) {
reject(new Error('The request failed because the hyperdeck connection was lost.'));
}
else {
reject(new Error('The hyperdeck returned an error with status code ' + errResponse.code + '.'));
}
});
});
};
Mitti.prototype.stop = function () {
var _this_1 = this;
return new Promise(function (resolve, reject) {
//console.log('Stopping');
_this_1.hyperdeck
.stop()
.then(function (response) {
//console.log('Got response with code ' + response.code + '.');
resolve(true);
})["catch"](function (errResponse) {
if (!errResponse) {
reject(new Error('The request failed because the hyperdeck connection was lost.'));
}
else {
reject(new Error('The hyperdeck returned an error with status code ' + errResponse.code + '.'));
}
});
});
};
Mitti.prototype.next = function (wrap) {
var _this_1 = this;
return new Promise(function (resolve, reject) {
//console.log('Next clip');
_this_1.getTransportInfo()
.then(function (transportInfo) {
var newClip = parseInt(transportInfo['clip id']) + 1;
if (wrap == true) {
_this_1.getClipCount()
.then(function (clipCount) {
if (newClip > clipCount)
newClip = 1;
_this_1.selectClip(newClip).then(resolve)["catch"](reject);
})["catch"](reject);
}
else
_this_1.selectClip(newClip).then(resolve)["catch"](reject);
})["catch"](reject);
});
};
Mitti.prototype.previous = function (wrap) {
var _this_1 = this;
return new Promise(function (resolve, reject) {
//console.log('Previous clip');
_this_1.getTransportInfo()
.then(function (transportInfo) {
var newClip = parseInt(transportInfo['clip id']) - 1;
if (wrap == true) {
_this_1.getClipCount()
.then(function (clipCount) {
if (newClip < 1)
newClip = clipCount;
_this_1.selectClip(newClip).then(resolve)["catch"](reject);
})["catch"](reject);
}
else
_this_1.selectClip(newClip).then(resolve)["catch"](reject);
})["catch"](reject);
});
};
return Mitti;
}());
exports.Mitti = Mitti;
//# sourceMappingURL=MittiClass.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,115 @@
exports.__esModule = true;
var MittiClass_1 = require("../MittiClass");
module.exports = function (actionAPI) {
//Handle the action when executed
actionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var clipID = properties.clipID != undefined ? properties.clipID : 'none';
if (connectionID != 'none') {
if (clipID != 'none') {
var connection = actionAPI.getConnection('mitti', connectionID);
var ip = connection.properties.ip;
var mitti = new MittiClass_1.Mitti(ip);
mitti.on('connected', function () {
mitti
.selectClip(parseInt(clipID))
.then(function () {
status("Clip " + clipID + " has been selected", 'info');
})["catch"](function (error) {
status(error.message, 'error');
});
});
}
else
status('No clip specified', 'error');
}
else
status('No connection specified', 'error');
});
//Handle the interactive editor
actionAPI.onOpenEditor(function (editorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var clipID = properties.clipID != undefined ? properties.clipID : 'none';
var currentIP;
var currentPort;
var fields = [
{
id: 'connectionID',
name: 'Connection',
type: 'connection',
value: connectionID,
connectionType: 'mitti'
},
{
id: 'clipID',
name: 'Clip',
type: 'select',
value: clipID,
values: []
}
];
function updateAddress(connectionID, callback) {
if (connectionID != 'none') {
var connection = actionAPI.getConnection('mitti', connectionID);
var ip = connection.properties.ip;
var port = connection.properties.port;
if (currentIP != ip || currentPort != port) {
currentIP = ip;
currentPort = port;
callback(true);
}
else {
callback(false);
}
}
else {
if (currentIP != null || currentPort != null) {
currentIP = null;
currentPort = null;
callback(true);
}
else {
callback(false);
}
}
}
function updateSources(callback) {
var mitti = new MittiClass_1.Mitti(currentIP);
mitti
.getClips()
.then(function (clips) {
var fieldValues = [];
for (var clipID in clips) {
var query = clips[clipID];
var name = query.split(' ').splice(query.split(' ').length - 3, 2);
fieldValues.push({ id: clipID, text: clipID + " - " + name });
}
fields[1].values = fieldValues;
callback();
})["catch"](function (error) {
fields[1].values = [];
callback();
});
}
function validate(fieldValues) {
fields[0].value = fieldValues.connectionID;
fields[1].value = fieldValues.clipID;
editorAPI.saveProperties({ connectionID: fieldValues.connectionID, clipID: fieldValues.clipID });
updateAddress(fieldValues.connectionID, function (changed) {
if (changed) {
updateSources(function () {
editorAPI.setFields(fields);
});
}
else
editorAPI.setFields(fields);
});
}
validate({ connectionID: connectionID, clipID: clipID });
editorAPI.onFieldChanges(function (fields) {
var fieldValues = editorAPI.tools.objectifyFieldsValues(fields);
validate(fieldValues);
});
});
};
//# sourceMappingURL=clip.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"clip.js","sour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AY,EAAE,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;YAEjG,aAAa,CAAC,WAAW,CAAC,YAAY,EAAE,UAAC,OAAO;gBAC/C,IAAI,OAAO,EAAE;oBACZ,aAAa,CAAC;wBACb,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;oBAC7B,CAAC,CAAC,CAAC;iBACH;;oBAAM,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACpC,CAAC,CAAC,CAAC;QACJ,CAAC;QAED,QAAQ,CAAC,EAAE,YAAY,cAAA,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;QAEnC,SAAS,CAAC,cAAc,CAAC,UAAC,MAAyB;YAClD,IAAI,WAAW,GAA2B,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAExF,QAAQ,CAAC,WAAW,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,47 @@
exports.__esModule = true;
//TODO: Implement wrap checkbox property in editor
module.exports = function (actionAPI) {
//Handle the action when executed
actionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var wrap = properties.wrap != undefined ? properties.wrap : true;
if (connectionID != 'none') {
var connection = actionAPI.getConnection('mitti', connectionID);
var mitti = connection.instance;
mitti
.previous(wrap)
.then(function () {
status("Previous clip has been selected", 'info');
})["catch"](function (error) {
status(error.message, 'error');
});
}
else
status('No connection specified', 'error');
});
//Handle the interactive editor
actionAPI.onOpenEditor(function (editorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var wrap = properties.wrap != undefined ? properties.wrap : true;
editorAPI.onFieldChanges(function (fields) {
var fieldValues = editorAPI.tools.objectifyFieldsValues(fields);
editorAPI.saveProperties({ connectionID: fieldValues.connectionID, wrap: fieldValues.wrap });
});
editorAPI.setFields([
{
id: 'connectionID',
name: 'Connection',
type: 'connection',
value: connectionID,
connectionType: 'mitti'
},
{
id: 'wrap',
name: 'Wrap',
type: 'checkbox',
value: true
}
]);
});
};
//# sourceMappingURL=next.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"next.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/mitti/actions/next.ts"],"names":[],"mappings":";AAMA,kDAAkD;AAElD,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,iCAAiC;IACjC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAsB,EAAE,MAAgE;QACzG,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;QAC3F,IAAI,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,YAAY,IAAI,MAAM,EAAE;YAC3B,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;YAChE,IAAI,KAAK,GAAG,UAAU,CAAC,QAAiB,CAAC;YAEzC,KAAK;iBACH,QAAQ,CAAC,IAAI,CAAC;iBACd,IAAI,CAAC;gBACL,MAAM,CAAC,iCAAiC,EAAE,MAAM,CAAC,CAAC;YACnD,CAAC,CAAC,CACD,OAAK,CAAA,CAAC,UAAC,KAAY;gBACnB,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAChC,CAAC,CAAC,CAAC;SACJ;;YAAM,MAAM,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,+BAA+B;IAC/B,SAAS,CAAC,YAAY,CAAC,UAAC,SAAoB,EAAE,UAAsB;QACnE,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;QAC3F,IAAI,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QAEjE,SAAS,CAAC,cAAc,CAAC,UAAC,MAAyB;YAClD,IAAI,WAAW,GAAoB,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAEjF,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;QAC9F,CAAC,CAAC,CAAC;QAEH,SAAS,CAAC,SAAS,CAAC;YACnB;gBACC,EAAE,EAAE,cAAc;gBAClB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,YAAY;gBACnB,cAAc,EAAE,OAAO;aACvB;YACD;gBACC,EAAE,EAAE,MAAM;gBACV,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,IAAI;aACX;SACD,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,38 @@
exports.__esModule = true;
module.exports = function (actionAPI) {
//Handle the action when executed
actionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
if (connectionID != 'none') {
var connection = actionAPI.getConnection('mitti', connectionID);
var mitti = connection.instance;
mitti
.play()
.then(function () {
status("Current clip playing", 'info');
})["catch"](function (error) {
status(error.message, 'error');
});
}
else
status('No connection specified', 'error');
});
//Handle the interactive editor
actionAPI.onOpenEditor(function (editorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
editorAPI.onFieldChanges(function (fields) {
var fieldValues = editorAPI.tools.objectifyFieldsValues(fields);
editorAPI.saveProperties({ connectionID: fieldValues.connectionID });
});
editorAPI.setFields([
{
id: 'connectionID',
name: 'Connection',
type: 'connection',
value: connectionID,
connectionType: 'mitti'
}
]);
});
};
//# sourceMappingURL=play.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"play.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/mitti/actions/play.ts"],"names":[],"mappings":";AAMA,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,iCAAiC;IACjC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAsB,EAAE,MAAgE;QACzG,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;QAC3F,IAAI,YAAY,IAAI,MAAM,EAAE;YAC3B,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;YAChE,IAAI,KAAK,GAAG,UAAU,CAAC,QAAiB,CAAC;YAEzC,KAAK;iBACH,IAAI,EAAE;iBACN,IAAI,CAAC;gBACL,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;YACxC,CAAC,CAAC,CACD,OAAK,CAAA,CAAC,UAAC,KAAY;gBACnB,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAChC,CAAC,CAAC,CAAC;SACJ;;YAAM,MAAM,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,+BAA+B;IAC/B,SAAS,CAAC,YAAY,CAAC,UAAC,SAAoB,EAAE,UAAsB;QACnE,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;QAE3F,SAAS,CAAC,cAAc,CAAC,UAAC,MAAyB;YAClD,IAAI,WAAW,GAAoB,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAEjF,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;QAEH,SAAS,CAAC,SAAS,CAAC;YACnB;gBACC,EAAE,EAAE,cAAc;gBAClB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,YAAY;gBACnB,cAAc,EAAE,OAAO;aACvB;SACD,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,47 @@
exports.__esModule = true;
//TODO: Implement wrap checkbox property in editor
module.exports = function (actionAPI) {
//Handle the action when executed
actionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var wrap = properties.wrap != undefined ? properties.wrap : true;
if (connectionID != 'none') {
var connection = actionAPI.getConnection('mitti', connectionID);
var mitti = connection.instance;
mitti
.previous(wrap)
.then(function () {
status("Previous clip has been selected", 'info');
})["catch"](function (error) {
status(error.message, 'error');
});
}
else
status('No connection specified', 'error');
});
//Handle the interactive editor
actionAPI.onOpenEditor(function (editorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var wrap = properties.wrap != undefined ? properties.wrap : true;
editorAPI.onFieldChanges(function (fields) {
var fieldValues = editorAPI.tools.objectifyFieldsValues(fields);
editorAPI.saveProperties({ connectionID: fieldValues.connectionID, wrap: fieldValues.wrap });
});
editorAPI.setFields([
{
id: 'connectionID',
name: 'Connection',
type: 'connection',
value: connectionID,
connectionType: 'mitti'
},
{
id: 'wrap',
name: 'Wrap',
type: 'checkbox',
value: true
}
]);
});
};
//# sourceMappingURL=previous.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"previous.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/mitti/actions/previous.ts"],"names":[],"mappings":";AAMA,kDAAkD;AAElD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,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAEjF,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;QAC9F,CAAC,CAAC,CAAC;QAEH,SAAS,CAAC,SAAS,CAAC;YACnB;gBACC,EAAE,EAAE,cAAc;gBAClB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,YAAY;gBACnB,cAAc,EAAE,OAAO;aACvB;YACD;gBACC,EAAE,EAAE,MAAM;gBACV,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,IAAI;aACX;SACD,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,38 @@
exports.__esModule = true;
module.exports = function (actionAPI) {
//Handle the action when executed
actionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
if (connectionID != 'none') {
var connection = actionAPI.getConnection('mitti', connectionID);
var mitti = connection.instance;
mitti
.stop()
.then(function () {
status("Current clip stopped", 'info');
})["catch"](function (error) {
status(error.message, 'error');
});
}
else
status('No connection specified', 'error');
});
//Handle the interactive editor
actionAPI.onOpenEditor(function (editorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
editorAPI.onFieldChanges(function (fields) {
var fieldValues = editorAPI.tools.objectifyFieldsValues(fields);
editorAPI.saveProperties({ connectionID: fieldValues.connectionID });
});
editorAPI.setFields([
{
id: 'connectionID',
name: 'Connection',
type: 'connection',
value: connectionID,
connectionType: 'mitti'
}
]);
});
};
//# sourceMappingURL=stop.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"stop.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/mitti/actions/stop.ts"],"names":[],"mappings":";AAMA,MAAM,CAAC,OA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,YAAY;gBAClB,KAAK,EAAE,YAAY;gBACnB,cAAc,EAAE,OAAO;aACvB;SACD,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,40 @@
exports.__esModule = true;
var Integration = {
name: 'Mitti',
description: 'Control Mitti through the Mitti Undecked Bridge.',
main: require('./mitti'),
actions: [
{
id: 'clip',
name: 'Set the Mitti clip'
},
{
id: 'play',
name: 'Play current clip'
},
{
id: 'stop',
name: 'Stop current clip'
},
{
id: 'next',
name: 'Go to next clip'
},
{
id: 'previous',
name: 'Go to previous clip'
}
],
connections: [
{
type: 'mitti',
name: 'Mitti Instance',
message: 'For this connection to work you need to enable Hyperdeck in the Mitti settings.',
fields: [
{ id: 'ip', name: 'IP Address', type: 'text', value: '0.0.0.0' }
]
}
]
};
module.exports = Integration;
//# sourceMappingURL=integration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/mitti/integration.ts"],"names":[],"mappings":";AAEA,IAAI,WAAW,GAAgB;IAC9B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,kDAAkD;IAC/D,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;IAExB,OAAO,EAAE;QACR;YACC,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,oBAAoB;SAC1B;QAED;YACC,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,mBAAmB;SACzB;QAED;YACC,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,mBAAmB;SACzB;QAED;YACC,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,iBAAiB;SACvB;QAED;YACC,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,qBAAqB;SAC3B;KACD;IAED,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,iFAAiF;YAC1F,MAAM,EAAE;gBACP,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;aAChE;SACD;KACD;CACD,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC"}

View File

@@ -0,0 +1,42 @@
exports.__esModule = true;
var MittiClass_1 = require("./MittiClass");
var axios = require('axios')["default"];
module.exports = function (api) {
//Register a action
api.registerAction('clip', require('./actions/clip'));
api.registerAction('play', require('./actions/play'));
api.registerAction('stop', require('./actions/stop'));
api.registerAction('next', require('./actions/next'));
api.registerAction('previous', require('./actions/previous'));
api.registerConnectionValidator('mitti', function (ValidatorAPI) {
var properties = ValidatorAPI.properties;
if (properties.ip != undefined) {
if (ValidatorAPI.instance != undefined && ValidatorAPI.instance.connected == true)
return ValidatorAPI.callback(true);
var mitti = new MittiClass_1.Mitti(properties.ip);
var canRespond = true;
var timeout = setTimeout(function () {
canRespond = false;
ValidatorAPI.callback(false, 'Timeout while trying to connect to Mitti');
}, 3000);
mitti.on('connected', function () {
if (canRespond == true) {
canRespond = false;
ValidatorAPI.setInstance(mitti);
clearTimeout(timeout);
ValidatorAPI.callback(true);
}
});
mitti.on('connecterror', function (errorMessage) {
if (canRespond == true) {
canRespond = false;
clearTimeout(timeout);
ValidatorAPI.callback(false, errorMessage);
}
});
}
else
ValidatorAPI.callback(false, 'Incorrect ip address syntax');
});
};
//# sourceMappingURL=mitti.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"mitti.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/mitti/mitti.ts"],"names":[],"mappings":";AACA,2CAAqC;AACrC,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,SAAO,CAAA,CAAC;AAEvC,MAAM,CAAC,OAAO,GAAG,UAAC,GAAmB;IACpC,mBAAmB;IACnB,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACtD,GAAG,CAAC,cAAc,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I,UAAU,IAAI,IAAI,EAAE;oBACvB,UAAU,GAAG,KAAK,CAAC;oBACnB,YAAY,CAAC,OAAO,CAAC,CAAC;oBACtB,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;iBAC3C;YACF,CAAC,CAAC,CAAC;SACH;;YAAM,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAE,6BAA6B,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,56 @@
exports.__esModule = true;
exports.MoorenTV = void 0;
var axios_1 = require("axios");
var MoorenTV = /** @class */ (function () {
function MoorenTV(settings) {
this.serverAddress = settings.serverAddress;
this.serverPort = settings.serverPort;
this.adminPass = settings.adminPass;
}
MoorenTV.prototype._getBaseURI = function () {
return "http://" + this.serverAddress + ":" + this.serverPort + "/api/v1/" + this.adminPass + "/";
};
MoorenTV.prototype.ping = function (callback) {
axios_1["default"].get(this._getBaseURI() + "ping").then(function () {
callback(true);
})["catch"](function () {
callback(false);
});
};
MoorenTV.prototype.getGames = function () {
var _this = this;
return new Promise(function (resolve, reject) {
axios_1["default"].get(_this._getBaseURI() + 'games').then(function (response) {
if (response.data.succeed == true)
resolve(response.data.response);
else
reject('Internal server error');
})["catch"](reject);
});
};
MoorenTV.prototype.startGame = function (gameID) {
var _this = this;
return new Promise(function (resolve, reject) {
axios_1["default"].get(_this._getBaseURI() + "games/start/" + gameID).then(function (response) {
if (response.data.succeed == true)
resolve();
else
reject();
})["catch"](reject);
});
};
MoorenTV.prototype.stopGame = function () {
var _this = this;
return new Promise(function (resolve, reject) {
axios_1["default"].get(_this._getBaseURI() + "games/stop").then(function (response) {
if (response.data.succeed == true)
resolve();
else
reject();
})["catch"](reject);
});
};
return MoorenTV;
}());
exports.MoorenTV = MoorenTV;
//# sourceMappingURL=MoorenTv.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"MoorenTv.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/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CAAC,KAAI,CAAC,WAAW,EAAE,GAAG,cAAc,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,UAAC,QAAQ;gBAClE,IAAI,QAAQ,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI;oBAAE,OAAO,EAAE,CAAA;;oBACvC,MAAM,EAAE,CAAA;YACjB,CAAC,CAAC,CAAC,OAAK,CAAA,CAAC,MAAM,CAAC,CAAA;QACpB,CAAC,CAAC,CAAA;IACN,CAAC;IAED,2BAAQ,GAAR;QAAA,iBAOC;QANG,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;YAC/B,kBAAK,CAAC,GAAG,CAAC,KAAI,CAAC,WAAW,EAAE,GAAG,YAAY,CAAC,CAAC,IAAI,CAAC,UAAC,QAAQ;gBACvD,IAAI,QAAQ,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI;oBAAE,OAAO,EAAE,CAAA;;oBACvC,MAAM,EAAE,CAAA;YACjB,CAAC,CAAC,CAAC,OAAK,CAAA,CAAC,MAAM,CAAC,CAAA;QACpB,CAAC,CAAC,CAAA;IACN,CAAC;IACL,eAAC;AAAD,CAAC,AA5ED,IA4EC;AA5EY,4BAAQ"}

View File

@@ -0,0 +1,85 @@
exports.__esModule = true;
module.exports = function (ActionAPI) {
ActionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var game = properties.game != undefined ? properties.game : 'none';
if (connectionID != 'none') {
if (game != 'none') {
var connection = ActionAPI.getConnection('moorentv', connectionID);
if (connection) {
var mtv = connection.instance;
mtv.startGame(game).then(function () {
})["catch"](function (error) {
status(error, 'error');
});
}
else
status("Connection doesn't exist", 'error');
}
else
status('No game specified', 'error');
}
else
status('No connection specified', 'error');
});
ActionAPI.onOpenEditor(function (EditorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var game = properties.game != undefined ? properties.game : 'none';
var connectionField = {
id: 'connectionID',
name: "Connection",
type: "connection",
connectionType: 'moorentv',
value: connectionID
};
var gameField = {
id: 'game',
name: 'Game',
type: 'select',
value: game,
values: []
};
var sendFields = function (clearGameField) {
if (clearGameField === void 0) { clearGameField = false; }
if (clearGameField)
gameField.values = [{ id: 'none', text: 'None' }];
EditorAPI.setFields([connectionField, gameField]);
};
var lastConnectionID = null;
var validate = function () {
if (lastConnectionID != connectionID) {
lastConnectionID = connectionID;
if (connectionID != 'none') {
var connection = ActionAPI.getConnection('moorentv', connectionID);
if (connection) {
var mtv = connection.instance;
mtv.getGames().then(function (games) {
var values = [{ id: 'none', text: 'None' }];
for (var gameID in games)
values.push({ id: games[gameID].id, text: games[gameID].title });
gameField.values = values;
sendFields();
})["catch"](function (error) {
sendFields(true);
});
}
else
sendFields(true);
}
else
sendFields(true);
}
};
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
connectionID = fieldObject.connectionID;
game = fieldObject.game;
connectionField.value = connectionID;
gameField.value = game;
EditorAPI.saveProperties({ connectionID: connectionID, game: game });
validate();
});
validate();
});
};
//# sourceMappingURL=startGame.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"startGame.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/moorentv/actions/startGame.ts"],"names":[],"mappings":";AAIA,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IAClC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAAM;QAChC,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAA;QAC1F,IAAI,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAA;QAElE,IAAI,YAAY,IAAI,MAAM,EAAE;YACxB,IAAI,IAAI,IAAI,MAAM,EAAE;gBAChB,IAAI,UAAU,GAAG,SAAS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SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAA;YAE/D,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC;YACxC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;YAExB,eAAe,CAAC,KAAK,GAAG,YAAY,CAAC;YACrC,SAAS,CAAC,KAAK,GAAG,IAAI,CAAA;YAGtB,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,cAAA,EAAE,IAAI,MAAA,EAAE,CAAC,CAAA;YAEhD,QAAQ,EAAE,CAAA;QACd,CAAC,CAAC,CAAA;QAEF,QAAQ,EAAE,CAAA;IACd,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}

View File

@@ -0,0 +1,36 @@
exports.__esModule = true;
module.exports = function (ActionAPI) {
ActionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
if (connectionID != 'none') {
var connection = ActionAPI.getConnection('moorentv', connectionID);
if (connection) {
var mtv = connection.instance;
mtv.stopGame().then(function () {
})["catch"](function (error) {
status(error, 'error');
});
}
else
status("Connection doesn't exist", 'error');
}
else
status('No connection specified', 'error');
});
ActionAPI.onOpenEditor(function (EditorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var connectionField = {
id: 'connectionID',
name: "Connection",
type: "connection",
connectionType: 'moorentv',
value: connectionID
};
EditorAPI.setFields([connectionField]);
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
EditorAPI.saveProperties({ connectionID: fieldObject.connectionID });
});
});
};
//# sourceMappingURL=stopGame.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"stopGame.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/moorentv/actions/stopGame.ts"],"names":[],"mappings":";AAIA,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IAClC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAAM;QAChC,IAAI,YAAY,GA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C,CAAA;IACN,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}

View File

@@ -0,0 +1,16 @@
exports.__esModule = true;
module.exports = {
name: "Mooren TV",
description: "Mooren TV Multiplay game system",
main: require('./main'),
connections: [
{
name: "MoorenTV Instance", type: "moorentv", fields: [
{ id: 'serverAddress', name: "Server Address", type: "text", value: "0.0.0.0" },
{ id: 'serverPort', name: "Server Port", type: "number", value: "9090" },
{ id: 'adminPass', name: "Server Admin Pass", type: "text", value: "" },
]
}
]
};
//# sourceMappingURL=integration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/moorentv/integration.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,GAAG;IACb,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,iCAAiC;IAC9C,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC;IACvB,WAAW,EAAE;QACT;YACI,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE;gBACjD,EAAE,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;gBAC/E,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;gBACxE,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;aAC1E;SACJ;KACJ;CACW,CAAA"}

View File

@@ -0,0 +1,16 @@
exports.__esModule = true;
var MoorenTv_1 = require("./MoorenTv");
module.exports = function (Api) {
Api.registerAction('startGame', 'Start game', require('./actions/startGame'));
Api.registerAction('stopGame', 'Stop game', require('./actions/stopGame'));
Api.registerConnectionValidator('moorentv', function (validatorApi) {
var _a = validatorApi.properties, serverAddress = _a.serverAddress, serverPort = _a.serverPort, adminPass = _a.adminPass;
var mtv = new MoorenTv_1.MoorenTV({ serverAddress: serverAddress, serverPort: serverPort, adminPass: adminPass });
mtv.ping(function (succeed) {
if (succeed)
validatorApi.setInstance(mtv);
validatorApi.callback(succeed, succeed == false ? 'Unable to connect to the MoorenTV instance' : null);
});
});
};
//# sourceMappingURL=main.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/moorentv/main.ts"],"names":[],"mappings":";AACA,uCAAsC;AAEtC,MAAM,CAAC,OAAO,GAAG,UAAC,GAAmB;IACjC,GAAG,CAAC,cAAc,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAA;IAC7E,GAAG,CAAC,cAAc,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAA;IAE1E,GAAG,CAAC,2BAA2B,CAAC,UAAU,EAAE,UAAC,YAAoC;QACzE,IAAA,KAA2C,YAAY,CAAC,UAAU,EAAhE,aAAa,mBAAA,EAAE,UAAU,gBAAA,EAAE,SAAS,eAA4B,CAAA;QAEtE,IAAI,GAAG,GAAG,IAAI,mBAAQ,CAAC,EAAE,aAAa,eAAA,EAAE,UAAU,YAAA,EAAE,SAAS,WAAA,EAAE,CAAC,CAAA;QAEhE,GAAG,CAAC,IAAI,CAAC,UAAC,OAAO;YACb,IAAI,OAAO;gBAAE,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;YAC1C,YAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,4CAA4C,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;QAC1G,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}

View File

@@ -0,0 +1,116 @@
exports.__esModule = true;
module.exports = function (actionAPI) {
//Handle the action when executed
actionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var sourceID = properties.sourceID != undefined ? properties.sourceID : 'none';
if (connectionID != 'none') {
if (sourceID != 'none') {
var connection = actionAPI.getConnection('studiomonitor', connectionID);
if (connection.instance != undefined) {
var monitor = connection.instance;
monitor
.setSource(sourceID)
.then(function () {
status('Source was set');
})["catch"](function (error) {
status("Error whilst setting source: " + error.message, 'error');
});
}
}
else
status('No source specified', 'error');
}
else
status('No connection specified', 'error');
});
//Handle the interactive editor
actionAPI.onOpenEditor(function (editorAPI, properties) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
var sourceID = properties.sourceID != undefined ? properties.sourceID : 'none';
var monitor = null;
var currentIP = null;
var currentPort = null;
var fields = [
{
id: 'connectionID',
name: 'Connection',
type: 'connection',
value: connectionID,
connectionType: 'studiomonitor'
},
{
id: 'sourceID',
name: 'Source',
type: 'select',
value: sourceID,
values: []
}
];
function updateAddress(connectionID, callback) {
if (connectionID != 'none') {
var connection = actionAPI.getConnection('studiomonitor', connectionID);
var ip = connection.properties.ip;
var port = connection.properties.port;
if (currentIP != ip || currentPort != port) {
currentIP = ip;
currentPort = port;
monitor = connection.instance;
callback(true);
}
else {
callback(false);
}
}
else {
if (currentIP != null || currentPort != null) {
currentIP = null;
currentPort = null;
monitor = null;
callback(true);
}
else {
callback(false);
}
}
}
function updateSources(callback) {
if (monitor != null)
monitor
.getSources()
.then(function (sources) {
fields[1].values = sources.map(function (source) {
return { id: source, text: source };
});
callback();
})["catch"](function (error) {
fields[1].values = [];
callback();
});
else {
fields[1].values = [];
callback();
}
}
function validate(fieldValues) {
fields[0].value = fieldValues.connectionID;
fields[1].value = fieldValues.sourceID;
editorAPI.saveProperties({ connectionID: fieldValues.connectionID, sourceID: fieldValues.sourceID });
updateAddress(fieldValues.connectionID, function (changed) {
if (changed) {
updateSources(function () {
editorAPI.setFields(fields);
});
}
else
editorAPI.setFields(fields);
});
}
validate({ connectionID: connectionID, sourceID: sourceID });
editorAPI.onFieldChanges(function (fields) {
var fieldValues = editorAPI.tools.objectifyFieldsValues(fields);
validate(fieldValues);
});
});
};
//# sourceMappingURL=source.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"source.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/ndiTools/actions/source.ts"],"names":[],"mappings":";AAIA,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,iCAAiC;IACjC,SAAS,CAAC,MAAM,CACf,UAAC,UAA6B,EAAE,MAAgE;QAC/F,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;QAC3F,IAAI,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;QAC/E,IAAI,YAAY,IAAI,MAAM,EAAE;YAC3B,IAAI,QAAQ,IAAI,MAAM,EAAE;gBACvB,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;gBAExE,IAAI,UAAU,CAAC,QAAQ,IAAI,SAAS,EAAE;oBACrC,IAAI,OAAO,GAAkB,UAAU,CAAC,QAAQ,CAAC;oBACjD,OAAO;yBACL,SAAS,CAAC,QAAQ,CAAC;yBACnB,IAAI,CAAC;wBACL,MAAM,CAAC,gBAAgB,CAAC,CAAC;oBAC1B,CAAC,CAAC,CACD,OAAK,CAAA,CAAC,UAAC,KAAK;wBACZ,MAAM,CAAC,kCAAgC,KAAK,CAAC,OAAS,EAAE,OAAO,CAAC,CAAC;oBAClE,CAAC,CAAC,CAAC;iBACJ;aACD;;gBAAM,MAAM,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;SAC9C;;YAAM,MAAM,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC,CACD,CAAC;IAE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EAAE,CAAC,CAAC;YAErG,aAAa,CAAC,WAAW,CAAC,YAAY,EAAE,UAAC,OAAO;gBAC/C,IAAI,OAAO,EAAE;oBACZ,aAAa,CAAC;wBACb,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;oBAC7B,CAAC,CAAC,CAAC;iBACH;;oBAAM,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACpC,CAAC,CAAC,CAAC;QACJ,CAAC;QAED,QAAQ,CAAC,EAAE,YAAY,cAAA,EAAE,QAAQ,UAAA,EAAE,CAAC,CAAC;QAErC,SAAS,CAAC,cAAc,CAAC,UAAC,MAAyB;YAClD,IAAI,WAAW,GAA2B,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAExF,QAAQ,CAAC,WAAW,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,24 @@
exports.__esModule = true;
var Integration = {
name: 'NDI Tools',
description: 'Control various NDI Tools through the NDI Tools Undecked Bridge.',
main: require('./ndiTools'),
actions: [
{
id: 'source',
name: 'Set the StudioMonitor source'
}
],
connections: [
{
type: 'studiomonitor',
name: 'Studio Monitor',
fields: [
{ id: 'ip', name: 'IP Address', type: 'text', value: '0.0.0.0' },
{ id: 'port', name: 'Port', type: 'number', value: '80' }
]
}
]
};
module.exports = Integration;
//# sourceMappingURL=integration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/ndiTools/integration.ts"],"names":[],"mappings":";AAEA,IAAI,WAAW,GAAgB;IAC9B,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC;IAE3B,OAAO,EAAE;QACR;YACC,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,8BAA8B;SACpC;KACD;IAED,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE;gBACP,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;gBAChE,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;aACzD;SACD;KACD;CACD,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC"}

View File

@@ -0,0 +1,14 @@
exports.__esModule = true;
var studiomonitor_api_1 = require("studiomonitor-api");
var axios = require('axios')["default"];
module.exports = function (api) {
//Register a action
api.registerAction('source', require('./actions/source'));
api.registerConnectionValidator('studiomonitor', function (ValidatorAPI) {
var monitor = new studiomonitor_api_1.StudioMonitor(ValidatorAPI.properties.ip, ValidatorAPI.properties.port, function (err) {
ValidatorAPI.callback(err == undefined, err == undefined ? null : 'Unable to connect to the StudioMonitor.');
ValidatorAPI.setInstance(monitor);
});
});
};
//# sourceMappingURL=ndiTools.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ndiTools.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/ndiTools/ndiTools.ts"],"names":[],"mappings":";AACA,uDAAkD;AAClD,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,SAAO,CAAA,CAAC;AAEvC,MAAM,CAAC,OAAO,GAAG,UAAC,GAAmB;IACpC,mBAAmB;IACnB,GAAG,CAAC,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAE1D,GAAG,CAAC,2BAA2B,CAAC,eAAe,EAAE,UAAC,YAAoC;QACrF,IAAI,OAAO,GAAG,IAAI,iCAAa,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,EAAE,YAAY,CAAC,UAAU,CAAC,IAAI,EAAE,UAAC,GAAG;YAC7F,YAAY,CAAC,QAAQ,CACpB,GAAG,IAAI,SAAS,EAChB,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,yCAAyC,CACnE,CAAC;YAEF,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,27 @@
exports.__esModule = true;
module.exports = function (ActionAPI) {
ActionAPI.onExecute(function (properties, status) {
});
ActionAPI.onOpenEditor(function (EditorAPI, properties) {
var connectionField = {
id: "connectionID",
name: "Connection",
type: "connection",
connectionType: "pjlink",
value: properties.connectionID != undefined ? properties.connectionID : 'none'
};
var stateField = {
id: 'state',
name: "State",
type: 'select',
values: [{ id: "on", text: "Power On" }, { id: "off", text: "Power Off" }],
value: properties.state != undefined ? properties.state : 'on'
};
EditorAPI.onFieldChanges(function (fields) {
var fieldObject = EditorAPI.tools.objectifyFieldsValues(fields);
EditorAPI.saveProperties({ connectionID: fieldObject.connectionID, state: fieldObject.state });
});
EditorAPI.setFields([connectionField, stateField]);
});
};
//# sourceMappingURL=setPower.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setPower.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/pjlink/actions/setPower.ts"],"names":[],"mappings":";AAGA,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IAClC,SAAS,CAAC,SAAS,CAAC,UAAC,UAAU,EAAE,MAAM;IAEvC,CAAC,CAAC,CAAA;IAGF,SAAS,CAAC,YAAY,CAAC,UAAC,SAAS,EAAE,UAAU;QACzC,IAAI,eAAe,GAAoB;YACnC,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,YAAY;YAClB,cAAc,EAAE,QAAQ;YACxB,KAAK,EAAE,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM;SACjF,CAAA;QAED,IAAI,UAAU,GAAoB;YAC9B,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;YAC1E,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;SACjE,CAAA;QAED,SAAS,CAAC,cAAc,CAAC,UAAC,MAAM;YAC5B,IAAI,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAA;YAE/D,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,WAAW,CAAC,YAAY,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAA;QAClG,CAAC,CAAC,CAAA;QAEF,SAAS,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,CAAA;IACtD,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}

View File

@@ -0,0 +1,34 @@
exports.__esModule = true;
module.exports = {
name: "PJLink",
description: "PJLink is a unified standard for operating and controlling data projectors.",
main: require("./main"),
connections: [
{
type: "pjlink",
name: "Projector",
message: 'Make you PJLink is enabled on your projector. Most of the time these settings are located under Network.',
fields: [
{
id: 'ip',
name: "IP Adddress",
type: "text",
value: "0.0.0.0"
},
{
id: 'port',
name: "PJLink Port",
type: "number",
value: "4352"
},
{
id: 'password',
name: "PJLink Password",
type: "password",
value: ""
}
]
}
]
};
//# sourceMappingURL=integration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/pjlink/integration.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,6EAA6E;IAC1F,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC;IACvB,WAAW,EAAE;QACT;YACI,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,0GAA0G;YACnH,MAAM,EAAE;gBACJ;oBACI,EAAE,EAAE,IAAI;oBACR,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,SAAS;iBACnB;gBACD;oBACI,EAAE,EAAE,MAAM;oBACV,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,MAAM;iBAChB;gBACD;oBACI,EAAE,EAAE,UAAU;oBACd,IAAI,EAAE,iBAAiB;oBACvB,IAAI,EAAE,UAAU;oBAChB,KAAK,EAAE,EAAE;iBACZ;aACJ;SACJ;KACJ;CACW,CAAA"}

View File

@@ -0,0 +1,16 @@
exports.__esModule = true;
var pjlink = require("pjlink");
module.exports = function (Api) {
Api.registerConnectionValidator('pjlink', function (validatorAPI) {
var ip = validatorAPI.properties.ip;
var port = validatorAPI.properties.port;
var password = validatorAPI.properties.password;
var beamer = new pjlink(ip, port, password);
beamer.getClass(function (err, classNumber) {
if (!err)
validatorAPI.setInstance(beamer);
validatorAPI.callback(err == undefined, err == undefined ? null : 'Unable to connect to projector: ' + err);
});
});
};
//# sourceMappingURL=main.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/pjlink/main.ts"],"names":[],"mappings":";AAAA,+BAAgC;AAIhC,MAAM,CAAC,OAAO,GAAG,UAAC,GAAmB;IAGjC,GAAG,CAAC,2BAA2B,CAAC,QAAQ,EAAE,UAAC,YAAY;QACnD,IAAI,EAAE,GAAG,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;QACpC,IAAI,IAAI,GAAG,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC;QACxC,IAAI,QAAQ,GAAG,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC;QAEhD,IAAI,MAAM,GAAG,IAAI,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC5C,MAAM,CAAC,QAAQ,CAAC,UAAC,GAAG,EAAE,WAAW;YAC7B,IAAI,CAAC,GAAG;gBACJ,YAAY,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;YAGpC,YAAY,CAAC,QAAQ,CAAC,GAAG,IAAI,SAAS,EAAE,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kCAAkC,GAAG,GAAG,CAAC,CAAA;QAC/G,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}

View File

@@ -0,0 +1,41 @@
exports.__esModule = true;
var axios_1 = require("axios");
module.exports = function (actionAPI) {
actionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined && properties.connectionID.length > 0
? properties.connectionID
: 'none';
if (connectionID != 'none') {
var connection = actionAPI.getConnection('powerpoint-bridge', connectionID);
axios_1["default"]
.get("http://" + connection.properties.ip + ":" + connection.properties.port + "/v1/next")
.then(function () {
status('Action completed');
})["catch"](function () {
status('Unable to reach Powerpoint-Bridge');
});
}
else
status('No connection specified', 'error');
});
actionAPI.onOpenEditor(function (editorAPI, properties) {
var connectionID = properties.connectionID != undefined && properties.connectionID.length > 0
? properties.connectionID
: 'none';
var connectionField = {
id: 'connectionID',
name: 'connection',
type: 'connection',
connectionType: 'powerpoint-bridge',
value: connectionID
};
editorAPI.onFieldChanges(function (fields) {
var values = editorAPI.tools.objectifyFieldsValues(fields);
editorAPI.saveProperties({ connectionID: values.connectionID });
});
editorAPI.setFields([
connectionField
]);
});
};
//# sourceMappingURL=next.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"next.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/powerpoint/actions/next.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AAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAC3D,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,SAAS,CAAC;YACnB,eAAe;SACf,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,41 @@
exports.__esModule = true;
var axios_1 = require("axios");
module.exports = function (actionAPI) {
actionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined && properties.connectionID.length > 0
? properties.connectionID
: 'none';
if (connectionID != 'none') {
var connection = actionAPI.getConnection('powerpoint-bridge', connectionID);
axios_1["default"]
.get("http://" + connection.properties.ip + ":" + connection.properties.port + "/v1/overview")
.then(function () {
status('Action completed');
})["catch"](function () {
status('Unable to reach Powerpoint-Bridge');
});
}
else
status('No connection specified', 'error');
});
actionAPI.onOpenEditor(function (editorAPI, properties) {
var connectionID = properties.connectionID != undefined && properties.connectionID.length > 0
? properties.connectionID
: 'none';
var connectionField = {
id: 'connectionID',
name: 'connection',
type: 'connection',
connectionType: 'powerpoint-bridge',
value: connectionID
};
editorAPI.onFieldChanges(function (fields) {
var values = editorAPI.tools.objectifyFieldsValues(fields);
editorAPI.saveProperties({ connectionID: values.connectionID });
});
editorAPI.setFields([
connectionField
]);
});
};
//# sourceMappingURL=overview.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"overview.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/powerpoint/actions/overview.ts"],"names":[],"mappings":";AAAA,+BAA0B;AAI1B,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAsB,EAAE,MAAM;QAC/C,IAAI,YAAY,GACf,UAAU,CAAC,YAAY,IAAI,SAAS,IAAI,UAAU,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;YACzE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,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,41 @@
exports.__esModule = true;
var axios_1 = require("axios");
module.exports = function (actionAPI) {
actionAPI.handle(function (properties, status) {
var connectionID = properties.connectionID != undefined && properties.connectionID.length > 0
? properties.connectionID
: 'none';
if (connectionID != 'none') {
var connection = actionAPI.getConnection('powerpoint-bridge', connectionID);
axios_1["default"]
.get("http://" + connection.properties.ip + ":" + connection.properties.port + "/v1/previous")
.then(function () {
status('Action completed');
})["catch"](function () {
status('Unable to reach Powerpoint-Bridge');
});
}
else
status('No connection specified', 'error');
});
actionAPI.onOpenEditor(function (editorAPI, properties) {
var connectionID = properties.connectionID != undefined && properties.connectionID.length > 0
? properties.connectionID
: 'none';
var connectionField = {
id: 'connectionID',
name: 'connection',
type: 'connection',
connectionType: 'powerpoint-bridge',
value: connectionID
};
editorAPI.onFieldChanges(function (fields) {
var values = editorAPI.tools.objectifyFieldsValues(fields);
editorAPI.saveProperties({ connectionID: values.connectionID });
});
editorAPI.setFields([
connectionField
]);
});
};
//# sourceMappingURL=previous.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"previous.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/powerpoint/actions/previous.ts"],"names":[],"mappings":";AAAA,+BAA0B;AAI1B,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAsB,EAAE,MAAM;QAC/C,IAAI,YAAY,GACf,UAAU,CAAC,YAAY,IAAI,SAAS,IAAI,UAAU,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;YACzE,CAAC,CAAC,UAAU,CAAC,YAAY;YACzB,CAAC,CAAC,MAAM,CAAC;QAEX,IAAI,YAAY,IAAI,MAAM,EAAE;YAC3B,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;YAE5E,kBAAK;iBACH,GAAG,CAAC,YAAU,UAAU,CAAC,UAAU,CAAC,EAAE,SAAI,UAAU,CAAC,UAAU,CAAC,IAAI,iBAAc,CAAC;iBACnF,IAAI,CAAC;gBACL,MAAM,CAAC,kBAAkB,CAAC,CAAC;YAC5B,CAAC,CAAC,CACD,OAAK,CAAA,CAAC;gBACN,MAAM,CAAC,mCAAmC,CAAC,CAAC;YAC7C,CAAC,CAAC,CAAC;SACJ;;YAAM,MAAM,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,UAAC,SAAoB,EAAE,UAAsB;QACnE,IAAI,YAAY,GACf,UAAU,CAAC,YAAY,IAAI,SAAS,IAAI,UAAU,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;YACzE,CAAC,CAAC,UAAU,CAAC,YAAY;YACzB,CAAC,CAAC,MAAM,CAAC;QACX,IAAI,eAAe,GAAoB;YACtC,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,YAAY;YAClB,cAAc,EAAE,mBAAmB;YACnC,KAAK,EAAE,YAAY;SACnB,CAAC;QACF,SAAS,CAAC,cAAc,CAAC,UAAC,MAAM;YAC/B,IAAI,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAC3D,SAAS,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,SAAS,CAAC;YACnB,eAAe;SACf,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,22 @@
exports.__esModule = true;
module.exports = {
name: 'Powerpoint',
description: 'Control basic Powerpoint functionality on the Undecked computer or via our Powerpoint-Bridge application.',
main: require('./powerpoint'),
connections: [
{
name: 'Powerpoint-Bridge',
type: 'powerpoint-bridge',
message: "This connection requires the 'Undecked Powerpoint Bridge' tool to be running on the same machine as Powerpoint. This tool allows Undecked to control various Powerpoint features over the network.",
link: {
address: 'http://www.morphix.productions',
title: 'Get the Powerpoint Bridge'
},
fields: [
{ id: 'ip', name: 'IP Address', type: 'text' },
{ id: 'port', name: 'Port', type: 'number', value: 9292 }
]
}
]
};
//# sourceMappingURL=integration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/powerpoint/integration.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,GAAG;IAChB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,2GAA2G;IACxH,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC;IAC7B,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,mBAAmB;YACzB,OAAO,EACN,oMAAoM;YACrM,IAAI,EAAE;gBACL,OAAO,EAAE,gCAAgC;gBACzC,KAAK,EAAE,2BAA2B;aAClC;YACD,MAAM,EAAE;gBACP,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE;gBAC9C,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;aACzD;SACD;KACD;CACc,CAAC"}

View File

@@ -0,0 +1,21 @@
exports.__esModule = true;
var axios_1 = require("axios");
module.exports = function (api) {
api.registerAction('overview', 'Show slide overview', require('./actions/overview'));
api.registerAction('previous', 'Previous slide', require('./actions/previous'));
api.registerAction('next', 'Next slide', require('./actions/next'));
api.registerConnectionValidator('powerpoint-bridge', function (validatorAPI) {
if (validatorAPI.properties.ip != undefined && validatorAPI.properties.port != undefined) {
axios_1["default"]
.get("http://" + validatorAPI.properties.ip + ":" + validatorAPI.properties.port + "/v1/ping")
.then(function () {
validatorAPI.callback(true);
})["catch"](function () {
validatorAPI.callback(false, 'Unable to reach Powerpoint-Bridge');
});
}
else
validatorAPI.callback(false, 'No ip or port specified');
});
};
//# sourceMappingURL=powerpoint.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"powerpoint.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/powerpoint/powerpoint.ts"],"names":[],"mappings":";AAAA,+BAA0B;AAG1B,MAAM,CAAC,OAAO,GAAG,UAAC,GAAmB;IACpC,GAAG,CAAC,cAAc,CAAC,UAAU,EAAE,qBAAqB,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACrF,GAAG,CAAC,cAAc,CAAC,UAAU,EAAE,gBAAgB,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAChF,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEpE,GAAG,CAAC,2BAA2B,CAAC,mBAAmB,EAAE,UAAC,YAAY;QACjE,IAAI,YAAY,CAAC,UAAU,CAAC,EAAE,IAAI,SAAS,IAAI,YAAY,CAAC,UAAU,CAAC,IAAI,IAAI,SAAS,EAAE;YACzF,kBAAK;iBACH,GAAG,CAAC,YAAU,YAAY,CAAC,UAAU,CAAC,EAAE,SAAI,YAAY,CAAC,UAAU,CAAC,IAAI,aAAU,CAAC;iBACnF,IAAI,CAAC;gBACL,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC,CAAC,CACD,OAAK,CAAA,CAAC;gBACN,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAE,mCAAmC,CAAC,CAAC;YACnE,CAAC,CAAC,CAAC;SACJ;;YAAM,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAE,yBAAyB,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,34 @@
exports.__esModule = true;
exports.Protor = void 0;
var axios_1 = require("axios");
var Protor = /** @class */ (function () {
function Protor(ip, port) {
this.ip = ip;
this.port = port;
}
Protor.prototype._getBaseURI = function () {
return "http://" + this.ip + ":" + this.port + "/";
};
Protor.prototype.isOnline = function (callback) {
axios_1["default"].get(this._getBaseURI() + 'online').then(function () {
callback(true);
})["catch"](function () {
callback(false);
});
};
Protor.prototype.fadeIn = function (duration) {
if (duration === void 0) { duration = 0; }
axios_1["default"].get(this._getBaseURI() + 'api/animation/fadein/' + duration).then(function () {
})["catch"](function () {
});
};
Protor.prototype.fadeOut = function (duration) {
if (duration === void 0) { duration = 0; }
axios_1["default"].get(this._getBaseURI() + 'api/animation/fadeout/' + duration).then(function () {
})["catch"](function () {
});
};
return Protor;
}());
exports.Protor = Protor;
//# sourceMappingURL=ProtorClass.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ProtorClass.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/protor/ProtorClass.ts"],"names":[],"mappings":";;AAAA,+BAA0B;AAE1B;IAII,gBAAY,EAAU,EAAE,IAAY;QAChC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,4BAAW,GAAX;QACI,OAAO,YAAU,IAAI,CAAC,EAAE,SAAI,IAAI,CAAC,IAAI,MAAG,CAAA;IAC5C,CAAC;IAED,yBAAQ,GAAR,UAAS,QAAmC;QACxC,kBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC;YAC1C,QAAQ,CAAC,IAAI,CAAC,CAAA;QAClB,CAAC,CAAC,CAAC,OAAK,CAAA,CAAC;YACL,QAAQ,CAAC,KAAK,CAAC,CAAA;QACnB,CAAC,CAAC,CAAA;IACN,CAAC;IAED,uBAAM,GAAN,UAAO,QAAoB;QAApB,yBAAA,EAAA,YAAoB;QACvB,kBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,uBAAuB,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC;QAExE,CAAC,CAAC,CAAC,OAAK,CAAA,CAAC;QAET,CAAC,CAAC,CAAA;IACN,CAAC;IAED,wBAAO,GAAP,UAAQ,QAAoB;QAApB,yBAAA,EAAA,YAAoB;QACxB,kBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,wBAAwB,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC;QAEzE,CAAC,CAAC,CAAC,OAAK,CAAA,CAAC;QAET,CAAC,CAAC,CAAA;IACN,CAAC;IACL,aAAC;AAAD,CAAC,AApCD,IAoCC;AApCY,wBAAM"}

Some files were not shown because too many files have changed in this diff Show More