pywebexec 2.3.9__tar.gz → 2.3.10__tar.gz

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.
Files changed (85) hide show
  1. {pywebexec-2.3.9/pywebexec.egg-info → pywebexec-2.3.10}/PKG-INFO +1 -1
  2. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/css/form.css +8 -4
  3. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/schemaform.js +30 -19
  4. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/version.py +2 -2
  5. {pywebexec-2.3.9 → pywebexec-2.3.10/pywebexec.egg-info}/PKG-INFO +1 -1
  6. {pywebexec-2.3.9 → pywebexec-2.3.10}/.github/workflows/python-publish.yml +0 -0
  7. {pywebexec-2.3.9 → pywebexec-2.3.10}/.gitignore +0 -0
  8. {pywebexec-2.3.9 → pywebexec-2.3.10}/LICENSE +0 -0
  9. {pywebexec-2.3.9 → pywebexec-2.3.10}/README.md +0 -0
  10. {pywebexec-2.3.9 → pywebexec-2.3.10}/pyproject.toml +0 -0
  11. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/__init__.py +0 -0
  12. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/cmdscript.py +0 -0
  13. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/cmdscript.py.ok +0 -0
  14. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/host_ip.py +0 -0
  15. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/pywebexec.py +0 -0
  16. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/css/markdown.css +0 -0
  17. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/css/style.css +0 -0
  18. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/css/swagger-ui.css +0 -0
  19. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/css/swagger-ui.css.map +0 -0
  20. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/css/xterm.css +0 -0
  21. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/fonts/CommitMonoNerdFontMono-Regular.ttf +0 -0
  22. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/fonts/LICENSE +0 -0
  23. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/fonts/glyphicons-halflings-regular.eot +0 -0
  24. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/fonts/glyphicons-halflings-regular.svg +0 -0
  25. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/fonts/glyphicons-halflings-regular.ttf +0 -0
  26. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/fonts/glyphicons-halflings-regular.woff +0 -0
  27. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/fonts/glyphicons-halflings-regular.woff2 +0 -0
  28. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/aborted.svg +0 -0
  29. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/copy.svg +0 -0
  30. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/copy_ok.svg +0 -0
  31. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/down-arrow.svg +0 -0
  32. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/failed.svg +0 -0
  33. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/favicon.svg +0 -0
  34. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/fit-tty.svg +0 -0
  35. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/fit-win.svg +0 -0
  36. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/font-decrease.svg +0 -0
  37. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/font-increase.svg +0 -0
  38. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/norun.svg +0 -0
  39. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/pause.svg +0 -0
  40. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/popup.svg +0 -0
  41. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/resume.svg +0 -0
  42. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/running.svg +0 -0
  43. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/success.svg +0 -0
  44. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/images/swagger-ui.svg +0 -0
  45. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/executables.js +0 -0
  46. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/js-yaml/LICENSE +0 -0
  47. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/js-yaml/js-yaml.min.js +0 -0
  48. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/marked/LICENSE.md +0 -0
  49. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/marked/marked.min.js +0 -0
  50. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/popup.js +0 -0
  51. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/script.js +0 -0
  52. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/swagger-form.js +0 -0
  53. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/swagger-ui/LICENSE +0 -0
  54. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/swagger-ui/swagger-ui-bundle.js +0 -0
  55. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/swagger-ui/swagger-ui-standalone-preset.js +0 -0
  56. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/LICENSE +0 -0
  57. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/addon-canvas.js +0 -0
  58. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/addon-canvas.js.map +0 -0
  59. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/addon-fit.js +0 -0
  60. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/addon-fit.js.map +0 -0
  61. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/addon-unicode-graphemes.js +0 -0
  62. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/addon-unicode-graphemes.js.map +0 -0
  63. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/addon-unicode11.js +0 -0
  64. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/addon-unicode11.js.map +0 -0
  65. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/xterm.js +0 -0
  66. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/js/xterm/xterm.js.map +0 -0
  67. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/jsonform/LICENSE +0 -0
  68. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/jsonform/deps/README.md +0 -0
  69. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/jsonform/deps/img/glyphicons-halflings.png +0 -0
  70. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/jsonform/deps/jquery.min.js +0 -0
  71. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/jsonform/deps/jsv.js +0 -0
  72. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/jsonform/deps/underscore.js +0 -0
  73. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/static/jsonform/lib/jsonform.js +0 -0
  74. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/swagger.yaml +0 -0
  75. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/templates/__init__.py +0 -0
  76. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/templates/index.html +0 -0
  77. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/templates/popup.html +0 -0
  78. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec/templates/swagger_ui.html +0 -0
  79. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec.egg-info/SOURCES.txt +0 -0
  80. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec.egg-info/dependency_links.txt +0 -0
  81. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec.egg-info/entry_points.txt +0 -0
  82. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec.egg-info/requires.txt +0 -0
  83. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexec.egg-info/top_level.txt +0 -0
  84. {pywebexec-2.3.9 → pywebexec-2.3.10}/pywebexecdev +0 -0
  85. {pywebexec-2.3.9 → pywebexec-2.3.10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pywebexec
3
- Version: 2.3.9
3
+ Version: 2.3.10
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -44,7 +44,7 @@
44
44
  }
45
45
  .btn-primary {
46
46
  position: relative;
47
- margin-bottom: 10px;
47
+ margin-bottom: 20px;
48
48
  height: 24px;
49
49
  top: 20px;
50
50
  color: #fff;
@@ -224,13 +224,17 @@
224
224
  }
225
225
  ul ~ ._jsonform-array-buttons {
226
226
  display: block;
227
+ }
228
+ li > fieldset {
227
229
  width: 100%;
230
+ margin-bottom: 3px;
228
231
  }
229
232
  ._jsonform-array-buttons {
230
- /* display: block; */
231
- /* width: 100%; */
232
233
  text-align: right;
233
234
  }
235
+ ul._jsonform-array-ul > li > div.form-group {
236
+ width: 100%;
237
+ }
234
238
  i[title="Delete current"] {
235
239
  top: 5px;
236
240
  }
@@ -253,7 +257,7 @@
253
257
  }
254
258
  .alert {
255
259
  padding: 5px 10px;
256
- margin-bottom: 2px;
260
+ margin-top: 10px;
257
261
  border: 1px solid transparent;
258
262
  border-radius: 15px;
259
263
  font-size: 14px;
@@ -11,7 +11,7 @@ function adjustInputWidth(input) {
11
11
  if (input.scrollWidth > 0) {
12
12
  input.style.width = `${input.scrollWidth + delta}px`;
13
13
  } else {
14
- input.style.width = `${input.value.length * 11 + delta}px`;
14
+ input.style.width = `${input.value.length * 10 + 20}px`;
15
15
  }
16
16
 
17
17
  }
@@ -144,35 +144,30 @@ function validateSchemaForm(form, formDesc, schema, values, schemaName) {
144
144
  }
145
145
 
146
146
  function createSchemaForm($form, schema, onSubmit, schemaName) {
147
+ schema_options = undefined;
148
+ schema_params_options = undefined;
147
149
  if (schema && schema.schema_options) {
148
150
  schema_options = schema.schema_options;
149
- } else {
150
- schema_options = {};
151
151
  }
152
152
  if (schema && schema.properties && schema.properties.params && schema.properties.params.schema_options) {
153
153
  schema_params_options = schema.properties.params.schema_options;
154
- } else {
155
- schema_params_options = {};
156
154
  }
157
155
 
158
156
  formkeys = {};
159
157
  formoptions = {};
160
158
  if (schema_options) {
161
- formkeys = schema.schema_options.form || {};
162
- formoptions = schema.schema_options.formoptions || {};
163
- } else {
164
- if (schema_params_options) {
165
- let fkeys = schema_params_options.form || {};
166
- let foptions = schema_params_options.formoptions || {};
167
- for (let key in fkeys) {
168
- formkeys[`params.${key}`] = fkeys[key];
169
- }
170
- for (let key in foptions) {
171
- formoptions[`params.${key}`] = foptions[key];
172
- }
159
+ formkeys = schema_options.form || {}
160
+ formoptions = schema_options.formoptions || {};
161
+ } else if (schema_params_options) {
162
+ let fkeys = schema_params_options.form || {};
163
+ let foptions = schema_params_options.formoptions || {};
164
+ for (let key in fkeys) {
165
+ formkeys[`params.${key}`] = fkeys[key];
166
+ }
167
+ for (let key in foptions) {
168
+ formoptions[`params.${key}`] = foptions[key];
173
169
  }
174
170
  }
175
-
176
171
  formDesc = extractKeysAndPlaceholders(schema, formkeys, formoptions);
177
172
  if (schemaValues[schemaName]) {
178
173
  value = schemaValues[schemaName];
@@ -251,7 +246,7 @@ function createSchemaForm($form, schema, onSubmit, schemaName) {
251
246
  }
252
247
  }
253
248
  }
254
- if (formoptions) {
249
+ if (Object.keys(formoptions).length) {
255
250
  items = [];
256
251
  for (let key in formoptions) {
257
252
  items.push({
@@ -307,6 +302,22 @@ function createSchemaForm($form, schema, onSubmit, schemaName) {
307
302
  }
308
303
  }
309
304
  }
305
+ if (formoptions) {
306
+ items = [];
307
+ for (let key in formoptions) {
308
+ items.push({
309
+ key: key,
310
+ ... formoptions[key],
311
+ });
312
+ }
313
+ formDesc.push({
314
+ type: 'fieldset',
315
+ title: 'Options',
316
+ fieldHtmlClass: 'fieldsetoptions',
317
+ expandable: true,
318
+ items: items,
319
+ });
320
+ }
310
321
  }
311
322
  // schemaForm.classList.add('form-inline');
312
323
  jsform = $form.jsonForm({
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '2.3.9'
21
- __version_tuple__ = version_tuple = (2, 3, 9)
20
+ __version__ = version = '2.3.10'
21
+ __version_tuple__ = version_tuple = (2, 3, 10)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pywebexec
3
- Version: 2.3.9
3
+ Version: 2.3.10
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes