Skip to content

Commit 23899e1

Browse files
committed
完善一些文字细节
1 parent ecbc872 commit 23899e1

File tree

9 files changed

+19
-15
lines changed

9 files changed

+19
-15
lines changed

web/public/js/components.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3126,7 +3126,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
31263126
<div class="ui field">
31273127
<div class="ui input left right labeled small">
31283128
<span class="ui label basic" style="font-weight: normal">关键词</span>
3129-
<input type="text" name="keyword" v-model="keyword" placeholder="路径、UserAgent等..." size="30"/>
3129+
<input type="text" name="keyword" v-model="keyword" placeholder="路径、UserAgent、请求ID等..." size="30"/>
31303130
<a class="ui label basic" :class="{disabled: keyword.length == 0}" @click.prevent="cleanKeyword"><i class="icon remove small"></i></a>
31313131
</div>
31323132
</div>
@@ -4125,7 +4125,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
41254125
<div class="ui field" :class="{error: hasSecondError}"><input type="text" v-model="second" maxlength="2" style="width:4em" placeholder="秒" @input="change"/></div>
41264126
</div>
41274127
<p class="comment">常用时间:<a href="" @click.prevent="nextDays(1)"> &nbsp;1天&nbsp; </a> <span class="disabled">|</span> <a href="" @click.prevent="nextDays(3)"> &nbsp;3天&nbsp; </a> <span class="disabled">|</span> <a href="" @click.prevent="nextDays(7)"> &nbsp;一周&nbsp; </a> <span class="disabled">|</span> <a href="" @click.prevent="nextDays(30)"> &nbsp;30天&nbsp; </a> </p>
4128-
</div>`}),Vue.component("label-on",{props:["v-is-on"],template:'<div><span v-if="vIsOn" class="ui label tiny green basic">已启用</span><span v-if="!vIsOn" class="ui label tiny red basic">已停用</span></div>'}),Vue.component("code-label",{methods:{click:function(e){this.$emit("click",e)}},template:'<span class="ui label basic tiny" style="padding: 3px;margin-left:2px;margin-right:2px" @click.prevent="click"><slot></slot></span>'}),Vue.component("code-label-plain",{template:'<span class="ui label basic tiny" style="padding: 3px;margin-left:2px;margin-right:2px"><slot></slot></span>'}),Vue.component("tiny-label",{template:'<span class="ui label tiny" style="margin-bottom: 0.5em"><slot></slot></span>'}),Vue.component("tiny-basic-label",{template:'<span class="ui label tiny basic" style="margin-bottom: 0.5em"><slot></slot></span>'}),Vue.component("micro-basic-label",{template:'<span class="ui label tiny basic" style="margin-bottom: 0.5em; font-size: 0.7em; padding: 4px"><slot></slot></span>'}),Vue.component("grey-label",{props:["color"],data:function(){let e="grey";return{labelColor:e=null!=this.color&&0<this.color.length?"red":e}},template:'<span class="ui label basic tiny" :class="labelColor" style="margin-top: 0.4em; font-size: 0.7em; border: 1px solid #ddd!important; font-weight: normal;"><slot></slot></span>'}),Vue.component("optional-label",{template:'<em><span class="grey">(可选)</span></em>'}),Vue.component("plus-label",{template:'<span style="color: #B18701;">Plus专属功能。</span>'}),Vue.component("pro-warning-label",{template:'<span><i class="icon warning circle"></i>注意:通常不需要修改;如要修改,请在专家指导下进行。</span>'}),Vue.component("first-menu",{props:[],template:' \t\t<div class="first-menu"> \t\t\t<div class="ui menu text blue small">\t\t\t\t<slot></slot>\t\t\t</div> \t\t\t<div class="ui divider"></div> \t\t</div>'}),Vue.component("more-options-indicator",{data:function(){return{visible:!1}},methods:{changeVisible:function(){this.visible=!this.visible,null!=Tea.Vue&&(Tea.Vue.moreOptionsVisible=this.visible),this.$emit("change",this.visible)}},template:'<a href="" style="font-weight: normal" @click.prevent="changeVisible()"><slot><span v-if="!visible">更多选项</span><span v-if="visible">收起选项</span></slot> <i class="icon angle" :class="{down:!visible, up:visible}"></i> </a>'}),Vue.component("page-size-selector",{data:function(){let t=window.location.search,i=10;if(0<t.length){let e=(t=t.substr(1)).split("&");e.forEach(function(t){t=t.split("=");if(2==t.length&&"pageSize"==t[0]){let e=t[1];e.match(/^\d+$/)&&(i=parseInt(e,10),(isNaN(i)||i<1)&&(i=10))}})}return{pageSize:i}},watch:{pageSize:function(){window.ChangePageSize(this.pageSize)}},template:`<select class="ui dropdown" style="height:34px;padding-top:0;padding-bottom:0;margin-left:1em;color:#666" v-model="pageSize">
4128+
</div>`}),Vue.component("label-on",{props:["v-is-on"],template:'<div><span v-if="vIsOn" class="ui label tiny green basic">已启用</span><span v-if="!vIsOn" class="ui label tiny red basic">已停用</span></div>'}),Vue.component("code-label",{methods:{click:function(e){this.$emit("click",e)}},template:'<span class="ui label basic tiny" style="padding: 3px;margin-left:2px;margin-right:2px" @click.prevent="click"><slot></slot></span>'}),Vue.component("code-label-plain",{template:'<span class="ui label basic tiny" style="padding: 3px;margin-left:2px;margin-right:2px"><slot></slot></span>'}),Vue.component("tiny-label",{template:'<span class="ui label tiny" style="margin-bottom: 0.5em"><slot></slot></span>'}),Vue.component("tiny-basic-label",{template:'<span class="ui label tiny basic" style="margin-bottom: 0.5em"><slot></slot></span>'}),Vue.component("micro-basic-label",{template:'<span class="ui label tiny basic" style="margin-bottom: 0.5em; font-size: 0.7em; padding: 4px"><slot></slot></span>'}),Vue.component("grey-label",{props:["color"],data:function(){let e="grey";return{labelColor:e=null!=this.color&&0<this.color.length?"red":e}},template:'<span class="ui label basic tiny" :class="labelColor" style="margin-top: 0.4em; font-size: 0.7em; border: 1px solid #ddd!important; font-weight: normal;"><slot></slot></span>'}),Vue.component("optional-label",{template:'<em><span class="grey">(可选)</span></em>'}),Vue.component("plus-label",{template:'<span style="color: #B18701;">Plus专属功能。</span>'}),Vue.component("pro-warning-label",{template:'<span><i class="icon warning circle yellow"></i>注意:通常不需要修改;如要修改,请在专家指导下进行。</span>'}),Vue.component("first-menu",{props:[],template:' \t\t<div class="first-menu"> \t\t\t<div class="ui menu text blue small">\t\t\t\t<slot></slot>\t\t\t</div> \t\t\t<div class="ui divider"></div> \t\t</div>'}),Vue.component("more-options-indicator",{data:function(){return{visible:!1}},methods:{changeVisible:function(){this.visible=!this.visible,null!=Tea.Vue&&(Tea.Vue.moreOptionsVisible=this.visible),this.$emit("change",this.visible)}},template:'<a href="" style="font-weight: normal" @click.prevent="changeVisible()"><slot><span v-if="!visible">更多选项</span><span v-if="visible">收起选项</span></slot> <i class="icon angle" :class="{down:!visible, up:visible}"></i> </a>'}),Vue.component("page-size-selector",{data:function(){let t=window.location.search,i=10;if(0<t.length){let e=(t=t.substr(1)).split("&");e.forEach(function(t){t=t.split("=");if(2==t.length&&"pageSize"==t[0]){let e=t[1];e.match(/^\d+$/)&&(i=parseInt(e,10),(isNaN(i)||i<1)&&(i=10))}})}return{pageSize:i}},watch:{pageSize:function(){window.ChangePageSize(this.pageSize)}},template:`<select class="ui dropdown" style="height:34px;padding-top:0;padding-bottom:0;margin-left:1em;color:#666" v-model="pageSize">
41294129
<option value="10">[每页]</option><option value="10" selected="selected">10条</option><option value="20">20条</option><option value="30">30条</option><option value="40">40条</option><option value="50">50条</option><option value="60">60条</option><option value="70">70条</option><option value="80">80条</option><option value="90">90条</option><option value="100">100条</option>
41304130
</select>`}),Vue.component("second-menu",{template:' \t\t<div class="second-menu"> \t\t\t<div class="ui menu text blue small">\t\t\t\t<slot></slot>\t\t\t</div> \t\t\t<div class="ui divider"></div> \t\t</div>'}),Vue.component("loading-message",{template:`<div class="ui message loading">
41314131
<div class="ui active inline loader small"></div> &nbsp; <slot></slot>
@@ -4163,7 +4163,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
41634163
<td>域名</td>
41644164
<td>
41654165
<input type="text" v-model="urlHost"/>
4166-
<p class="comment">已经绑定到此集群的一个域名;如果为空则使用节点IP作为域名。</p>
4166+
<p class="comment">已经绑定到此集群的一个域名;如果为空则使用节点IP作为域名。<span class="red" v-if="urlProtocol == 'https' && urlHost.length == 0">如果协议是https,这里必须填写一个已经设置了SSL证书的域名。</span></p>
41674167
</td>
41684168
</tr>
41694169
<tr>

web/public/js/components.src.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8931,7 +8931,7 @@ Vue.component("http-access-log-search-box", {
89318931
<div class="ui field">
89328932
<div class="ui input left right labeled small">
89338933
<span class="ui label basic" style="font-weight: normal">关键词</span>
8934-
<input type="text" name="keyword" v-model="keyword" placeholder="路径、UserAgent等..." size="30"/>
8934+
<input type="text" name="keyword" v-model="keyword" placeholder="路径、UserAgent、请求ID等..." size="30"/>
89358935
<a class="ui label basic" :class="{disabled: keyword.length == 0}" @click.prevent="cleanKeyword"><i class="icon remove small"></i></a>
89368936
</div>
89378937
</div>
@@ -12414,7 +12414,7 @@ Vue.component("plus-label", {
1241412414

1241512415
// 提醒设置项为专业设置
1241612416
Vue.component("pro-warning-label", {
12417-
template: `<span><i class="icon warning circle"></i>注意:通常不需要修改;如要修改,请在专家指导下进行。</span>`
12417+
template: `<span><i class="icon warning circle yellow"></i>注意:通常不需要修改;如要修改,请在专家指导下进行。</span>`
1241812418
})
1241912419

1242012420

@@ -12732,7 +12732,7 @@ Vue.component("health-check-config-box", {
1273212732
<td>域名</td>
1273312733
<td>
1273412734
<input type="text" v-model="urlHost"/>
12735-
<p class="comment">已经绑定到此集群的一个域名;如果为空则使用节点IP作为域名。</p>
12735+
<p class="comment">已经绑定到此集群的一个域名;如果为空则使用节点IP作为域名。<span class="red" v-if="urlProtocol == 'https' && urlHost.length == 0">如果协议是https,这里必须填写一个已经设置了SSL证书的域名。</span></p>
1273612736
</td>
1273712737
</tr>
1273812738
<tr>

web/public/js/components/common/health-check-config-box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Vue.component("health-check-config-box", {
185185
<td>域名</td>
186186
<td>
187187
<input type="text" v-model="urlHost"/>
188-
<p class="comment">已经绑定到此集群的一个域名;如果为空则使用节点IP作为域名。</p>
188+
<p class="comment">已经绑定到此集群的一个域名;如果为空则使用节点IP作为域名。<span class="red" v-if="urlProtocol == 'https' && urlHost.length == 0">如果协议是https,这里必须填写一个已经设置了SSL证书的域名。</span></p>
189189
</td>
190190
</tr>
191191
<tr>

web/public/js/components/common/labels.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ Vue.component("plus-label", {
6161

6262
// 提醒设置项为专业设置
6363
Vue.component("pro-warning-label", {
64-
template: `<span><i class="icon warning circle"></i>注意:通常不需要修改;如要修改,请在专家指导下进行。</span>`
64+
template: `<span><i class="icon warning circle yellow"></i>注意:通常不需要修改;如要修改,请在专家指导下进行。</span>`
6565
})

web/public/js/components/server/http-access-log-search-box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Vue.component("http-access-log-search-box", {
7878
<div class="ui field">
7979
<div class="ui input left right labeled small">
8080
<span class="ui label basic" style="font-weight: normal">关键词</span>
81-
<input type="text" name="keyword" v-model="keyword" placeholder="路径、UserAgent等..." size="30"/>
81+
<input type="text" name="keyword" v-model="keyword" placeholder="路径、UserAgent、请求ID等..." size="30"/>
8282
<a class="ui label basic" :class="{disabled: keyword.length == 0}" @click.prevent="cleanKeyword"><i class="icon remove small"></i></a>
8383
</div>
8484
</div>

web/views/@default/clusters/cluster/nodes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</div>
4343
<div class="ui field">
4444
<button class="ui button" type="submit">搜索</button> &nbsp;
45-
<a :href="'/clusters/cluster/nodes?clusterId=' + clusterId" v-if="regionId > 0 || groupId > 0 || installState > 0 || activeState > 0 || keyword.length > 0 || level > 0">[清除条件]</a>
45+
<a :href="'/clusters/cluster/nodes?clusterId=' + clusterId" v-if="regionId > 0 || groupId > 0 || groupId < 0 || installState > 0 || activeState > 0 || keyword.length > 0 || level > 0">[清除条件]</a>
4646
</div>
4747
</div>
4848
</form>

web/views/@default/servers/groups/group/settings/cache/createPopup.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{$layout "layout_popup"}
22

3-
<h3 v-if="!isReverse">添加缓存设置</h3>
4-
<h3 v-if="isReverse">添加不缓存设置</h3>
3+
<h3 v-if="!isReverse && cacheRef == null">添加缓存设置</h3>
4+
<h3 v-if="!isReverse && cacheRef != null">修改缓存设置</h3>
5+
<h3 v-if="isReverse && cacheRef == null">添加不缓存设置</h3>
6+
<h3 v-if="isReverse && cacheRef != null">添加不缓存设置</h3>
57
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
68
<table class="ui table definition selectable">
79
<tbody is="http-cache-ref-box" :v-cache-ref="cacheRef" :v-is-reverse="isReverse"></tbody>

web/views/@default/servers/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</select>
2828
</div>
2929
<div class="ui field">
30-
<input type="text" name="keyword" style="width:10em" placeholder="关键词" v-model="keyword"/>
30+
<input type="text" name="keyword" style="width:10em" placeholder="关键词、域名等" v-model="keyword"/>
3131
</div>
3232
<div class="ui field">
3333
<button type="submit" class="ui button">搜索</button>

web/views/@default/servers/server/settings/cache/createPopup.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{$layout "layout_popup"}
22

3-
<h3 v-if="!isReverse">添加缓存设置</h3>
4-
<h3 v-if="isReverse">添加不缓存设置</h3>
3+
<h3 v-if="!isReverse && cacheRef == null">添加缓存设置</h3>
4+
<h3 v-if="!isReverse && cacheRef != null">修改缓存设置</h3>
5+
<h3 v-if="isReverse && cacheRef == null">添加不缓存设置</h3>
6+
<h3 v-if="isReverse && cacheRef != null">添加不缓存设置</h3>
57
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
68
<table class="ui table definition selectable">
79
<tbody is="http-cache-ref-box" :v-cache-ref="cacheRef" :v-is-reverse="isReverse"></tbody>

0 commit comments

Comments
 (0)