Initial commit (code only without large binaries)

This commit is contained in:
robin
2026-02-15 18:58:44 +08:00
commit 35df75498f
9442 changed files with 1495866 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{$layout "layout_popup"}
<h3>修改浏览器信息</h3>
<form class="ui form" data-tea-action="$" data-tea-success="success">
<input type="hidden" name="browserId" :value="browser.id"/>
<csrf-token></csrf-token>
<table class="ui table definition selectable">
<tr>
<td class="title">浏览器名称 *</td>
<td>
<input type="text" name="name" ref="focus" v-model="browser.name"/>
</td>
</tr>
<tr>
<td>代号</td>
<td>
<values-box name="codes" :v-values="browser.codes"></values-box>
</td>
</tr>
<tr>
<td>数据ID *</td>
<td>
<input type="text" name="dataId" maxlength="10" style="width: 10em" v-model="browser.dataId"/>
</td>
</tr>
</table>
<submit-btn></submit-btn>
</form>

View File

@@ -0,0 +1,27 @@
{$layout "layout_popup"}
<h3>创建浏览器信息</h3>
<form class="ui form" data-tea-action="$" data-tea-success="success">
<csrf-token></csrf-token>
<table class="ui table definition selectable">
<tr>
<td class="title">浏览器名称 *</td>
<td>
<input type="text" name="name" ref="focus"/>
</td>
</tr>
<tr>
<td>代号</td>
<td>
<values-box name="codes"></values-box>
</td>
</tr>
<tr>
<td>数据ID *</td>
<td>
<input type="text" name="dataId" maxlength="10" style="width: 10em"/>
</td>
</tr>
</table>
<submit-btn></submit-btn>
</form>

View File

@@ -0,0 +1,42 @@
{$layout}
<second-menu>
<menu-item @click.prevent="createBrowser">[添加新浏览器]</menu-item>
</second-menu>
<form class="ui form" method="get" action="/settings/client-browsers">
<div class="ui fields inline">
<div class="ui field">
<input type="text" name="keyword" v-model="keyword" placeholder="关键词"/>
</div>
<div class="ui field">
<button type="submit" class="ui button">搜索</button>&nbsp;
<a href="/settings/client-browsers" v-if="keyword.length > 0">[清除条件]</a>
</div>
</div>
</form>
<p class="comment" v-if="browsers.length == 0">暂时还没有浏览器信息。</p>
<table class="ui table selectable celled" v-if="browsers.length > 0">
<thead>
<tr>
<th class="three wide">浏览器名称</th>
<th>代号</th>
<th class="two wide">数据ID</th>
<th class="one op">操作</th>
</tr>
</thead>
<tr v-for="browser in browsers">
<td>{{browser.name}}</td>
<td>
<span class="ui label basic" v-for="code in browser.codes"><keyword :v-word="keyword">{{code}}</keyword></span>
</td>
<td>{{browser.dataId}}</td>
<td>
<a href="" @click.prevent="updateBrowser(browser.dataId)">修改</a>
</td>
</tr>
</table>
<page-box></page-box>

View File

@@ -0,0 +1,19 @@
Tea.context(function () {
this.createBrowser = function () {
teaweb.popup(".createPopup", {
height: "24em",
callback: function () {
teaweb.successRefresh("保存成功")
}
})
}
this.updateBrowser = function (dataId) {
teaweb.popup(".browser.updatePopup?dataId=" + dataId, {
height: "24em",
callback: function () {
teaweb.successRefresh("保存成功")
}
})
}
})