Initial commit
This commit is contained in:
27
Backend/dist/Integrations/buildin/pjlink/actions/setPower.js
vendored
Normal file
27
Backend/dist/Integrations/buildin/pjlink/actions/setPower.js
vendored
Normal 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
|
||||
1
Backend/dist/Integrations/buildin/pjlink/actions/setPower.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/pjlink/actions/setPower.js.map
vendored
Normal 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"}
|
||||
34
Backend/dist/Integrations/buildin/pjlink/integration.js
vendored
Normal file
34
Backend/dist/Integrations/buildin/pjlink/integration.js
vendored
Normal 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
|
||||
1
Backend/dist/Integrations/buildin/pjlink/integration.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/pjlink/integration.js.map
vendored
Normal 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"}
|
||||
16
Backend/dist/Integrations/buildin/pjlink/main.js
vendored
Normal file
16
Backend/dist/Integrations/buildin/pjlink/main.js
vendored
Normal 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
|
||||
1
Backend/dist/Integrations/buildin/pjlink/main.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/pjlink/main.js.map
vendored
Normal 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"}
|
||||
Reference in New Issue
Block a user