This commit is contained in:
2023-08-29 20:06:52 +02:00
parent 7c2eec4446
commit 25702c073a
225 changed files with 1071 additions and 808 deletions

View File

@@ -1,9 +1,13 @@
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;
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.simpleCommandEditor = exports.simpleCommandHandle = void 0;
function simpleCommandHandle(actionAPI, command, properties, status) {
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
@@ -19,7 +23,7 @@ function simpleCommandHandle(actionAPI, command, properties, status) {
status('Command complete', 'info');
});
command.on('error', function (error) {
status("Command error: " + error.message, 'info');
status("Command error: ".concat(error.message), 'info');
});
camera.sendCommand(command);
}
@@ -47,7 +51,7 @@ function simpleCommandEditor(editorAPI, properties, additionalFields) {
});
editorAPI.setFields(__spreadArray([
connectionField
], additionalFields));
], additionalFields, true));
}
exports.simpleCommandEditor = simpleCommandEditor;
//# sourceMappingURL=simpleCommandHandler.js.map