Commit Graph

7 Commits

  • security(tauri): remove unused shell plugin and capability
    - Remove tauri-plugin-shell from Cargo.toml
    - Drop tauri_plugin_shell::init() from src-tauri/src/lib.rs
    - Delete "shell:allow-open" from src-tauri/capabilities/default.json
    - No runtime behavior change; opener plugin still handles links/paths
    - Motivation: reduce permissions surface and slightly shrink bundle
  • chore: prepare v3.0.0 release
    - Bump version to 3.0.0 across all files
    - Update Cargo.toml with proper package metadata
    - Rename crate from 'app' to 'cc-switch'
    - Use Rust edition 2024 with minimum rust-version 1.85.0
    - Update library name to cc_switch_lib
  • feat(macos): implement transparent titlebar with custom background color
    - Add transparent titlebar configuration in tauri.conf.json
    - Implement macOS titlebar background color matching main UI banner (#3498db)
    - Replace deprecated cocoa crate with modern objc2-app-kit
    - Preserve native window functionality (drag, traffic lights)
    - Remove all deprecation warnings from build process
    
    The titlebar now seamlessly matches the application's blue theme while
    maintaining all native macOS window management features.
  • chore(tauri): remove dead code warnings and drop unused uuid dep
    - Delete unused Provider::new, ProviderManager::get_current_provider
    - Delete unused AppState::reload
    - Remove uuid crate and related imports
    - Keep functionality unchanged; frontend uses ID string for current provider
  • feat: upgrade Rust code to full Tauri 2.0 compatibility
    - Add tauri-plugin-shell and tauri-plugin-opener dependencies
    - Update permissions configuration to support shell and opener operations
    - Refactor open_config_folder and open_external commands to use secure plugin APIs
    - Remove unsafe direct std::process::Command usage
    - Initialize necessary Tauri plugins
    - Ensure all external operations comply with Tauri 2.0 security standards
  • fix: 修复 Rust 编译错误并成功启动 Tauri 应用
    - 修复 commands.rs 中的重复导入问题
    - 清理未使用的导入
    - 统一 Vite 和 Tauri 配置的端口为 3000
    - 添加 Tauri 前端依赖包
    - 应用已成功编译并运行