This commit is contained in:
jr-k 2024-07-12 23:25:29 +02:00
parent c607db1372
commit 4ad999ca16
7 changed files with 90 additions and 98 deletions

File diff suppressed because one or more lines are too long

View File

@ -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;

View File

@ -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 {
flex: 1;
display: flex;
flex-direction: column;
align-self: stretch;
pre {
flex: 1;
background: rgba($black, 0.9); background: rgba($black, 0.9);
border: 1px solid $neutralGrey; border: 1px solid rgba($neutralGrey, .5);
border-radius: 4px; border-radius: 4px;
font-family: monospace; font-family: monospace;
color: darken($white, 5%); color: darken($white, 5%);
padding: 20px; padding: 20px;
min-height: 200px;
max-height: 500px;
overflow: auto;
max-width: 1100px;
overflow: auto; overflow: auto;
align-self: stretch;
}
} }
} }
.page-panel.right-panel { .page-panel.right-panel {

View File

@ -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 {

View File

@ -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:

View File

@ -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>

View File

@ -30,39 +30,26 @@
<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">
<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> <tbody>
<tr> <tr class="title-item">
<td colspan="2"> <td colspan="2">
<h3>
<i class="fa fa-server icon-left"></i> {{ l.sysinfo_panel_table_section_system }} <i class="fa fa-server icon-left"></i> {{ l.sysinfo_panel_table_section_system }}
</h3>
</td> </td>
</tr> </tr>
{% for sysinfo_label, sysinfo_value in sysinfo.items() %} {% for sysinfo_label, sysinfo_value in sysinfo.items() %}
<tr> <tr>
<td>{{ l[sysinfo_label] }}</td> <td class="description">{{ l[sysinfo_label] }}</td>
<td>{{ t(sysinfo_value) }}</td> <td class="value">{{ t(sysinfo_value) }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
{% for ro_variable in ro_variables %} {% for ro_variable in ro_variables %}
<tr> <tr>
<td>{{ ro_variable.description }}</td> <td class="description">{{ ro_variable.description }}</td>
<td> <td class="value">
{% if ro_variable.value %} {% if ro_variable.value %}
{% if ro_variable.type.value == 'bool' %} {% if ro_variable.type.value == 'bool' %}
{% if ro_variable.display() %} {% if ro_variable.display() %}
@ -79,18 +66,17 @@
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody>
<tr> <tbody>
<tr class="title-item">
<td colspan="2"> <td colspan="2">
<h3>
<i class="fa fa-box-open icon-left"></i> {{ l.sysinfo_panel_table_section_application }} <i class="fa fa-box-open icon-left"></i> {{ l.sysinfo_panel_table_section_application }}
</h3>
</td> </td>
</tr> </tr>
{% for env_key, env_value in env_variables.items() %} {% for env_key, env_value in env_variables.items() %}
<tr> <tr class="">
<td>{{ env_key.replace('_',' ')|capitalize }}</td> <td class="description">{{ env_key.replace('_',' ')|capitalize }}</td>
<td> <td class="value">
{% if env_value == true %} {% if env_value == true %}
{% elif env_value == false %} {% elif env_value == false %}
@ -108,6 +94,4 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
{% endblock %} {% endblock %}