Commit Graph

159 Commits

Author SHA1 Message Date
BTMuli
6d34b7cb65 🐛 修复数据库buildTime更新异常 2026-04-08 19:47:31 +08:00
Copilot
1497533f14 完善非回正模式下的窗口位置&大小处理 (#226)
* ️大幅提升UIGF导入速度 (#225)

* Initial plan

* perf: optimize gacha import with batch transactions and reduced UI delays

- Wrap DB inserts in transactions (batches of 500) for mergeUIGF/mergeUIGF4
- Pre-transform all data before batch insert loop
- Pass timeout: 0 to showLoading.update in progress callbacks
- Remove 1500ms snackbar delay in cleanGachaRecords
- Reduce per-item loading update delay in refreshGachaPool

Co-authored-by: Mikachu2333 <63829496+Mikachu2333@users.noreply.github.com>

* fix: increment progress counter per item instead of per batch for accurate progress display

Co-authored-by: Mikachu2333 <63829496+Mikachu2333@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Mikachu2333 <63829496+Mikachu2333@users.noreply.github.com>

* Initial plan

* feat: calculate window size based on resolution/scaling with baseline check and centering

- resizeWindow: add baseline check (1920x1080@150%), clamp to screen bounds
- setWindowPos: ensure window fits on screen and always center
- App.vue: use setWindowPos instead of manual positioning, center on deep link show
- tray.rs: center window when showing from system tray

Co-authored-by: Mikachu2333 <63829496+Mikachu2333@users.noreply.github.com>

* fix: address code review - add zero guard and use setWindowPos consistently

Co-authored-by: Mikachu2333 <63829496+Mikachu2333@users.noreply.github.com>

* refactor: address review feedback - move baseline to setWindowPos, revert tray.rs

- tray.rs: reverted, center() removed as redundant
- TGWindow.ts: baseline check moved to setWindowPos, resizeWindow restored as fallback
- App.vue: needResize=false → setWindowPos, else → center; deep link reverted;
  handleResizeListen true path unchanged, setWindowPos moved inside else

Co-authored-by: Mikachu2333 <63829496+Mikachu2333@users.noreply.github.com>

* refactor: use needResize judgment condition (targetZoom/scaleFactor/textScale) in setWindowPos

Replace the simple curSize > screen.size overflow check with the same
condition used by resizeWindow(): targetZoom < 1, which considers
scaleFactor and textScale. Falls back to resizeWindow() when below
baseline or when targetZoom < 1.

Co-authored-by: Mikachu2333 <63829496+Mikachu2333@users.noreply.github.com>

* 🚸 调整尺寸判断

* 🚸 处理溢出

* 🚸 优化处理

* 🚸 移除冗余scale处理

* 🎨 CodeStyle

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Mikachu2333 <63829496+Mikachu2333@users.noreply.github.com>
Co-authored-by: BTMuli <bt-muli@outlook.com>
2026-02-28 17:58:19 +08:00
BTMuli
9057e613c7 🚸 调整位置判断 2026-02-28 00:31:31 +08:00
BTMuli
f7df9ec804 🚸 UI适配,修复 .v-application 颜色样式导致分享图生成异常 2026-02-27 22:34:32 +08:00
BTMuli
a096bdcae4 🚸 调整取消回正后的窗口位置处理 2026-02-25 21:41:31 +08:00
BTMuli
e3ffbb7ffb 🚸 版本更新后重置反馈按钮显示 2026-02-23 23:20:58 +08:00
BTMuli
faa6cfe8ea 🐛 将ck更新逻辑移至首页,修正更新sql语句 2026-01-29 22:55:14 +08:00
BTMuli
6db1ab0a45 🚸 添加用户反馈显示控制入口 2026-01-17 23:07:54 +08:00
BTMuli
50201fbbc8 🚸 调整优先级
close #197
2026-01-17 19:52:32 +08:00
BTMuli
728dfe45d3 尝试更新cookie
#197
2026-01-17 16:12:53 +08:00
BTMuli
bd54e86f5b 🧑‍💻 设置Sentry用户 2026-01-15 20:04:12 +08:00
BTMuli
0d37a86883 🚸 新增srs命令用于重置窗口回正 2026-01-02 21:01:19 +08:00
BTMuli
dc33c0a259 自动执行任务
#195
2026-01-01 20:08:07 +08:00
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