mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-02-05 15:29:35 +08:00
更新 翻译文件&隐藏一些功能
This commit is contained in:
parent
71735494a9
commit
bfb7a5849c
@ -1,60 +1,61 @@
|
||||
(function () {
|
||||
MCSERVER.findPropertiesShow = function (key) {
|
||||
var SuwingsLoveYou = {
|
||||
"generator-settings": "用于自定义超平坦世界的生成,不生成超平坦世界请留空",
|
||||
"allow-nether": "是否允许下界(包括地狱)",
|
||||
"level-name": "世界(地图)名称 不要使用中文",
|
||||
"enable-query": "是否允许使用GameSpy4协议的服务器监听器",
|
||||
"allow-flight": "是否允许玩家飞行(在任何游戏模式下)",
|
||||
"server-port": "服务器端口",
|
||||
"level-type": "地图的生成类型",
|
||||
"enable-rcon": "是否允许远程访问服务器控制台(RCON)",
|
||||
"force-gamemode": "强制玩家加入时为默认游戏模式",
|
||||
"level-seed": "地图种子 默认留空",
|
||||
"server-ip": "服务器ip,若不绑定请留空",
|
||||
"max-build-height": "玩家在服务器放置方块的最高高度",
|
||||
"spawn-npcs": "是否生成村民",
|
||||
"white-list": "是否开启白名单",
|
||||
"spawn-animals": "是否生成动物",
|
||||
"snooper-enabled": "启用数据采集",
|
||||
hardcore: "极限模式(死后自动封禁)",
|
||||
"texture-pack": "材质包",
|
||||
"online-mode": "在线(正版)验证",
|
||||
pvp: "是否允许玩家互相攻击",
|
||||
difficulty: "难度0=和平 1=简单 2=普通 3=困难",
|
||||
"player-idle-timeout": "允许的挂机时间,单位为分钟 超过限制后自动T出服务器",
|
||||
gamemode: "游戏模式 0=生存 1=创造 2=冒险 3=旁观",
|
||||
"max-players": "服务器最大玩家数限制",
|
||||
"spawn-monsters": "生成攻击型生物(怪物)",
|
||||
"view-distance": "服务器发送给客户端的数据量,决定玩家能设置的视野",
|
||||
"generate-structures": "生成世界时生成结构(如村庄)禁止后地牢和地下要塞仍然生成",
|
||||
motd: "服务器信息展示 若使用ColorMotd等插件可留空该选项",
|
||||
"op-permission-level": "OP权限等级 ",
|
||||
"announce-player-achievements": "玩家获得成就时,是否在服务器聊天栏显示(是否允许其装X)",
|
||||
"network-compression-threshold": "网络压缩阈值",
|
||||
"resource-pack-sha1": "资源包的SHA-1值,必须为小写十六进制,不是必填选项",
|
||||
"enable-command-block": "启用命令方块",
|
||||
"resource-pack": "统一资源标识符 (URI) 指向一个资源包。玩家可选择是否使用",
|
||||
"max-world-size": "最大世界大小",
|
||||
"function-permission-level": "设定函数的默认权限等级",
|
||||
"max-tick-time": "设置每个tick花费的最大毫秒数",
|
||||
"prevent-proxy-connections": "是否允许玩家使用网络代理进入服务器",
|
||||
"rcon.port": "设置RCON远程访问的端口号",
|
||||
"rcon.password": "设置RCON远程访问的密码(参见enable-rcon)",
|
||||
"query.port": "设置监听服务器的端口号(参见 enable-rcon)",
|
||||
"use-native-transport": "是否使用针对Linux平台的数据包收发优化 [ 仅Linux ]",
|
||||
debug: "调试模式",
|
||||
"broadcast-rcon-to-ops": "向OP广播RCON信息",
|
||||
"broadcast-console-to-ops": "向OP广播服务器控制台信息",
|
||||
"enforce-whitelist": "在服务器上强制使用白名单",
|
||||
"spawn-protection": "通过将该值进行 2x+1 的运算来决定出生点的保护半径,设置为0将只保护出生点下方那一个方块。"
|
||||
(function() {
|
||||
MCSERVER.findPropertiesShow = function(key) {
|
||||
var translate = {
|
||||
"require-resource-pack": "是否需要资源包",
|
||||
"enable-jmx-monitoring": "是否启用 JMX 监视",
|
||||
"sync-chunk-writes": "是否启用同步区块写入",
|
||||
"generator-settings": "用于自定义超平坦世界的生成,不生成超平坦世界请留空",
|
||||
"allow-nether": "是否允许下界(包括地狱)",
|
||||
"level-name": "世界(地图)名称 不要使用中文",
|
||||
"enable-query": "是否允许使用GameSpy4协议的服务器监听器",
|
||||
"allow-flight": "是否允许玩家飞行(在任何游戏模式下)",
|
||||
"server-port": "服务器端口",
|
||||
"level-type": "地图的生成类型",
|
||||
"enable-rcon": "是否允许远程访问服务器控制台(RCON)",
|
||||
"force-gamemode": "强制玩家加入时为默认游戏模式",
|
||||
"level-seed": "地图种子 默认留空",
|
||||
"server-ip": "服务器ip,若不绑定请留空",
|
||||
"max-build-height": "玩家在服务器放置方块的最高高度",
|
||||
"spawn-npcs": "是否生成村民",
|
||||
"white-list": "是否开启白名单",
|
||||
"spawn-animals": "是否生成动物",
|
||||
"snooper-enabled": "启用数据采集",
|
||||
"hardcore": "极限模式(死后自动封禁)",
|
||||
"texture-pack": "材质包",
|
||||
"online-mode": "在线(正版)验证",
|
||||
"pvp": "是否允许玩家互相攻击",
|
||||
"difficulty": "难度: peaceful, easy, normal, or hard",
|
||||
"player-idle-timeout": "允许的挂机时间,单位为分钟 超过限制后自动T出服务器",
|
||||
"gamemode": "游戏模式 0=生存 1=创造 2=冒险 3=旁观",
|
||||
"max-players": "服务器最大玩家数限制",
|
||||
"spawn-monsters": "生成攻击型生物(怪物)",
|
||||
"view-distance": "服务器发送给客户端的数据量,决定玩家能设置的视野",
|
||||
"generate-structures": "生成世界时生成结构(如村庄)禁止后地牢和地下要塞仍然生成",
|
||||
"motd": "服务器信息展示 若使用ColorMotd等插件可留空该选项",
|
||||
"op-permission-level": "OP权限等级 ",
|
||||
"announce-player-achievements": "玩家获得成就时,是否在服务器聊天栏显示(是否允许其装X)",
|
||||
"network-compression-threshold": "网络压缩阈值",
|
||||
"resource-pack-sha1": "资源包的SHA-1值,必须为小写十六进制,不是必填选项",
|
||||
"enable-command-block": "启用命令方块",
|
||||
"resource-pack": "统一资源标识符 (URI) 指向一个资源包。玩家可选择是否使用",
|
||||
"max-world-size": "最大世界大小",
|
||||
"function-permission-level": "设定函数的默认权限等级",
|
||||
"max-tick-time": "设置每个tick花费的最大毫秒数",
|
||||
"prevent-proxy-connections": "是否允许玩家使用网络代理进入服务器",
|
||||
"rcon.port": "设置RCON远程访问的端口号",
|
||||
"rcon.password": "设置RCON远程访问的密码(参见enable-rcon)",
|
||||
"query.port": "设置监听服务器的端口号(参见 enable-rcon)",
|
||||
"use-native-transport": "是否使用针对Linux平台的数据包收发优化 [ 仅Linux ]",
|
||||
"debug": "调试模式",
|
||||
"broadcast-rcon-to-ops": "向OP广播RCON信息",
|
||||
"broadcast-console-to-ops": "向OP广播服务器控制台信息",
|
||||
"enforce-whitelist": "在服务器上强制使用白名单",
|
||||
"spawn-protection": "通过将该值进行 2x+1 的运算来决定出生点的保护半径,设置为0将只保护出生点下方那一个方块。"
|
||||
}
|
||||
if (translate.hasOwnProperty(key)) {
|
||||
return translate[key];
|
||||
} else {
|
||||
return " ";
|
||||
}
|
||||
};
|
||||
|
||||
if (SuwingsLoveYou.hasOwnProperty(key)) {
|
||||
return SuwingsLoveYou[key];
|
||||
} else {
|
||||
//Not find, Return space
|
||||
return " ";
|
||||
}
|
||||
};
|
||||
})();
|
||||
})();
|
@ -47,10 +47,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="Panel" :class="serverData.autoRestart?'PanelGreen':'PanelGray'">
|
||||
<div class="PanelTitle">崩溃监视与配置</div>
|
||||
<div class="PanelTitle">配置文件</div>
|
||||
<div class="PanelBody">
|
||||
<div class="PanelItem" v-on:click="toProperties()">
|
||||
<span class="glyphicon glyphicon-cog" aria-hidden="true"> </span> Server.properties 配置文件
|
||||
<span class="glyphicon glyphicon-cog" aria-hidden="true"> </span> Server.Properties
|
||||
</div>
|
||||
<transition name="slide-fade">
|
||||
<div class="PanelItem" v-on:click="toAutoRestart(false)" v-show="serverData.autoRestart">
|
||||
@ -58,12 +58,16 @@
|
||||
<span style="color: #29b90c">打开</span>
|
||||
</div>
|
||||
</transition>
|
||||
<!-- 此功能有问题缺陷,因 9.X 版本发布,8.7 最终版本修复此问题收益已经不大,此功能现已隐藏 -->
|
||||
<!-- 若您想恢复此功能,只需要将注释掉的 HTML 代码恢复即可使用 -->
|
||||
<!--
|
||||
<transition name="slide-fade">
|
||||
<div class="PanelItem" v-on:click="toAutoRestart(true)" v-show="!serverData.autoRestart">
|
||||
<span class="glyphicon glyphicon-retweet" aria-hidden="true"> </span> 崩溃重启:
|
||||
<span style="color: #818181">关闭</span>
|
||||
</div>
|
||||
</transition>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="Panel" :class="serverData.autoStart?'PanelGreen':'PanelGray'">
|
||||
|
@ -1,114 +1,109 @@
|
||||
<div id="ServerProperties" class="OneContainer">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="Panel PanelBlack">
|
||||
<div class="PanelTitle">服务端 server.properties 配置文件</div>
|
||||
<div class="PanelBody">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 PanelItemF">
|
||||
<p>您可以进行如下操作:</p>
|
||||
<div class="PanelItem" v-on:click="toBackConsole()">
|
||||
<span class="glyphicon glyphicon-backward" aria-hidden="true"></span>
|
||||
返回到控制台
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="toUpdateProperties()">
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
|
||||
更新配置
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="re()">
|
||||
<span class="glyphicon glyphicon-repeat" aria-hidden="true"></span>
|
||||
从内存刷新
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="toUpdatePropertiesFormFile()">
|
||||
<span class="glyphicon glyphicon-retweet" aria-hidden="true"></span>
|
||||
从文件刷新
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>{{ serverName }} 服务器 Properties 配置文件更改</p>
|
||||
<p>解释: true 代表开, false 代表关,空白代表无值,请注意格式修改,确认无误保存即可,重启服务端生效</p>
|
||||
<table class="PropertiesList" width="100%">
|
||||
<tr>
|
||||
<th>原字段键值</th>
|
||||
<th>第三方解释</th>
|
||||
<th>存在的值</th>
|
||||
</tr>
|
||||
<tr v-for="(val, key) in properties">
|
||||
<th v-text="key"></th>
|
||||
<th v-text="findProperties(key)"></th>
|
||||
<th>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="text" class="form-control" aria-describedby="basic-addon1" v-model="properties[key]" />
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="Panel PanelBlack">
|
||||
<div class="PanelTitle">服务端 server.properties 配置文件</div>
|
||||
<div class="PanelBody">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 PanelItemF">
|
||||
<div class="PanelItem" v-on:click="toBackConsole()">
|
||||
<span class="glyphicon glyphicon-backward" aria-hidden="true"></span> 返回到控制台
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="toUpdateProperties()">
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 更新配置
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="re()">
|
||||
<span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> 从内存刷新
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="toUpdatePropertiesFormFile()">
|
||||
<span class="glyphicon glyphicon-retweet" aria-hidden="true"></span> 从文件刷新
|
||||
</div>
|
||||
<p>
|
||||
文件配置参考:
|
||||
<a href="https://minecraft.fandom.com/zh/wiki/Server.properties">https://minecraft.fandom.com/zh/wiki/Server.properties</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>解释: true 代表启用,false 代表关闭,空白代表无值,请注意格式修改,确认无误保存即可,重启服务端生效。</p>
|
||||
<table class="PropertiesList" width="100%">
|
||||
<tr>
|
||||
<th>原字段键值</th>
|
||||
<th>第三方解释</th>
|
||||
<th>存在的值</th>
|
||||
</tr>
|
||||
<tr v-for="(val, key) in properties">
|
||||
<th v-text="key"></th>
|
||||
<th v-text="findProperties(key)"></th>
|
||||
<th>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="text" class="form-control" aria-describedby="basic-addon1" v-model="properties[key]" />
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="col-sm-12 PanelItemF">
|
||||
<div class="PanelItem" v-on:click="toBackConsole()">
|
||||
<span class="glyphicon glyphicon-backward" aria-hidden="true"></span> 返回到控制台
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="toUpdateProperties()">
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 更新配置
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="re()">
|
||||
<span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> 重新刷新读取
|
||||
</div>
|
||||
<hr />
|
||||
<p>最后,请检查是否符合格式,条件,仔细检查后即可确认修改,或者直接返回到其他页面直接舍弃修改。</p>
|
||||
<p>如果显示不全或不是最新,您可以单击 [重新刷新读取] 来进行获取更新,设置完毕请重启服务器。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="col-sm-12 PanelItemF">
|
||||
<div class="PanelItem" v-on:click="toBackConsole()">
|
||||
<span class="glyphicon glyphicon-backward" aria-hidden="true"></span>
|
||||
返回到控制台
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="toUpdateProperties()">
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
|
||||
更新配置
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="re()">
|
||||
<span class="glyphicon glyphicon-repeat" aria-hidden="true"></span>
|
||||
重新刷新读取
|
||||
</div>
|
||||
<hr />
|
||||
<p>最后,请检查是否符合格式,条件,仔细检查后即可确认修改,或者直接返回到其他页面直接舍弃修改。</p>
|
||||
<p>如果显示不全或不是最新,您可以单击 [重新刷新读取] 来进行获取更新,设置完毕请重启服务器。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="./common/js/properties.js"></script>
|
||||
<script>
|
||||
// 定义页面地址
|
||||
TOOLS.definePage("template/component/properties", "server/properties", MCSERVER.listenServername);
|
||||
// 定义页面地址
|
||||
TOOLS.definePage("template/component/properties", "server/properties", MCSERVER.listenServername);
|
||||
|
||||
MI.rListener("onload", function () {
|
||||
// MCSERVER.autoColmDo();
|
||||
MI.rListener("onload", function() {
|
||||
// MCSERVER.autoColmDo();
|
||||
|
||||
VIEW_MODEL.newVue("ServerProperties", {
|
||||
el: "#ServerProperties",
|
||||
methods: {
|
||||
toUpdateProperties: function () {
|
||||
if (!this.properties) return;
|
||||
var obj = {
|
||||
serverName: this.serverName,
|
||||
properties: this.properties
|
||||
};
|
||||
WS.sendMsg("server/properties_update", JSON.stringify(obj));
|
||||
},
|
||||
toBackConsole: function () {
|
||||
RES.redirectPage("./template/component/console.html", "server/console", this.serverName);
|
||||
},
|
||||
re: function () {
|
||||
RES.redirectPage("./template/component/properties.html", "server/properties", this.serverName);
|
||||
},
|
||||
toUpdatePropertiesFormFile: function () {
|
||||
WS.sendMsg("server/properties_update_reload", this.serverName);
|
||||
},
|
||||
findProperties: function (key) {
|
||||
return MCSERVER.findPropertiesShow(key);
|
||||
}
|
||||
}
|
||||
VIEW_MODEL.newVue("ServerProperties", {
|
||||
el: "#ServerProperties",
|
||||
methods: {
|
||||
toUpdateProperties: function() {
|
||||
if (!this.properties) return;
|
||||
var obj = {
|
||||
serverName: this.serverName,
|
||||
properties: this.properties
|
||||
};
|
||||
WS.sendMsg("server/properties_update", JSON.stringify(obj));
|
||||
},
|
||||
toBackConsole: function() {
|
||||
RES.redirectPage("./template/component/console.html", "server/console", this.serverName);
|
||||
},
|
||||
re: function() {
|
||||
RES.redirectPage("./template/component/properties.html", "server/properties", this.serverName);
|
||||
},
|
||||
toUpdatePropertiesFormFile: function() {
|
||||
WS.sendMsg("server/properties_update_reload", this.serverName);
|
||||
},
|
||||
findProperties: function(key) {
|
||||
return MCSERVER.findPropertiesShow(key);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
MI.rListener("onend", function () {
|
||||
VIEW_MODEL["ServerProperties"] = null;
|
||||
});
|
||||
</script>
|
||||
MI.rListener("onend", function() {
|
||||
VIEW_MODEL["ServerProperties"] = null;
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user