新版本适配,类型安全、REST API 集成、i18n 改进与简体中文 README#52
Open
uitok wants to merge 14 commits into
Open
Conversation
- 消除 ~20 处 any 类型 (ActionType union, WorldSettingsValues, ResourceMetrics, ReactNode) - 创建 usePolling 通用 hook 统一 5 个轮询 hook 的 setInterval 管理 - Ban/Kick 改用 REST API 优先,RCON 作为 fallback - 新增 Unban、立即存档 (POST /save) 功能 - 新增 WorkerThreads CLI 启动参数支持 - 添加 ErrorBoundary 防止白屏崩溃 - 统一 ActionList 标题使用 formatLocale 替代字符串拼接 (支持多语言语序) - 新增 PalDefender 命令: SpawnPal, GiveEgg, Whitelist, GodMode 等 - Palguard 设定 GUI、白名单管理页面 - 清理 console.log 调试语句、修复 Translation context useMemo - 5 语言 i18n 同步更新 (en, zh_tw, zh_cn, jp, fr)
- 三个 README 文件统一添加简体中文/繁体中文/English 语言切换链接 - 新增服务器管理功能介绍 (REST API、PalDefender、白名单、性能监测等)
- 新增 update-plugins.js 自动下载最新版本插件 - 新增 check-plugin-versions.js 检查当前安装版本 - 添加 GitHub Actions 每日自动检查插件更新 - 新增 PLUGIN_VERSIONS.md 插件版本管理文档 - package.json 添加 npm run update-plugins 和 check-plugin-versions 命令 - 三语言 README 添加开发者指南和插件版本管理说明 确保项目始终使用幻兽帕鲁支持的最新版本插件。
- 明确说明开发者首次克隆后需运行 npm run update-plugins - 区分开发者和最终用户的使用场景 - 三语言 README 添加首次开发设置章节 - PLUGIN_VERSIONS.md 添加重要说明部分
…de-review Harden GitHub workflow; await template copies and add Palguard support
- 检测到更新时自动下载插件并创建 PR - 使用单一跟踪 issue 记录所有更新历史(避免创建多个 issue) - PR 自动包含更新后的插件文件 - 合并 PR 后 release 即包含最新插件版本
- extractZip 支持 Linux (unzip) 和 Windows (PowerShell) - workflow 强制跟踪 gitignore 目录下的插件文件
- 新增 plugin-versions.json 跟踪插件版本配置 - workflow 只更新版本配置文件,不下载二进制 - update-plugins.js 支持 GH_TOKEN 和跨平台解压
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
any类型,提升代码类型安全 (ActionType union, WorldSettingsValues 等)usePolling通用 hook,统一 5 个轮询 hook 的 setInterval 管理