Refactor: rename mc_process_config files etc

This commit is contained in:
unitwk 2023-11-06 15:19:51 +08:00
parent af8a25bcb5
commit d4b9529c5d
8 changed files with 15 additions and 42 deletions

View File

@ -56,28 +56,28 @@ declare module 'vue' {
ATypographyText: typeof import('ant-design-vue/es')['TypographyText']
ATypographyTitle: typeof import('ant-design-vue/es')['TypographyTitle']
AUpload: typeof import('ant-design-vue/es')['Upload']
'Bds_server.properties': typeof import('./src/components/mc_process_config/bds_server.properties.vue')['default']
'Bds_server.properties': typeof import("./src/components/InstanceConfigEditor/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']
'Bukkit.yml': typeof import("./src/components/InstanceConfigEditor/bukkit.yml.vue")["default"]
'Bungeecord.config.yml': typeof import("./src/components/InstanceConfigEditor/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']
CopyButton: typeof import('./src/components/CopyButton.vue')['default']
DataStatistic: typeof import('./src/components/DataStatistic.vue')['default']
Default: typeof import('./src/components/default.vue')['default']
Default: typeof import("./src/components/default.vue")["default"]
Editor: typeof import('./src/components/Editor.vue')['default']
'Eula.txt': typeof import('./src/components/mc_process_config/eula.txt.vue')['default']
'Eula.txt': typeof import("./src/components/InstanceConfigEditor/eula.txt.vue")["default"]
FadeUpAnimation: typeof import('./src/components/FadeUpAnimation.vue')['default']
IconBtn: typeof import('./src/components/IconBtn.vue')['default']
InnerCard: typeof import('./src/components/InnerCard.vue')['default']
InputDialogProvider: typeof import('./src/components/InputDialogProvider.vue')['default']
InstanceConfigEditor: typeof import('./src/components/InstanceConfigEditor.vue')['default']
LayoutCard: typeof import('./src/components/LayoutCard.vue')['default']
LeftMenuBtn: typeof import('./src/components/LeftMenuBtn.vue')['default']
LeftMenusPanel: typeof import('./src/components/LeftMenusPanel.vue')['default']
LineOption: typeof import('./src/components/LineOption.vue')['default']
Loading: typeof import('./src/components/Loading.vue')['default']
Mc_process_config: typeof import('./src/components/mc_process_config.vue')['default']
MyselfInfoDialog: typeof import('./src/components/MyselfInfoDialog.vue')['default']
NewCardList: typeof import('./src/components/NewCardList/index.vue')['default']
NodeSimpleChart: typeof import('./src/components/NodeSimpleChart.vue')['default']
@ -86,6 +86,6 @@ declare module 'vue' {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
SelectInstances: typeof import('./src/components/SelectInstances.vue')['default']
'Server.properties': typeof import('./src/components/mc_process_config/server.properties.vue')['default']
'Server.properties': typeof import("./src/components/InstanceConfigEditor/server.properties.vue")["default"]
}
}

View File

@ -4,7 +4,7 @@ import LineOption from "@/components/LineOption.vue";
import { getDescriptionByTitle } from "@/tools/common";
import { jsonToMap } from "@/tools/common";
import isEmpty from "lodash/isEmpty";
import { configData } from "@/config/mc_process_config";
import { configData } from "@/config/instanceConfigMap";
const props = defineProps<{
config: Record<string, any>;

View File

@ -65,7 +65,9 @@ onMounted(() => {
<a-select-option :value="true">{{ t("是") }}</a-select-option>
<a-select-option :value="false">{{ t("否") }}</a-select-option>
</a-select>
<a-button v-if="type == CONTROL.SELECT" @click="forceType"><EditOutlined /></a-button>
<a-button v-if="type == CONTROL.SELECT" class="ml-8" @click="forceType">
<EditOutlined />
</a-button>
</div>
</a-col>
</a-row>

View File

@ -214,21 +214,6 @@ export const INSTANCE_CONFIGS: InstanceConfigs[] = [
TYPE_MINECRAFT_BUKKIT
]
},
{
fileName: "[Spigot] spigot.yml",
path: "spigot.yml",
redirect: "spigot.yml",
type: "yml",
info: t(
"Spigot 配置文件,能够进一步的控制服务器的行为和具体参数,一些更为高级的限制都在此配置文件中,他拓展了 Bukkit 配置文件上的不足之处。"
),
category: [
TYPE_MINECRAFT_SPIGOT,
TYPE_MINECRAFT_PAPER,
TYPE_MINECRAFT_JAVA,
TYPE_MINECRAFT_BUKKIT
]
},
{
fileName: "[Bukkit] bukkit.yml",
path: "bukkit.yml",

View File

@ -9,7 +9,8 @@ import { useLayoutCardTools } from "@/hooks/useCardTools";
import { useAppRouters } from "@/hooks/useAppRouters";
import { toUnicode } from "@/tools/common";
import Loading from "@/components/Loading.vue";
import configComponent from "@/components/mc_process_config.vue";
import configComponent from "@/components/InstanceConfigEditor.vue";
import { DownOutlined } from "@ant-design/icons-vue";
const props = defineProps<{
card: LayoutCard;
@ -132,10 +133,7 @@ onMounted(async () => {
</a-menu-item>
</a-menu>
</template>
<a-button type="primary">
{{ t("更多操作") }}
<DownOutlined />
</a-button>
<a-button type="primary"> {{ t("更多操作") }}<DownOutlined /> </a-button>
</a-dropdown>
</template>
</BetweenMenus>

View File

@ -102,18 +102,6 @@ onMounted(async () => {
</BetweenMenus>
</a-col>
<a-col :span="24">
<a-typography-paragraph>
<a-typography-text>
{{
t(
"配置文件适配工作由开发团队与开源社区开发者共同开发。如果没有看见您需要的配置文件,请前往实例配置界面手动选择服务端/或衍生类服务端类型。"
)
}}
</a-typography-text>
</a-typography-paragraph>
</a-col>
<a-col :span="24">
<CardPanel style="height: 100%">
<template #body>

View File

@ -6,7 +6,7 @@ import { $t } from "../i18n";
function requestSpeedLimit(ctx: Koa.ParameterizedContext) {
const SESSION_REQ_TIME = "lastRequestTime";
const INV = 100;
const INV = 40;
const currentTime = new Date().getTime();
const LastTime = ctx.session?.[SESSION_REQ_TIME];
if (!ctx.session) return false;