cmdbox 0.5.1.2__py3-none-any.whl → 0.5.2__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.

Potentially problematic release.


This version of cmdbox might be problematic. Click here for more details.

Files changed (117) hide show
  1. cmdbox/app/app.py +4 -2
  2. cmdbox/app/auth/signin.py +633 -631
  3. cmdbox/app/client.py +10 -10
  4. cmdbox/app/common.py +50 -6
  5. cmdbox/app/commons/convert.py +9 -0
  6. cmdbox/app/commons/module.py +113 -113
  7. cmdbox/app/commons/redis_client.py +40 -29
  8. cmdbox/app/edge.py +4 -4
  9. cmdbox/app/features/cli/audit_base.py +135 -0
  10. cmdbox/app/features/cli/cmdbox_audit_createdb.py +224 -0
  11. cmdbox/app/features/cli/cmdbox_audit_delete.py +299 -0
  12. cmdbox/app/features/cli/cmdbox_audit_search.py +350 -0
  13. cmdbox/app/features/cli/cmdbox_audit_write.py +240 -0
  14. cmdbox/app/features/cli/cmdbox_client_file_copy.py +207 -207
  15. cmdbox/app/features/cli/cmdbox_client_file_download.py +207 -207
  16. cmdbox/app/features/cli/cmdbox_client_file_list.py +193 -193
  17. cmdbox/app/features/cli/cmdbox_client_file_mkdir.py +191 -191
  18. cmdbox/app/features/cli/cmdbox_client_file_move.py +199 -199
  19. cmdbox/app/features/cli/cmdbox_client_file_remove.py +190 -190
  20. cmdbox/app/features/cli/cmdbox_client_file_rmdir.py +190 -190
  21. cmdbox/app/features/cli/cmdbox_client_file_upload.py +212 -212
  22. cmdbox/app/features/cli/cmdbox_client_server_info.py +166 -166
  23. cmdbox/app/features/cli/cmdbox_server_list.py +88 -88
  24. cmdbox/app/features/cli/cmdbox_server_stop.py +138 -138
  25. cmdbox/app/features/web/cmdbox_web_del_cmd.py +2 -0
  26. cmdbox/app/features/web/cmdbox_web_del_pipe.py +1 -0
  27. cmdbox/app/features/web/cmdbox_web_do_signin.py +12 -2
  28. cmdbox/app/features/web/cmdbox_web_do_signout.py +1 -0
  29. cmdbox/app/features/web/cmdbox_web_exec_cmd.py +25 -1
  30. cmdbox/app/features/web/cmdbox_web_exec_pipe.py +1 -0
  31. cmdbox/app/features/web/cmdbox_web_filer download.py +43 -42
  32. cmdbox/app/features/web/cmdbox_web_filer.py +1 -0
  33. cmdbox/app/features/web/cmdbox_web_filer_upload.py +65 -64
  34. cmdbox/app/features/web/cmdbox_web_gui.py +166 -165
  35. cmdbox/app/features/web/cmdbox_web_load_pin.py +43 -43
  36. cmdbox/app/features/web/cmdbox_web_raw_pipe.py +87 -87
  37. cmdbox/app/features/web/cmdbox_web_save_cmd.py +1 -0
  38. cmdbox/app/features/web/cmdbox_web_save_pin.py +42 -42
  39. cmdbox/app/features/web/cmdbox_web_save_pipe.py +1 -0
  40. cmdbox/app/features/web/cmdbox_web_users.py +12 -0
  41. cmdbox/app/options.py +767 -601
  42. cmdbox/extensions/features.yml +20 -0
  43. cmdbox/extensions/sample_project/sample/app/features/cli/sample_client_time.py +82 -82
  44. cmdbox/extensions/sample_project/sample/app/features/cli/sample_server_time.py +145 -145
  45. cmdbox/licenses/{LICENSE.Sphinx.8.1.3(BSD License).txt → LICENSE.Sphinx.8.2.3(UNKNOWN).txt} +1 -1
  46. cmdbox/licenses/{LICENSE.babel.2.16.0(BSD License).txt → LICENSE.babel.2.17.0(BSD License).txt } +1 -1
  47. cmdbox/licenses/{LICENSE.pkginfo.1.10.0(MIT License).txt → LICENSE.charset-normalizer.3.4.1(MIT License).txt } +1 -1
  48. cmdbox/licenses/LICENSE.gunicorn.23.0.0(MIT License).txt +23 -0
  49. cmdbox/licenses/LICENSE.importlib_metadata.8.6.1(Apache Software License).txt +202 -0
  50. cmdbox/licenses/LICENSE.nh3.0.2.21(MIT).txt +21 -0
  51. cmdbox/licenses/{LICENSE.pillow.11.0.0(CMU License (MIT-CMU)).txt → LICENSE.pillow.11.1.0(CMU License (MIT-CMU)).txt } +27 -40
  52. cmdbox/licenses/LICENSE.plyer.2.1.0(MIT License).txt +19 -0
  53. cmdbox/licenses/LICENSE.prompt_toolkit.3.0.50(BSD License).txt +27 -0
  54. cmdbox/licenses/LICENSE.psycopg-binary.3.2.6(GNU Lesser General Public License v3 (LGPLv3)).txt +165 -0
  55. cmdbox/licenses/LICENSE.psycopg-pool.3.2.6(GNU Lesser General Public License v3 (LGPLv3)).txt +165 -0
  56. cmdbox/licenses/LICENSE.psycopg.3.2.6(GNU Lesser General Public License v3 (LGPLv3)).txt +165 -0
  57. cmdbox/licenses/LICENSE.pycryptodome.3.22.0(BSD License; Public Domain).txt +61 -0
  58. cmdbox/licenses/LICENSE.pystray.0.19.5(GNU Lesser General Public License v3 (LGPLv3)).txt +674 -0
  59. cmdbox/licenses/LICENSE.questionary.2.1.0(MIT License).txt +19 -0
  60. cmdbox/licenses/LICENSE.roman-numerals-py.3.1.0(CC0 1.0 Universal (CC0 1.0) Public Domain Dedication; Zero-Clause BSD (0BSD)).txt +146 -0
  61. cmdbox/licenses/{LICENSE.six.1.16.0(MIT License).txt → LICENSE.six.1.17.0(MIT License).txt } +1 -1
  62. cmdbox/licenses/{LICENSE.charset-normalizer.3.4.0(MIT License).txt → LICENSE.typing-inspection.0.4.0(MIT License).txt } +2 -2
  63. cmdbox/licenses/LICENSE.tzdata.2025.2(Apache Software License).txt +15 -0
  64. cmdbox/licenses/files.txt +48 -36
  65. cmdbox/logconf_audit.yml +30 -0
  66. cmdbox/logconf_cmdbox.yml +30 -0
  67. cmdbox/version.py +2 -2
  68. cmdbox/web/assets/cmdbox/color_mode.css +516 -0
  69. cmdbox/web/assets/cmdbox/common.js +19 -0
  70. cmdbox/web/assets/cmdbox/list_cmd.js +9 -10
  71. cmdbox/web/assets/cmdbox/main.js +2 -2
  72. cmdbox/web/assets/cmdbox/result.js +2 -2
  73. cmdbox/web/assets/cmdbox/signin.js +2 -2
  74. cmdbox/web/assets/cmdbox/users.js +2 -3
  75. cmdbox/web/assets/cmdbox/view_result.js +1 -1
  76. cmdbox/web/assets/filer/main.js +2 -2
  77. cmdbox/web/filer.html +16 -2
  78. cmdbox/web/gui.html +15 -1
  79. cmdbox/web/result.html +15 -1
  80. cmdbox/web/signin.html +35 -14
  81. cmdbox/web/users.html +15 -1
  82. {cmdbox-0.5.1.2.dist-info → cmdbox-0.5.2.dist-info}/METADATA +25 -5
  83. {cmdbox-0.5.1.2.dist-info → cmdbox-0.5.2.dist-info}/RECORD +116 -96
  84. {cmdbox-0.5.1.2.dist-info → cmdbox-0.5.2.dist-info}/entry_points.txt +0 -1
  85. cmdbox/licenses/LICENSE.nh3.0.2.18(MIT).txt +0 -1
  86. /cmdbox/licenses/{LICENSE.Jinja2.3.1.4(BSD License).txt → LICENSE.Jinja2.3.1.6(BSD License).txt} +0 -0
  87. /cmdbox/licenses/{LICENSE.Pygments.2.18.0(BSD License).txt → LICENSE.Pygments.2.19.1(BSD License).txt} +0 -0
  88. /cmdbox/licenses/{LICENSE.anyio.4.6.2.post1(MIT License).txt → LICENSE.anyio.4.9.0(MIT License).txt} +0 -0
  89. /cmdbox/licenses/{LICENSE.argcomplete.3.5.1(Apache Software License).txt → LICENSE.argcomplete.3.6.1(Apache Software License).txt} +0 -0
  90. /cmdbox/licenses/{LICENSE.certifi.2024.8.30(Mozilla Public License 2.0 (MPL 2.0)).txt → LICENSE.certifi.2025.1.31(Mozilla Public License 2.0 (MPL 2.0)).txt} +0 -0
  91. /cmdbox/licenses/{LICENSE.click.8.1.7(BSD License).txt → LICENSE.click.8.1.8(BSD License).txt} +0 -0
  92. /cmdbox/licenses/{LICENSE.cryptography.43.0.3(Apache Software License; BSD License).txt → LICENSE.cryptography.44.0.2(Apache Software License; BSD License).txt} +0 -0
  93. /cmdbox/licenses/{LICENSE.fastapi.0.115.5(MIT License).txt → LICENSE.fastapi.0.115.12(MIT License).txt} +0 -0
  94. /cmdbox/licenses/{LICENSE.importlib_metadata.8.5.0(Apache Software License).txt → LICENSE.id.1.5.0(Apache Software License).txt} +0 -0
  95. /cmdbox/licenses/{LICENSE.keyring.25.5.0(MIT License).txt → LICENSE.keyring.25.6.0(MIT License).txt} +0 -0
  96. /cmdbox/licenses/{LICENSE.more-itertools.10.5.0(MIT License).txt → LICENSE.more-itertools.10.6.0(MIT License).txt} +0 -0
  97. /cmdbox/licenses/{LICENSE.numpy.2.1.3(BSD License).txt → LICENSE.numpy.2.2.4(BSD License).txt} +0 -0
  98. /cmdbox/licenses/{LICENSE.prettytable.3.12.0(BSD License).txt → LICENSE.prettytable.3.16.0(UNKNOWN).txt} +0 -0
  99. /cmdbox/licenses/{LICENSE.pydantic.2.10.2(MIT License).txt → LICENSE.pydantic.2.11.1(MIT License).txt} +0 -0
  100. /cmdbox/licenses/{LICENSE.pydantic_core.2.27.1(MIT License).txt → LICENSE.pydantic_core.2.33.0(MIT License).txt} +0 -0
  101. /cmdbox/licenses/{LICENSE.python-dotenv.1.0.1(BSD License).txt → LICENSE.python-dotenv.1.1.0(BSD License).txt} +0 -0
  102. /cmdbox/licenses/{LICENSE.python-multipart.0.0.17(Apache Software License).txt → LICENSE.python-multipart.0.0.20(Apache Software License).txt} +0 -0
  103. /cmdbox/licenses/{LICENSE.redis.5.2.0(MIT License).txt → LICENSE.redis.5.2.1(MIT License).txt} +0 -0
  104. /cmdbox/licenses/{LICENSE.rich.13.9.4(MIT License).txt → LICENSE.rich.14.0.0(MIT License).txt} +0 -0
  105. /cmdbox/licenses/{LICENSE.sphinx-intl.2.3.0(BSD License).txt → LICENSE.sphinx-intl.2.3.1(BSD License).txt} +0 -0
  106. /cmdbox/licenses/{LICENSE.starlette.0.41.3(BSD License).txt → LICENSE.starlette.0.46.1(BSD License).txt} +0 -0
  107. /cmdbox/licenses/{LICENSE.tomli.2.1.0(MIT License).txt → LICENSE.tomli.2.2.1(MIT License).txt} +0 -0
  108. /cmdbox/licenses/{LICENSE.twine.5.1.1(Apache Software License).txt → LICENSE.twine.6.1.0(Apache Software License).txt} +0 -0
  109. /cmdbox/licenses/{LICENSE.typing_extensions.4.12.2(Python Software Foundation License).txt → LICENSE.typing_extensions.4.13.0(UNKNOWN).txt} +0 -0
  110. /cmdbox/licenses/{LICENSE.urllib3.2.2.3(MIT License).txt → LICENSE.urllib3.2.3.0(MIT License).txt} +0 -0
  111. /cmdbox/licenses/{LICENSE.uvicorn.0.32.1(BSD License).txt → LICENSE.uvicorn.0.34.0(BSD License).txt} +0 -0
  112. /cmdbox/licenses/{LICENSE.watchfiles.1.0.0(MIT License).txt → LICENSE.watchfiles.1.0.4(MIT License).txt} +0 -0
  113. /cmdbox/licenses/{LICENSE.websockets.14.1(BSD License).txt → LICENSE.websockets.15.0.1(BSD License).txt} +0 -0
  114. /cmdbox/licenses/{LICENSE.zope.interface.7.1.1(Zope Public License).txt → LICENSE.zope.interface.7.2(Zope Public License).txt} +0 -0
  115. {cmdbox-0.5.1.2.dist-info → cmdbox-0.5.2.dist-info}/LICENSE +0 -0
  116. {cmdbox-0.5.1.2.dist-info → cmdbox-0.5.2.dist-info}/WHEEL +0 -0
  117. {cmdbox-0.5.1.2.dist-info → cmdbox-0.5.2.dist-info}/top_level.txt +0 -0
cmdbox/web/filer.html CHANGED
@@ -29,8 +29,21 @@
29
29
  <a class="nav-link dropdown-toggle" href="#" id="viewMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
30
30
  View
31
31
  </a>
32
- <ul class="dropdown-menu">
33
- <li><a class="dropdown-item" href="#" onclick="cmdbox.change_dark_mode();">Change Dark Mode</a></li>
32
+ <ul class="dropdown-menu viewmenu">
33
+ <li class="nav-item dropdown">
34
+ <span class="dropdown-item">
35
+ Change Dark Mode
36
+ <select class="d-inline-block change_color_mode" onchange="cmdbox.change_color_mode($(this).val());">
37
+ <option value="dark" selected>Dark</option>
38
+ <option value="midnight">midnight</option>
39
+ <option value="deepsea">deepsea</option>
40
+ <option value="verdant">verdant</option>
41
+ <option value="bumblebee">bumblebee</option>
42
+ <option value="crimson">crimson</option>
43
+ <option value="light">light</option>
44
+ </select>
45
+ </span>
46
+ </li>
34
47
  </ul>
35
48
  </li>
36
49
  <li class="nav-item dropdown">
@@ -201,6 +214,7 @@
201
214
  });
202
215
  </script>
203
216
  <link rel="stylesheet" href="assets/bootstrap/bootstrap.min.5.3.0.css">
217
+ <link rel="stylesheet" href="assets/cmdbox/color_mode.css">
204
218
  <link rel="stylesheet" href="assets/lightbox2/css/lightbox.min.css">
205
219
  <link rel="stylesheet" href="assets/tree-menu/css/tree-menu.css">
206
220
  <link rel="stylesheet" href="assets/split-pane/split-pane.css">
cmdbox/web/gui.html CHANGED
@@ -85,7 +85,20 @@
85
85
  View
86
86
  </a>
87
87
  <ul class="dropdown-menu viewmenu">
88
- <li><a class="dropdown-item" href="#" onclick="cmdbox.change_dark_mode();">Change Dark Mode</a></li>
88
+ <li class="nav-item dropdown">
89
+ <span class="dropdown-item">
90
+ Change Dark Mode
91
+ <select class="d-inline-block change_color_mode" onchange="cmdbox.change_color_mode($(this).val());">
92
+ <option value="dark" selected>Dark</option>
93
+ <option value="midnight">midnight</option>
94
+ <option value="deepsea">deepsea</option>
95
+ <option value="verdant">verdant</option>
96
+ <option value="bumblebee">bumblebee</option>
97
+ <option value="crimson">crimson</option>
98
+ <option value="light">light</option>
99
+ </select>
100
+ </span>
101
+ </li>
89
102
  <li><a class="dropdown-item" href="#" onclick="$(`#console_modal`).modal(`show`);">Console log</a></li>
90
103
  </ul>
91
104
  </li>
@@ -495,6 +508,7 @@
495
508
  });
496
509
  </script>
497
510
  <link rel="stylesheet" href="assets/bootstrap/bootstrap.min.5.3.0.css">
511
+ <link rel="stylesheet" href="assets/cmdbox/color_mode.css">
498
512
  <link rel="stylesheet" href="assets/lightbox2/css/lightbox.min.css">
499
513
  <link rel="stylesheet" href="assets/tree-menu/css/tree-menu.css">
500
514
  <script type="text/javascript" src="assets/bootstrap/bootstrap.bundle.min.5.3.0.js"></script>
cmdbox/web/result.html CHANGED
@@ -66,7 +66,20 @@
66
66
  View
67
67
  </a>
68
68
  <ul class="dropdown-menu viewmenu">
69
- <li><a class="dropdown-item" href="#" onclick="cmdbox.change_dark_mode();">Change Dark Mode</a></li>
69
+ <li class="nav-item dropdown">
70
+ <span class="dropdown-item">
71
+ Change Dark Mode
72
+ <select class="d-inline-block change_color_mode" onchange="cmdbox.change_color_mode($(this).val());">
73
+ <option value="dark" selected>Dark</option>
74
+ <option value="midnight">midnight</option>
75
+ <option value="deepsea">deepsea</option>
76
+ <option value="verdant">verdant</option>
77
+ <option value="bumblebee">bumblebee</option>
78
+ <option value="crimson">crimson</option>
79
+ <option value="light">light</option>
80
+ </select>
81
+ </span>
82
+ </li>
70
83
  <li><a class="dropdown-item" href="#" onclick="$(`#console_modal`).modal(`show`);">Console log</a></li>
71
84
  </ul>
72
85
  </li>
@@ -183,6 +196,7 @@
183
196
  });
184
197
  </script>
185
198
  <link rel="stylesheet" href="assets/bootstrap/bootstrap.min.5.3.0.css">
199
+ <link rel="stylesheet" href="assets/cmdbox/color_mode.css">
186
200
  <link rel="stylesheet" href="assets/lightbox2/css/lightbox.min.css">
187
201
  <script type="text/javascript" src="assets/bootstrap/bootstrap.bundle.min.5.3.0.js"></script>
188
202
  <script type="text/javascript" src="assets/jquery/jquery.min.3.2.0.js"></script>
cmdbox/web/signin.html CHANGED
@@ -17,13 +17,6 @@
17
17
  <symbol id="circle-half" viewBox="0 0 16 16">
18
18
  <path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"></path>
19
19
  </symbol>
20
- <symbol id="moon-stars-fill" viewBox="0 0 16 16">
21
- <path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"></path>
22
- <path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"></path>
23
- </symbol>
24
- <symbol id="sun-fill" viewBox="0 0 16 16">
25
- <path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"></path>
26
- </symbol>
27
20
  <symbol id="google" viewBox="0 0 16 16">
28
21
  <path d="M15.545 6.558a9.4 9.4 0 0 1 .139 1.626c0 2.434-.87 4.492-2.384 5.885h.002C11.978 15.292 10.158 16 8 16A8 8 0 1 1 8 0a7.7 7.7 0 0 1 5.352 2.082l-2.284 2.284A4.35 4.35 0 0 0 8 3.166c-2.087 0-3.86 1.408-4.492 3.304a4.8 4.8 0 0 0 0 3.063h.003c.635 1.893 2.405 3.301 4.492 3.301 1.078 0 2.004-.276 2.722-.764h-.003a3.7 3.7 0 0 0 1.599-2.431H8v-3.08z"/>
29
22
  </symbol>
@@ -50,22 +43,49 @@
50
43
  </button>
51
44
  <ul class="dropdown-menu dropdown-menu-end shadow" aria-labelledby="bd-theme-text" style="">
52
45
  <li>
53
- <button type="button" class="dropdown-item d-flex align-items-center theme-item" data-bs-theme-value="light" aria-pressed="false">
54
- <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#sun-fill"></use></svg>
55
- Light
46
+ <button type="button" class="dropdown-item d-flex align-items-center theme-item" data-bs-theme-value="dark" aria-pressed="false">
47
+ Dark
56
48
  <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
57
49
  </button>
58
50
  </li>
59
51
  <li>
60
- <button type="button" class="dropdown-item d-flex align-items-center theme-item" data-bs-theme-value="dark" aria-pressed="false">
61
- <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#moon-stars-fill"></use></svg>
62
- Dark
52
+ <button type="button" class="dropdown-item d-flex align-items-center theme-item" data-bs-theme-value="midnight" aria-pressed="false">
53
+ Midnight
54
+ <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
55
+ </button>
56
+ </li>
57
+ <li>
58
+ <button type="button" class="dropdown-item d-flex align-items-center theme-item" data-bs-theme-value="deepsea" aria-pressed="false">
59
+ Deepsea
60
+ <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
61
+ </button>
62
+ </li>
63
+ <li>
64
+ <button type="button" class="dropdown-item d-flex align-items-center theme-item" data-bs-theme-value="verdant" aria-pressed="false">
65
+ Verdant
66
+ <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
67
+ </button>
68
+ </li>
69
+ <li>
70
+ <button type="button" class="dropdown-item d-flex align-items-center theme-item" data-bs-theme-value="bumblebee" aria-pressed="false">
71
+ Bumblebee
72
+ <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
73
+ </button>
74
+ </li>
75
+ <li>
76
+ <button type="button" class="dropdown-item d-flex align-items-center theme-item" data-bs-theme-value="crimson" aria-pressed="false">
77
+ Crimson
78
+ <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
79
+ </button>
80
+ </li>
81
+ <li>
82
+ <button type="button" class="dropdown-item d-flex align-items-center theme-item" data-bs-theme-value="light" aria-pressed="false">
83
+ Light
63
84
  <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
64
85
  </button>
65
86
  </li>
66
87
  <li>
67
88
  <button type="button" class="dropdown-item d-flex align-items-center theme-item active" data-bs-theme-value="auto" aria-pressed="true">
68
- <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#circle-half"></use></svg>
69
89
  Auto
70
90
  <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
71
91
  </button>
@@ -124,6 +144,7 @@
124
144
  });
125
145
  </script>
126
146
  <link rel="stylesheet" href="../assets/bootstrap/bootstrap.min.5.3.0.css">
147
+ <link rel="stylesheet" href="../assets/cmdbox/color_mode.css">
127
148
  <script type="text/javascript" src="../assets/bootstrap/bootstrap.bundle.min.5.3.0.js"></script>
128
149
  <script type="text/javascript" src="../assets/jquery/jquery.min.3.2.0.js"></script>
129
150
  <script type="text/javascript" src="../assets/cmdbox/common.js"></script>
cmdbox/web/users.html CHANGED
@@ -65,7 +65,20 @@
65
65
  View
66
66
  </a>
67
67
  <ul class="dropdown-menu viewmenu">
68
- <li><a class="dropdown-item" href="#" onclick="cmdbox.change_dark_mode();">Change Dark Mode</a></li>
68
+ <li class="nav-item dropdown">
69
+ <span class="dropdown-item">
70
+ Change Dark Mode
71
+ <select class="d-inline-block change_color_mode" onchange="cmdbox.change_color_mode($(this).val());">
72
+ <option value="dark" selected>Dark</option>
73
+ <option value="midnight">midnight</option>
74
+ <option value="deepsea">deepsea</option>
75
+ <option value="verdant">verdant</option>
76
+ <option value="">bumblebee</option>
77
+ <option value="crimson">crimson</option>
78
+ <option value="light">light</option>
79
+ </select>
80
+ </span>
81
+ </li>
69
82
  <li><a class="dropdown-item" href="#" onclick="$(`#console_modal`).modal(`show`);">Console log</a></li>
70
83
  </ul>
71
84
  </li>
@@ -261,6 +274,7 @@
261
274
  });
262
275
  </script>
263
276
  <link rel="stylesheet" href="assets/bootstrap/bootstrap.min.5.3.0.css">
277
+ <link rel="stylesheet" href="assets/cmdbox/color_mode.css">
264
278
  <link rel="stylesheet" href="assets/lightbox2/css/lightbox.min.css">
265
279
  <link rel="stylesheet" href="assets/tree-menu/css/tree-menu.css">
266
280
  <script type="text/javascript" src="assets/bootstrap/bootstrap.bundle.min.5.3.0.js"></script>
@@ -1,16 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cmdbox
3
- Version: 0.5.1.2
3
+ Version: 0.5.2
4
4
  Summary: cmdbox: It is a command line application with a plugin mechanism.
5
5
  Home-page: https://github.com/hamacom2004jp/cmdbox
6
+ Download-URL: https://github.com/hamacom2004jp/cmdbox
6
7
  Author: hamacom2004jp
7
8
  Author-email: hamacom2004jp@gmail.com
8
9
  Maintainer: hamacom2004jp
9
10
  Maintainer-email: hamacom2004jp@gmail.com
10
11
  License: MIT
11
- Download-URL: https://github.com/hamacom2004jp/cmdbox
12
12
  Keywords: cli restapi redis fastapi
13
- Platform: UNKNOWN
14
13
  Classifier: Development Status :: 4 - Beta
15
14
  Classifier: Intended Audience :: Developers
16
15
  Classifier: Intended Audience :: Information Technology
@@ -21,6 +20,7 @@ Classifier: Programming Language :: Python
21
20
  Classifier: Topic :: Utilities
22
21
  Requires-Python: >=3.8
23
22
  Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
24
  Requires-Dist: argcomplete
25
25
  Requires-Dist: cryptography
26
26
  Requires-Dist: fastapi
@@ -30,6 +30,7 @@ Requires-Dist: itsdangerous
30
30
  Requires-Dist: numpy
31
31
  Requires-Dist: Pillow
32
32
  Requires-Dist: plyer
33
+ Requires-Dist: psycopg[binary]
33
34
  Requires-Dist: pystray
34
35
  Requires-Dist: python-multipart
35
36
  Requires-Dist: pycryptodome
@@ -286,6 +287,27 @@ aliases: # Specify the alias for the specified co
286
287
  # e.g. /{1}_exec
287
288
  move: # Specify whether to move the regular expression group of the source to the target.
288
289
  # e.g. true
290
+ audit:
291
+ enabled: true # Specify whether to enable the audit function.
292
+ feature:
293
+ mode: audit # Specify the mode of the feature to be audited.
294
+ cmd: write # Specify the command to be audited.
295
+ options: # Specify the options for the audit function.
296
+ host: localhost # Specify the service host of the audit Redis server.
297
+ port: 6379 # Specify the service port of the audit Redis server.
298
+ password: password # Specify the access password of the audit Redis server.
299
+ svname: server # Specify the audit service name of the inference server.
300
+ retry_count: 3 # Specifies the number of reconnections to the audit Redis server.If less than 0 is specified, reconnection is forever.
301
+ retry_interval: 1 # Specifies the number of seconds before reconnecting to the audit Redis server.
302
+ timeout: 1 # Specify the maximum waiting time until the server responds.
303
+ pg_enabled: False # Specify True if using the postgresql database server.
304
+ pg_host: localhost # Specify the postgresql host.
305
+ pg_port: 5432 # Specify the postgresql port.
306
+ pg_user: postgres # Specify the postgresql user name.
307
+ pg_password: password # Specify the postgresql password.
308
+ pg_dbname: audit # Specify the postgresql database name.
309
+ retention_period_days: 365 # Specify the number of days to retain audit logs.
310
+
289
311
  ```
290
312
 
291
313
  - The following files should also be known when using commands on the web screen or RESTAPI.
@@ -422,5 +444,3 @@ oauth2: # OAuth2 settings.
422
444
  # Lisence
423
445
 
424
446
  This project is licensed under the MIT License, see the LICENSE file for details
425
-
426
-