调整目录结构

This commit is contained in:
刘祥超
2020-11-27 15:18:32 +08:00
parent e3eeee146b
commit 534a3f77f8
42 changed files with 56 additions and 199 deletions

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "policy_menu"}
<h3>选择集群</h3>
@@ -30,5 +28,4 @@
</tr>
</table>
<submit-btn v-if="!isRequesting">提交</submit-btn>
</form>
</div>
</form>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
<second-menu>
<menu-item href="/servers/components/cache" code="index">列表</menu-item>
<span class="item">|</span>
@@ -35,5 +33,4 @@
</tr>
</table>
<div class="page" v-html="page"></div>
</div>
<div class="page" v-html="page"></div>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "policy_menu"}
<table class="ui table definition selectable">
@@ -66,5 +64,4 @@
</td>
</tr>
</tbody>
</table>
</div>
</table>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "policy_menu"}
<h3>选择集群</h3>
@@ -34,5 +32,4 @@
</tr>
</table>
<submit-btn v-if="!isRequesting">提交</submit-btn>
</form>
</div>
</form>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "policy_menu"}
<h3>选择集群</h3>
@@ -36,5 +34,4 @@
</tr>
</table>
<submit-btn v-if="!isRequesting">提交</submit-btn>
</form>
</div>
</form>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "policy_menu"}
<h3>选择集群</h3>
@@ -30,5 +28,4 @@
</tr>
</table>
<submit-btn v-if="!isRequesting">提交</submit-btn>
</form>
</div>
</form>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "policy_menu"}
<h3>选择集群</h3>
@@ -69,5 +67,4 @@
</tr>
</table>
<submit-btn v-if="!isRequestingRead">提交</submit-btn>
</form>
</div>
</form>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "policy_menu"}
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
@@ -75,5 +73,4 @@
</tbody>
</table>
<submit-btn></submit-btn>
</form>
</div>
</form>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
<first-menu>
<menu-item href="/servers/components/groups" active="true">列表</menu-item>
<span class="item">|</span>
@@ -36,5 +34,4 @@
</table>
</div>
<p v-if="groups.length > 0" class="comment">可以拖动左侧的<i class="icon bars"></i>排序。</p>
</div>
<p v-if="groups.length > 0" class="comment">可以拖动左侧的<i class="icon bars"></i>排序。</p>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
<input type="hidden" name="globalConfigJSON" :value="JSON.stringify(globalConfig)"/>
<h4 style="margin-top:0.5em">域名相关配置</h4>
@@ -53,5 +51,3 @@
</table>
<submit-btn>保存</submit-btn>
</form>
</div>

View File

@@ -1,39 +0,0 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
<first-menu>
<menu-item v-for="type in types" :href="'/servers/components/ip-library?type=' + type.code" :active="type.code == selectedType">{{type.name}}</menu-item>
<span class="item">|</span>
<a href="" class="item" @click.prevent="upload()">[上传]</a>
</first-menu>
<p class="comment" v-if="libraries.length == 0">暂时还没有IP库。</p>
<div v-if="libraries.length > 0">
<div class="margin"></div>
<table class="ui table selectable celled">
<thead>
<tr>
<th>文件名</th>
<th>文件尺寸</th>
<th>上传时间</th>
<th class="two op">操作</th>
</tr>
</thead>
<tr v-for="library in libraries">
<td>
<span v-if="library.file != null">{{library.file.filename}}</span>
<span v-else>-</span>
</td>
<td>
<span v-if="library.file != null">{{library.file.sizeMB}}MB</span>
<span v-else>-</span>
</td>
<td>{{library.createdTime}}</td>
<td>
<a :href="'/servers/components/ip-library/download?libraryId=' + library.id" target="_blank">下载</a> &nbsp; <a href="" @click.prevent="deleteLibrary(library.id)">删除</a>
</td>
</tr>
</table>
</div>
</div>

View File

@@ -1,24 +0,0 @@
Tea.context(function () {
this.upload = function () {
teaweb.popup("/servers/components/ip-library/uploadPopup", {
callback: function () {
teaweb.success("上传成功", function () {
teaweb.reload()
})
}
})
}
this.deleteLibrary = function (libraryId) {
let that = this
teaweb.confirm("确定要删除此IP库吗", function () {
that.$post(".delete")
.params({
"libraryId": libraryId
})
.success(function () {
teaweb.reload()
})
})
}
})

View File

@@ -1,25 +0,0 @@
{$layout "layout_popup"}
<h3>上传IP库</h3>
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success" data-tea-timeout="120" data-tea-before="before" data-tea-done="done">
<table class="ui table definition selectable">
<tr>
<td>IP库类型 *</td>
<td>
<select name="type" class="ui dropdown auto-width" @change="changeType()" v-model="selectedTypeCode">
<option v-for="type in types" :value="type.code">{{type.name}}</option>
</select>
<p class="comment">{{selectedTypeDescription}}</p>
</td>
</tr>
<tr>
<td class="title">选择IP库文件 *</td>
<td>
<input type="file" name="file" :accept="selectedTypeExt"/>
</td>
</tr>
</table>
<submit-btn v-if="!isRequesting"></submit-btn>
<button class="ui button disabled" type="button" v-if="isRequesting">上传中...</button>
</form>

View File

@@ -1,28 +0,0 @@
Tea.context(function () {
this.isRequesting = false
this.selectedTypeCode = this.types[0].code
this.selectedTypeDescription = this.types[0].description
this.selectedTypeExt = this.types[0].ext
this.success = NotifyPopup
this.before = function () {
this.isRequesting = true
}
this.done = function () {
this.isRequesting = false
}
this.changeType = function () {
let that = this
let selectedType = this.types.$find(function (k, v) {
return v.code == that.selectedTypeCode
})
if (selectedType == null) {
return
}
this.selectedTypeDescription = selectedType.description
this.selectedTypeExt = selectedType.ext
}
})

View File

@@ -1,8 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "waf_menu"}
<p class="ui message">此功能暂未开放,敬请期待。</p>
</div>
<p class="ui message">此功能暂未开放,敬请期待。</p>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "waf_menu"}
<h3>分组<a href="" @click.prevent="updateGroup(group.id)">[修改]</a></h3>
@@ -65,5 +63,4 @@
</tbody>
</table>
<p class="comment" v-if="group.sets != null && group.sets.length > 1">所有规则匹配顺序为从上到下,可以拖动左侧的<i class="icon bars"></i>排序。</p>
</div>
<p class="comment" v-if="group.sets != null && group.sets.length > 1">所有规则匹配顺序为从上到下,可以拖动左侧的<i class="icon bars"></i>排序。</p>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "waf_menu"}
<second-menu style="margin-top:-1em">
@@ -43,5 +41,4 @@
</tbody>
</table>
<p class="comment" v-if="groups.length > 0">所有规则匹配顺序为从上到下,可以拖动左侧的<i class="icon bars"></i>排序。</p>
</div>
<p class="comment" v-if="groups.length > 0">所有规则匹配顺序为从上到下,可以拖动左侧的<i class="icon bars"></i>排序。</p>

View File

@@ -1,8 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "waf_menu"}
<p class="ui message">此功能暂未开放,敬请期待。</p>
</div>
<p class="ui message">此功能暂未开放,敬请期待。</p>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
<second-menu>
<menu-item href="/servers/components/waf" code="index">列表</menu-item>
<span class="item">|</span>
@@ -34,5 +32,4 @@
</tr>
</table>
<div class="page" v-html="page"></div>
</div>
<div class="page" v-html="page"></div>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "../waf_menu"}
{$template "menu"}
@@ -49,5 +47,4 @@
</tr>
</table>
<submit-btn></submit-btn>
</form>
</div>
</form>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "../waf_menu"}
{$template "menu"}
@@ -33,5 +31,4 @@
</tr>
</table>
<div class="page" v-html="page"></div>
</div>
<div class="page" v-html="page"></div>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "../waf_menu"}
{$template "menu"}
@@ -35,5 +33,4 @@
</tr>
</table>
<submit-btn></submit-btn>
</form>
</div>
</form>

View File

@@ -9,9 +9,7 @@
<link rel="stylesheet" href="/js/pikaday.triangle.css"/>
{$end}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "waf_menu"}
<form method="get" class="ui form small" :action="path" autocomplete="off">
@@ -51,5 +49,4 @@
<span class="disabled">&nbsp; | &nbsp;</span>
<a :href="path + '?requestId=' + nextRequestId + '&day=' + day + '&firewallPolicyId=' + firewallPolicyId + '&groupId=' + groupId" v-if="hasMore">下一页</a>
<span v-else class="disabled">下一页</span>
</div>
</div>
</div>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "waf_menu"}
<table class="ui table definition selectable">
@@ -54,5 +52,4 @@
<tr v-for="server in servers">
<td>{{server.name}}<link-icon :href="'/servers/server?serverId=' + server.id"></link-icon></td>
</tr>
</table>
</div>
</table>

View File

@@ -1,8 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "waf_menu"}
<p class="ui message">此功能暂未开放,敬请期待。</p>
</div>
<p class="ui message">此功能暂未开放,敬请期待。</p>

View File

@@ -1,7 +1,5 @@
{$layout}
{$template "/left_menu_top"}
<div class="right-box without-tabbar">
{$template "waf_menu"}
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
@@ -52,5 +50,4 @@
</tbody>
</table>
<submit-btn></submit-btn>
</form>
</div>
</form>