mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-02-14 19:35:38 +08:00
v1.4.1
This commit is contained in:
@@ -57,6 +57,28 @@
|
||||
<node-region-selector></node-region-selector>
|
||||
<p class="comment">设置区域后可以根据区域进行流量统计和计费。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>所属从集群</td>
|
||||
<td>
|
||||
<div>
|
||||
<div>
|
||||
<input type="hidden" name="secondaryClusterIds" :value="JSON.stringify(secondaryClusterIds)"/>
|
||||
<table class="ui table">
|
||||
<tr>
|
||||
<td>
|
||||
<div v-if="secondaryClusters.length > 0">
|
||||
<div class="ui label basic small" v-for="(cluster, index) in secondaryClusters"><span class="grey">{{cluster.name}}</span> <a href="" title="删除" @click.prevent="removeSecondary(index)"><i class="icon remove small"></i></a> </div>
|
||||
</div>
|
||||
<div style="margin-top: 0.6em">
|
||||
<button class="ui button tiny" type="button" @click.prevent="addSecondary">+</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
|
||||
@@ -24,6 +24,30 @@ Tea.context(function () {
|
||||
})
|
||||
}
|
||||
|
||||
this.secondaryClusters = []
|
||||
this.secondaryClusterIds = this.secondaryClusters.map(function (v) {
|
||||
return v.id
|
||||
})
|
||||
|
||||
this.addSecondary = function () {
|
||||
let that = this
|
||||
let selectedClusterIds = [this.clusterId].concat(this.secondaryClusterIds)
|
||||
teaweb.popup("/clusters/selectPopup?selectedClusterIds=" + selectedClusterIds.join(",") + "&mode=multiple", {
|
||||
height: "30em",
|
||||
width: "50em",
|
||||
callback: function (resp) {
|
||||
if (resp.data.cluster != null) {
|
||||
that.secondaryClusterIds.push(resp.data.cluster.id)
|
||||
that.secondaryClusters.push(resp.data.cluster)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
this.removeSecondary = function (index) {
|
||||
this.secondaryClusterIds.$remove(index)
|
||||
this.secondaryClusters.$remove(index)
|
||||
}
|
||||
|
||||
/**
|
||||
* 安装
|
||||
*/
|
||||
@@ -35,6 +59,7 @@ Tea.context(function () {
|
||||
this.installMethod = method
|
||||
}
|
||||
|
||||
|
||||
this.selectSSHHost = function (host) {
|
||||
this.sshHost = host
|
||||
this.changeSSHHost()
|
||||
|
||||
@@ -14,6 +14,23 @@
|
||||
<p class="comment">当前节点可以使用的最多的CPU线程数,如果为0则默认为总的CPU线程数。<pro-warning-label></pro-warning-label></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-show="teaIsPlus">
|
||||
<td class="title">BYPASS 移动</td>
|
||||
<td>
|
||||
<div class="ui checkbox">
|
||||
<input type="checkbox" id="bypassMobileCheckbox" :name="bypassMobileCheckbox" v-model="node.bypassMobileCheckbox" @change="changeBypassMobile"/>
|
||||
<label for="bypassMobileCheckbox"><slot></slot></label>
|
||||
</div>
|
||||
<p class="comment"><plus-label></plus-label>选中后,可优化移动网络访问成功率,对于正常站点,会增加访问延迟,节点需安装nftables。<pro-warning-label></pro-warning-label></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-show="teaIsPlus && node.bypassMobileCheckbox">
|
||||
<td class="title">BYPASS 移动,窗口大小</td>
|
||||
<td>
|
||||
<input type="text" name="bypassMobile" v-model="node.bypassMobile"/>
|
||||
<p class="comment"><plus-label></plus-label>TCP接收窗口大小,默认值17。<pro-warning-label></pro-warning-label></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h4>DNS解析</h4>
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
Tea.context(function () {
|
||||
this.success = NotifyReloadSuccess("保存成功")
|
||||
|
||||
this.changeBypassMobile = function(bypassMobile) {
|
||||
if (bypassMobile.target.checked) {
|
||||
this.node.bypassMobile = 17;
|
||||
} else {
|
||||
this.node.bypassMobile = 0;
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user