Commit Graph

37 Commits

Author SHA1 Message Date
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
b3997815e1 🌱 功能预留
#223
2026-02-27 22:48:53 +08:00
BTMuli
564a0c173a 🚸 移除回正后的焦点处理 2026-02-25 22:21:03 +08:00
BTMuli
e0a74b0e58 🚸 处理最大化 2026-02-25 21:50:15 +08:00
BTMuli
01cda62231 处理文本放缩
close #192
2025-12-29 21:42:09 +08:00
BTMuli
651a89145f 🎨 规范化代码 2025-12-24 17:17:40 +08:00
BTMuli
98c911469a Revert "🐛 修复窗口适配异常"
This reverts commit 999ddc708c.
2025-11-20 18:18:48 +08:00
BTMuli
999ddc708c 🐛 修复窗口适配异常 2025-11-20 18:03:40 +08:00
BTMuli
d730c20a5b ♻️ 调整窗口大小&放缩计算逻辑 2025-07-14 19:48:16 +08:00
BTMuli
724f828761 ♻️ 部分跳转改为外部浏览器打开 2025-05-23 12:04:26 +08:00
BTMuli
0d6ba14a0e ♻️ 修正import,调整路径 2025-05-23 11:58:11 +08:00
BTMuli
16332793ef 🐛 修复macOS平台的窗口大小适配逻辑 2025-05-09 23:11:06 +08:00
BTMuli
500b6442ac 🐛 修正尺寸计算 2025-05-05 22:07:56 +08:00
目棃
ac4d2a319f 🚸 即时响应页面适配 2025-03-08 16:06:06 +08:00
目棃
d0936a0a60 ♻️ 重构部分请求 2025-03-01 14:27:43 +08:00
目棃
3ed6d503d4 ♻️ 全面整理重构 2024-12-13 16:15:01 +08:00
目棃
d5ec4b1b0e ♻️ 调整窗口显示逻辑 2024-12-07 19:22:41 +08:00
目棃
26041948ef ♻️ 请求重构,合并postWapi跟apiHub相关请求 2024-10-24 23:51:45 +08:00
目棃
8a2c7d13c6 ♻️ 姑且没登录的功能都给试了下 2024-07-03 17:49:15 +08:00
目棃
367307029b ♻️ 姑且能跑 dev,尚需调试功能 2024-07-02 23:08:54 +08:00
目棃
0061dfa988 ✏️ 继续修正 import 2024-06-26 22:41:25 +08:00
目棃
e96cdfc809 添加 postID 信息 2024-03-03 18:46:28 +08:00
目棃
8aaf18dbe2 🔊 完善基础页面的 log #83 2024-01-23 18:20:23 +08:00
BTMuli
568b0b5db7 ♻️ 公告页的窗口创建逻辑也顺便改一下 2023-12-20 00:50:41 +08:00
BTMuli
df5d22d39b ♻️ 窗口创建逻辑变更 2023-12-18 18:34:25 +08:00
BTMuli
a9f80da053 🌱 添加 wiki 武器类型相关 2023-12-15 18:31:42 +08:00
BTMuli
49a47a16ee 🌱 添加 wiki 窗口创建逻辑 2023-12-15 17:10:15 +08:00
BTMuli
8c50da61b1 🗑️ loadMore 2023-12-10 16:03:07 +08:00
BTMuli
1914261e80 ♻️ 重构窗口创建逻辑,采用 rust invoke
https://github.com/tauri-apps/tauri/issues/5380
2023-10-24 14:24:52 +08:00
BTMuli
3691397cec ♻️ 公告页样式重构 2023-10-15 16:57:48 +08:00
BTMuli
214991fdd9 ♻️ 二次简化 2023-10-14 14:46:58 +08:00
BTMuli
58e3c0e1a6 ♻️ 简化代码 2023-10-14 14:34:32 +08:00
BTMuli
7567bba147 🎨 代码格式化 2023-06-25 16:15:15 +08:00
BTMuli
7a8c0892ea 🐛 fix(TGWindow): 修复部分窗口打开不可见的问题 2023-04-07 17:15:35 +08:00
BTMuli
6ec12bf664 🌈 style(eslint): 第一次过 eslint
姑且先把能过的 ts 文件给过了,明天再过其余的 ts 文件跟 vue

Signed-off-by: BTMuli <BT-Muli@outlook.com>
(cherry picked from commit b7392bddea895b8b8cc1cad5ba0403d2dc738643)
2023-04-06 20:35:22 +08:00
BTMuli
e7d293f83b fix(window): 更改创建逻辑
Signed-off-by: BTMuli <BT-Muli@outlook.com>
2023-04-06 11:53:02 +08:00
BTMuli
049510c578 feat(TGWindow): 精简代码,缓存可清除 2023-03-11 23:27:48 +08:00