实现Web静态文件分发

This commit is contained in:
GoEdgeLab
2020-09-26 11:21:52 +08:00
parent 86229e5a6f
commit afe4156395
14 changed files with 216 additions and 33 deletions

View File

@@ -37,7 +37,10 @@
width: 4px;
}
.left-box.disabled {
opacity: 0.3;
opacity: 0.1;
}
.left-box.disabled:hover {
opacity: 1.0;
}
.left-box.tiny {
top: 10.5em;

File diff suppressed because one or more lines are too long

View File

@@ -49,7 +49,11 @@
}
.left-box.disabled {
opacity: 0.3;
opacity: 0.1;
}
.left-box.disabled:hover {
opacity: 1.0;
}
.left-box.tiny {

View File

@@ -1,5 +1,4 @@
{$layout}
{$template "/left_menu"}
<div class="right-box">
@@ -8,15 +7,8 @@
<div class="right-box tiny">
<form class="ui form" data-tea-success="success" data-tea-action="$">
<input type="hidden" name="webId" :value="webConfig.id"/>
<table class="ui table selectable definition">
<tr>
<td class="title">Web目录</td>
<td>
<input type="text" name="root" v-model="webConfig.root" ref="focus"/>
</td>
</tr>
</table>
<input type="hidden" name="webId" :value="webId"/>
<http-web-root-box :v-root-config="rootConfig" :v-is-location="true"></http-web-root-box>
<submit-btn></submit-btn>
</form>
</div>

View File

@@ -0,0 +1,11 @@
{$layout "layout_popup"}
<h3>添加首页文件</h3>
<form class="ui form" data-tea-action="$" data-tea-success="success">
<table class="ui table selectable definition">
<tr>
<td>首页文件名 *</td>
<td><input type="text" name="index" maxlength="200" ref="focus"/></td>
</tr>
</table>
<submit-btn></submit-btn>
</form>

View File

@@ -0,0 +1,3 @@
Tea.context(function () {
this.success = NotifyPopup
})

View File

@@ -4,16 +4,8 @@
<div class="right-box">
<form class="ui form" data-tea-success="success" data-tea-action="$">
<input type="hidden" name="serverId" :value="serverId"/>
<input type="hidden" name="webId" :value="webConfig.id"/>
<table class="ui table selectable definition">
<tr>
<td class="title">Web目录</td>
<td>
<input type="text" name="root" v-model="webConfig.root" ref="focus"/>
</td>
</tr>
</table>
<input type="hidden" name="webId" :value="webId"/>
<http-web-root-box :v-root-config="rootConfig"></http-web-root-box>
<submit-btn></submit-btn>
</form>
</div>