mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-01-03 01:26:35 +08:00
删除部分不需要的文件/阶段性提交
This commit is contained in:
5
web/views/@default/clusters/monitors/@menu.html
Normal file
5
web/views/@default/clusters/monitors/@menu.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<first-menu>
|
||||
<menu-item href="/clusters/monitors" code="index">任务</menu-item>
|
||||
<menu-item href="/clusters/monitors/logs" code="log">日志</menu-item>
|
||||
<menu-item href="/clusters/monitors/reporters" code="reporter">终端</menu-item>
|
||||
</first-menu>
|
||||
2
web/views/@default/clusters/monitors/index.html
Normal file
2
web/views/@default/clusters/monitors/index.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{$layout}
|
||||
{$template "menu"}
|
||||
2
web/views/@default/clusters/monitors/logs.html
Normal file
2
web/views/@default/clusters/monitors/logs.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{$layout}
|
||||
{$template "menu"}
|
||||
@@ -0,0 +1,41 @@
|
||||
{$layout "layout_popup"}
|
||||
|
||||
<h3>添加终端</h3>
|
||||
<form class="ui form" data-tea-success="success" data-tea-action="$">
|
||||
<csrf-token></csrf-token>
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
<td class="title">名称 *</td>
|
||||
<td>
|
||||
<input type="text" name="name" maxlength="50" ref="focus"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><more-options-indicator></more-options-indicator></td>
|
||||
</tr>
|
||||
<tbody v-show="moreOptionsVisible">
|
||||
<tr>
|
||||
<td>地域</td>
|
||||
<td>
|
||||
<input type="text" name="location" maxlength="50"/>
|
||||
<p class="comment">终端所在地域。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>网络提供商</td>
|
||||
<td>
|
||||
<input type="text" name="isp" maxlength="50"/>
|
||||
<p class="comment">终端所属网络供应商。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>允许的终端IP</td>
|
||||
<td>
|
||||
<values-box name="allowIPs"></values-box>
|
||||
<p class="comment">如果不为空,则只有这些IP才能连接API。支持单个IP、CIDR格式的IP段和IP1-IP2这样的IP段。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<submit-btn></submit-btn>
|
||||
</form>
|
||||
@@ -0,0 +1,6 @@
|
||||
{$layout}
|
||||
{$template "../menu"}
|
||||
|
||||
<second-menu>
|
||||
<menu-item @click.prevent="createReporter">[添加终端]</menu-item>
|
||||
</second-menu>
|
||||
9
web/views/@default/clusters/monitors/reporters/index.js
Normal file
9
web/views/@default/clusters/monitors/reporters/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
Tea.context(function () {
|
||||
this.createReporter = function () {
|
||||
teaweb.popup(".createPopup", function () {
|
||||
teaweb.success("保存成功", function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user