From f73bc89f8445d0cfc2f3ad297962e83216747dc8 Mon Sep 17 00:00:00 2001 From: Ap_Tx <3045929398@qq.com> Date: Sun, 4 Oct 2026 09:23:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20CI=20=E7=9A=84=20ru?= =?UTF-8?q?stfmt=20=E4=B8=8E=20typos=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为 instance 同步命令定义之间补空行并补齐文件末尾换行;将 game-settings-modal 的 languages.ts(Minecraft 语言名数据)加入 typos 排除,避免语言代码被误判为拼写错误。 --- _typos.toml | 2 ++ apps/app/src/api/instance/mod.rs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/_typos.toml b/_typos.toml index 72c15cc..08c93e0 100644 --- a/_typos.toml +++ b/_typos.toml @@ -14,6 +14,8 @@ extend-exclude = [ "packages/app-lib/src/api/content_search/WikiEntries.txt", # Bundled Monaco editor runtime contains upstream generated assets. "apps/app-frontend/public/monaco/", + # Minecraft language-name data (from mcmeta); contains language codes that look like typos. + "apps/app-frontend/src/components/ui/settings/instances/game-settings-modal/languages.ts", ] [default.extend-words] diff --git a/apps/app/src/api/instance/mod.rs b/apps/app/src/api/instance/mod.rs index ed36656..83e4f38 100644 --- a/apps/app/src/api/instance/mod.rs +++ b/apps/app/src/api/instance/mod.rs @@ -2087,6 +2087,7 @@ pub async fn instance_list_synced_servers() -> Result> { Ok(theseus::instance::list_synced_servers().await?) } + #[tauri::command] pub async fn instance_update_synced_server( server: theseus::instance::SyncedServer, @@ -2094,8 +2095,9 @@ pub async fn instance_update_synced_server( theseus::instance::update_synced_server(server).await?; Ok(()) } + #[tauri::command] pub async fn instance_remove_synced_server(id: String) -> Result<()> { theseus::instance::remove_synced_server(&id).await?; Ok(()) -} \ No newline at end of file +}