2.0.0(preview)

This commit is contained in:
masnn committed 2020-06-08 13:41:43 +08:00
1 parent d5929d78b1
commit 1c8b62a6d9
33 files changed
+307 -241

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<div class="section">
<div class="section__body no-padding">
<div data-fragment-id="ranking">
{% if not udocs %}
{% if not udocs.length %}
{{ nothing.render('Sorry, there is no user in this domain.') }}
{% else %}
<table class="data-table">
+1
View File
@@ -13,6 +13,7 @@
</div>
<ol class="menu collapsed">
{{ sidemenu.render_item(null, 'manage_dashboard', '/manage/dashboard') }}
{{ sidemenu.render_item(null, 'manage_script', '/manage/script') }}
{{ sidemenu.render_item(null, 'manage_module', '/manage/module') }}
{{ sidemenu.render_item(null, 'manage_setting', '/manage/setting') }}
</ol>
+56
View File
@@ -0,0 +1,56 @@
{% extends "manage_base.html" %}
{% block manage_content %}
<div style="display: none" class="dialog__body--run-script">
<div>
<div class="row"><div class="columns">
<h1>{{ _('Run script') }}</h1>
</div></div>
<div class="row">
<div class="medium-12 columns">
<label>
{{ _('Params') }}
<input name="args" type="text" class="textbox" autocomplete="off" data-autofocus>
</label>
</div>
</div>
</div>
</div>
<div class="section">
<div class="section__header">
<h1 class="section__title">{{ _('Scripts') }}</h1>
<div class="section__tools">
<a class="tool-button" href="/wiki/help#script"><span class="icon icon-help"></span> {{ _("What's script?") }}</a>
</div>
</div>
<div class="section__body no-padding">
{{ noscript_note.render() }}
<table class="data-table">
<colgroup>
<col class="col--id">
<col class="col--desc">
<col class="col--action">
</colgroup>
<thead>
<tr>
<th class="col--id">{{ _('ID') }}</th>
<th class="col--desc">{{ _('Description') }}</th>
<th class="col--action">{{ _('Action') }}</th>
</tr>
</thead>
<tbody>
{% for id, script in scripts %}
{% if not script.hidden %}
<tr>
<td class="col--id">{{ id }}</td>
<td class="col--desc">{{ _(script.description|default(_('None'))) }}</td>
<td class="col--action">
<a class="typo-a" href="javascript: window.runScript('{{ id }}')">{{ _('Run') }}</a>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}
+2 -2
View File
@@ -25,11 +25,11 @@
<tbody>
{% for doc in stats %}
<tr>
<td class="col--id">{{ doc._id|truncate(6, True, '') }}</td>
<td class="col--id">{{ doc._id }}</td>
<td class="col--status">{{ doc.status }}</td>
<td class="col--os">{{ doc.osinfo }}</td>
<td class="col--cpu" data-tooltip="{{ doc.flags }}">{{ doc.cpu }}</td>
<td class="col--memory">{{ doc.memory }}</td>
<td class="col--memory"{% if doc.stack %} data-tooltip="Stack size: {{ doc.stack }}MB"{% endif %}>{{ doc.memory }}</td>
</tr>
{% endfor %}
</tbody>