mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-11-27 06:59:54 +08:00
新增 关服命令&优化新闻模块
This commit is contained in:
parent
39819a472f
commit
56951f36f2
@ -19,7 +19,6 @@ function requestNewsError() {
|
||||
|
||||
//请求下载最新动态并且缓存到本地
|
||||
function requestNews() {
|
||||
|
||||
const req = http.get(requestNewsUrl, function (req) {
|
||||
var html = "";
|
||||
req.on("data", (data) => (html += data));
|
||||
|
@ -161,7 +161,7 @@
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.PanelItemF>.PanelItem {
|
||||
.PanelItemF > .PanelItem {
|
||||
display: inline-block;
|
||||
margin-right: 8px;
|
||||
width: auto;
|
||||
@ -258,7 +258,9 @@
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
#Terminal div, #Terminal input, #Terminal a {
|
||||
#Terminal div,
|
||||
#Terminal input,
|
||||
#Terminal a {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
}
|
||||
@ -266,7 +268,9 @@
|
||||
/* 控制台的手机设定 */
|
||||
|
||||
@media (max-width: 760px) {
|
||||
#Terminal div, #Terminal input, #Terminal a {
|
||||
#Terminal div,
|
||||
#Terminal input,
|
||||
#Terminal a {
|
||||
font-size: 8px;
|
||||
font-weight: 400;
|
||||
line-height: 12px;
|
||||
@ -323,4 +327,4 @@
|
||||
#PopWinContext {
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
html, body {
|
||||
html,
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
|
||||
font-size: 14px;
|
||||
color: #1a1a1a;
|
||||
@ -29,7 +30,8 @@ a {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a, input {
|
||||
a,
|
||||
input {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@ -194,21 +196,18 @@ p {
|
||||
}
|
||||
|
||||
.slide-fade-enter, .slide-fade-leave-to
|
||||
/* .slide-fade-leave-active for <2.1.8 */
|
||||
|
||||
{
|
||||
/* .slide-fade-leave-active for <2.1.8 */ {
|
||||
transform: translateX(10px);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.fade-enter-active, .fade-leave-active {
|
||||
.fade-enter-active,
|
||||
.fade-leave-active {
|
||||
transition: opacity 0.4s;
|
||||
}
|
||||
|
||||
.fade-enter, .fade-leave-to
|
||||
/* .fade-leave-active in below version 2.1.8 */
|
||||
|
||||
{
|
||||
/* .fade-leave-active in below version 2.1.8 */ {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@ -428,4 +427,4 @@ p {
|
||||
margin: -10px -12px -9px -12px;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,14 +34,12 @@
|
||||
<p>如果您 Java 环境无误,使用 "java" 环境变量即可</p>
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon">Java 路径</span>
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="java"
|
||||
placeholder="[未设定]" />
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="java" placeholder="[未设定]" />
|
||||
</div>
|
||||
<p>端根目录: [ {{ cwd }} ]</p>
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon"> 服务端文件名 </span>
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="jarName"
|
||||
placeholder="[未设定]" />
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="jarName" placeholder="[未设定]" />
|
||||
</div>
|
||||
<p>关服命令</p>
|
||||
<div class="input-group input-group-sm">
|
||||
@ -49,18 +47,16 @@
|
||||
<input type="text" class="form-control" v-model="stopCommand" placeholder="默认为 stop,^C 代表 Ctrl+C" />
|
||||
</div>
|
||||
|
||||
<p><small>设置按照 2018/10/1 格式,到期后将无法开启,需手动删除</small> </p>
|
||||
<p><small>设置按照 2018/10/1 格式,到期后将无法开启,需手动删除</small></p>
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon"> 到期限制 </span>
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="timeLimitDate"
|
||||
placeholder="[未设定 如 2018/10/1 2020/1/12]" />
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="timeLimitDate" placeholder="[未设定 如 2018/10/1 2020/1/12]" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon">启动附加参数</span>
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="addCmd"
|
||||
placeholder="[可空 列如: -server -xxx 等]" />
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="addCmd" placeholder="[可空 列如: -server -xxx 等]" />
|
||||
</div>
|
||||
<p>服务端文件与数据的目录所在地。</p>
|
||||
<div class="input-group input-group-sm">
|
||||
@ -71,19 +67,19 @@
|
||||
<p>实质是 -Xmx -Xms 参数,填写请加单位(M,G)</p>
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon"> 最大内存堆 </span>
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="Xmx"
|
||||
placeholder="[自动 如需修改请加单位]" />
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="Xmx" placeholder="[自动 如需修改请加单位]" />
|
||||
</div>
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon"> 初始内存堆 </span>
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="Xms"
|
||||
placeholder="[自动 如需修改请加单位]" />
|
||||
<input v-bind:disabled="isHighCommande" type="text" class="form-control" v-model="Xms" placeholder="[自动 如需修改请加单位]" />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p> <small>
|
||||
<p>
|
||||
<small>
|
||||
版本 1.9.X 以上可能需要输入编码为 UTF-8 <br />
|
||||
默认值: Windows 默认 GBK 编码,Linux 默认 UTF8 编码</small>
|
||||
默认值: Windows 默认 GBK 编码,Linux 默认 UTF8 编码</small
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
@ -109,8 +105,12 @@
|
||||
</p>
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon"> 自定义命令 </span>
|
||||
<input type="text" class="form-control" v-model="highCommande"
|
||||
placeholder="[ 尚未使用 | 列如: java -xxx -yyy Xmx4g Xms2g -Djline.terminal=jline.UnsupportedTerminal -jar test.jar --xxx ] " />
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
v-model="highCommande"
|
||||
placeholder="[ 尚未使用 | 列如: java -xxx -yyy Xmx4g Xms2g -Djline.terminal=jline.UnsupportedTerminal -jar test.jar --xxx ] "
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
@ -222,5 +222,5 @@
|
||||
VIEW_MODEL["ServerPanel"].oldServerName = VIEW_MODEL["ServerPanel"].name + "";
|
||||
});
|
||||
|
||||
MI.rListener("onend", function () { });
|
||||
</script>
|
||||
MI.rListener("onend", function () {});
|
||||
</script>
|
||||
|
@ -55,9 +55,10 @@
|
||||
</p>
|
||||
<p>使用 MIT License</p>
|
||||
<p>
|
||||
<small>A short and simple permissive license with conditions only requiring preservation of copyright and
|
||||
license notices. Licensed works, modifications, and larger works may be distributed
|
||||
under different terms and without source code.</small>
|
||||
<small
|
||||
>A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed
|
||||
under different terms and without source code.</small
|
||||
>
|
||||
</p>
|
||||
<br />
|
||||
</div>
|
||||
@ -88,5 +89,5 @@
|
||||
});
|
||||
});
|
||||
|
||||
MI.rListener("onend", function () { });
|
||||
</script>
|
||||
MI.rListener("onend", function () {});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user