style: apply code formatting and cleanup

- Format TypeScript files with Prettier (App.tsx, EnvWarningBanner.tsx, formatters.ts)
- Organize Rust imports and module order alphabetically
- Add newline at end of JSON files (en.json, zh.json)
- Update Cargo.lock for dependency changes
This commit is contained in:
YoVinchen
2025-11-19 01:16:19 +08:00
parent bbb356a948
commit ec04132303
11 changed files with 150 additions and 26 deletions
+1 -5
View File
@@ -233,11 +233,7 @@ fn build_provider_from_request(
// - 去掉首尾下划线
// - 若结果为空,则使用 "custom"
let clean_provider_name = {
let raw: String = request
.name
.chars()
.filter(|c| !c.is_control())
.collect();
let raw: String = request.name.chars().filter(|c| !c.is_control()).collect();
let lower = raw.to_lowercase();
let mut key: String = lower
.chars()