Initial commit
This commit is contained in:
18
Backend/dist/Integrations/buildin/protor/protor.js
vendored
Normal file
18
Backend/dist/Integrations/buildin/protor/protor.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
exports.__esModule = true;
|
||||
var ProtorClass_1 = require("./ProtorClass");
|
||||
module.exports = function (api) {
|
||||
api.registerAction('fadeIn', 'Fade in', require('./actions/fadeIn'));
|
||||
api.registerAction('fadeOut', 'Fade out', require('./actions/fadeOut'));
|
||||
api.registerConnectionValidator('protor', function (validatorAPI) {
|
||||
if (validatorAPI.properties.ip != undefined && validatorAPI.properties.port != undefined) {
|
||||
var protor = new ProtorClass_1.Protor(validatorAPI.properties.ip, validatorAPI.properties.port);
|
||||
protor.isOnline(function (online) {
|
||||
validatorAPI.callback(online, online ? null : 'Unable to reach Protor instance');
|
||||
validatorAPI.setInstance(protor);
|
||||
});
|
||||
}
|
||||
else
|
||||
validatorAPI.callback(false, 'No ip or port specified');
|
||||
});
|
||||
};
|
||||
//# sourceMappingURL=protor.js.map
|
||||
Reference in New Issue
Block a user