Commit Graph

81 Commits

Author SHA1 Message Date
BTMuli
6db1ab0a45 🚸 添加用户反馈显示控制入口 2026-01-17 23:07:54 +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
605efacf67 🚸 调整解析逻辑&渲染 2025-12-22 17:39:16 +08:00
BTMuli
a2ff92d00a ♻️ 方法提取 2025-12-22 16:15:23 +08:00
LuoYunXi
696ca40f7f Fix typo (#187)
根据定义「咨讯」应为「资讯」。

News 是「资讯」
而「咨讯」在网络上检索到的定义为 Valuable Information,且现代汉语词典(第 7 版)中未收录该词
2025-12-21 11:26:25 +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
58c2044f47 🚸 增加点赞后取消配置 2025-12-06 14:44:50 +08:00
BTMuli
db03f211d4 窄视图 2025-11-25 15:13:21 +08:00
BTMuli
7a6a06bb25 🐛 修正链接判断逻辑 2025-10-02 12:18:25 +08:00
BTMuli
b62b0b4902 🐛 重构数据解析,修复HEIC格式图片渲染异常 2025-09-28 23:13:55 +08:00
BTMuli
d3ab4fb6dc ♻️ 调整服务器类型归属 2025-06-25 20:23:18 +08:00
BTMuli
70a716842f ♻️ 重构公告模块,降低请求次数 2025-06-01 19:31:40 +08:00
BTMuli
0d6ba14a0e ♻️ 修正import,调整路径 2025-05-23 11:58:11 +08:00
目棃
3bd1853008 存储分区信息 2025-03-28 12:02:28 +08:00
目棃
b276b04f23 🏷️ typo 2025-03-18 13:42:21 +08:00
目棃
522add2441 ♻️ erasableSyntaxOnly 2025-03-17 17:58:15 +08:00
目棃
d2e6d112d5 🔧 无痕浏览,默认开启 2025-02-24 19:09:49 +08:00
目棃
0fd9e9a934 🚸 100%时返回原图 2025-01-13 09:07:05 +08:00
目棃
63b7f685c1 🚸 支持配置图像质量 2025-01-10 17:53:13 +08:00
目棃
3ed6d503d4 ♻️ 全面整理重构 2024-12-13 16:15:01 +08:00
目棃
d15cece933 🐛 fix TGApp is not defined 2024-12-06 18:54:25 +08:00
目棃
6a3d2d6b36 ♻️ 代码结构调整 2024-12-06 17:46:21 +08:00
目棃
ad1e8339ac 分享图生成阈值自定义 2024-11-30 11:59:39 +08:00
目棃
c6f45f0a35 ♻️ 请求模块重构 2024-11-19 09:34:18 +08:00
目棃
df3158f428 直接启动原神
close #80
2024-09-30 19:21:50 +08:00
目棃
1dc5aa0ef8 ♻️ 重构成就表格,支持多存档
#126
2024-09-20 15:57:02 +08:00
目棃
ee9f9b7acd 🐛 修正label&子窗口回正异常 2024-09-06 12:21:22 +08:00
目棃
599f9273e2 🐛 修复一堆bug 2024-09-06 11:37:40 +08:00
目棃
fc43dd9820 添加回正开关,默认开启 2024-08-11 17:36:29 +08:00
目棃
49854367b1 🐛 修复日志目录异常 2024-07-31 19:13:16 +08:00
目棃
d9ab24cb14 🐛 修复数据路径错误 2024-07-07 17:10:57 +08:00
目棃
0061dfa988 ✏️ 继续修正 import 2024-06-26 22:41:25 +08:00
目棃
d56a438662 完成活动时间正则匹配
close #94
2024-02-25 15:47:01 +08:00
目棃
2509b488d2 🌱 完善类型,初步进行正则match #94 2024-02-24 18:12:05 +08:00
目棃
c9fbddcf5d ️ 优化咨讯页版块跳转,记忆当前类型 2024-02-24 16:18:13 +08:00
目棃
02d875115f 公告支持切换服务器&语言
close #81
2024-02-01 13:22:39 +08:00
目棃
c0e7633b51 ♻️ 完善日志,重构设置页面 2024-01-22 21:15:38 +08:00
目棃
a1e0b79cca 支持用户修改数据目录
close #78
2024-01-18 16:56:43 +08:00
BTMuli
f4d0755154 ️ 调整 wiki 样式 2023-12-23 21:50:56 +08:00
BTMuli
26d1883d98 添加 isLogin,用以判断是否登录 2023-11-28 15:15:36 +08:00
BTMuli
712a09131e 实装 getDeviceFp
close #58
2023-11-16 14:23:30 +08:00
BTMuli
b04f49ec46 🎨 代码格式化 2023-10-10 23:15:26 +08:00
BTMuli
66ecd9a91e ♻️ 通过 import.meta 获取当前环境 2023-10-08 23:52:37 +08:00
BTMuli
a7dd069930 🚚 tauri-genshin → Teyvat Guide 2023-09-15 17:19:33 +08:00
BTMuli
477201bfb3 🎨 微改 2023-09-04 17:08:07 +08:00
BTMuli
bda4966ae5 初步打通相关流程 2023-09-04 01:12:19 +08:00
BTMuli
7567bba147 🎨 代码格式化 2023-06-25 16:15:15 +08:00
BTMuli
f55a688aae 新增一个 devEnv 用于判断生产环境|开发环境
fix #26
2023-05-24 15:45:03 +08:00
BTMuli
0250684067 💄 精简侧边栏,游戏切换置于页面内 2023-05-21 18:32:36 +08:00