Commit Graph

13 Commits

Author SHA1 Message Date
Mark
76d6179527 Fix download link in README for releases
Updated the download link for the application in the README.
2025-10-29 21:31:02 +08:00
ZhangLei
84229df04d update v1.0.2 2025-10-29 21:19:18 +08:00
ZhangLei
7e27cfa355 feat: 多币种支持 + 配置系统优化
## 新增功能 🚀
- 🔗 新增 BNB (币安币) 和 SOL (Solana) 币种支持
- 💰 现在支持 5 种主流虚拟货币: BTC/ETH/BNB/SOL/DOGE
- 🎨 每种币种都有专属的 SF Symbols 图标

## 系统优化 🔧
- 🐛 修复配置初始化逻辑,确保首次运行显示正确的默认值 (BTC + 30秒)
- 📝 改进调试日志输出,移除冗余的 UserDefaults 域信息
- 🏗️ 优化配置加载逻辑,使用更严格的键存在性检查

## 文档更新 📚
- 📖 更新 README.md,添加多币种功能说明
- 📝 完善使用指南,包含币种切换操作
- 🔗 更新 API 文档,列出所有支持的交易对
- 🎯 新增配置文件位置说明

## 技术改进 
- 🔧 AppSettings 配置管理逻辑重构
- 🎯 增强配置初始化的错误处理
- 📱 更新界面预览截图
- 🏷️ 优化代码注释和架构文档

默认配置: BTC/USDT | 30秒刷新间隔 | 支持用户自定义
2025-10-29 21:17:54 +08:00
Mark
370f103507 Merge pull request #1 from SherlockGougou/main
feat: 增加币种选择:BTC/ETH/DOGE,显示价格更改为千分位
2025-10-29 20:32:47 +08:00
sherlock
64b92ee76a feat: 增加币种选择:BTC/ETH/DOGE,显示价格更改为千分位 2025-10-29 16:05:43 +08:00
ZhangLei
583807ff99 Refactor code structure for improved readability and maintainability v1.0.1 2025-10-29 14:41:38 +08:00
ZhangLei
a526deb79e feat(ui): add configurable refresh interval and enhanced menu features
Major feature enhancement for the BTC price monitoring application:

### New Features
- **Configurable Refresh Intervals**: Users can now select from 5s, 10s, 30s, 60s options
- **Persistent Settings**: User preferences saved via UserDefaults
- **GitHub Integration**: Direct link to project repository via menu
- **Version Display**: Shows current app version in about dialog
- **Debug Logging**: Comprehensive debug output for development (Debug builds only)

### Implementation Details
- **AppSettings.swift**: New configuration management class
- **RefreshInterval.swift**: Enum defining refresh options with display text
- **Enhanced PriceManager**: Dynamic timer management with configurable intervals
- **Updated BTCMenuBarApp**: Added refresh settings submenu, GitHub link, and version info
- **Debug Infrastructure**: Conditional compilation logging throughout price update flow

### UI/UX Improvements
- **Refresh Settings Submenu**: Visual indicators (✓) for current selection
- **Enhanced About Dialog**: Shows current refresh interval and app version
- **Clean Menu Structure**: Organized with proper separators and SF Symbols
- **GitHub Button**: Quick access to project repository

### Code Quality
- **Removed Redundancy**: Deleted unused ContentView.swift template file
- **Comprehensive Comments**: Added detailed Chinese comments throughout
- **Error Handling**: Robust error handling with user-friendly messages
- **Architecture Clean**: Follows MVVM pattern with clear separation of concerns

### Files Changed
- Modified: BTCMenuBarApp.swift, PriceManager.swift, project.pbxproj
- Added: AppSettings.swift, RefreshInterval.swift
- Deleted: ContentView.swift (unused template)
- Updated: Entitlements, app entry point, and service files

BREAKING CHANGE: None - all changes are additive and backward compatible
2025-10-29 14:21:07 +08:00
ZhangLei
168ef505b9 删除不再使用的项目文件和用户数据 2025-10-29 13:29:53 +08:00
Mark
5645045c2b Update README.md 2025-10-28 22:59:56 +08:00
ZhangLei
f14b47a057 修改README.md 2025-10-28 21:57:40 +08:00
ZhangLei
aa6e70c872 Add usage instructions 2025-10-28 21:29:02 +08:00
ZhangLei
d94eedef38 发布1.0.0版本:保留最新代码 2025-10-28 21:13:13 +08:00
Mark
007f70cbc8 Initial Commit 2025-10-28 14:52:10 +08:00