DNS支持TSIG

This commit is contained in:
刘祥超
2021-07-25 15:08:11 +08:00
parent 6b9d5cf7a0
commit 051a48bc73
9 changed files with 107 additions and 4 deletions

View File

@@ -30,7 +30,6 @@
<th>概要</th>
</tr>
</thead>
<!-- 这里之所以需要添加 :key是因为要不然不会刷新显示 -->
<tr v-for="accessLog in accessLogs" :key="accessLog.requestId">
<td>
<div v-if="accessLog.node.cluster != null">

View File

@@ -4,5 +4,6 @@
<menu-item :href="'/ns/domains/domain?domainId=' + domain.id" code="index">详情<span class="grey small">{{domain.name}}</span></menu-item>
<menu-item :href="'/ns/domains/records?domainId=' + domain.id" code="record">记录({{domain.countRecords}})</menu-item>
<menu-item :href="'/ns/domains/keys?domainId=' + domain.id" code="key">密钥({{domain.countKeys}})</menu-item>
<menu-item :href="'/ns/domains/tsig?domainId=' + domain.id" code="tsig">TSIG</menu-item>
<menu-item :href="'/ns/domains/update?domainId=' + domain.id" code="update">修改</menu-item>
</first-menu>

View File

@@ -12,8 +12,8 @@
<table class="ui table celled selectable" v-if="keys.length > 0">
<thead>
<tr>
<th class="two wide">密钥名称</th>
<th class="two wide">算法</th>
<th class="three wide">密钥名称</th>
<th class="three wide">算法</th>
<th>密码</th>
<th class="two wide">密码类型</th>
<th class="two wide">状态</th>

View File

@@ -10,7 +10,7 @@ Tea.context(function () {
this.updateKey = function (keyId) {
teaweb.popup(Tea.url(".updatePopup?keyId=" + keyId), {
height: "26em",
height: "27em",
callback: function () {
teaweb.successRefresh("保存成功")
}

View File

@@ -0,0 +1,16 @@
{$layout}
{$template "domain_menu"}
<form class="ui form" data-tea-action="$" data-tea-success="success">
<csrf-token></csrf-token>
<input type="hidden" name="domainId" :value="domain.id"/>
<table class="ui table definition selectable">
<tr>
<td class="title">是否启用TSIG *</td>
<td>
<checkbox name="isOn" v-model="tsig.isOn"></checkbox>
</td>
</tr>
</table>
<submit-btn></submit-btn>
</form>

View File

@@ -0,0 +1,3 @@
Tea.context(function () {
this.success = NotifyReloadSuccess("保存成功")
})