Commit Graph

116 Commits

Author SHA1 Message Date
Copilot
7544fa1489 支持托盘 (#181)
* Initial plan

* Add system tray icon feature with show/quit menu

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Apply Rust code formatting

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Address code review feedback: improve documentation and reduce duplication

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Make tray behavior configurable - add closeToTray setting

- Add closeToTray setting in app store (default: false)
- Add UI toggle in PageConfig.vue for "关闭到托盘" setting
- Modify window close handler to emit event instead of always hiding
- Add hide_main_window and quit_app commands in backend
- Frontend listens for close event and respects user preference
- When closeToTray is enabled, window minimizes to tray on close
- When disabled, application quits on close (original behavior)

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Remove duplicate SUB_WINDOW_LABELS constant - use shared constant from lib.rs

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Fix tray icon issues: remove duplicate tray, add icon loading, close sub-windows on hide

1. Remove duplicate tray icon: Removed trayIcon config from tauri.conf.json (was creating 2 trays)
2. Add proper icon loading: Use image crate to decode PNG and create RGBA icon data
3. Close sub-windows when hiding: Modified hide_main_window to close all sub-windows before hiding
4. Sync with master branch: Merged latest commit c8fe03c

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Address code review: remove anyhow, add separator, improve comments

1. Remove anyhow dependency - Use Tauri's InvalidIcon error instead
2. Add menu separator between "显示窗口" and "退出应用"
3. Add comment explaining image crate necessity (Tauri Image only accepts raw RGBA)
4. Keep HTTPS URLs with note about SSH preference for local development
5. Image crate remains necessary as Tauri doesn't provide PNG decoding

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Revert to SSH URLs for plugin dependencies as requested

Changed all tauri-plugin git URLs from HTTPS to SSH format.
Project CI has SSH configuration, so SSH is the preferred method.

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Use storeToRefs for closeToTray property

Changed closeToTray access to use storeToRefs in both App.vue and PageConfig.vue
for better reactivity and consistency with other store properties.

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>
2025-12-14 14:30:15 +08:00
Copilot
53174ffdd7 首页添加游戏签到组件,支持补签 (#182)
* Initial plan

* Add sign-in card component to homepage

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Fix v-icon usage in sign-in card buttons

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Fix: Merge new home components into existing localStorage

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Refactor: Remove redundant code in getShowItems

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Add error handling for localStorage parsing

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Redesign sign-in card to show multiple game accounts with compact UI

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Fix reward item spacing with flex properties

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Redesign sign-in card: grid layout, account switching, light mode fixes

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Add forceReload parameter to prevent unnecessary API calls

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Show multiple game accounts with grid layout and MiHoYo account in append

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Use unique keys and concurrent API requests for better performance

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Refactor sign-in component: split into reusable parts with user switcher

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Fix sign-in logic: highlight based on count not date, enable resign button

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Remove duplicate code and fix comment

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Add reward cell component, extra rewards support, and improved visual distinction

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* 🏷️ 添加Store类型,调整首页选项框宽度

* 🏷️签到 → 游戏签到

* ♻️ 首页组件重构,支持组件分享

* ♻️ 调整组件UI

* 💄 调整loading标题文本大小

* 💄 微调样式

* Refactor sign-in component: sequential loading, progress bar, internal data processing

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Fix code review issues: correct gameInfo reference and add refresh event

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* 🎨 调整逻辑

* Refactor: self-contained data updates and numeric state enums

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* 🚸 调整排序逻辑

* 🚸 调整loading文本

* ✏️ 调整类型,修复打包失败

* ♻️ 添加补签相关请求

* 💄 调整脚本页布局

* 💄 调整首页布局

* Implement resign feature with local data updates and confirmation dialog

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* ✏️ 补充类型描述

* Fix resign logic: check is_sub, optimize resign info loading, improve success message

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* 🎨 调整逻辑,微调样式

* 🎨 调整唤起位置

* Add click handlers to reward cells for sign-in and resign actions

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* 🐛 对ID进行限制

* 💄 微调顶部gameNav样式

* Fix resign logic: only first missed day is clickable

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* 🎨 放宽补签限制

* 🐛 修正删除逻辑判断

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>
Co-authored-by: BTMuli <bt-muli@outlook.com>
2025-12-14 02:01:26 +08:00
BTMuli
58c2044f47 🚸 增加点赞后取消配置 2025-12-06 14:44:50 +08:00
BTMuli
db03f211d4 窄视图 2025-11-25 15:13:21 +08:00
BTMuli
7a6a06bb25 🐛 修正链接判断逻辑 2025-10-02 12:18:25 +08:00
BTMuli
b62b0b4902 🐛 重构数据解析,修复HEIC格式图片渲染异常 2025-09-28 23:13:55 +08:00
BTMuli
6a5b65134e 动态处理游戏卡片组件 2025-09-19 15:01:57 +08:00
BTMuli
d3ab4fb6dc ♻️ 调整服务器类型归属 2025-06-25 20:23:18 +08:00
BTMuli
70a716842f ♻️ 重构公告模块,降低请求次数 2025-06-01 19:31:40 +08:00
BTMuli
0d6ba14a0e ♻️ 修正import,调整路径 2025-05-23 11:58:11 +08:00
目棃
3bd1853008 存储分区信息 2025-03-28 12:02:28 +08:00
目棃
b276b04f23 🏷️ typo 2025-03-18 13:42:21 +08:00
目棃
522add2441 ♻️ erasableSyntaxOnly 2025-03-17 17:58:15 +08:00
目棃
6302f171e9 🎨 记录所有账号但只显示原神 2025-03-09 22:12:28 +08:00
目棃
d2e6d112d5 🔧 无痕浏览,默认开启 2025-02-24 19:09:49 +08:00
目棃
a542174f54 深渊上传支持胡桃账户设置 2025-01-17 09:40:37 +08:00
目棃
0fd9e9a934 🚸 100%时返回原图 2025-01-13 09:07:05 +08:00
目棃
63b7f685c1 🚸 支持配置图像质量 2025-01-10 17:53:13 +08:00
目棃
3ed6d503d4 ♻️ 全面整理重构 2024-12-13 16:15:01 +08:00
目棃
d15cece933 🐛 fix TGApp is not defined 2024-12-06 18:54:25 +08:00
目棃
6a3d2d6b36 ♻️ 代码结构调整 2024-12-06 17:46:21 +08:00
目棃
f4678be198 ♻️ 首页组件加载逻辑重构 2024-12-06 12:18:47 +08:00
目棃
ad1e8339ac 分享图生成阈值自定义 2024-11-30 11:59:39 +08:00
目棃
c6f45f0a35 ♻️ 请求模块重构 2024-11-19 09:34:18 +08:00
目棃
ac6dbe0cdf ♻️ showSnackbar重构 2024-11-14 18:01:38 +08:00
目棃
df3158f428 直接启动原神
close #80
2024-09-30 19:21:50 +08:00
目棃
7f84a53f6d ♻️ 重构祈愿、深渊、角色页面逻辑,支持游戏账号切换
#126
2024-09-22 11:48:25 +08:00
目棃
cc7dd7c8ca ♻️ 重构用户登录逻辑及切换
#126
2024-09-21 20:07:34 +08:00
目棃
1dc5aa0ef8 ♻️ 重构成就表格,支持多存档
#126
2024-09-20 15:57:02 +08:00
目棃
ee9f9b7acd 🐛 修正label&子窗口回正异常 2024-09-06 12:21:22 +08:00
目棃
599f9273e2 🐛 修复一堆bug 2024-09-06 11:37:40 +08:00
目棃
27e22acdf6 💄 角色box草创 #121 2024-08-16 11:38:53 +08:00
目棃
bb0227cd0c propMap缓存 2024-08-15 18:55:57 +08:00
目棃
fc43dd9820 添加回正开关,默认开启 2024-08-11 17:36:29 +08:00
目棃
49854367b1 🐛 修复日志目录异常 2024-07-31 19:13:16 +08:00
目棃
6b18d63fb0 🐛 修复遗漏token 2024-07-26 17:15:44 +08:00
目棃
948db203bd 支持复制ck 2024-07-26 14:28:21 +08:00
目棃
d9ab24cb14 🐛 修复数据路径错误 2024-07-07 17:10:57 +08:00
目棃
0061dfa988 ✏️ 继续修正 import 2024-06-26 22:41:25 +08:00
目棃
d56a438662 完成活动时间正则匹配
close #94
2024-02-25 15:47:01 +08:00
目棃
2509b488d2 🌱 完善类型,初步进行正则match #94 2024-02-24 18:12:05 +08:00
目棃
c9fbddcf5d ️ 优化咨讯页版块跳转,记忆当前类型 2024-02-24 16:18:13 +08:00
目棃
02d875115f 公告支持切换服务器&语言
close #81
2024-02-01 13:22:39 +08:00
目棃
c0e7633b51 ♻️ 完善日志,重构设置页面 2024-01-22 21:15:38 +08:00
目棃
a1e0b79cca 支持用户修改数据目录
close #78
2024-01-18 16:56:43 +08:00
BTMuli
f4d0755154 ️ 调整 wiki 样式 2023-12-23 21:50:56 +08:00
BTMuli
0af8fe9b9a ♻️ 重构 userStore 用法 2023-12-20 20:49:46 +08:00
BTMuli
4370bbaa57 ♻️ userStore 及 cookie 相关类型重构 #51 2023-12-16 22:46:02 +08:00
BTMuli
26d1883d98 添加 isLogin,用以判断是否登录 2023-11-28 15:15:36 +08:00
BTMuli
712a09131e 实装 getDeviceFp
close #58
2023-11-16 14:23:30 +08:00