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 {
|
||||
flex: 0;
|
||||
margin-left: 20px;
|
||||
min-width: 100px;
|
||||
word-break: break-all;
|
||||
flex-basis: auto;
|
||||
|
||||
i.icon-legend {
|
||||
font-size: 10px;
|
||||
@ -94,6 +95,10 @@ table.panes {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
|
||||
i {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.more {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
|
||||
@ -2,24 +2,29 @@
|
||||
.bottom-content {
|
||||
.page-content {
|
||||
|
||||
.panel-logs {
|
||||
padding-bottom: 20px;
|
||||
.inner {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.panel-logs pre {
|
||||
background: rgba($black, 0.9);
|
||||
border: 1px solid $neutralGrey;
|
||||
border-radius: 4px;
|
||||
font-family: monospace;
|
||||
color: darken($white, 5%);
|
||||
padding: 20px;
|
||||
min-height: 200px;
|
||||
max-height: 500px;
|
||||
overflow: auto;
|
||||
max-width: 1100px;
|
||||
overflow: auto;
|
||||
}
|
||||
.logs {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-self: stretch;
|
||||
|
||||
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 {
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
|
||||
.view-sysinfo-list main .main-container {
|
||||
.bottom-content {
|
||||
.page-content {
|
||||
|
||||
.inner {
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.page-panel.right-panel {
|
||||
|
||||
@ -37,7 +37,8 @@ class WebServer:
|
||||
serve(
|
||||
self._app,
|
||||
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:
|
||||
|
||||
@ -21,12 +21,8 @@
|
||||
<div class="bottom-content">
|
||||
<div class="page-content">
|
||||
<div class="inner">
|
||||
<div class="panel panel-inactive panel-logs">
|
||||
<div class="panel-body">
|
||||
<h3>{{ l.logs_panel_last_logs }}</h3>
|
||||
<pre style="">{%- for log_line in last_logs.split("\n") %}
|
||||
{{ log_line ~ "\n" }}{%- endfor %}</pre>
|
||||
</div>
|
||||
<div class="logs">
|
||||
<pre style="">{%- for log_line in last_logs.split("\n") %}{{ log_line ~ "\n" }}{%- endfor %}</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -30,83 +30,67 @@
|
||||
<div class="bottom-content">
|
||||
<div class="page-content">
|
||||
<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">
|
||||
<div class="panel-body">
|
||||
<h3>{{ l.sysinfo_panel_title }}</h3>
|
||||
<table class="active-slides">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ l.sysinfo_panel_th_attribute }}</th>
|
||||
<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 %}
|
||||
{% for ro_variable in ro_variables %}
|
||||
<tr>
|
||||
<td class="description">{{ ro_variable.description }}</td>
|
||||
<td class="value">
|
||||
{% if ro_variable.value %}
|
||||
{% if ro_variable.type.value == 'bool' %}
|
||||
{% if ro_variable.display() %}
|
||||
✅
|
||||
{% 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>
|
||||
{% else %}
|
||||
{{ ro_variable.display() }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<span class="empty">{{ l.common_empty }}</span>
|
||||
{% endif %}
|
||||
</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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user