chore: apply cargo fmt across workspace and update docs

- Run cargo fmt on all Rust crates for consistent formatting
- Update CLAUDE.md with WASM plugin commands and dev.ps1 instructions
- Update wiki: add WASM plugin architecture, rewrite dev environment docs
- Minor frontend cleanup (unused imports)
This commit is contained in:
iven
2026-04-15 00:49:20 +08:00
parent e16c1a85d7
commit 9568dd7875
113 changed files with 4355 additions and 937 deletions

View File

@@ -50,8 +50,7 @@ impl ConfigModule {
)
.route(
"/config/dictionaries/{dict_id}/items/{item_id}",
put(dictionary_handler::update_item)
.delete(dictionary_handler::delete_item),
put(dictionary_handler::update_item).delete(dictionary_handler::delete_item),
)
// Menu routes
.route(
@@ -62,8 +61,7 @@ impl ConfigModule {
)
.route(
"/config/menus/{id}",
put(menu_handler::update_menu)
.delete(menu_handler::delete_menu),
put(menu_handler::update_menu).delete(menu_handler::delete_menu),
)
// Setting routes
.route(
@@ -93,10 +91,7 @@ impl ConfigModule {
get(theme_handler::get_theme).put(theme_handler::update_theme),
)
// Language routes
.route(
"/config/languages",
get(language_handler::list_languages),
)
.route("/config/languages", get(language_handler::list_languages))
.route(
"/config/languages/{code}",
put(language_handler::update_language),