2020-09-21 19:51:50 +08:00
|
|
|
|
{$layout}
|
2021-12-02 17:41:51 +08:00
|
|
|
|
{$template "../settings_menu"}
|
|
|
|
|
|
{$template "/left_menu_with_menu"}
|
2020-09-21 19:51:50 +08:00
|
|
|
|
|
2021-12-02 17:41:51 +08:00
|
|
|
|
<div class="right-box with-menu">
|
2020-09-21 19:51:50 +08:00
|
|
|
|
{$template "menu"}
|
|
|
|
|
|
<div class="margin"></div>
|
2020-11-10 12:47:24 +08:00
|
|
|
|
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
|
2020-09-21 19:51:50 +08:00
|
|
|
|
<input type="hidden" name="webId" :value="webId"/>
|
|
|
|
|
|
<table class="ui table selectable definition">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>路径匹配规则 *</td>
|
|
|
|
|
|
<td>
|
2020-09-22 11:36:51 +08:00
|
|
|
|
<input type="text" name="pattern" maxlength="500" ref="focus"/>
|
2020-09-21 19:51:50 +08:00
|
|
|
|
<p class="comment">路径通常以斜杠(/)开头,比如/hello。如果匹配类型是正则表达式匹配,则可以是一个正则表达式</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>匹配类型</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<select class="ui dropdown auto-width" name="patternType" v-model="type" @change="changePatternType(type)">
|
|
|
|
|
|
<option v-for="patternType in patternTypes" :value="patternType.type">{{patternType.name}}</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<p class="comment" v-if="selectedType != null" v-html="selectedType.description"></p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>是否终止往下匹配</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<div class="ui checkbox">
|
|
|
|
|
|
<input type="checkbox" name="isBreak" value="1"/>
|
|
|
|
|
|
<label></label>
|
|
|
|
|
|
</div>
|
2021-07-13 14:28:06 +08:00
|
|
|
|
<p class="comment">如果选中了此选项,一旦匹配成功,不会继续匹配其他的路由规则。</p>
|
2020-09-21 19:51:50 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td class="title">名称</td>
|
|
|
|
|
|
<td>
|
2020-09-22 11:36:51 +08:00
|
|
|
|
<input type="text" name="name" maxlength="100"/>
|
2020-09-21 19:51:50 +08:00
|
|
|
|
<p class="comment">可以用来说明此规则用途。。</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
2021-06-09 21:45:26 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td>匹配条件</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<http-request-conds-box></http-request-conds-box>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
2020-09-21 19:51:50 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td colspan="2"><more-options-indicator></more-options-indicator></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tbody v-show="moreOptionsVisible">
|
2021-12-12 16:38:52 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td>专属域名</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<domains-box></domains-box>
|
|
|
|
|
|
<p class="comment">默认不需要填写,表示支持所有域名。如果填写了专属域名,表示当前路由规则只会在这些域名被访问时才生效。</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
2020-09-21 19:51:50 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td>不区分大小写</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<div class="ui checkbox">
|
|
|
|
|
|
<input type="checkbox" name="isCaseInsensitive" value="1"/>
|
|
|
|
|
|
<label></label>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p class="comment">选中表示匹配规则中的路径中的英文字母不区分大小写。</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>反向匹配</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<div class="ui checkbox">
|
|
|
|
|
|
<input type="checkbox" name="isReverse" value="1"/>
|
|
|
|
|
|
<label></label>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p class="comment">选中表示匹配所有<strong>不符合规则</strong>的路径。</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>描述</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<textarea rows="3" name="description" maxlength="200"></textarea>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<submit-btn></submit-btn>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|