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
🚀 v0.9.4
2026-01-22 01:46:17 +08:00
2024-07-18 18:03:31 +08:00
2025-05-29 13:32:16 +08:00
🎨 fmt
2026-02-08 14:02:02 +08:00
2026-02-22 16:20:35 +08:00
2026-02-26 12:35:24 +08:00
🚀 v0.9.4
2026-01-22 01:46:17 +08:00
2026-02-27 22:29:47 +08:00
🚀 v0.9.7
2026-02-26 18:33:04 +08:00
2026-02-27 23:52:15 +08:00
2025-12-24 17:21:36 +08:00
2025-05-29 13:32:16 +08:00
2025-12-30 02:53:00 +08:00
2026-01-17 12:39:15 +08:00
🚀 v0.9.7
2026-02-26 18:33:04 +08:00
2026-02-24 23:16:28 +08:00
2025-11-21 19:07:46 +08:00
2026-02-25 19:31:44 +08:00
2026-02-25 21:50:15 +08:00

Author, Description, Date, Update
Author Description Date Update
目棃 说明文档 2023-03-05 2026-02-25

本文档 FrontmatterMuCli 自动生成于 2023-03-05 14:41:55

更新于 2026-02-25 19:28:26

Ask DeepWiki FOSSA Status

icon

Teyvat Guide

基于 Tauri 的原神工具应用,支持 Windows 和 macOS 平台。

Game Tool for Genshin Impact player, supports Windows and macOS.

下载 / Download

程序已经通过微软商店审核,可以直接在商店下载。

download

macOS 用户可以通过 Github Release 下载,可能需要额外操作以打开。

macOS users could download the app from GitHub release, extra steps are needed to open the app.

GitHub release (latest by date)

仓库概况 / Repo Stats

Status

功能 / Features

  • 免登陆功能:

    • 当前卡池、近期活动、素材日历
    • 游戏内公告&活动获取
    • 米游社官方帖获取(支持通过 ID 获取)
    • 米游社各分区帖子获取(支持通过 ID 获取)
    • 米游社话题帖子获取(通过话题点击跳转)
    • 成就管理UIAF v1.1),支持 Yae 导入 & 自动导入内置Yae
    • 祈愿管理UIGF v3.0UIGF v4.2
    • 背包物品获取内置YAE
    • 留影叙佳期画片查看
    • 帖子收藏
    • 帖子评论查看&分享
  • 登陆功能:

    支持 扫码/验证码/Cookie 登陆,支持多账号管理

    • 近期活动(首页组件)
    • 游戏签到(首页组件)
    • 原神战绩
    • 角色详情
    • 高难挑战(深境螺旋/真境剧诗/幽境危战)
    • 祈愿数据获取(近一年)
    • 千星奇域颂愿数据获取(近一年)
    • 用户收藏帖子获取
    • 用户关注帖子获取
    • 一键完成米游币每日任务
    • 一键完成游戏签到
  • Wiki 功能:

    • 角色图鉴
    • 武器图鉴
    • 名片图鉴
    • 材料图鉴
  • 应用功能:

    • 浅色/深色主题切换
    • 米游社 JSBridge
    • 终端命令行调用
    • 支持胡桃云

贡献者 / Contributors

UI 参考 / UI Reference

相关文档 / Docs

特定项目 / Special Project

  • MuCli:基于 NodeJS 的命令行工具,用于生成项目文档。
  • TGAssistantTeyvat Guide 的资源获取、解析、处理仓库。
  • WhiteTeaGithub Bot自动化处理 Teyvat Guide 的 Issue 和 Pull Request。

技术栈 / Tech Stack

第三方组件 / Plugins

  • Ajv用于校验UIAF&UIGF导入数据
  • Artplayer:用于米游社帖子视频播放解析
  • Echarts:用于祈愿概览图生成
  • Html2Canvas:用于分享图生成
  • Sentry:用于收集应用崩溃信息

协议 / License

项目基于 MIT 协议开源。

应用版本号遵循 Semantic Versioning 2.0.0 规范。

隐私政策:Privacy

FOSSA Status

鸣谢 / Thanks

本项目在开发过程中参考了诸多相关开源项目,特此鸣谢。

Star History Chart

Description
Game Tool for Genshin Impact player, supports Windows and macOS.
Readme MIT 213 MiB
Languages
Vue 71.7%
TypeScript 22.7%
Rust 4.8%
SCSS 0.5%
JavaScript 0.3%