logs ok
This commit is contained in:
parent
c607db1372
commit
4ad999ca16
File diff suppressed because one or more lines are too long
@ -70,7 +70,8 @@ table.panes {
|
|||||||
&.value {
|
&.value {
|
||||||
flex: 0;
|
flex: 0;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
min-width: 100px;
|
word-break: break-all;
|
||||||
|
flex-basis: auto;
|
||||||
|
|
||||||
i.icon-legend {
|
i.icon-legend {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
@ -94,6 +95,10 @@ table.panes {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
|
i {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.more {
|
.more {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|||||||
@ -2,24 +2,29 @@
|
|||||||
.bottom-content {
|
.bottom-content {
|
||||||
.page-content {
|
.page-content {
|
||||||
|
|
||||||
.panel-logs {
|
.inner {
|
||||||
padding-bottom: 20px;
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-logs pre {
|
.logs {
|
||||||
background: rgba($black, 0.9);
|
flex: 1;
|
||||||
border: 1px solid $neutralGrey;
|
display: flex;
|
||||||
border-radius: 4px;
|
flex-direction: column;
|
||||||
font-family: monospace;
|
align-self: stretch;
|
||||||
color: darken($white, 5%);
|
|
||||||
padding: 20px;
|
|
||||||
min-height: 200px;
|
|
||||||
max-height: 500px;
|
|
||||||
overflow: auto;
|
|
||||||
max-width: 1100px;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
pre {
|
||||||
|
flex: 1;
|
||||||
|
background: rgba($black, 0.9);
|
||||||
|
border: 1px solid rgba($neutralGrey, .5);
|
||||||
|
border-radius: 4px;
|
||||||
|
font-family: monospace;
|
||||||
|
color: darken($white, 5%);
|
||||||
|
padding: 20px;
|
||||||
|
overflow: auto;
|
||||||
|
align-self: stretch;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-panel.right-panel {
|
.page-panel.right-panel {
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
|
|
||||||
.view-sysinfo-list main .main-container {
|
.view-sysinfo-list main .main-container {
|
||||||
.bottom-content {
|
.bottom-content {
|
||||||
.page-content {
|
.page-content {
|
||||||
|
.inner {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-panel.right-panel {
|
.page-panel.right-panel {
|
||||||
|
|||||||
@ -37,7 +37,8 @@ class WebServer:
|
|||||||
serve(
|
serve(
|
||||||
self._app,
|
self._app,
|
||||||
host=self._model_store.config().map().get('bind'),
|
host=self._model_store.config().map().get('bind'),
|
||||||
port=self._model_store.config().map().get('port')
|
port=self._model_store.config().map().get('port'),
|
||||||
|
threads=100
|
||||||
)
|
)
|
||||||
|
|
||||||
def reload(self) -> None:
|
def reload(self) -> None:
|
||||||
|
|||||||
@ -21,12 +21,8 @@
|
|||||||
<div class="bottom-content">
|
<div class="bottom-content">
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<div class="panel panel-inactive panel-logs">
|
<div class="logs">
|
||||||
<div class="panel-body">
|
<pre style="">{%- for log_line in last_logs.split("\n") %}{{ log_line ~ "\n" }}{%- endfor %}</pre>
|
||||||
<h3>{{ l.logs_panel_last_logs }}</h3>
|
|
||||||
<pre style="">{%- for log_line in last_logs.split("\n") %}
|
|
||||||
{{ log_line ~ "\n" }}{%- endfor %}</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -30,83 +30,67 @@
|
|||||||
<div class="bottom-content">
|
<div class="bottom-content">
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
|
<table class="panes sysinfo">
|
||||||
|
<tbody>
|
||||||
|
<tr class="title-item">
|
||||||
|
<td colspan="2">
|
||||||
|
<i class="fa fa-server icon-left"></i> {{ l.sysinfo_panel_table_section_system }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{% for sysinfo_label, sysinfo_value in sysinfo.items() %}
|
||||||
|
<tr>
|
||||||
|
<td class="description">{{ l[sysinfo_label] }}</td>
|
||||||
|
<td class="value">{{ t(sysinfo_value) }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
<div class="panel">
|
{% for ro_variable in ro_variables %}
|
||||||
<div class="panel-body">
|
<tr>
|
||||||
<h3>{{ l.sysinfo_panel_title }}</h3>
|
<td class="description">{{ ro_variable.description }}</td>
|
||||||
<table class="active-slides">
|
<td class="value">
|
||||||
<thead>
|
{% if ro_variable.value %}
|
||||||
<tr>
|
{% if ro_variable.type.value == 'bool' %}
|
||||||
<th>{{ l.sysinfo_panel_th_attribute }}</th>
|
{% if ro_variable.display() %}
|
||||||
<th>{{ l.sysinfo_panel_th_value }}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<h3>
|
|
||||||
<i class="fa fa-server icon-left"></i> {{ l.sysinfo_panel_table_section_system }}
|
|
||||||
</h3>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
{% for sysinfo_label, sysinfo_value in sysinfo.items() %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ l[sysinfo_label] }}</td>
|
|
||||||
<td>{{ t(sysinfo_value) }}</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
|
|
||||||
{% for ro_variable in ro_variables %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ ro_variable.description }}</td>
|
|
||||||
<td>
|
|
||||||
{% if ro_variable.value %}
|
|
||||||
{% if ro_variable.type.value == 'bool' %}
|
|
||||||
{% if ro_variable.display() %}
|
|
||||||
✅
|
|
||||||
{% else %}
|
|
||||||
❌
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
{{ ro_variable.display() }}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<span class="empty">{{ l.common_empty }}</span>
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<h3>
|
|
||||||
<i class="fa fa-box-open icon-left"></i> {{ l.sysinfo_panel_table_section_application }}
|
|
||||||
</h3>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% for env_key, env_value in env_variables.items() %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ env_key.replace('_',' ')|capitalize }}</td>
|
|
||||||
<td>
|
|
||||||
{% if env_value == true %}
|
|
||||||
✅
|
✅
|
||||||
{% elif env_value == false %}
|
|
||||||
❌
|
|
||||||
{% elif env_value == none %}
|
|
||||||
<span class="empty">{{ l.common_empty }}</span>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ env_value }}
|
❌
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
{% else %}
|
||||||
</tr>
|
{{ ro_variable.display() }}
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
</tbody>
|
{% else %}
|
||||||
</table>
|
<span class="empty">{{ l.common_empty }}</span>
|
||||||
</div>
|
{% endif %}
|
||||||
</div>
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
<tbody>
|
||||||
|
<tr class="title-item">
|
||||||
|
<td colspan="2">
|
||||||
|
<i class="fa fa-box-open icon-left"></i> {{ l.sysinfo_panel_table_section_application }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% for env_key, env_value in env_variables.items() %}
|
||||||
|
<tr class="">
|
||||||
|
<td class="description">{{ env_key.replace('_',' ')|capitalize }}</td>
|
||||||
|
<td class="value">
|
||||||
|
{% if env_value == true %}
|
||||||
|
✅
|
||||||
|
{% elif env_value == false %}
|
||||||
|
❌
|
||||||
|
{% elif env_value == none %}
|
||||||
|
<span class="empty">{{ l.common_empty }}</span>
|
||||||
|
{% else %}
|
||||||
|
{{ env_value }}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user