mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 06:40:27 +08:00
优化文字
This commit is contained in:
@@ -338,7 +338,7 @@ func (this *CreateAction) RunPost(params struct {
|
|||||||
this.ErrorPage(err)
|
this.ErrorPage(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
reverseProxyRef := &serverconfigs.ReverseProxyRef{
|
var reverseProxyRef = &serverconfigs.ReverseProxyRef{
|
||||||
IsOn: true,
|
IsOn: true,
|
||||||
ReverseProxyId: resp.ReverseProxyId,
|
ReverseProxyId: resp.ReverseProxyId,
|
||||||
}
|
}
|
||||||
@@ -355,7 +355,7 @@ func (this *CreateAction) RunPost(params struct {
|
|||||||
var rootJSON []byte
|
var rootJSON []byte
|
||||||
var err error
|
var err error
|
||||||
if len(params.WebRoot) > 0 {
|
if len(params.WebRoot) > 0 {
|
||||||
rootConfig := &serverconfigs.HTTPRootConfig{}
|
var rootConfig = &serverconfigs.HTTPRootConfig{}
|
||||||
rootConfig.IsOn = true
|
rootConfig.IsOn = true
|
||||||
rootConfig.Dir = params.WebRoot
|
rootConfig.Dir = params.WebRoot
|
||||||
rootConfig.Indexes = []string{"index.html", "index.htm"}
|
rootConfig.Indexes = []string{"index.html", "index.htm"}
|
||||||
@@ -375,7 +375,7 @@ func (this *CreateAction) RunPost(params struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 包含条件
|
// 包含条件
|
||||||
includeNodes := []maps.Map{}
|
var includeNodes = []maps.Map{}
|
||||||
includeNodesJSON, err := json.Marshal(includeNodes)
|
includeNodesJSON, err := json.Marshal(includeNodes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
this.ErrorPage(err)
|
this.ErrorPage(err)
|
||||||
@@ -383,7 +383,7 @@ func (this *CreateAction) RunPost(params struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 排除条件
|
// 排除条件
|
||||||
excludeNodes := []maps.Map{}
|
var excludeNodes = []maps.Map{}
|
||||||
excludeNodesJSON, err := json.Marshal(excludeNodes)
|
excludeNodesJSON, err := json.Marshal(excludeNodes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
this.ErrorPage(err)
|
this.ErrorPage(err)
|
||||||
@@ -396,7 +396,7 @@ func (this *CreateAction) RunPost(params struct {
|
|||||||
AdminId: this.AdminId(),
|
AdminId: this.AdminId(),
|
||||||
Type: params.ServerType,
|
Type: params.ServerType,
|
||||||
Name: params.Name,
|
Name: params.Name,
|
||||||
ServerNamesJON: []byte(params.ServerNames),
|
ServerNamesJON: params.ServerNames,
|
||||||
Description: params.Description,
|
Description: params.Description,
|
||||||
NodeClusterId: clusterId,
|
NodeClusterId: clusterId,
|
||||||
IncludeNodesJSON: includeNodesJSON,
|
IncludeNodesJSON: includeNodesJSON,
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ window.teaweb = {
|
|||||||
bytesAxis: function (stats, countFunc) {
|
bytesAxis: function (stats, countFunc) {
|
||||||
let max = Math.max.apply(this, stats.map(countFunc))
|
let max = Math.max.apply(this, stats.map(countFunc))
|
||||||
let divider = 1
|
let divider = 1
|
||||||
let unit = ""
|
let unit = "B"
|
||||||
if (max >= Math.pow(1024, 6)) {
|
if (max >= Math.pow(1024, 6)) {
|
||||||
unit = "E"
|
unit = "E"
|
||||||
divider = Math.pow(1024, 6)
|
divider = Math.pow(1024, 6)
|
||||||
@@ -583,8 +583,11 @@ window.teaweb = {
|
|||||||
show: true,
|
show: true,
|
||||||
trigger: "item",
|
trigger: "item",
|
||||||
formatter: function (args) {
|
formatter: function (args) {
|
||||||
|
if (tooltipFunc != null) {
|
||||||
return tooltipFunc.apply(this, [args, values])
|
return tooltipFunc.apply(this, [args, values])
|
||||||
}
|
}
|
||||||
|
return null
|
||||||
|
}
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
left: 40,
|
left: 40,
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<td>自动设置CNAME记录<optional-label></optional-label></td>
|
<td>自动设置CNAME记录<optional-label></optional-label></td>
|
||||||
<td>
|
<td>
|
||||||
<values-box :values="cnameRecords" name="cnameRecords" placeholder="记录名" ref="cnameRecords"></values-box>
|
<values-box :values="cnameRecords" name="cnameRecords" placeholder="记录名" ref="cnameRecords"></values-box>
|
||||||
<p class="comment">除集群已创建的网站服务之外,自动解析到集群的CNAME记录,比如<code-label @click.prevent="addCnameRecord('@')">@</code-label>、<code-label @click.prevent="addCnameRecord('www')">www</code-label>。</p>
|
<p class="comment">除集群已创建的网站服务之外,自动解析到集群的CNAME记录,比如<code-label @click.prevent="addCnameRecord('www')">www</code-label>。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
<td>自动设置CNAME记录</td>
|
<td>自动设置CNAME记录</td>
|
||||||
<td>
|
<td>
|
||||||
<values-box :values="cnameRecords" name="cnameRecords" placeholder="记录名" ref="cnameRecords"></values-box>
|
<values-box :values="cnameRecords" name="cnameRecords" placeholder="记录名" ref="cnameRecords"></values-box>
|
||||||
<p class="comment">除集群已创建的网站服务之外,自动解析到集群的CNAME记录,比如<code-label @click.prevent="addCnameRecord('@')">@</code-label>、<code-label @click.prevent="addCnameRecord('www')">www</code-label>。</p>
|
<p class="comment">除集群已创建的网站服务之外,自动解析到集群的CNAME记录,比如<code-label @click.prevent="addCnameRecord('www')">www</code-label>。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user