Commit Graph

2819 Commits

Author SHA1 Message Date
BTMuli
d312409e09 🏷️ 修正类型 2025-12-19 16:28:38 +08:00
BTMuli
a71d5664cb ♻️ 祈愿数据备份迭代,采用UIGF4,调整导入进度更新逻辑 2025-12-19 16:23:28 +08:00
BTMuli
7e50461ab2 🚸 优化错误处理 2025-12-19 15:46:35 +08:00
BTMuli
11582330b5 💄 调整UI 2025-12-19 01:04:48 +08:00
BTMuli
3c4ff261fd ⬆️ 更新依赖 2025-12-18 23:58:06 +08:00
BTMuli
325457c0dd 🎨 优化性能 2025-12-18 01:40:01 +08:00
BTMuli
8879dfd912 支持手动更新背包记录 2025-12-18 01:34:45 +08:00
BTMuli
66006bb0f9 🐛 修复高度计算异常 2025-12-14 18:40:36 +08:00
BTMuli
5b372e9989 🐛 hide时显示窗口 2025-12-14 18:00:08 +08:00
Copilot
6cca6e56be 🚸重构千星页面,高度动态计算&活动次数计算共享 (#186)
* Initial plan

* Fix event pool pity count sharing for male/female gacha pools

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

* Use gachaType for pool filtering and simplify data passing

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

* Add dynamic height calculation and window resize listener to GbrDataView

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

* 🎨 Code style

* 🚸 没有数据更新时不刷新

---------

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 17:23:59 +08:00
BTMuli
9a0fbe11e9 🚸 刷新入口 2025-12-14 15:44:50 +08:00
BTMuli
a1befe8eff 添加release字段,调整WIKI角色页面排序
close #180
2025-12-14 14:51:16 +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
c8fe03c7ee 🏷️ 修正描述 2025-12-14 12:08:05 +08:00
BTMuli
a36c08aed5 补充itemId 字段
close #183
2025-12-14 02:46:09 +08:00
BTMuli
1b2399822c 从Hakushi获取动态字典
#183
2025-12-14 02:34:21 +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
e000f3924c Revert "🧑‍💻 添加Codacy配置文件以支持代码质量检查"
This reverts commit a07ad8ee20.
2025-12-12 01:41:34 +08:00
BTMuli
a07ad8ee20 🧑‍💻 添加Codacy配置文件以支持代码质量检查 2025-12-12 01:35:43 +08:00
BTMuli
8533516913 💄 调整实用脚本UI,显示用户米游币数量 2025-12-12 01:28:33 +08:00
BTMuli
16af3dcd24 ♻️ 支持空存档 2025-12-11 18:05:59 +08:00
BTMuli
073cd5e35d 👽️ 更新用户活动日历处理 2025-12-11 17:24:19 +08:00
BTMuli
abe34b8ee5 💄 深境螺旋UI迭代 2025-12-11 16:13:14 +08:00
BTMuli
5cdedda127 🚸 调整浅色模式下的背景色 2025-12-11 15:59:49 +08:00
BTMuli
d596df9137 👽️ 更新接口数据类型 2025-12-11 14:16:49 +08:00
BTMuli
958ba3d4ae 💄 调整布局 2025-12-11 01:04:12 +08:00
BTMuli
abfc1f5871 👽️ 角色活动卡池不严格区分类型 2025-12-10 20:54:26 +08:00
BTMuli
a1dca3a1cc 💄 微调 2025-12-09 17:50:09 +08:00
BTMuli
cc2020c64e ♻️ Yae数据传递移至App层,重构命令处理逻辑 2025-12-09 16:43:32 +08:00
BTMuli
bd914a0f44 🏷️ 武器&圣遗物添加guid字段 2025-12-09 15:41:01 +08:00
BTMuli
17690bb024 参考材料WIKI完善背包物品处理 2025-12-09 14:35:00 +08:00
BTMuli
eafd2fdff8 🌱 修复数据库读取异常,页面草创 2025-12-09 01:41:22 +08:00
BTMuli
b1fe5b6987 🌱 背包物品数据库建立&读写 2025-12-09 01:10:36 +08:00
BTMuli
446b9a7d78 ♻️ 调整数据结构 2025-12-08 23:45:12 +08:00
BTMuli
20a58c3032 🚸 监听窗口尺寸变化重新计算高度 2025-12-08 23:19:31 +08:00
BTMuli
a44bf0f5ba 💄 添加背景以提升可见度 2025-12-08 23:13:28 +08:00
BTMuli
7008aa5604 💄 适配资源 2025-12-08 22:56:31 +08:00
BTMuli
eedfe3270a 🍱 更新千星资源 2025-12-08 22:46:02 +08:00
BTMuli
06c0253bb2 🎨 微调 2025-12-06 23:23:27 +08:00
BTMuli
ca4befd0ca 🍱 更新魔女的前夜礼数据 2025-12-06 23:13:38 +08:00
BTMuli
3d7c374975 🚸 新手祈愿位置移后 2025-12-06 22:26:38 +08:00
BTMuli
2ca77b9944 重构真境剧诗页面UI,优化组件结构与样式 2025-12-06 20:57:03 +08:00
BTMuli
58c2044f47 🚸 增加点赞后取消配置 2025-12-06 14:44:50 +08:00
BTMuli
cf3f04c457 🌱 获取背包物品 2025-12-06 14:27:48 +08:00
BTMuli
a0a8999f96 🐛 修正UP抽数计算逻辑 2025-12-06 14:26:25 +08:00
BTMuli
ed3daa2277 🍱 更新卡池数据 2025-12-05 22:23:03 +08:00
BTMuli
637be3c4af 使用Swiper组件重构Gacha概览展示,优化数据展示方式 2025-12-05 22:05:17 +08:00
BTMuli
f30ee36a83 💄 调整高度计算&星级占比计算逻辑 2025-12-05 22:04:51 +08:00
Copilot
8d5cb52320 祈愿添加UP抽数数据,采取动态高度计算 (#174)
* Initial plan

* feat: Add UP average pull count for 5-star items in gacha records

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

* refactor: Optimize isStar5Up function by extracting Number conversion

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

* refactor: Add 4-star UP average and optimize hint calculation

- Add star4UpAvg variable and getStar4UpAvg() for 4-star UP average
- Add getItemHint() to calculate UP/歪 hint for both 4 and 5-star items
- Calculate hints in gro-data-view and pass via hint prop to gro-data-line
- Remove duplicate getEndHint() calculation from gro-data-line.vue
- Add UP average display in 4-star section with dynamic grid layout

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

* ♻️ 调整传递数据类型,样式适配调整

* 💄 微调高度

* fix: Use flexbox for dynamic height calculation in gro-data-view

Replace hardcoded height calculations with flexbox layout:
- Make gro-dv-container a flex column container
- Use flex: 1 for gro-bottom and gro-bottom-window to take remaining space
- Add min-height: 0 to enable proper flex shrinking for scrollable areas

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

* fix: Resolve v-window height overflow issue

- Add overflow: hidden to .gro-bottom and .gro-bottom-window containers
- Move overflow-y: auto scrolling to .gro-b-window-item level
- Add height: 100% to .gro-b-window-item for proper containment

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

* fix: Use dynamic height calculation via template refs

- Add template refs for container and header elements
- Calculate bottom and window heights dynamically based on actual DOM element sizes
- Remove flexbox approach that didn't work with Vuetify v-window
- Apply calculated heights via style binding

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

* 🎨 useTemplateRef & v-bind

---------

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-05 12:57:54 +08:00
BTMuli
3477ca2962 💩 暂时隐藏内置祈愿页面 2025-12-04 18:06:07 +08:00