Initial commit (code only without large binaries)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<first-menu>
|
||||
<menu-item href="/settings/authority" code="index">认证信息</menu-item>
|
||||
<!--<menu-item href="/settings/authority/nodes" code="node">认证节点</menu-item>-->
|
||||
<menu-item href="/settings/authority/apply" code="apply">申请</menu-item>
|
||||
<menu-item href="/settings/authority/activate" code="activate">激活</menu-item>
|
||||
</first-menu>
|
||||
@@ -0,0 +1,5 @@
|
||||
textarea {
|
||||
line-height: 1.5 !important;
|
||||
font-size: 0.9em !important;
|
||||
}
|
||||
/*# sourceMappingURL=activate.css.map */
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["activate.less"],"names":[],"mappings":"AAAA;EACC,gBAAA;EACA,gBAAA","file":"activate.css"}
|
||||
@@ -0,0 +1,19 @@
|
||||
{$layout}
|
||||
{$template "menu"}
|
||||
|
||||
<div class="margin"></div>
|
||||
|
||||
<form class="ui form" data-tea-action="$" data-tea-success="success" data-tea-before="before" data-tea-done="done" data-tea-timeout="1800" spellcheck="false">
|
||||
<csrf-token></csrf-token>
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
<td class="title">注册码 *</td>
|
||||
<td>
|
||||
<textarea rows="8" name="key" ref="focus"></textarea>
|
||||
<p class="comment">请输入商业版/企业版注册码。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<submit-btn v-show="!isRequesting">激活</submit-btn>
|
||||
<button class="ui button disabled" v-show="isRequesting">激活中...</button>
|
||||
</form>
|
||||
12
EdgeAdmin/web/views/@default/settings/authority/activate.js
Normal file
12
EdgeAdmin/web/views/@default/settings/authority/activate.js
Normal file
@@ -0,0 +1,12 @@
|
||||
Tea.context(function () {
|
||||
this.success = NotifySuccess("激活成功", "/settings/authority")
|
||||
|
||||
this.isRequesting = false
|
||||
this.before = function () {
|
||||
this.isRequesting = true
|
||||
}
|
||||
|
||||
this.done = function () {
|
||||
this.isRequesting = false
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
textarea {
|
||||
line-height: 1.5 !important;
|
||||
font-size: 0.9em !important;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
textarea {
|
||||
line-height: 1.5 !important;
|
||||
font-size: 0.9em !important;
|
||||
background: #eee !important;
|
||||
}
|
||||
/*# sourceMappingURL=apply.css.map */
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["apply.less"],"names":[],"mappings":"AAAA;EACC,gBAAA;EACA,gBAAA;EACA,gBAAA","file":"apply.css"}
|
||||
13
EdgeAdmin/web/views/@default/settings/authority/apply.html
Normal file
13
EdgeAdmin/web/views/@default/settings/authority/apply.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{$layout}
|
||||
{$template "menu"}
|
||||
|
||||
<div class="margin"></div>
|
||||
<div style="margin-bottom: 0.5em">购买商业版后或者申请免费试用时,需要向本系统开发者官方先提交申请码。</div>
|
||||
|
||||
<form class="ui form">
|
||||
<textarea rows="4" autocomplete="off" spellcheck="false">{{requestCode}}</textarea>
|
||||
</form>
|
||||
|
||||
<div style="line-height: 1.8; margin-top: 0.5em"><strong>请拷贝上面的申请码发送给系统开发者,以便生成注册码</strong>。注册码生成后,只能在当前服务器上使用管理平台;如需迁移当前管理系统到别的服务器,请向官方重新申请注册码(重新申请后,商业版有效期保持不变)。</div>
|
||||
|
||||
<div style="line-height: 1.8; margin-top: 0.5em">虚拟机或容器重启、系统升级、配置变更等可能会导致申请码失效,请小心操作。</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
textarea {
|
||||
line-height: 1.5 !important;
|
||||
font-size: 0.9em !important;
|
||||
background: #eee !important;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
.message .icon.gem {
|
||||
font-size: 1.2em !important;
|
||||
}
|
||||
.message ul {
|
||||
line-height: 1.8;
|
||||
}
|
||||
/*# sourceMappingURL=index.css.map */
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["index.less"],"names":[],"mappings":"AAAA,QAAS,MAAK;EACb,gBAAA;;AAGD,QACC;EACC,gBAAA","file":"index.css"}
|
||||
100
EdgeAdmin/web/views/@default/settings/authority/index.html
Normal file
100
EdgeAdmin/web/views/@default/settings/authority/index.html
Normal file
@@ -0,0 +1,100 @@
|
||||
{$layout}
|
||||
{$template "menu"}
|
||||
|
||||
<div v-if="key == null">
|
||||
<div class="margin"></div>
|
||||
<div class="ui message error icon" v-if="plusErr.length > 0">
|
||||
<i class="icon warning circle"></i>
|
||||
出现异常错误,请重新激活:{{plusErr}}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<warning-message>
|
||||
你暂时尚未激活商业版本:
|
||||
<ul>
|
||||
<li><a href="https://goedge.cn/commercial" target="_blank">了解专业版</a> </li>
|
||||
<li><a href="https://goedge.cn/docs/Plus/Price.md" target="_blank">价格体系</a> </li>
|
||||
<li><a href="https://goedge.taobao.com/" target="_blank">淘宝购买专业版</a></li>
|
||||
<li><a href="https://goedge.cn/community" target="_blank">其他方式购买专业版</a> </li>
|
||||
<li><a href="https://goedge.cn/community" target="_blank">联系试用</a> </li>
|
||||
</ul>
|
||||
</warning-message>
|
||||
<warning-message>
|
||||
<a href="/settings/authority/activate">如果你已经有注册码,点这里激活 »</a>
|
||||
</warning-message>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="key != null">
|
||||
<div class="margin"></div>
|
||||
|
||||
<div class="ui message green icon" v-if="!key.isExpired && plusErr.length == 0">
|
||||
<i class="icon gem outline small yellow"></i>
|
||||
<div class="content">
|
||||
恭喜您已经成为尊贵的商业版用户。
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui message error icon" v-if="plusErr.length > 0">
|
||||
<i class="icon warning circle"></i>
|
||||
{{plusErr}}
|
||||
</div>
|
||||
|
||||
<div class="margin"></div>
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
<td class="title">状态</td>
|
||||
<td>
|
||||
<span class="red" v-if="key.isExpiring">即将过期</span>
|
||||
<span class="red" v-else-if="key.isExpired">已过期</span>
|
||||
<span class="green" v-else>已认证</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="key.editionName != null && key.editionName.length > 0">
|
||||
<td>版本</td>
|
||||
<td>{{key.editionName}}</td>
|
||||
</tr>
|
||||
<tr v-if="key.nodes > 0">
|
||||
<td>节点数限制</td>
|
||||
<td>{{key.nodes}}个节点<span class="small grey">(已使用{{quota.countNodes}}个节点)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>公司/组织名</td>
|
||||
<td>{{key.company}}
|
||||
<div v-if="key.company != null && key.company.indexOf('试用') > 0">
|
||||
<span class="red">试用版本</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">开始日期</td>
|
||||
<td>{{key.dayFrom}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">结束日期</td>
|
||||
<td><span :class="{green: key.dayTo == '终身授权' ? 'green' : ''}">{{key.dayTo}}</span>
|
||||
<div v-if="key.isExpiring" style="margin-top: 0.5em">
|
||||
<span class="red">即将过期</span>
|
||||
</div>
|
||||
<div v-else-if="key.isExpired" style="margin-top: 0.5em">
|
||||
<span class="red">已过期,请尽快更新认证信息。</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>开通组件</td>
|
||||
<td>
|
||||
<span v-if="key.components.length == 0" class="ui label basic small">*</span>
|
||||
<span v-for="c in key.components" class="ui label basic small">{{c}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>验证方式</td>
|
||||
<td>
|
||||
<span v-if="key.method == 'remote'">远程</span>
|
||||
<span v-else>离线</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="comment">数据更新于{{key.updatedTime}}。</p>
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
.message .icon.gem {
|
||||
font-size: 1.2em!important;
|
||||
}
|
||||
|
||||
.message {
|
||||
ul {
|
||||
line-height: 1.8;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user