Jason
a1a16be2aa
feat(updater): 前端 Updater 封装与设置页接入\n\n- 新增 src/lib/updater.ts(check→download→install→relaunch 封装与类型)\n- SettingsModal 按钮优先走 Updater,失败回退打开 Releases\n- 依赖:@tauri-apps/plugin-updater、@tauri-apps/plugin-process\n- 文档:精简并重写 docs/updater-plan.md(明确接口/流程/配置)
2025-09-08 16:48:24 +08:00
TinsFox
5af476d376
feat: 系统托盘 ( #12 )
...
* feat: 系统托盘
1. 添加系统托盘
2. 托盘添加切换供应商功能
3. 整理组件目录
* feat: 优化系统托盘菜单结构
- 扁平化Claude和Codex的菜单结构,直接将所有供应商添加到主菜单,简化用户交互。
- 添加无供应商时的提示信息,提升用户体验。
- 更新分隔符文本以增强可读性。
* feat: integrate Tailwind CSS and Lucide icons
- Added Tailwind CSS for styling and layout improvements.
- Integrated Lucide icons for enhanced UI elements.
- Updated project structure by removing unused CSS files and components.
- Refactored configuration files to support new styling and component structure.
- Introduced new components for managing providers with improved UI interactions.
* fix: 修复类型声明和分隔符实现问题
- 修复 updateTrayMenu 返回类型不一致(Promise<void> -> Promise<boolean>)
- 添加缺失的 UnlistenFn 类型导入
- 使用 MenuBuilder.separator() 替代文本分隔符
---------
Co-authored-by: farion1231 <farion1231@gmail.c
2025-09-06 16:21:21 +08:00
QuentinHsu
a14f7ef9b2
feat: JsonEditor for inputting JSON content ( #4 )
...
* feat(editor): add JsonEditor component for JSON configuration editing
* fix(provider): update API Key visibility logic in ProviderForm component
* fix(editor): stabilize JsonEditor height and restore API Key logic
- Revert API Key visibility to preset-based rule and injection to non-custom preset only.
- Reduce JsonEditor min-height from rows*22px to rows*18px to lessen layout jitter when switching presets.
- Keep fonts/size consistent with the previous textarea for visual parity.
* - fix(form): remove websiteUrl auto-extraction from JSON to prevent incorrect overrides
---------
Co-authored-by: Jason <farion1231@gmail.com >
2025-09-06 09:30:09 +08:00
farion1231
3665a79e50
chore: bump version to v3.1.1
...
- Update version in package.json, Cargo.toml, and tauri.conf.json
- Add CHANGELOG entries for v3.1.0 and v3.1.1
2025-09-03 16:43:29 +08:00
Jason
2cf116280f
feat: add prettier formatter and MIT license
...
- Add prettier dev dependency for code formatting
- Create MIT LICENSE file
- Format TypeScript files with prettier
- Update provider order in README (Qwen coder first)
- Update add provider screenshot with new UI
2025-08-29 11:35:17 +08:00
Jason
9254c5d291
feat: add development scripts and CHANGELOG for v3.0.0
...
- Add typecheck script for TypeScript validation
- Add format and format:check scripts for code formatting
- Create comprehensive CHANGELOG documenting migration from Electron to Tauri
- Document all major changes, improvements, and migration notes for v3.0.0
2025-08-27 11:15:29 +08:00
Jason
f8e39594fa
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
2025-08-26 15:45:42 +08:00
Jason
731cfc47be
chore(deps): remove unused @tauri-apps/plugin-shell dependency
2025-08-24 23:40:32 +08:00
Jason
95b3746e49
chore(version): align package.json version to 3.0.0-beta.1 to match Tauri app version
2025-08-24 23:39:41 +08:00
Jason
c4791ff523
- chore: 添加 Tauri CLI 开发依赖
...
- 在 `package.json` 新增 `@tauri-apps/cli`
- 更新 `pnpm-lock.yaml` 锁定文件
- 仅依赖变更,无业务代码改动
2025-08-24 22:38:13 +08:00
farion1231
12fa80e002
refactor: 清理 Electron 遗留代码并优化项目结构
...
- 删除 Electron 主进程代码 (src/main/)
- 删除构建产物文件夹 (build/, dist/, release/)
- 清理 package.json 中的 Electron 依赖和脚本
- 删除 TypeScript 配置中的 Electron 相关文件
- 优化前端代码结构至 Tauri 标准结构 (src/renderer → src/)
- 删除移动端图标和不必要文件
- 更新文档说明技术栈变更为 Tauri
2025-08-23 21:13:25 +08:00
farion1231
2a658af5b9
feat: 完成前端窗口控制和配置适配
...
- 更新 tauri.conf.json 配置正确的前端构建路径
- 调整开发服务器端口为 Vite 默认端口 5173
- 添加 Tauri 前端依赖包
- 窗口拖拽样式已兼容
2025-08-23 20:41:14 +08:00
farion1231
3479780639
feat: configure Tauri build system and app metadata
...
- Update Vite config for Tauri integration
- Configure package.json scripts for Tauri commands
- Generate multi-platform app icons
- Update app metadata and window configuration
2025-08-23 20:05:50 +08:00
farion1231
1b0ab269fb
feat: initialize Tauri project structure
...
- Add @tauri-apps/api dependency
- Create src-tauri directory with base configuration
- Generate Tauri project Rust code framework
- Add application icon resources
2025-08-23 19:59:29 +08:00
farion1231
afb20f298a
更新文档
2025-08-21 23:23:08 +08:00
Jason
6355796a42
fix(mac): round app icon and regenerate .icns\n\n- Replace square icon with rounded squircle PNG\n- Regenerate build/icon.icns for mac packaging\n- Bump version to 2.0.1
2025-08-10 23:21:04 +08:00
Jason
65a660fcdc
chore: 升级 Electron 到 ^32.3.3 并修复 macOS 开发环境二进制缺失问题(使用镜像完成下载验证)
2025-08-10 16:58:47 +08:00
Jason
9b4968fdfc
实施最终发布策略:Intel-only 配置
...
✅ 配置 Intel-only 构建 (package.json)
✅ 更新 GitHub Actions 发布流程
✅ 完善 README 安装说明
核心策略:
- 只发布 Intel x64 版本,通过 Rosetta 2 支持 M 系列芯片
- 使用 ad-hoc 签名,避免 ARM64 签名复杂性
- 提供详细的 macOS 安全警告处理指南
- 强调兼容性和稳定性优于原生性能
2025-08-10 15:07:26 +08:00
farion1231
8d5d2841ee
更新版本号
2025-08-08 15:43:26 +08:00
farion1231
d5000ae30f
更新版本号到 1.0.8
2025-08-07 10:09:42 +08:00
farion1231
edc203a10b
重大改进:用原生 JSON 存储替换 electron-store
...
- 实现 SimpleStore 类,使用原生 fs 操作 JSON 文件
- 解决 "Cannot find module 'conf'" 的依赖问题
- 移除 electron-store 依赖,减少包体积
- 配置文件存储在 ~/.cc-switch/config.json
- 数据格式透明,便于备份和调试
- 修复 TypeScript 类型问题
- 测试通过:构建、打包、运行正常
2025-08-07 10:09:17 +08:00
farion1231
a13b67f2a1
修复依赖缺失问题:简化 electron-builder 文件过滤规则
2025-08-07 09:09:17 +08:00
farion1231
084a228728
更新版本号到 1.0.7
2025-08-07 08:49:57 +08:00
farion1231
eecfcdf40a
修复 macOS 构建和版本冲突问题
...
- 将 macOS 目标从 DMG 改为 ZIP 避免 hdiutil 问题
- 更新版本号到 1.0.5 避免标签冲突
- 添加 ARM64 和 x64 双架构支持
- 禁用自动发布避免版本冲突
2025-08-06 23:52:39 +08:00
farion1231
f39b665f86
配置应用图标:支持 Windows NSIS 安装包正确显示图标
...
- 添加跨平台图标配置(Windows .ico、macOS .icns、Linux .png)
- 配置 Windows 双重构建目标:NSIS 安装程序 + Portable 版本
- 解决 Windows 下 exe 文件显示默认图标的问题
- NSIS 安装程序版本可正确显示自定义图标
2025-08-06 23:09:29 +08:00
farion1231
1a7c3fcec5
完善发布配置:添加图标和优化构建
...
- 添加应用图标文件 (icon.ico, icon.icns, icon.png)
- 配置最大压缩以减小文件体积
- 修改Windows目标为portable版本,生成单文件exe
- 排除不必要的node_modules文件
- 完善作者信息
2025-08-06 22:42:55 +08:00
farion1231
588883ffc4
代码优化:清理冗余功能并修复关键问题
...
- 删除未使用的 axios 依赖
- 移除 Provider 接口中未使用的 model 字段
- 删除未使用的供应商连通性检查功能
- 修复 preload.ts 中缺失的 IPC 方法暴露
- 简化 UI:移除重复的单选按钮,仅保留启用按钮
- 修复 TypeScript 接口定义不完整的问题
2025-08-06 20:48:03 +08:00
farion1231
caa289bd7d
升级 Electron 到最新稳定版本
...
- 更新 Electron 从 28.0.0 到 32.2.5
- 提升安全性和性能
- 获得最新功能和bug修复
2025-08-06 07:49:45 +08:00
farion1231
35cb750d19
修复 Electron 应用窗口不显示的问题
...
- 修正 Electron 依赖版本为 28.0.0(解决安装问题)
- 更新 package.json 中的启动脚本,改进并发命令执行
- 修正主进程入口文件路径配置
- 调整 TypeScript 编译配置的根目录设置
- 添加 Windows 开发环境启动脚本 start-dev.bat
- 更新 .gitignore 排除编译产物和锁文件
问题原因:pnpm 默认阻止了 Electron 安装脚本执行,导致应用无法正常启动
2025-08-05 09:51:21 +08:00
farion1231
e0a9c1ab4c
initial commit
2025-08-04 22:16:26 +08:00