cmdbox 0.5.2__py3-none-any.whl → 0.5.3__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 (51) hide show
  1. cmdbox/app/auth/signin.py +1 -0
  2. cmdbox/app/features/cli/audit_base.py +4 -1
  3. cmdbox/app/features/cli/cmdbox_audit_delete.py +27 -18
  4. cmdbox/app/features/cli/cmdbox_audit_search.py +128 -62
  5. cmdbox/app/features/cli/cmdbox_audit_write.py +27 -20
  6. cmdbox/app/features/web/cmdbox_web_audit.py +81 -0
  7. cmdbox/app/features/web/cmdbox_web_audit_metrics.py +72 -0
  8. cmdbox/app/features/web/cmdbox_web_exec_cmd.py +10 -5
  9. cmdbox/app/features/web/cmdbox_web_user_data.py +58 -0
  10. cmdbox/app/options.py +40 -19
  11. cmdbox/app/web.py +7 -1
  12. cmdbox/extensions/features.yml +7 -4
  13. cmdbox/extensions/user_list.yml +5 -0
  14. cmdbox/licenses/LICENSE.argcomplete.3.6.2(Apache Software License).txt +177 -0
  15. cmdbox/licenses/LICENSE.gevent.25.4.1(MIT).txt +25 -0
  16. cmdbox/licenses/LICENSE.greenlet.3.2.0(MIT AND Python-2.0).txt +30 -0
  17. cmdbox/licenses/LICENSE.pillow.11.2.1(UNKNOWN).txt +1200 -0
  18. cmdbox/licenses/LICENSE.prompt_toolkit.3.0.51(BSD License).txt +27 -0
  19. cmdbox/licenses/LICENSE.pydantic.2.11.3(MIT License).txt +21 -0
  20. cmdbox/licenses/LICENSE.pydantic_core.2.33.1(MIT License).txt +21 -0
  21. cmdbox/licenses/LICENSE.starlette.0.46.2(BSD License).txt +27 -0
  22. cmdbox/licenses/LICENSE.typing_extensions.4.13.2(UNKNOWN).txt +279 -0
  23. cmdbox/licenses/LICENSE.urllib3.2.4.0(UNKNOWN).txt +21 -0
  24. cmdbox/licenses/LICENSE.uvicorn.0.34.1(BSD License).txt +27 -0
  25. cmdbox/licenses/LICENSE.watchfiles.1.0.5(MIT License).txt +21 -0
  26. cmdbox/licenses/files.txt +12 -13
  27. cmdbox/version.py +2 -2
  28. cmdbox/web/assets/apexcharts/apexcharts.css +679 -0
  29. cmdbox/web/assets/apexcharts/apexcharts.min.js +38 -0
  30. cmdbox/web/assets/cmdbox/audit.js +340 -0
  31. cmdbox/web/assets/cmdbox/color_mode.css +4 -0
  32. cmdbox/web/assets/cmdbox/common.js +397 -24
  33. cmdbox/web/assets/cmdbox/filer_modal.js +1 -1
  34. cmdbox/web/assets/cmdbox/list_cmd.js +7 -271
  35. cmdbox/web/assets/cmdbox/list_pipe.js +3 -3
  36. cmdbox/web/assets/cmdbox/users.js +17 -17
  37. cmdbox/web/assets/cmdbox/view_raw.js +1 -1
  38. cmdbox/web/assets/cmdbox/view_result.js +11 -13
  39. cmdbox/web/assets/filer/filer.js +2 -2
  40. cmdbox/web/assets_license_list.txt +4 -1
  41. cmdbox/web/audit.html +268 -0
  42. cmdbox/web/filer.html +21 -10
  43. cmdbox/web/gui.html +21 -52
  44. cmdbox/web/result.html +9 -2
  45. cmdbox/web/users.html +7 -3
  46. {cmdbox-0.5.2.dist-info → cmdbox-0.5.3.dist-info}/METADATA +8 -5
  47. {cmdbox-0.5.2.dist-info → cmdbox-0.5.3.dist-info}/RECORD +51 -32
  48. {cmdbox-0.5.2.dist-info → cmdbox-0.5.3.dist-info}/LICENSE +0 -0
  49. {cmdbox-0.5.2.dist-info → cmdbox-0.5.3.dist-info}/WHEEL +0 -0
  50. {cmdbox-0.5.2.dist-info → cmdbox-0.5.3.dist-info}/entry_points.txt +0 -0
  51. {cmdbox-0.5.2.dist-info → cmdbox-0.5.3.dist-info}/top_level.txt +0 -0
cmdbox/web/audit.html ADDED
@@ -0,0 +1,268 @@
1
+ <html>
2
+ <head>
3
+ <meta charset="UTF-8">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+ <style type="text/css">
6
+ .card-hover:hover {
7
+ box-shadow: 0 0 8px gray;
8
+ }
9
+ .pane-divider {
10
+ border: 1px solid #C8C8C8 !important;
11
+ border-radius: 1px;
12
+ }
13
+ </style>
14
+ </head>
15
+ <body lang="ja" class="overflow-hidden p-2" style="background-color:rgb(33, 37, 41)">
16
+ <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
17
+ <symbol id="svg_signin_ico" viewBox="0 0 16 16">
18
+ <path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"></path>
19
+ <path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"></path>
20
+ </symbol>
21
+ <symbol id="svg_window_stack" viewBox="0 0 16 16">
22
+ <path d="M4.5 6a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM6 6a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"/>
23
+ <path d="M12 1a2 2 0 0 1 2 2 2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2 2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h10ZM2 12V5a2 2 0 0 1 2-2h9a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1Zm1-4v5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8H3Zm12-1V5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v2h12Z"/>
24
+ </symbol>
25
+ <symbol id="svg_window" viewBox="0 0 16 16">
26
+ <path d="M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/>
27
+ <path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>
28
+ </symbol>
29
+ <symbol id="btn_x" viewBox="0 0 16 16">
30
+ <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>
31
+ </symbol>
32
+ <symbol id="btn_trash" viewBox="0 0 16 16">
33
+ <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
34
+ <path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
35
+ </symbol>
36
+ <symbol id="btn_plus" viewBox="0 0 16 16">
37
+ <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>
38
+ </symbol>
39
+ <symbol id="svg_add_btn" viewBox="0 0 16 16">
40
+ <path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"></path>
41
+ <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"></path>
42
+ </symbol>
43
+ <symbol id="svg_edit_btn" viewBox="0 0 16 16">
44
+ <path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/>
45
+ <path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5z"/>
46
+ </symbol>
47
+ </svg>
48
+ <!-- ナビゲーションバー -->
49
+ <nav class="navbar navbar-expand-sm fixed-top p-2">
50
+ <div class="container-fluid">
51
+ <a class="navbar-brand" href="#">cmdbox</a>
52
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
53
+ <span class="navbar-toggler-icon"></span>
54
+ </button>
55
+ <div class="collapse navbar-collapse" id="navbarNavDropdown">
56
+ <ul class="navbar-nav me-auto">
57
+ <li class="nav-item dropdown">
58
+ <a class="nav-link dropdown-toggle" href="#" id="viewMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
59
+ View
60
+ </a>
61
+ <ul class="dropdown-menu viewmenu">
62
+ <li class="nav-item dropdown">
63
+ <span class="dropdown-item">
64
+ Change Dark Mode
65
+ <select class="d-inline-block change_color_mode" onchange="cmdbox.change_color_mode($(this).val());">
66
+ <option value="dark" selected>Dark</option>
67
+ <option value="midnight">midnight</option>
68
+ <option value="deepsea">deepsea</option>
69
+ <option value="verdant">verdant</option>
70
+ <option value="bumblebee">bumblebee</option>
71
+ <option value="crimson">crimson</option>
72
+ <option value="light">light</option>
73
+ </select>
74
+ </span>
75
+ </li>
76
+ </ul>
77
+ </li>
78
+ <li class="nav-item dropdown">
79
+ <a class="nav-link dropdown-toggle" href="#" id="aboutMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
80
+ About
81
+ </a>
82
+ <ul class="dropdown-menu aboutmenu" aria-labelledby="aboutMenuLink">
83
+ <li><a class="dropdown-item" href="#" onclick="$(`#versions_modal`).modal(`show`);">Versions</a></li>
84
+ </ul>
85
+ </li>
86
+ </ul>
87
+ <div class="d-none dropdown user_info">
88
+ <a href="#" class="d-block link-body-emphasis text-decoration-none dropdown-toggle show" data-bs-toggle="dropdown" aria-expanded="true" style="fill:gray;">
89
+ <svg class="m-1" width="24" height="24" viewBox="0 0 16 16">
90
+ <use href="#svg_signin_ico"></use>
91
+ </svg>
92
+ <span class="username">UserName</span>
93
+ </a>
94
+ <ul class="dropdown-menu text-small shadow" style="position: absolute; inset: 0px 0px auto auto; margin: 0px; transform: translate(0px, 34px);" data-popper-placement="bottom-end">
95
+ <div class="user_info_note ps-3 pe-3"></div>
96
+ <li><hr class="dropdown-divider"></li>
97
+ </ul>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </nav>
102
+ <div id="main_container" class="container-fluid overflow-auto split-pane fixed-left" style="margin-top:66px;height:calc(100vh - 120px);">
103
+ <!-- 検索結果側ペイン -->
104
+ <div id="left_container" class="split-pane-component" style="width:80%;">
105
+ <ul class="nav nav-tabs" role="tablist">
106
+ <li class="nav-item" role="presentation">
107
+ <a class="nav-link active" id="metrics-tab" data-bs-toggle="tab" href="#metrics" role="tab" aria-controls="metrics" aria-selected="true">Metrics</a>
108
+ </li>
109
+ <li class="nav-item" role="presentation">
110
+ <a class="nav-link" id="trace-tab" data-bs-toggle="tab" href="#trace" role="tab" aria-controls="trace" aria-selected="false">Trace</a>
111
+ </li>
112
+ <li class="nav-item" role="presentation">
113
+ <a class="nav-link" id="rawlog-tab" data-bs-toggle="tab" href="#rawlog" role="tab" aria-controls="rawlog" aria-selected="false">Raw Log</a>
114
+ </li>
115
+ </ul>
116
+ <div class="tab-content">
117
+ <div class="tab-pane fade show active" id="metrics" role="tabpanel" aria-labelledby="metrics-tab">
118
+ <button id="add_metrics" type="button" class="btn">
119
+ <svg width="32" height="32" fill="currentColor" class="bi bi-plus-lg"><use href="#svg_add_btn"></use></svg>
120
+ </button>
121
+ <div class="row g-2 m-0" id="metrics_area"></div>
122
+ </div>
123
+ <div class="tab-pane fade" id="trace" role="tabpanel" aria-labelledby="trace-tab">
124
+ <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-2 mt-2" id="trace_area"></div>
125
+ </div>
126
+ <div class="tab-pane fade" id="rawlog" role="tabpanel" aria-labelledby="rawlog-tab">
127
+ <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-2 mt-2 modal-body" id="rawlog_area"></div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ <!-- 左右のスプリッター -->
132
+ <div class="split-pane-divider pane-divider" style="left:80%;"></div>
133
+ <!-- フィルター側ペイン -->
134
+ <div id="right_container" class="split-pane-component" style="left:80%;">
135
+ <form class="d-none filer_form">
136
+ <input name="filer_host" type="hidden" class="filer_host">
137
+ <input name="filer_port" type="hidden" class="filer_port">
138
+ <input name="filer_password" type="hidden" class="filer_password">
139
+ <input name="filer_svname" type="hidden" class="filer_svname">
140
+ <input name="filer_scope" type="hidden" class="filer_scope">
141
+ <input name="filer_client_data" type="hidden" class="filer_client_data">
142
+ </form>
143
+ <div id="filter_form">
144
+ <div class="row row_content m-1"></div>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ <!-- metricsモーダル -->
149
+ <div id="metrics_modal" class="modal" tabindex="-1">
150
+ <div class="modal-dialog modal-lg">
151
+ <div id="metrics_form" class="modal-content novalidate">
152
+ <div class="modal-header">
153
+ <h5 class="modal-title"></h5>
154
+ <button type="button" class="btn btn_window_stack">
155
+ <svg width="16" height="16" fill="currentColor" class="bi bi-window-stack" viewBox="0 0 16 16">
156
+ <use href="#svg_window_stack"></use>
157
+ </svg>
158
+ </button>
159
+ <button type="button" class="btn btn_window">
160
+ <svg width="16" height="16" fill="currentColor" class="bi bi-window" viewBox="0 0 16 16">
161
+ <use href="#svg_window"></use>
162
+ </svg>
163
+ </button>
164
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
165
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
166
+ </button>
167
+ </div>
168
+ <div class="modal-body">
169
+ <div class="row row_content"></div>
170
+ </div>
171
+ <div class="modal-footer">
172
+ <button id="metrics_save" type="button" class="btn btn-success">Save</button>
173
+ <button id="metrics_del" type="button" class="btn btn-danger">Delete</button>
174
+ <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
175
+ </div>
176
+ </div>
177
+ </div>
178
+ </div>
179
+ <!-- versionsモーダル -->
180
+ <div id="versions_modal" class="modal" tabindex="-1">
181
+ <div class="modal-dialog modal-lg">
182
+ <form id="version_form" class="modal-content novalidate">
183
+ <div class="modal-header">
184
+ <h5 class="modal-title">
185
+ Versions
186
+ </h5>
187
+ <button type="button" class="btn btn_window_stack">
188
+ <svg width="16" height="16" fill="currentColor" class="bi bi-window-stack">
189
+ <use href="#svg_window_stack"></use>
190
+ </svg>
191
+ </button>
192
+ <button type="button" class="btn btn_window">
193
+ <svg width="16" height="16" fill="currentColor" class="bi bi-window">
194
+ <use href="#svg_window"></use>
195
+ </svg>
196
+ </button>
197
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
198
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
199
+ </button>
200
+ </div>
201
+ <div class="modal-body">
202
+ <ul class="nav nav-tabs version-tabs" role="tablist"></ul>
203
+ <div class="tab-content version-content"></div>
204
+ </div>
205
+ <div class="modal-footer">
206
+ <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
207
+ </div>
208
+ </form>
209
+ </div>
210
+ </div>
211
+ <!-- ローディングマスク -->
212
+ <div id="loading" class="position-absolute top-0 start-0 w-100 h-100 d-none" style="background:rgba(0, 0, 0, 0.3);z-index:10000;">
213
+ <div class="text-center position-absolute top-50 start-50 w-100 translate-middle">
214
+ <div class="spinner-border text-light" role="status">
215
+ <span class="sr-only"></span>
216
+ </div>
217
+ <div>
218
+ <button type="button" class="btn btn-outline-danger mt-3 bbforce">Back by force</button>
219
+ </div>
220
+ </div>
221
+ </div>
222
+ <!-- フッター -->
223
+ <footer class="fixed-bottom text-center p-2 copyright"></footer>
224
+ </body>
225
+ <script type="text/javascript">
226
+ // jqueryの読込み完了までbodyの背景色を設定
227
+ document.querySelector(`body`).style.setProperty(`--bs-body-bg`, `#212529`);
228
+ document.querySelector(`body`).style.setProperty(`--bs-tertiary-bg`, `#2b3035`);
229
+ document.querySelector(`body`).style.setProperty(`--bs-tertiary-bg-rgb`, `43,48,53`);
230
+ document.querySelector(`body`).style.setProperty(`--bs-secondary-bg`, `#343a40`);
231
+ document.addEventListener('DOMContentLoaded', () => {
232
+ document.querySelector(`body`).style.setProperty(`--bs-body-bg`, null);
233
+ document.querySelector(`body`).style.setProperty(`--bs-tertiary-bg`, null);
234
+ document.querySelector(`body`).style.setProperty(`--bs-tertiary-bg-rgb`, null);
235
+ document.querySelector(`body`).style.setProperty(`--bs-secondary-bg`, null);
236
+ });
237
+ </script>
238
+ <link rel="stylesheet" href="assets/bootstrap/bootstrap.min.5.3.0.css">
239
+ <link rel="stylesheet" href="assets/cmdbox/color_mode.css">
240
+ <link rel="stylesheet" href="assets/tree-menu/css/tree-menu.css">
241
+ <link rel="stylesheet" href="assets/split-pane/split-pane.css">
242
+ <link rel="stylesheet" href="assets/apexcharts/apexcharts.css">
243
+ <style type="text/css">
244
+ .apexcharts-tooltip {
245
+ background: var(--bs-body-bg);
246
+ border: var(--bs-border-width) solid var(--bs-border-color);
247
+ color: var(--bs-body-color);
248
+ }
249
+ .apexcharts-tooltip-title {
250
+ background: var(--bs-tertiary-bg);
251
+ color: var(--bs-body-color);
252
+ }
253
+ .apexcharts-xaxistooltip, .apexcharts-yaxistooltip {
254
+ background: var(--bs-tertiary-bg);
255
+ border: var(--bs-border-width) solid var(--bs-border-color);
256
+ color: var(--bs-body-color);
257
+ }
258
+ </style>
259
+ <script type="text/javascript" src="assets/bootstrap/bootstrap.bundle.min.5.3.0.js"></script>
260
+ <script type="text/javascript" src="assets/jquery/jquery.min.3.2.0.js"></script>
261
+ <script type="text/javascript" src="assets/jquery-ui/jquery-ui.min.js"></script>
262
+ <script type="text/javascript" src="assets/jquery-resizable/jquery-resizable.min.js"></script>
263
+ <script type="text/javascript" src="assets/split-pane/split-pane.js"></script>
264
+ <script type="text/javascript" src="assets/apexcharts/apexcharts.min.js"></script>
265
+ <script type="text/javascript" src="assets/cmdbox/common.js"></script>
266
+ <script type="text/javascript" src="assets/cmdbox/view_result.js"></script>
267
+ <script type="text/javascript" src="assets/cmdbox/audit.js"></script>
268
+ </html>
cmdbox/web/filer.html CHANGED
@@ -16,6 +16,19 @@
16
16
  </style>
17
17
  </head>
18
18
  <body lang="ja" class="overflow-hidden p-2" style="background-color:rgb(33, 37, 41)">
19
+ <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
20
+ <symbol id="btn_window_stack" viewBox="0 0 16 16">
21
+ <path d="M4.5 6a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM6 6a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"/>
22
+ <path d="M12 1a2 2 0 0 1 2 2 2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2 2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h10ZM2 12V5a2 2 0 0 1 2-2h9a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1Zm1-4v5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8H3Zm12-1V5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v2h12Z"/>
23
+ </symbol>
24
+ <symbol id="btn_window" viewBox="0 0 16 16">
25
+ <path d="M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/>
26
+ <path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>
27
+ </symbol>
28
+ <symbol id="btn_x" viewBox="0 0 16 16">
29
+ <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>
30
+ </symbol>
31
+ </svg>
19
32
  <!-- ナビゲーションバー -->
20
33
  <nav class="navbar navbar-expand-sm fixed-top p-2">
21
34
  <div class="container-fluid">
@@ -137,18 +150,14 @@
137
150
  <div class="modal-header">
138
151
  <h5 class="modal-title">Versions</h5>
139
152
  <button type="button" class="btn btn_window_stack">
140
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-window-stack" viewBox="0 0 16 16">
141
- <path d="M4.5 6a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM6 6a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"/>
142
- <path d="M12 1a2 2 0 0 1 2 2 2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2 2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h10ZM2 12V5a2 2 0 0 1 2-2h9a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1Zm1-4v5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8H3Zm12-1V5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v2h12Z"/>
143
- </svg>
153
+ <svg class="bi bi-window-stack" width="16" height="16" fill="currentColor"><use href="#btn_window_stack"></use></svg>
144
154
  </button>
145
155
  <button type="button" class="btn btn_window">
146
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-window" viewBox="0 0 16 16">
147
- <path d="M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/>
148
- <path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>
149
- </svg>
156
+ <svg class="bi bi-window" width="16" height="16" fill="currentColor"><use href="#btn_window"></use></svg>
157
+ </button>
158
+ <button type="button" class="btn btn_close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
159
+ <svg class="bi bi-x" width="16" height="16" fill="currentColor"><use href="#btn_x"></use></svg>
150
160
  </button>
151
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
152
161
  </div>
153
162
  <div class="modal-body"></div>
154
163
  <div class="modal-footer">
@@ -177,7 +186,9 @@
177
186
  <path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>
178
187
  </svg>
179
188
  </button>
180
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
189
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
190
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
191
+ </button>
181
192
  </div>
182
193
  <div class="modal-body">
183
194
  <ul class="nav nav-tabs version-tabs" role="tablist"></ul>
cmdbox/web/gui.html CHANGED
@@ -23,6 +23,9 @@
23
23
  <path d="M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/>
24
24
  <path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>
25
25
  </symbol>
26
+ <symbol id="btn_x" viewBox="0 0 16 16">
27
+ <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>
28
+ </symbol>
26
29
  <symbol id="btn_trash" viewBox="0 0 16 16">
27
30
  <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
28
31
  <path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
@@ -206,7 +209,9 @@
206
209
  <button type="button" class="btn btn_window">
207
210
  <svg class="bi bi-window" width="16" height="16" fill="currentColor"><use href="#btn_window"></use></svg>
208
211
  </button>
209
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
212
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
213
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
214
+ </button>
210
215
  </div>
211
216
  <div class="modal-body">
212
217
  <input name="modal_mode" type="hidden" class="form-control" />
@@ -244,52 +249,6 @@
244
249
  </div>
245
250
  </div>
246
251
  </div>
247
- <div class="row d-none row_content_template_str">
248
- <div class="col-6 mb-3">
249
- <div class="input-group">
250
- <label class="input-group-text row_content_template_title">title</label>
251
- <input type="text" class="form-control row_content_template_input">
252
- </div>
253
- </div>
254
- </div>
255
- <div class="row d-none row_content_template_text">
256
- <div class="col-12 mb-3">
257
- <div class="input-group">
258
- <label class="input-group-text row_content_template_title">title</label>
259
- <textarea class="form-control row_content_template_input" rows="1" style="field-sizing:content;"></textarea>
260
- </div>
261
- </div>
262
- </div>
263
- <div class="row d-none row_content_template_dict">
264
- <div class="col-12 mb-3">
265
- <div class="input-group">
266
- <label class="input-group-text row_content_template_title">title</label>
267
- <input type="text" class="form-control row_content_key row_content_template_input">
268
- <label class="input-group-text">=</label>
269
- <input type="text" class="form-control row_content_val row_content_template_input">
270
- </div>
271
- </div>
272
- </div>
273
- <div class="row d-none row_content_template_dict_choice">
274
- <div class="col-12 mb-3">
275
- <div class="input-group">
276
- <label class="input-group-text row_content_template_title">title</label>
277
- <input type="text" class="form-control row_content_key row_content_template_input">
278
- <label class="input-group-text">=</label>
279
- <select class="form-select row_content_template_select">
280
- </select>
281
- </div>
282
- </div>
283
- </div>
284
- <div class="row d-none row_content_template_choice">
285
- <div class="col-6 mb-3">
286
- <div class="input-group">
287
- <label class="input-group-text row_content_template_title">title</label>
288
- <select class="form-select row_content_template_select">
289
- </select>
290
- </div>
291
- </div>
292
- </div>
293
252
  <div class="row row_content">
294
253
  </div>
295
254
  </div>
@@ -322,7 +281,9 @@
322
281
  <button type="button" class="btn btn_window">
323
282
  <svg class="bi bi-window" width="16" height="16" fill="currentColor"><use href="#btn_window"></use></svg>
324
283
  </button>
325
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
284
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
285
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
286
+ </button>
326
287
  </div>
327
288
  <div class="modal-body">
328
289
  <div class="row row_content_common">
@@ -385,7 +346,9 @@
385
346
  <button type="button" class="btn btn_window">
386
347
  <svg class="bi bi-window" width="16" height="16" fill="currentColor"><use href="#btn_window"></use></svg>
387
348
  </button>
388
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
349
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
350
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
351
+ </button>
389
352
  </div>
390
353
  <div class="modal-body overflow-auto"></div>
391
354
  <div class="modal-footer">
@@ -420,7 +383,9 @@
420
383
  <button type="button" class="btn btn_window">
421
384
  <svg class="bi bi-window" width="16" height="16" fill="currentColor"><use href="#btn_window"></use></svg>
422
385
  </button>
423
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
386
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
387
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
388
+ </button>
424
389
  </div>
425
390
  <div class="modal-body row">
426
391
  </div>
@@ -442,7 +407,9 @@
442
407
  <button type="button" class="btn btn_window">
443
408
  <svg class="bi bi-window" width="16" height="16" fill="currentColor"><use href="#btn_window"></use></svg>
444
409
  </button>
445
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
410
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
411
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
412
+ </button>
446
413
  </div>
447
414
  <div class="modal-body">
448
415
  <textarea id="console_modal_log" class="form-control overflow-auto w-100" rows="10"></textarea>
@@ -468,7 +435,9 @@
468
435
  <button type="button" class="btn btn_window">
469
436
  <svg class="bi bi-window" width="16" height="16" fill="currentColor"><use href="#btn_window"></use></svg>
470
437
  </button>
471
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
438
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
439
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
440
+ </button>
472
441
  </div>
473
442
  <div class="modal-body">
474
443
  <ul class="nav nav-tabs version-tabs" role="tablist"></ul>
cmdbox/web/result.html CHANGED
@@ -23,6 +23,9 @@
23
23
  <path d="M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/>
24
24
  <path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>
25
25
  </symbol>
26
+ <symbol id="btn_x" viewBox="0 0 16 16">
27
+ <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>
28
+ </symbol>
26
29
  <symbol id="btn_trash" viewBox="0 0 16 16">
27
30
  <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
28
31
  <path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
@@ -130,7 +133,9 @@
130
133
  <button type="button" class="btn btn_window">
131
134
  <svg class="bi bi-window" width="16" height="16" fill="currentColor"><use href="#btn_window"></use></svg>
132
135
  </button>
133
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
136
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
137
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
138
+ </button>
134
139
  </div>
135
140
  <div class="modal-body">
136
141
  <textarea id="console_modal_log" class="form-control overflow-auto w-100" rows="10"></textarea>
@@ -156,7 +161,9 @@
156
161
  <button type="button" class="btn btn_window">
157
162
  <svg class="bi bi-window" width="16" height="16" fill="currentColor"><use href="#btn_window"></use></svg>
158
163
  </button>
159
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
164
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
165
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
166
+ </button>
160
167
  </div>
161
168
  <div class="modal-body">
162
169
  <ul class="nav nav-tabs version-tabs" role="tablist"></ul>
cmdbox/web/users.html CHANGED
@@ -73,7 +73,7 @@
73
73
  <option value="midnight">midnight</option>
74
74
  <option value="deepsea">deepsea</option>
75
75
  <option value="verdant">verdant</option>
76
- <option value="">bumblebee</option>
76
+ <option value="bumblebee">bumblebee</option>
77
77
  <option value="crimson">crimson</option>
78
78
  <option value="light">light</option>
79
79
  </select>
@@ -166,7 +166,9 @@
166
166
  <use href="#svg_window"></use>
167
167
  </svg>
168
168
  </button>
169
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
169
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
170
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
171
+ </button>
170
172
  </div>
171
173
  <div class="modal-body">
172
174
  <div class="row row_content"></div>
@@ -234,7 +236,9 @@
234
236
  <use href="#svg_window"></use>
235
237
  </svg>
236
238
  </button>
237
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;"></button>
239
+ <button type="button" class="btn btn_close p-0 m-0" data-bs-dismiss="modal" aria-label="Close" style="margin-left: 0px;">
240
+ <svg class="bi bi-x" width="24" height="24" fill="currentColor"><use href="#btn_x"></use></svg>
241
+ </button>
238
242
  </div>
239
243
  <div class="modal-body">
240
244
  <ul class="nav nav-tabs version-tabs" role="tablist"></ul>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cmdbox
3
- Version: 0.5.2
3
+ Version: 0.5.3
4
4
  Summary: cmdbox: It is a command line application with a plugin mechanism.
5
5
  Home-page: https://github.com/hamacom2004jp/cmdbox
6
6
  Download-URL: https://github.com/hamacom2004jp/cmdbox
@@ -289,9 +289,12 @@ aliases: # Specify the alias for the specified co
289
289
  # e.g. true
290
290
  audit:
291
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.
292
+ write:
293
+ mode: audit # Specify the mode of the feature to be writed.
294
+ cmd: write # Specify the command to be writed.
295
+ search:
296
+ mode: audit # Specify the mode of the feature to be searched.
297
+ cmd: search # Specify the command to be searched.
295
298
  options: # Specify the options for the audit function.
296
299
  host: localhost # Specify the service host of the audit Redis server.
297
300
  port: 6379 # Specify the service port of the audit Redis server.
@@ -299,7 +302,7 @@ aliases: # Specify the alias for the specified co
299
302
  svname: server # Specify the audit service name of the inference server.
300
303
  retry_count: 3 # Specifies the number of reconnections to the audit Redis server.If less than 0 is specified, reconnection is forever.
301
304
  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.
305
+ timeout: 15 # Specify the maximum waiting time until the server responds.
303
306
  pg_enabled: False # Specify True if using the postgresql database server.
304
307
  pg_host: localhost # Specify the postgresql host.
305
308
  pg_port: 5432 # Specify the postgresql port.