Commit Graph

146 Commits

Author SHA1 Message Date
BTMuli
15e0a60bb6 🌱 初步定义&获取终端参数
#195
2026-01-01 19:49:31 +08:00
BTMuli
fc7f132700 💄 微调样式 2025-12-31 15:23:08 +08:00
BTMuli
d50dcc34c6 🌱 构建脚本 2025-12-30 02:53:00 +08:00
BTMuli
01cda62231 处理文本放缩
close #192
2025-12-29 21:42:09 +08:00
BTMuli
5ecb46f1da 支持货币数据获取 2025-12-28 15:19:34 +08:00
BTMuli
90eb4facf9 ♻️ 移除isInAdmin的store 2025-12-27 14:59:15 +08:00
BTMuli
651a89145f 🎨 规范化代码 2025-12-24 17:17:40 +08:00
BTMuli
a2ff92d00a ♻️ 方法提取 2025-12-22 16:15:23 +08:00
BTMuli
06ff32d47d 管理员模式下启动使用YAE导入 2025-12-22 15:57:32 +08:00
BTMuli
5b372e9989 🐛 hide时显示窗口 2025-12-14 18:00:08 +08:00
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
BTMuli
8533516913 💄 调整实用脚本UI,显示用户米游币数量 2025-12-12 01:28:33 +08:00
BTMuli
cc2020c64e ♻️ Yae数据传递移至App层,重构命令处理逻辑 2025-12-09 16:43:32 +08:00
BTMuli
b267599039 🐛 修复重启异常 2025-12-02 11:37:37 +08:00
BTMuli
339220cc04 ♻️ 调整居中逻辑 2025-07-15 12:14:06 +08:00
BTMuli
0d6ba14a0e ♻️ 修正import,调整路径 2025-05-23 11:58:11 +08:00
BTMuli
16332793ef 🐛 修复macOS平台的窗口大小适配逻辑 2025-05-09 23:11:06 +08:00
目棃
01dc6a6ea7 ♻️ use opener instead of window.open/shell 2025-03-18 14:52:00 +08:00
目棃
fba7a6c088 🚸 移除每次路由变化引起的居中 2025-03-08 19:19:31 +08:00
目棃
ac4d2a319f 🚸 即时响应页面适配 2025-03-08 16:06:06 +08:00
目棃
da78d27239 ♻️ 重构部分路由处理 2025-01-17 14:48:38 +08:00
目棃
24e3f11c4a ♻️ loading组件重构 2024-12-16 11:13:30 +08:00
目棃
3ed6d503d4 ♻️ 全面整理重构 2024-12-13 16:15:01 +08:00
目棃
bb217cf7a8 🐛 修复主题切换响应异常 2024-12-11 23:10:31 +08:00
目棃
d5ec4b1b0e ♻️ 调整窗口显示逻辑 2024-12-07 19:22:41 +08:00
目棃
6a3d2d6b36 ♻️ 代码结构调整 2024-12-06 17:46:21 +08:00
目棃
dd65bb565d 🎨 一些代码调整 2024-12-06 14:36:30 +08:00
目棃
c6f45f0a35 ♻️ 请求模块重构 2024-11-19 09:34:18 +08:00
目棃
36b0d198a9 ♻️ showConfirm重构 2024-11-15 16:26:37 +08:00
目棃
ac6dbe0cdf ♻️ showSnackbar重构 2024-11-14 18:01:38 +08:00
目棃
6701464002 🐛 修复用户登录状态异常 2024-10-26 18:22:15 +08:00
目棃
003344c722 ⬆️ 走ssh更新,统一更新日志路径,更新依赖 2024-10-24 22:10:01 +08:00
目棃
f8121d504c 🐛 修复数据库初始化异常 2024-10-16 18:41:37 +08:00
目棃
b8d1b8552e 🚀 v0.6.0 2024-10-09 16:00:47 +08:00
目棃
cc121d6f9f 💄 材料Wiki样式优化,支持分类筛选&查询 2024-10-05 11:27:48 +08:00
目棃
cc7dd7c8ca ♻️ 重构用户登录逻辑及切换
#126
2024-09-21 20:07:34 +08:00
目棃
b8f6f3b1e7 🔧 版本号中转,用于过渡数据库更新 2024-09-21 10:55:36 +08:00
目棃
1dc5aa0ef8 ♻️ 重构成就表格,支持多存档
#126
2024-09-20 15:57:02 +08:00
目棃
92d99a5de5 🐛 修复AppOnInit报错 2024-09-06 18:58:28 +08:00
目棃
ee9f9b7acd 🐛 修正label&子窗口回正异常 2024-09-06 12:21:22 +08:00
目棃
599f9273e2 🐛 修复一堆bug 2024-09-06 11:37:40 +08:00
目棃
9fb95c6ade 🌱 公告解析重构 2024-08-13 20:15:46 +08:00
目棃
fc43dd9820 添加回正开关,默认开启 2024-08-11 17:36:29 +08:00
目棃
5c0d5f50fe ⬆️ migrate tauri-rc 2024-08-02 23:09:42 +08:00
目棃
db00765f7b ♻️ 重构窗体/缩放调整 2024-08-01 22:09:54 +08:00
目棃
447ee3b329 💄 根据屏幕缩放调整应用缩放 2024-07-30 10:38:58 +08:00
Mccree Lee
59e4012ced ️ 窗体初始化后显示 (#117)
* perf: show window after initializing

* perf: remove redundant show() in sub windows
2024-07-14 08:36:09 +08:00
目棃
2ba4596f50 ♻️ 收尾,基本测完了 2024-07-07 17:07:11 +08:00
目棃
f4de7552e1 ♻️ 感觉差不多了,剩下的就靠测试了 #92 2024-07-03 22:33:37 +08:00
目棃
367307029b ♻️ 姑且能跑 dev,尚需调试功能 2024-07-02 23:08:54 +08:00