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
2025-12-02 21:29:14 +08:00
2024-07-18 18:03:31 +08:00
2025-05-29 13:32:16 +08:00
2025-11-19 13:22:01 +08:00
🧑‍💻 修复eslint异常
2025-09-09 15:12:30 +08:00
2025-12-11 17:24:19 +08:00
2025-01-09 14:28:53 +08:00
2025-12-14 14:30:15 +08:00
2025-12-14 14:30:15 +08:00
2024-09-07 09:17:50 +08:00
2024-11-05 14:08:47 +08:00
2025-05-29 13:32:16 +08:00
2025-06-15 15:02:29 +08:00
🚀 v0.8.8
2025-12-03 20:30:48 +08:00
🚀 v0.7.7
2025-06-17 17:09:11 +08:00
2025-11-21 19:07:46 +08:00
🚀 v0.8.8
2025-12-03 20:30:48 +08:00
2025-12-02 21:59:24 +08:00
2024-12-06 17:46:21 +08:00
🚀 v0.8.7
2025-12-03 10:24:27 +08:00
2025-06-15 15:16:25 +08:00
2025-06-15 15:16:25 +08:00

Author, Description, Date, Update
Author Description Date Update
目棃 说明文档 2023-03-05 2025-12-03

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

更新于 2025-12-03 10:22:51

Ask DeepWiki

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.1
    • 留影叙佳期画片查看
    • 帖子收藏
    • 帖子评论查看&分享
  • 登陆功能:

    支持 扫码/验证码/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:用于分享图生成

协议 / License

项目基于 MIT 协议开源。

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

隐私政策:Privacy

鸣谢 / 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%