mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-11-27 06:59:54 +08:00
Feat: add bungeecord.config.yml translation
This commit is contained in:
parent
ae1a14bab8
commit
e77cfb50b1
1
frontend/components.d.ts
vendored
1
frontend/components.d.ts
vendored
@ -60,6 +60,7 @@ declare module 'vue' {
|
||||
'Bds_server.properties': typeof import('./src/components/mc_process_config/bds_server.properties.vue')['default']
|
||||
BetweenMenus: typeof import('./src/components/BetweenMenus.vue')['default']
|
||||
'Bukkit.yml': typeof import('./src/components/mc_process_config/bukkit.yml.vue')['default']
|
||||
'Bungeecord.config.yml': typeof import('./src/components/mc_process_config/bungeecord.config.yml.vue')['default']
|
||||
CardError: typeof import('./src/components/CardError.vue')['default']
|
||||
CardOperator: typeof import('./src/components/CardOperator.vue')['default']
|
||||
CardPanel: typeof import('./src/components/CardPanel.vue')['default']
|
||||
|
@ -0,0 +1,97 @@
|
||||
<script setup lang="ts">
|
||||
import { t } from "@/lang/i18n";
|
||||
import LineOption from "@/components/LineOption.vue";
|
||||
import { getDescriptionByTitle } from "@/tools/common";
|
||||
import { jsonToMap } from "@/tools/common";
|
||||
|
||||
const props = defineProps<{
|
||||
config: Object;
|
||||
}>();
|
||||
|
||||
const description = {
|
||||
prevent_proxy_connections: t("是否向 Mojang 发送玩家 IP 数据以阻止使用了代理的玩家进入服务器"),
|
||||
listeners: [
|
||||
{
|
||||
query_port: t("UDP查询端口"),
|
||||
motd: t(
|
||||
"当仅有一个默认服务器时,服务器将会显示给玩家的 Motd。当 ping_passthrough 被开启时,此项无效"
|
||||
),
|
||||
tab_list: t("连接到服务器的玩家的 TAB 列表所显示的内容格式"),
|
||||
query_enabled: t("是否开启 UDP 查询"),
|
||||
proxy_protocol: t("是否开启对 HAProxy 的支持"),
|
||||
forced_hosts: t("端口转发设置"),
|
||||
ping_passthrough: t("是否开启 ping 穿透"),
|
||||
priorities: t("优先级设置"),
|
||||
bind_local_address: t("是否显示 BungeeCord 正在监听的 IP 地址"),
|
||||
host: t("监听的 IP 地址和端口"),
|
||||
max_players: t(
|
||||
"玩家客户端将会显示的最大玩家数,默认值为 1。此项只作为装饰,并未真实的最大玩家数设置"
|
||||
),
|
||||
tab_size: t("显示在 TAB 列表上的最大玩家数量"),
|
||||
force_default_server: t("每次玩家进入服务器时,是否强制将玩家传送到默认服务器中")
|
||||
}
|
||||
],
|
||||
remote_ping_cache: t(
|
||||
"BungeeCord 应在多长时间内以毫秒为单位使用服务器Ping的缓存结果而不是手动Ping它们以获取玩家数量,输入 -1 禁用"
|
||||
),
|
||||
network_compression_threshold: "",
|
||||
permissions: {
|
||||
default: t("默认用户组权限"),
|
||||
admin: t("管理员用户组权限")
|
||||
},
|
||||
log_pings: t("是否在控制台记录玩家客户端向 BungeeCord 发起 ping 请求的记录"),
|
||||
connection_throttle: t("断开时间"),
|
||||
connection_throttle_limit: t("断开次数"),
|
||||
server_connect_timeout: t("连接超时时间"),
|
||||
timeout: t("超时时间"),
|
||||
player_limit: t("整个 BungeeCord 实例能够接受的最大玩家数量,默认值为 -1,即不限数量"),
|
||||
ip_forward: t("是否启用 IP 追踪"),
|
||||
groups: t("权限组设置"),
|
||||
remote_ping_timeout: t(
|
||||
"BungeeCord 将在多长时间内以毫秒为单位尝试对服务器进行Ping以获取玩家数量,然后取消连接"
|
||||
),
|
||||
log_commands: t("是否在控制台记录玩家输入的指令(仅记录 BungeeCord 指令)"),
|
||||
stats: t("用于统计目的,请不要更改或删除"),
|
||||
online_mode: t("正版验证"),
|
||||
forge_support: t("是否启用对 Forge 的支持"),
|
||||
disabled_commands: t("禁用的指令"),
|
||||
servers: t("下游服务端设置,只有在此处设置过的下游服务器才可被连接")
|
||||
};
|
||||
|
||||
const config_ = jsonToMap(props.config);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a-col :span="24">
|
||||
<CardPanel style="height: 100%">
|
||||
<template #body>
|
||||
<a-typography>
|
||||
<a-typography-title :level="5">{{ t("关于配置文件") }}</a-typography-title>
|
||||
<a-typography-paragraph>
|
||||
{{
|
||||
t(
|
||||
"此配置适用于 BungeeCord 群组服务端软件,但由于此配置文件略微有些复杂,大部分配置只能进行简单修改,建议您使用文件在线管理功能编辑此文件。"
|
||||
)
|
||||
}}
|
||||
</a-typography-paragraph>
|
||||
</a-typography>
|
||||
</template>
|
||||
</CardPanel>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<CardPanel style="height: 100%">
|
||||
<template #body>
|
||||
<!-- 根据一层 Map 对象遍历所有选项 -->
|
||||
<div v-for="(item, index) in config_" :key="index">
|
||||
<!-- 选项标题与选项传值,组件会自动判断其值类型采用不同组件 -->
|
||||
<LineOption :option-value="config_" :option-key="index">
|
||||
<!-- 选项标题 -->
|
||||
<template #title>{{ index }}</template>
|
||||
<!-- 选项中文解释 -->
|
||||
<template #info>{{ getDescriptionByTitle(description, index) }}</template>
|
||||
</LineOption>
|
||||
</div>
|
||||
</template>
|
||||
</CardPanel>
|
||||
</a-col>
|
||||
</template>
|
@ -13,6 +13,7 @@ import Loading from "@/components/Loading.vue";
|
||||
import eulaTxt from "@/components/mc_process_config/eula.txt.vue";
|
||||
import serverProperties from "@/components/mc_process_config/server.properties.vue";
|
||||
import bukkitYml from "@/components/mc_process_config/bukkit.yml.vue";
|
||||
import bungeecordConfigYml from "@/components/mc_process_config/bungeecord.config.yml.vue";
|
||||
import bdsServerProperties from "@/components/mc_process_config/bds_server.properties.vue";
|
||||
|
||||
const props = defineProps<{
|
||||
@ -33,7 +34,7 @@ const component: { [key: string]: Component } = {
|
||||
"common/eula.txt": eulaTxt,
|
||||
// "bukkit/spigot.yml": spigotYml,
|
||||
"bukkit/bukkit.yml": bukkitYml,
|
||||
// "bungeecord/config.yml": configYml,
|
||||
"bungeecord/config.yml": bungeecordConfigYml,
|
||||
"bds/server.properties": bdsServerProperties
|
||||
// "mohist/mohist.yml": mohistYml,
|
||||
// "paper/paper.yml": paperYml,
|
||||
|
Loading…
Reference in New Issue
Block a user