pywebexec 2.1.15__py3-none-any.whl → 2.1.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pywebexec/pywebexec.py CHANGED
@@ -871,7 +871,7 @@ def run_dynamic_command(cmd):
871
871
  params += f"{prefix} "
872
872
  continue
873
873
  if isinstance(value, dict) or convert_values.get(param, None) == "json":
874
- value = shlex.quote(json.dumps(value))
874
+ value = shlex.quote(json.dumps(value, indent=2, sort_keys=False))
875
875
  elif convert_values.get(param, None) == "quote":
876
876
  value = shlex.quote(str(value))
877
877
  else:
@@ -209,6 +209,7 @@
209
209
  }
210
210
  ._jsonform-array-addmore, ._jsonform-array-deletecurrent {
211
211
  box-shadow: unset;
212
+ outline: 0;
212
213
  }
213
214
  }
214
215
 
@@ -267,6 +267,8 @@ paramsInput.addEventListener('focus', () => {
267
267
  createSchemaForm($('#schemaForm'), gExecutables[currentCmd].schema, async function (errors, values) {
268
268
  if (errors) {
269
269
  console.log(errors);
270
+ alert(errors[0].message);
271
+ return false;
270
272
  } else {
271
273
  const commandName = commandInput.value;
272
274
  fitAddon.fit();
@@ -262,7 +262,7 @@ async function viewOutput(command_id) {
262
262
  const commandInfo = document.getElementById('commandInfo');
263
263
  const command = `${data.command.replace(/^\.\//, '')} ${data.params.join(' ')}`;
264
264
  setCommandStatus(data.status)
265
- commandInfo.innerText = command;
265
+ commandInfo.innerHTML = command;
266
266
  commandInfo.setAttribute('title', command);
267
267
  if (data.command == 'term')
268
268
  terminal.options.cursorInactiveStyle = 'outline';