Compare commits

..

218 Commits

Author SHA1 Message Date
BTMuli
f3428f3a41 🚀 v0.3.8 2023-12-20 11:36:57 +08:00
BTMuli
d863f6198e 🍱 补充部分 contentId
close #66
2023-12-20 11:34:04 +08:00
BTMuli
a461fb9a00 🚨 修复 eslint 报错 2023-12-20 00:54:15 +08:00
BTMuli
568b0b5db7 ♻️ 公告页的窗口创建逻辑也顺便改一下 2023-12-20 00:50:41 +08:00
BTMuli
0d5d77e2bd ✏️ 简化类型定义 2023-12-20 00:28:10 +08:00
BTMuli
369d62f4e7 🐛 修复一些 bug
* 部分武器描述存在 \n 导致的渲染错误
* 传入参数类型与定义类型不一致导致控制台 warn
2023-12-20 00:23:46 +08:00
BTMuli
7a36ab6665 ♻️ 复用方法提出来,暂时砍掉数值渲染 2023-12-19 21:20:38 +08:00
BTMuli
bc50acb813 💄 完善 wiki 页面样式 2023-12-19 19:45:17 +08:00
BTMuli
43732578cd ✏️ 类型修正 2023-12-19 18:14:17 +08:00
BTMuli
a04bdee7cb 🌱 角色 wiki 命座样式优化,技能样式草创 2023-12-19 18:11:10 +08:00
BTMuli
1d4621843a 🌱 角色 wiki 材料组件化,命座样式草创 2023-12-19 17:44:20 +08:00
BTMuli
4ca76b168e 💄 调整样式 2023-12-19 17:00:59 +08:00
BTMuli
b00c8b424d ️ 调整 ci 2023-12-18 22:44:07 +08:00
BTMuli
48159aa483 💄 弹窗改为弹出框 2023-12-18 22:05:16 +08:00
BTMuli
5a95fc1eda 🍱 更新 wiki 所需素材 2023-12-18 21:09:15 +08:00
BTMuli
5f95299cf2 🍱 更新角色、武器、素材日历资源 #66 2023-12-18 20:51:31 +08:00
BTMuli
e8734c8483 🍱 更新名片数据 #66 2023-12-18 20:40:18 +08:00
BTMuli
2d65608674 🍱 更新成就 json #66 2023-12-18 20:36:14 +08:00
BTMuli
df5d22d39b ♻️ 窗口创建逻辑变更 2023-12-18 18:34:25 +08:00
BTMuli
8a409f3e9b 🐛 修复帖子跳转异常 2023-12-18 18:24:01 +08:00
BTMuli
430a703c2d 👷 调整 ci 2023-12-18 16:39:51 +08:00
BTMuli
0a33f468a3 🐛 调整不存在时的默认 id 2023-12-18 13:53:55 +08:00
BTMuli
dced5755da 🚚 目录结构调整 2023-12-18 13:42:50 +08:00
BTMuli
842ba3221d 🚚 0星背景与1星相同 2023-12-18 11:34:31 +08:00
BTMuli
05c90e16ad 🍱 初步更新卡牌资源 #66 2023-12-18 11:32:48 +08:00
BTMuli
dd7db68f57 🌱 完善角色 wiki,移除 share 2023-12-18 00:37:38 +08:00
BTMuli
f20622b55c 🔧 允许置顶 2023-12-17 23:43:51 +08:00
BTMuli
762d096f28 💄 修复材料 star 为 0 时的渲染错误 2023-12-17 23:39:53 +08:00
BTMuli
39e33d4dcf 🚚 优化目录结构 2023-12-17 23:09:24 +08:00
BTMuli
7aefd4ebb8 🌱 添加 wiki 需要的 icon 资源 2023-12-17 22:59:33 +08:00
BTMuli
759c585612 🚨 修复 qodana 报错 2023-12-17 22:36:38 +08:00
BTMuli
4370bbaa57 ♻️ userStore 及 cookie 相关类型重构 #51 2023-12-16 22:46:02 +08:00
BTMuli
00386bc7ee ️ 完善 getCookieToken 回调 2023-12-16 21:11:42 +08:00
BTMuli
497c126263 支持打开酒馆内的帖子 2023-12-16 17:41:56 +08:00
BTMuli
1f5daab03f 添加菜单项 2023-12-16 17:25:33 +08:00
BTMuli
154a9183bf 添加菜单项 2023-12-16 17:14:26 +08:00
BTMuli
11fa30bd4f 🔇 清除调整一些 log 2023-12-16 16:40:42 +08:00
BTMuli
02398e3d63 ️ 仅在主窗口添加米社回调处理 2023-12-16 16:04:30 +08:00
BTMuli
5f26e8c01d 🩹 增加两个链接重定向
*旧原神签到页面→新签到页面
*旧原神工具箱→新原神工具箱
2023-12-16 16:03:15 +08:00
BTMuli
cba947ffc8 🐛 修复表情包解析错误
*PostID: 46566582
2023-12-16 00:03:29 +08:00
BTMuli
33a56385d1 ️ 报存 → 保存 2023-12-15 20:53:21 +08:00
BTMuli
7cd8b6ffd9 🎨 保存逻辑调整,取消保存到文件仍可保存到剪贴板 2023-12-15 20:26:38 +08:00
BTMuli
e8432e705b 🐛 修复 UIGF 导出格式错误
fix #71
2023-12-15 19:21:25 +08:00
BTMuli
6e6648f652 ✏️ 部分武器(芙宁娜专武)可能有两个故事 2023-12-15 18:52:36 +08:00
BTMuli
a9f80da053 🌱 添加 wiki 武器类型相关 2023-12-15 18:31:42 +08:00
BTMuli
dffb1475f8 🎨 完善基本的加载处理 2023-12-15 17:28:45 +08:00
BTMuli
49a47a16ee 🌱 添加 wiki 窗口创建逻辑 2023-12-15 17:10:15 +08:00
BTMuli
39cc07694a 🌱 添加 wiki 角色类型相关 2023-12-15 17:00:24 +08:00
BTMuli
2df65515a4 🐛 打了一个补丁,问题肯定还是有的x 2023-12-15 15:08:16 +08:00
BTMuli
058ad8cd8e 🐛 修复拼写错误 2023-12-15 15:06:05 +08:00
BTMuli
01ea7fa4db 🐛 参数搞错了x 2023-12-15 14:18:24 +08:00
BTMuli
56efbcf583 🐛 完善 mihoyobbs: protocol 处理 2023-12-15 13:23:34 +08:00
目棃
f0fc0ecd81 Merge pull request #70 from BTMuli/dependabot/cargo/src-tauri/zerocopy-0.7.31
Bump zerocopy from 0.7.30 to 0.7.31 in /src-tauri
2023-12-15 12:52:16 +08:00
dependabot[bot]
c438c07483 Bump zerocopy from 0.7.30 to 0.7.31 in /src-tauri
Bumps [zerocopy](https://github.com/google/zerocopy) from 0.7.30 to 0.7.31.
- [Release notes](https://github.com/google/zerocopy/releases)
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/zerocopy/compare/v0.7.30...v0.7.31)

---
updated-dependencies:
- dependency-name: zerocopy
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 03:57:00 +00:00
BTMuli
86f7838578 🐛 修复一些 bug
* 天赋为 0 时设为 1
* 修正签到 url
2023-12-15 00:49:45 +08:00
BTMuli
3337cfbf6d deviceInfo 保存到数据库 2023-12-14 21:51:31 +08:00
BTMuli
3844e36fdb ✏️ 类型修正以避免报错 2023-12-14 18:04:50 +08:00
BTMuli
2f9fb30026 🙈 更新 ignore 2023-12-14 18:01:40 +08:00
BTMuli
125ecee943 🌱 图鉴页面开始动工? 2023-12-14 17:58:54 +08:00
BTMuli
6d3c03516f 添加实时便笺快捷入口 2023-12-14 15:22:16 +08:00
BTMuli
833bffba4f 🎨 微改
*侧边栏酒馆 → 帖子
*完善对于 protocol 的判断
2023-12-14 00:32:03 +08:00
BTMuli
cc73997da0 完善分享回调
*增加对于 content.image_base64 的处理
*完善 preview:true 的 dom 判断
2023-12-14 00:27:44 +08:00
BTMuli
07dc2a4f66 完善回调
*增加对于 openApplication 的处理
*支持 screenshot 类型的 share
2023-12-13 23:15:06 +08:00
BTMuli
19c6f265a9 🐛 增加对于 eventTrack 的回调处理
*修复战绩跳转游戏带来的异常
2023-12-13 21:14:25 +08:00
BTMuli
e3c74dc237 🧑‍💻 调整顺序 2023-12-13 20:13:19 +08:00
BTMuli
ffe96e86cd 🔧 避免 a 调用系统浏览器 2023-12-13 18:34:07 +08:00
BTMuli
c2306ed5d7 ♻️ 重构链接识别处理 2023-12-13 18:06:22 +08:00
BTMuli
e9d1d70d36 ️ revert 0141012f,保留必要快捷入口
*签到页用于签到
*战绩页用于1034
*酒馆页用于米社跳转
2023-12-13 16:02:44 +08:00
BTMuli
4664e567db 💄 移除对于 pendant div的裁切 2023-12-13 15:48:53 +08:00
BTMuli
9ad20640e6 🐛 修复文本过长导致的渲染溢出
*PostID:46427968
2023-12-13 15:42:14 +08:00
BTMuli
86c87344ea 💄 -webkit-backdrop-filter 2023-12-12 22:12:56 +08:00
BTMuli
845bcdaae0 🔧 忽略 -webkit-backdrop-filter 2023-12-12 22:12:03 +08:00
BTMuli
a7c7a533db 🐛 修复 macOS 闪退问题
fix #69
2023-12-12 17:51:41 +08:00
BTMuli
0defb65115 🌱 尝试修复 macOS 闪退问题 #69 2023-12-12 15:00:32 +08:00
BTMuli
5dc8c3b7c3 🐛 修复引用错误 2023-12-12 14:50:16 +08:00
BTMuli
888f1f2bdd ️ 增加目录存在判断 2023-12-12 13:53:32 +08:00
BTMuli
57e055ebe8 ♻️ 重构登录态校验 2023-12-12 13:49:18 +08:00
BTMuli
d5beea5c2d ⬆️ 更新依赖 2023-12-12 13:48:21 +08:00
BTMuli
17b0d75d21 🚀 v0.3.7 2023-12-11 19:14:32 +08:00
BTMuli
e973ac41fa 💚 调整 CI 2023-12-11 19:13:55 +08:00
BTMuli
30a97e9973 🚸 完善链接解析 2023-12-11 15:52:38 +08:00
BTMuli
07e944859c 🗑️ 增加几个 callback 处理 2023-12-11 15:49:41 +08:00
BTMuli
17744cc01d ♻️ 重构 pushPage、closePage 逻辑 2023-12-11 15:05:30 +08:00
BTMuli
cfc1f65e3e 🐛 完善链接识别 2023-12-11 01:08:44 +08:00
BTMuli
0965524003 ♻️ 优化切分正则
*PostID: 46252606
*thanks @Lightczx
2023-12-10 20:55:06 +08:00
BTMuli
d4818448b5 🚨 修复 qodana 报错 2023-12-10 20:47:34 +08:00
BTMuli
3ff37fcc83 📝 添加帖子获取说明 2023-12-10 16:38:55 +08:00
BTMuli
838fefac6a ️ 添加 hover 效果 2023-12-10 16:30:37 +08:00
BTMuli
0141012f55 🔥 移除侧边栏点击菜单,可通过新页面打开 2023-12-10 16:20:49 +08:00
BTMuli
347b3ed13d 🔧 完善链接识别 2023-12-10 16:16:46 +08:00
BTMuli
8c50da61b1 🗑️ loadMore 2023-12-10 16:03:07 +08:00
BTMuli
5395304431 💄 修复大别野卡片渲染错误,调整大别野卡片样式 2023-12-10 15:07:07 +08:00
BTMuli
39713bf5d3 添加帖子ID输入 2023-12-10 14:42:49 +08:00
BTMuli
771505b527 🔥 移除首页 emoji 下载 2023-12-10 13:20:59 +08:00
BTMuli
1a381916a5 👔 完善对于链接的判断逻辑 2023-12-10 13:20:12 +08:00
BTMuli
1d0b070451 🐛 修复表情包渲染错误,缺乏时自动下载 2023-12-10 13:12:48 +08:00
BTMuli
9a18fa8e42 🌱 添加应用“发现”接口 2023-12-09 21:18:31 +08:00
BTMuli
7164c7caf2 🔥 删除无用 css
close #64
2023-12-09 20:50:02 +08:00
BTMuli
aeb49dabb2 💄 修复描述过长导致的渲染错误 2023-12-09 20:40:03 +08:00
BTMuli
1ccb99dd1b 完成多游戏多频道多排序帖子获取
close #67
2023-12-09 17:29:13 +08:00
BTMuli
f998ba21b3 💄 增加深色模式下的辨识度 2023-12-09 17:27:53 +08:00
BTMuli
5406e10922 🐛 修复公告标题显示 <br> 的问题 2023-12-09 15:39:22 +08:00
BTMuli
527093b982 🚸 默认最新回复 2023-12-09 15:31:52 +08:00
BTMuli
7b34124cd2 Revert " 打包测试"
This reverts commit 6151d13b96.
2023-12-09 14:06:57 +08:00
BTMuli
3bf48561a1 ️ 避免搞混 2023-12-09 14:04:14 +08:00
BTMuli
c24ae38294 👷 增加 macOS arm 安装包
close #68
2023-12-09 14:00:00 +08:00
BTMuli
e94e3a6821 打包测试x3 2023-12-09 13:44:14 +08:00
BTMuli
ad55e56651 打包测试x2 2023-12-09 13:14:41 +08:00
BTMuli
6151d13b96 打包测试 2023-12-09 12:48:14 +08:00
BTMuli
dbf2ed4a56 💚 增加参数 2023-12-09 12:47:12 +08:00
BTMuli
624970aa57 🩹 MacOS → macOS 2023-12-09 12:42:33 +08:00
BTMuli
4c480d1fa2 👷 macOS 平台打包成 universal #68 2023-12-09 12:39:50 +08:00
BTMuli
4880e6bb8e 🌱 仿照咨讯页写了个酒馆页面 #67 2023-12-09 00:52:11 +08:00
BTMuli
7d142d02b3 ✏️ 适应 api 返回更新数据类型 2023-12-09 00:19:43 +08:00
BTMuli
df06d7aba0 💄 调整应用标识样式 2023-12-08 17:21:08 +08:00
BTMuli
b01e4e680f 💄 修复分享图生成错误 2023-12-08 17:15:26 +08:00
BTMuli
be3d49566d 🐛 插入 obj,自动转为 unknown 2023-12-08 16:58:43 +08:00
BTMuli
9aac81cbc4 🌱 video 缺乏数据源 2023-12-08 13:28:23 +08:00
BTMuli
e61f9519db 👷 调整参数 2023-12-08 13:19:19 +08:00
BTMuli
48f6d95c7a 🎨 修正一些小错误 2023-12-08 13:17:58 +08:00
BTMuli
0cb68dfe6f ✏️ 结构化数据类型分解 #51 2023-12-08 13:10:09 +08:00
BTMuli
1df568e26a 🔥 弃用旧渲染方式 #64 2023-12-08 13:03:42 +08:00
BTMuli
e249b5e956 🐛 修复默认画质错误,调整 aspect-ratio 2023-12-08 12:38:31 +08:00
BTMuli
c9370b0a22 📝 增加第三方组件说明 2023-12-07 15:25:20 +08:00
BTMuli
32691c6c92 🙈 删除过时 submodule 2023-12-07 15:24:46 +08:00
BTMuli
68edc6bcab 🙈 忽略图像文件 2023-12-07 15:23:42 +08:00
BTMuli
a800ed532d 💄 添加折叠框 icon 2023-12-07 15:08:35 +08:00
BTMuli
0bb730d2e3 💄 帖子增加应用标识 2023-12-07 14:08:04 +08:00
BTMuli
fcb5f94656 ✏️ 修正 vod.id 类型 2023-12-07 13:57:03 +08:00
BTMuli
3883f9880a 🐛 修复一些问题
*无法实例化多个Artplayer
*生成图 div 无实际占位
2023-12-07 13:51:08 +08:00
BTMuli
919baca46c 👷 适应 pnpm 进行切分 2023-12-07 13:19:29 +08:00
BTMuli
2e63d310af ♻️ 优化逻辑,完善大小计算 2023-12-07 12:57:37 +08:00
BTMuli
64ee8a36dc ️ 完善组件样式
*完善活动链接识别
*调整特殊文本偏移
*调整链接卡片图片宽度
*大别野卡片样式重构
2023-12-07 01:23:55 +08:00
BTMuli
71d7337384 完善 share 回调 2023-12-07 00:17:59 +08:00
BTMuli
389acf19fe ♻️ 优化代码 2023-12-06 23:35:34 +08:00
BTMuli
f55f4116d5 🐛 canvas 超过 80MB 时不予保存,超过 20MB 时给予提示 2023-12-06 23:31:31 +08:00
BTMuli
68b84d2bc7 ️ 全屏播放视频,默认最高清晰度 2023-12-06 23:28:51 +08:00
BTMuli
669dec73ba ️ 移除遮罩,自动聚焦 2023-12-06 22:15:53 +08:00
BTMuli
03b83ba2d1 ️ 完善组件样式 #64
*优化换行符渲染
*增加网页活动识别
*调整折叠文本样式
*限制最大宽度而非写死宽度
2023-12-06 20:30:14 +08:00
BTMuli
0f07f8c031 ️ 添加播放次数 2023-12-06 19:43:02 +08:00
BTMuli
3b08dd9a14 ✏️ 更新互动类型 2023-12-06 19:24:27 +08:00
BTMuli
f11c1ef984 🎨 默认采用新渲染方式 2023-12-06 18:11:50 +08:00
BTMuli
d271444610 采用 Artplayer #64 2023-12-06 18:10:40 +08:00
目棃
d9fa158076 Merge pull request #65 from BTMuli/dependabot/npm_and_yarn/vite-5.0.5
Bump vite from 5.0.3 to 5.0.5
2023-12-06 15:21:20 +08:00
dependabot[bot]
e08f37b89e Bump vite from 5.0.3 to 5.0.5
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.3 to 5.0.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-05 23:55:25 +00:00
BTMuli
7ba2011b35 🚨 修复 qodana 报错 2023-12-03 18:02:45 +08:00
BTMuli
cab0c9a9c8 大概完成渲染方式重构,点击标题切换
#64
2023-12-03 00:34:59 +08:00
BTMuli
885a8b22da ️ 完善 linkCard 解析样式 2023-12-03 00:23:06 +08:00
BTMuli
b5eec739e7 🌱 完成 mention,backupText,linkCard 类型的解析组件化 2023-12-03 00:06:05 +08:00
BTMuli
3640a43fa7 💄 完善样式 2023-12-02 23:54:38 +08:00
BTMuli
bb58e6ef03 🌱 完成 image,divider,vod,unknown 类型的解析组件化 2023-12-02 23:26:41 +08:00
BTMuli
9b27e8d955 🌱 完成 text,emoji,link 类型的解析组件化 2023-12-02 22:58:17 +08:00
BTMuli
7ae8b5ec46 ️ 副标题过长时进行折行 2023-12-02 22:36:33 +08:00
BTMuli
060382b3a7 🐛 修复 tag_list 字段 undefined 导致的解析错误
fix #63
2023-11-30 14:02:54 +08:00
BTMuli
747763601b ✏️ 修正大别野数据结构 2023-11-30 14:00:40 +08:00
BTMuli
5b8610ab5b ⬆️ 更新依赖 2023-11-29 16:57:57 +08:00
BTMuli
80e27a20a7 🚀 v0.3.6 2023-11-28 15:19:05 +08:00
BTMuli
26d1883d98 添加 isLogin,用以判断是否登录 2023-11-28 15:15:36 +08:00
BTMuli
91fd375263 保留旧版,默认新版,旧版增加左右切换
close #20
2023-11-25 20:40:59 +08:00
BTMuli
3b0ed774df 🐛 修复分享图生成错误 2023-11-25 20:27:30 +08:00
BTMuli
5f3f6640a4 💩 分享图生成错误 2023-11-25 17:15:52 +08:00
BTMuli
b1424fb582 🌱 完成左下命座显示 2023-11-25 16:34:12 +08:00
BTMuli
f64b48c356 🌱 完成右侧天赋展示 4/5
#20
2023-11-25 16:21:34 +08:00
BTMuli
90242829a9 🌱 角色详情页面初步改造 3/5
#20
2023-11-25 00:05:45 +08:00
BTMuli
d6ae3765b6 💄 微调样式 2023-11-21 16:23:14 +08:00
BTMuli
92a1775d19 🐛 修复顶部名片渲染错误 2023-11-21 15:49:00 +08:00
BTMuli
fd3822fe70 ♻️ 列表渲染改成原生,降低性能消耗 2023-11-21 15:23:51 +08:00
BTMuli
618d3a1632 🚸 应用加载时关闭隐藏的子窗口 2023-11-21 13:53:18 +08:00
BTMuli
1c3b73bde9 ️ 优化 hint 2023-11-18 22:13:02 +08:00
BTMuli
c541d67abc 隐藏已完成成就
close #19
2023-11-18 22:03:36 +08:00
BTMuli
1d3b1ae78e 完成单个成就状态修改
close #60
2023-11-18 21:51:04 +08:00
BTMuli
312436b4e2 💄 增加 icon 清晰度 2023-11-18 21:01:47 +08:00
BTMuli
d98663dccb 🐛 完善数据库检测机制
fix #62
2023-11-18 20:46:14 +08:00
BTMuli
653073e684 🚨 修复 qodana 报错 2023-11-18 12:29:35 +08:00
BTMuli
1d09f4817b ️ 调整部分 ui 2023-11-18 00:28:12 +08:00
BTMuli
6ca5de28ac 🌱 初步迁移非重复数据库操作 #60 2023-11-17 23:47:31 +08:00
BTMuli
ff649c2426 🐛 初始化数据库仅保留手动方式 #62 2023-11-17 23:24:17 +08:00
BTMuli
1c5bebf75e ️ 输入框自动聚焦,回车自动确认 2023-11-17 23:22:32 +08:00
BTMuli
b60718aa62 ️ 优化 share 样式 2023-11-17 22:26:29 +08:00
BTMuli
c018638e4a 💄 微调样式 2023-11-17 21:55:31 +08:00
BTMuli
1906e911c7 💄 调整 finish icon color 2023-11-17 21:12:53 +08:00
BTMuli
fbb66b3964 🎨 内存不是问题x 2023-11-17 18:05:29 +08:00
BTMuli
561f34cf8b ⬆️ 更新依赖 2023-11-17 13:26:59 +08:00
BTMuli
5241c08c33 👽️ 大别野也有咨讯区了 2023-11-17 00:19:17 +08:00
BTMuli
630a64323d 🐛 我真傻,真的 2023-11-16 23:58:17 +08:00
BTMuli
54d2e27054 🐛 修复一些 bug
* 米社子窗口关闭后无法再次创建
* 保存图片回调默认路径错误
* 调整 closePage 逻辑
2023-11-16 22:38:42 +08:00
BTMuli
1c69cf07a5 ⬆️ 米社 salt 更新,2.59.1 → 2.63.1 2023-11-16 22:01:10 +08:00
BTMuli
715c206945 素材日历添加“留影叙佳期”入口
close #61
2023-11-16 22:00:35 +08:00
BTMuli
219286f6a1 🎨 完善 fp 更新逻辑 2023-11-16 20:59:32 +08:00
BTMuli
fc3d417961 🎨 微调逻辑 2023-11-16 14:44:23 +08:00
BTMuli
712a09131e 实装 getDeviceFp
close #58
2023-11-16 14:23:30 +08:00
BTMuli
13e9440c6f ✏️ 完善类型 #51 2023-11-16 00:21:36 +08:00
BTMuli
bed0e528b0 ✏️ extends BaseWithData #51 2023-11-16 00:16:04 +08:00
BTMuli
43c282efd2 📝 更新 UIGF 文档 2023-11-15 21:02:13 +08:00
BTMuli
b74a3b0bbf 🎨 格式化 2023-11-15 14:04:13 +08:00
BTMuli
7c0239391e 🔧 调整部分配置 2023-11-15 14:00:52 +08:00
BTMuli
b1060f76c5 ⬆️ 更新依赖,开写 v0.3.6 2023-11-15 14:00:08 +08:00
BTMuli
66137cf5b6 🚀 v0.3.5 2023-11-11 12:15:18 +08:00
BTMuli
69668f5ada ✏️ 类型修正 2023-11-10 22:06:26 +08:00
BTMuli
a5cff46efb ⬆️ 更新 UIGF v2.3 → v2.4
close #59
2023-11-10 20:53:18 +08:00
BTMuli
8037b635ba 👽️ 适应 endpoint 变更 2023-11-10 00:46:42 +08:00
BTMuli
7a060a71f0 💄 适应游戏样式变更 ui 2023-11-09 17:21:48 +08:00
BTMuli
d583247630 🍱 添加遗漏 contentId
close #57
2023-11-09 00:40:10 +08:00
BTMuli
c1a7e8448a 🐛 更新数据库时更新 buildTime 2023-11-06 23:02:10 +08:00
BTMuli
349bab1173 ✏️ itemType 收束 2023-11-06 22:49:42 +08:00
BTMuli
db36d18df2 💄 修复 hint 被 overlay 遮挡的问题 2023-11-06 22:41:03 +08:00
BTMuli
f619ccc64b 🍱 更新部分 4.2 资源文件 #57 2023-11-06 22:30:50 +08:00
BTMuli
8ae1d578ff 🐛 修复图片保存失败(真)
fix #56
2023-11-03 00:13:16 +08:00
BTMuli
e6eaa2e293 💄 调整基准背景色 2023-11-02 23:39:55 +08:00
BTMuli
a9912cf42b 🌱 准备 beta 版本的角色详情页面 2023-11-02 17:32:13 +08:00
BTMuli
4aa9319799 ⚰️ 删除无用代码 2023-11-02 17:14:16 +08:00
BTMuli
38ef0bfcca 🚚 稍微调整了下位置 2023-11-02 17:10:34 +08:00
BTMuli
c55f5b9ab8 👷 更新 template 2023-11-02 11:53:12 +08:00
BTMuli
468db1171e 🌱 share 延时 3s 自动退出 2023-11-02 11:47:31 +08:00
BTMuli
a474b96280 🎨 调整 hideSideBar 逻辑 2023-11-02 11:26:29 +08:00
BTMuli
149c7b3f27 增加工具箱入口,隐藏生日入口 2023-11-02 11:21:45 +08:00
BTMuli
abca5bd2f9 🐛 修复图片保存失败
fix #56
2023-11-02 11:07:44 +08:00
BTMuli
89d3a172b8 ⬆️ 更新依赖,开写 0.3.5 2023-11-02 10:16:26 +08:00
640 changed files with 10142 additions and 4298 deletions

View File

@@ -1,7 +1,8 @@
# Build
dist
src-tauri/target
# Submodules
TGAssistant
# Package files
pnpm-lock.yaml
# lint files
!.prettierrc.yml
!.stylelintrc.yml

View File

@@ -4,8 +4,6 @@ title: "[Bug] "
labels:
- BUG
- Question
assignees:
- BTMuli
body:
- type: markdown
attributes:
@@ -16,25 +14,14 @@ body:
- 复现流程
- type: checkboxes
attributes:
label: Issue重复性检查
description: 我确认查找过相关的 Issue
label: Issue Check
options:
- label: 我确认查找过相关的 Issue
required: true
- type: checkboxes
attributes:
label: 问题必要性检查
description: 我确认这个问题是影响使用的
options:
required: false
- label: 我确认这个问题是影响使用的
required: true
- type: checkboxes
attributes:
label: 提问的艺术
description: 我阅读过[提问的艺术](https://github.com/betaseeker/How-To-Ask-Questions)
options:
required: false
- label: 我阅读过[提问的艺术](https://github.com/betaseeker/How-To-Ask-Questions)
required: true
required: false
- type: textarea
id: description
attributes:
@@ -48,7 +35,7 @@ body:
attributes:
label: 当前使用版本
description: 请填写当前使用版本
placeholder: 如 Beta v0.3.4
placeholder: 如 Beta v0.3.7
validations:
required: true
- type: textarea

View File

@@ -3,8 +3,6 @@ description: 提交新功能请求
title: "[Feat] "
labels:
- 新特性
assignees:
- BTMuli
body:
- type: markdown
attributes:
@@ -15,25 +13,14 @@ body:
- 当前使用版本
- type: checkboxes
attributes:
label: Issue重复性检查
description: 我确认查找过相关的 Issue
label: Issue Check
options:
- label: 我确认查找过相关的 Issue
required: true
- type: checkboxes
attributes:
label: 功能必要性检查
description: 我确认这个功能是完善用户体验的
options:
- label: 我确认这个功能是完善用户体验的
required: true
- type: checkboxes
attributes:
label: 提问的艺术
description: 我阅读过[提问的艺术](https://github.com/betaseeker/How-To-Ask-Questions)
options:
required: false
- label: 我确认这个问题是影响使用的
required: false
- label: 我阅读过[提问的艺术](https://github.com/betaseeker/How-To-Ask-Questions)
required: true
required: false
- type: textarea
id: description
attributes:
@@ -47,7 +34,7 @@ body:
attributes:
label: 当前使用版本
description: 请填写当前使用版本
placeholder: 如 Beta v0.3.4
placeholder: 如 Beta v0.3.7
validations:
required: true
- type: textarea

View File

@@ -3,8 +3,6 @@ description: 用于开发人员 Issue 的模板
title: "[TODO] "
labels:
- 新特性
assignees:
- BTMuli
body:
- type: markdown
attributes:
@@ -35,7 +33,7 @@ body:
attributes:
label: 当前提交
description: 请填写当前提交
placeholder: 如 Beta v0.3.4
placeholder: 如 Beta v0.3.7
validations:
required: true
- type: textarea

View File

@@ -11,12 +11,24 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
settings:
- platform: windows-latest
args: "--verbose"
target: "windows"
- platform: macos-latest
args: "--target x86_64-apple-darwin"
target: "macos-intel"
- platform: macos-latest
args: "--target aarch64-apple-darwin"
target: "macos-arm"
runs-on: ${{ matrix.settings.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add Rust targets(macOS)
if: matrix.settings.target == 'macos-arm'
run: rustup target add aarch64-apple-darwin
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
@@ -28,11 +40,11 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18.16.0
- name: setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.9.2
version: 8.11.0
- name: Install frontend dependencies
run: pnpm install
@@ -40,13 +52,13 @@ jobs:
uses: tauri-apps/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
# TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
args: ${{ matrix.settings.args }}
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: v__VERSION__-beta
releaseBody: |
> Windows 平台用户建议通过微软应用商店下载MacOS 平台仅在此发布Linux 平台暂不支持。
> [!TIP]
> Windows 平台用户建议通过微软应用商店下载macOS 平台仅在此发布Linux 平台暂不支持。
<a href="https://apps.microsoft.com/store/detail/9NLBNNNBNSJN?launch=true&cid=BTMuli&mode=mini">
<img src="https://get.microsoft.com/images/zh-cn%20dark.svg" alt="download"/>

View File

@@ -1,26 +1,27 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
qodana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 21.4.0
- name: setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.7
- name: Install frontend dependencies
version: 8.12.1
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: "Qodana Scan"
uses: JetBrains/qodana-action@v2022.3.4
uses: JetBrains/qodana-action@v2023.3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

4
.gitignore vendored
View File

@@ -6,3 +6,7 @@ node_modules
dist
# Secrets
.env.sh
# wiki-json(dev)
src/data/WIKI/Character/
src/data/WIKI/Weapon/
src/data/WIKI/GCG/

View File

@@ -5,9 +5,11 @@
# Tauri build
dist
src-tauri/target
# submodules
TGAssistant
# Pnpm
pnpm-lock.yaml
# Qodana
qodana.yaml
# sourse
*.webp
*.png
*.svg

View File

@@ -5,4 +5,4 @@ useTabs: false
tabWidth: 2
bracketSpacing: true
endOfLine: auto
trailingComma: "all"
trailingComma: all

View File

@@ -8,4 +8,7 @@ plugins:
- stylelint-prettier
- stylelint-order
rules:
"prettier/prettier": true
prettier/prettier: true
property-no-vendor-prefix:
- true
- ignoreProperties: [backdrop-filter]

3
.vscode/launch.json vendored
View File

@@ -1,7 +1,4 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{

View File

@@ -2,12 +2,114 @@
Author: 目棃
Description: CHANGELOG
Date: 2023-09-08
Update: 2023-10-28
Update: 2023-12-11
---
> 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2023-09-08 09:45:17 `
>
> 更新于 `2023-10-28 19:18:49`
> 更新于 `2023-12-11 19:01:09`
## [0.3.8](https://github.com/BTMuli/TeyvatGuide/releases/v0.3.8) (2023-12-20)
### Feat
- JSBridge新增部分回调的处理
- JSBridge完善 `share` 回调处理,目前已经能够支持大部分分享图的生成
- 应用:角色图鉴开始动工
- JSBridge添加菜单项支持 `置顶``取消置顶``打开帖子`
- 成就:名片子弹窗改为 `overlay` 模式
- 应用:添加 4.3 版本相关资源 [`#66`](https://github.com/BTMuli/TeyvatGuide/issues/66)
### Fix
- 应用:备份时进行目录存在性检测
- 应用:修复 macOS 启动闪退 [`#69`](https://github.com/BTMuli/TeyvatGuide/issues/69)
- 帖子:修复文本过长导致渲染溢出
- 应用:修复 UIGF 导出格式错误 [`#71`](https://github.com/BTMuli/TeyvatGuide/issues/71)
- 应用分享图保存逻辑调整超过20M未到80M时取消保存文件仍会保存至剪贴板
- 帖子:修复部分帖子表情包渲染错误
### Change
- 组件:移除对于头像的裁剪
- 应用:侧边栏必要快捷入口保留
- 应用:重构链接识别处理
- 应用:用于获取 `deviceFp` 的设备信息将保存到数据库中
- 应用:重构 `userStore``cookie` 相关类型
## [0.3.7](https://github.com/BTMuli/TeyvatGuide/releases/v0.3.7) (2023-12-11)
### Feat
- 帖子:渲染方式迭代,由 `v-html` 改为组件渲染 [`#64`](https://github.com/BTMuli/TeyvatGuide/issues/64)
- 帖子:分享图增加应用标识
- 应用:新增帖子页面,支持浏览各游戏分区各版块按不同排序方式的帖子 [`#67`](https://github.com/BTMuli/TeyvatGuide/issues/67)
- 应用macOS 新增 arm64 架构支持 [`#68`](https://github.com/BTMuli/TeyvatGuide/issues/68)
- JSBridge: 部分原先存在遮罩的页面将去除遮罩
- JSBridge: 新增部分回调的处理
### Fix
- 帖子:修复大别野卡片渲染错误 [`#63`](https://github.com/BTMuli/TeyvatGuide/issues/63)
- 公告:修复标题错误显示 `<br>` 的问题
- 帖子:修复表情包渲染错误,移除首页表情包下载
### Change
- 帖子:分享图大小超过 80M 时不予保存,超过 20M 时可选保存至文件
- 应用:移除侧边栏点击菜单,可以通过帖子页面触发各功能入口
- JSBridge重构 `pushPage``closePage` 逻辑
## [0.3.6](https://github.com/BTMuli/TeyvatGuide/releases/v0.3.6) (2023-11-25)
### Feat
- 应用:实装 `device_fp`,有效降低 `1034` 错误 [`#58`](https://github.com/BTMuli/TeyvatGuide/issues/58)
- 首页:今日素材组件添加留影叙佳期入口,角色生日时颜色变更 [`#61`](https://github.com/BTMuli/TeyvatGuide/issues/61)
- 组件:优化 showConfirm 组件 input 模式下的体验
- 成就:支持单个成就完成状态修改 [`#60`](https://github.com/BTMuli/TeyvatGuide/issues/60)
- 成就:支持隐藏已完成成就 [`#19`](https://github.com/BTMuli/TeyvatGuide/issues/19)
- 角色:角色详情页 UI 迭代,支持角色卡片分享 [`#20`](https://github.com/BTMuli/TeyvatGuide/issues/20)
### Fix
- JSBridge修复窗口关闭后无法再次创建的问题
- JSBridge修复保存图片默认路径错误
- JSBridge调整 closePage 逻辑
- 应用:在生成分享图时忽略某些元素
- 应用:完善数据库检测机制 [`#62`](https://github.com/BTMuli/TeyvatGuide/issues/62)
- JSBridge应用启动时关闭隐藏的子窗口
- 应用:完善登录态检测机制
### Change
- 应用:米游社 salt 版本更新到 2.63.1
- 咨讯:大别野版块不再忽略咨讯区
- 分享:提高生成分享图的清晰度
- 成就:调整完成 icon 的颜色
- 组件:增加素材日历组件 overlay 国家 icon 清晰度
- 成就:重构成就页面代码,优化性能
## [0.3.5](https://github.com/BTMuli/TeyvatGuide/releases/v0.3.5) (2023-11-11)
### Feat
- 资源:更新至 4.2 版本 [`#57`](https://github.com/BTMuli/TeyvatGuide/issues/57)
- 祈愿:支持 UIGF v2.4 [`#59`](https://github.com/BTMuli/TeyvatGuide/issues/59)
### Fix
- JSBridge修复图片保存失败 [`#56`](https://github.com/BTMuli/TeyvatGuide/issues/56)
- JSBridge: 调整 hideSideBar 逻辑 [`a474b962`](https://github.com/BTMuli/TeyvatGuide/commit/a474b962)
- 组件:修复 `snackbar` 组件被 `overlay` 遮挡问题 [`db36d18d`](https://github.com/BTMuli/TeyvatGuide/commit/db36d18d)
- 数据库:更新数据库时同时更新 `buildTime` [`c1a7e844`](https://github.com/BTMuli/TeyvatGuide/commit/c1a7e844)
### Change
- JSBridge留影叙佳期入口改为工具箱入口 [`149c7b3f`](https://github.com/BTMuli/TeyvatGuide/commit/149c7b3f)
- Post调整基准背景色 [`e6eaa2e2`](https://github.com/BTMuli/TeyvatGuide/commit/e6eaa2e2)
- 组件:适应游戏 UI 变更 `confirm` 组件样式 [`7a060a71`](https://github.com/BTMuli/TeyvatGuide/commit/7a060a71)
- API更新祈愿记录获取 `endpoint` [`8037b635`](https://github.com/BTMuli/TeyvatGuide/commit/8037b635)
## [0.3.4](https://github.com/BTMuli/TeyvatGuide/releases/v0.3.4) (2023-10-28)

View File

@@ -2,16 +2,16 @@
Author: 目棃
Description: 说明文档
Date: 2023-03-05
Update: 2023-10-28
Update: 2023-12-10
---
> 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2023-03-05 14:41:55`
>
> 更新于 `2023-10-28 19:26:59`
> 更新于 `2023-12-10 16:38:32`
![](https://img.shields.io/github/last-commit/BTMuli/TeyvatGuide?style=for-the-badge) ![](https://img.shields.io/github/commits-since/BTMuli/TeyvatGuide/latest?include_prereleases&style=for-the-badge)
![](https://img.shields.io/badge/UIAF-v1.1-orange?style=for-the-badge) ![](https://img.shields.io/badge/UIGF-v2.3-red?style=for-the-badge) ![](https://img.shields.io/github/license/BTMuli/TeyvatGuide?style=for-the-badge)
![](https://img.shields.io/badge/UIAF-v1.1-orange?style=for-the-badge) ![](https://img.shields.io/badge/UIGF-v2.4-red?style=for-the-badge) ![](https://img.shields.io/github/license/BTMuli/TeyvatGuide?style=for-the-badge)
<div style="width: 100%; text-align: center; margin: 0 auto;">
<img alt="icon" src="https://s2.loli.net/2023/10/19/Y5DpBQRy3usLHEb.png" />
@@ -19,9 +19,9 @@ Update: 2023-10-28
# Teyvat Guide
基于 Tauri 的原神工具应用,支持 Windows 和 MacOS 平台。
基于 Tauri 的原神工具应用,支持 Windows 和 macOS 平台。
Game Tool for Genshin Impact player, supports Windows and MacOS.
Game Tool for Genshin Impact player, supports Windows and macOS.
## 下载 / Download
@@ -31,7 +31,7 @@ Game Tool for Genshin Impact player, supports Windows and MacOS.
<img src="https://get.microsoft.com/images/zh-cn%20dark.svg" alt="download"/>
</a>
> MacOS 用户可以通过 Github Release 下载
> macOS 用户可以通过 Github Release 下载
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/BTMuli/TeyvatGuide?include_prereleases&style=for-the-badge)](https://github.com/BTMuli/TeyvatGuide/releases/latest)
@@ -46,6 +46,7 @@ Game Tool for Genshin Impact player, supports Windows and MacOS.
- [x] 当前卡池、近期活动、素材日历
- [x] 游戏内公告&活动获取
- [x] 米游社官方帖获取(支持通过 ID 获取)
- [x] 米游社各分区帖子获取(支持通过 ID 获取)
- [x] 成就管理UIAF支持 [`YaeAchievement`](https://github.com/HolographicHat/YaeAchievement) 导入
- [x] 祈愿管理UIGF
@@ -86,7 +87,7 @@ Game Tool for Genshin Impact player, supports Windows and MacOS.
- Changelog: [CHANGELOG](CHANGELOG.md)
- 资源来源:[项目资源说明](docs/项目资源说明.md)
- UIAF[UIAF v1.1](docs/UIAF.md)
- UIGF[UIGF v2.3](docs/UIGF.md)
- UIGF[UIGF v2.4](docs/UIGF.md)
## 特定项目 / Special Project
@@ -100,7 +101,11 @@ Game Tool for Genshin Impact player, supports Windows and MacOS.
- [Vue3](https://github.com/vuejs/core)
- [Vite](https://github.com/vitejs/vite)
- [Vuetify](https://github.com/vuetifyjs/vuetify)
- [Echarts](https://echarts.apache.org/zh/index.html)
## 第三方组件 / Plugins
- [Echarts](https://echarts.apache.org/zh/index.html):用于祈愿概览图生成
- [Artplayer](https://artplayer.org/):用于米游社帖子视频播放解析
## 协议 / License

View File

@@ -1,50 +1,77 @@
---
Author: 目棃
Date: 2023-04-07
Description: UIGF v2.3 Backup
Update: 2023-04-07
Description: UIGF v2.4 Backup
Date: 2023-11-15
Update: 2023-11-15
---
> 本文档 [`Front-matter`](https://github.com/BTMuli/Mucli#FrontMatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于`2023-04-07 19:51:40`
> 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2023-11-15 20:58:36`
>
> 更新于 `2023-04-07 19:51:40`
> 更新于 `2023-11-15 20:58:36`
>
> 本文档为 [UIGF v2.4](https://github.com/UIGF-org/UIGF-org.github.io/blob/main/docs/zh/standards/UIGF.md) 的备份,仅供参考。
> 本文档为 [`UIGF`](https://github.com/UIGF-org/UIGF-org.github.io/blob/main/docs/zh/standards/UIGF-pre-release.md) 的备份。
# 统一可交换抽卡记录标准 v2.4
# 统一可交换祈愿记录标准 v2.3
> Uniformed Interchangeable GachaLog Format standard (UIGF) v2.4 <Badge text="Current" type="message" />
>
> ::: warning UIGF 标准使用声明
> 应用必须在同时支持 UIGF 数据格式**导入**和**导出**功能并在相关功能区域或文档中提供跳转至 [UIGF-Org](https://uigf.org) 的超链接后声明支持 UIGF 格式
> Uniformed Interchangeable GachaLog Format standard (UIGF) v2.3
仅包含导入功能降低了用户数据可流通性,且将数据至于用户不可控的风险中,不符合 UIGF-Org 设计的初衷。
:::
## 更新记录
| 版本 | 说明 | 兼容 |
| ------ | ------------------------------------------------ | -------------- |
| `v2.0` | 首个正式版本 | v2.0 |
| `v2.1` | 简化了部分语言表述,与 v2.0 在数据格式上完全一致 | v2.1 and lower |
| `v2.2` | 新增 `info.export_timestamp` 填充 UNIX 时间戳 | v2.2 and lower |
| `v2.3` | 扩充至非中文语境,使用 Json Schema 表述 | v2.3 and lower |
| 版本 | 说明 | 兼容 |
| ----------------------------- | ---------------------------------------------------------- | -------------- |
| `v2.0` | 首个正式版本 | v2.0 |
| `v2.1` | 简化了部分语言表述,与 v2.0在数据格式上完全一致 | v2.1 and lower |
| [`v2.2`](UIGF-legacy-v2.2.md) | 新增 `info.export_timestamp` 填充 UNIX 时间戳 | v2.2 and lower |
| [`v2.3`](UIGF-legacy-v2.3.md) | 扩充至非中文语境,使用 Json Schema 表述。移除了 Excel 格式 | v2.3 and lower |
| `v2.4` | 新增 `info.region_time_zone` 支持时区处理 | v2.4 and lower |
## Id
### v2.4 更新内容
原神的祈愿记录物品内包含了一项较为特殊的字段: `id` ,该值在 1.3 版本后加入
所以**先前查询出的物品**若无特殊兼容性修改则不会包含相应的 `id`
App 导出 UIGF 时
- 国际化兼容性增强
-`info` 对象中新增了 `region_time_zone` 字段
- 需要确保每个物品的 `id` 的有效性。
- 从最后一个自带有效 `id` 的物品开始,向前(相对于时间)依次递减 `id` 的值,每次递减的值应保持为 `1`
## `info` 字段说明
导入 UIGF 到 App 时
### `region_time_zone`
- App 不应假设所有的 `gacha_item` 都有有效的 `id`
- App 应具有处理 `id` 字段为 `null`或 `` 空字符串的能力
由于在获取祈愿记录时得到的`time`为服务器时间,为了准确判断时间的时区偏移,引入此字段。
## GachaType
与 SRGF 不同,由于无法直接从服务器获取`region_time_zone`,在导出方未提供此字段时,需要根据 `uid` 进行推断。
祈愿包含了会共享保底与概率的卡池,所以需要一个额外的字段来界定
我们在`UIGF`的所有格式中注入了`uigf_gacha_type`字段
在导出到`UIGF`格式时需要注意添加对应的`uigf_gacha_type`字段
#### 映射关系
### 映射关系
| `uid`首个字符 | `region_time_zone` | 游戏服务器 |
| ------------- | ------------------ | --------------------------------- |
| `'6'` | `-5` | os_usa |
| `'7'` | `1` | os_euro |
| 剩余情况 | `8` | os_cht, os_asia, cn_gf01, cn_qd01 |
App 不应假定 `region_time_zone` 的值为上表中给出的值,应具有处理非标准 `region_time_zone` 值的能力。
`region_time_zone` 的值与 `uid` 推断结果不一致,则优先选择 `region_time_zone` 给出的值。
## `list` 字段说明
### `id`
物品内包含了一项较为特殊的字段: `id`,为原神官方 API 中包含的,代表每条抽卡记录唯一性的 `id`。App 导出 UIGF 时
- 需要确保每个物品都有一个有效的唯一 `id`
- 若有记录中不包含`id`,则应从下一个自带有效 `id` 的物品开始,为每条缺失`id`字段的数据补全`id`
赋值数据向前(时间排序)依次递减,每次递减的值应保持为 `1`
### `gacha_type`
由于存在会共享保底与概率的卡池,所以需要一个额外的字段来界定
我们在 `UIGF` 的所有格式中注入了 `uigf_gacha_type` 字段
在导出到 `UIGF` 格式时需要注意添加对应的 `uigf_gacha_type` 字段
#### 映射关系
| `uigf_gacha_type` | `gacha_type` |
| ----------------- | -------------- |
@@ -53,225 +80,112 @@ App 导出 UIGF 时
| `301` | `301` or `400` |
| `302` | `302` |
## Json 格式
### `item_id`
> Uniformed Interchangeable GachaLog Format standard of Json (UIGF.J)
> Json 格式 由于 与从官方接口获取到的格式一致
> 更便于各 App 的导入与导出,我们也在此做出规范
> 该格式应仅用于各 App 间的数据互通
物品游戏内ID你可以通过 [UIGF API](../API.md) 获取这一数据
### 导出的格式
## Json Schema
> UIGF-Org 提供[Json Schema](/schema/uigf.json) 用于验证
```json
{
"type": "object",
"title": "UIGF object",
"properties": {
"info": {
"type": "object",
"properties": {
"uid": {
"type": "string",
"title": "Uid",
"description": "Uid"
},
"lang": {
"type": "string",
"title": "Language",
"description": "语言 ISO 3166"
},
"uigf_version": {
"type": "string",
"title": "UIGF Version",
"description": "UIGF 版本号"
},
"export_timestamp": {
"type": "number",
"title": "Export Timestamp",
"description": "导出时间戳(秒)"
},
"export_time": {
"type": "string",
"description": "导出时间",
"format": "date-time",
"pattern": "yyyy-MM-dd HH:mm:ss",
"title": "Export Time"
},
"export_app": {
"type": "string",
"title": "Export App",
"description": "导出应用"
},
"export_app_version": {
"type": "string",
"title": "Export App Version",
"description": "导出应用版本"
}
},
"title": "Infomation",
"required": ["uid", "lang", "uigf_version"],
"description": "包含导出方定义的基本信息"
},
"list": {
"type": "array",
"items": {
"root": {
"type": "object",
"properties": {
"info": {
"type": "object",
"properties": {
"gacha_type": {
"uid": {
"type": "string",
"description": "祈愿类型"
"title": "导出记录的 UID"
},
"item_id": {
"lang": {
"type": "string",
"title": "Item Id",
"description": "空字符串"
"title": "语言 languagecode2-country/regioncode2"
},
"count": {
"type": "string",
"title": "Count",
"description": "数量"
"export_timestamp": {
"type": "number",
"title": "导出 UNIX 时间戳(秒)"
},
"time": {
"export_time": {
"type": "string",
"title": "Time",
"description": "物品获取时间",
"pattern": "yyyy-MM-dd HH:mm:ss",
"format": "date-time"
"title": "导出时间",
"description": "yyyy-MM-dd HH:mm:ss"
},
"name": {
"export_app": {
"type": "string",
"title": "Name",
"description": "名称"
"title": "导出 App 名称"
},
"item_type": {
"export_app_version": {
"type": "string",
"title": "Item Type",
"description": "物品类型"
"title": "导出 App 版本"
},
"rank_type": {
"uigf_version": {
"type": "string",
"title": "Item Quality",
"description": "物品星级"
"title": "UIGF 版本号",
"pattern": "v\\d+\\.\\d+"
},
"id": {
"type": "string",
"title": "Id",
"description": "内部数据库Id"
},
"uigf_gacha_type": {
"type": "string",
"title": "Query Type",
"description": "向接口查询时需要的 gacha_type"
"region_time_zone": {
"type": "number",
"title": "区域时区偏移"
}
},
"required": ["gacha_type", "name", "id", "uigf_gacha_type", "time"],
"title": "Gacha Item",
"description": "祈愿物品"
"required": ["uid", "uigf_version"],
"title": "UIGF 导出信息"
},
"title": "List",
"description": "物品列表"
}
},
"required": ["info", "list"],
"description": "UIGF 根对象"
"list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uigf_gacha_type": {
"type": "string",
"title": "UIGF 卡池类型",
"description": "用于区分卡池类型不同,但卡池保底计算相同的物品"
},
"gacha_type": {
"type": "string",
"title": "卡池类型"
},
"item_id": {
"type": "string",
"title": "物品的内部 ID"
},
"count": {
"type": "string",
"title": "个数",
"description": "一般为1"
},
"time": {
"type": "string",
"title": "获取物品的时间"
},
"name": {
"type": "string",
"title": "物品名称"
},
"item_type": {
"type": "string",
"title": "物品类型"
},
"rank_type": {
"type": "string",
"title": "物品等级"
},
"id": {
"type": "string",
"title": "记录内部 ID"
}
},
"required": ["uigf_gacha_type", "gacha_type", "id", "item_id", "time"],
"title": "UIGF 物品"
},
"title": "物品列表"
}
},
"required": ["info", "list"],
"title": "UIGF 根对象"
}
}
```
## Excel 工作簿 (Workbook Format)
> Uniformed Interchangeable GachaLog Format standard of Workbook (UIGF.W)
### 单元格的格式
- 在填充单元格内的数据时,应统一转换到 `String` 字符串类型后填入
### 表名及内容
| 表名 | 内容 | 类型 | 是否必要 |
| ------------ | -------------------------------------- | ------ | ------------------------------ |
| 统计分析 | 统计分析内容等 | 任意 | 否 |
| 角色活动祈愿 | `gacha_type` : `301 or 400` 的祈愿数据 | 祈愿表 | 否,但是应该导出 |
| 武器活动祈愿 | `gacha_type` : `302` 的祈愿数据 | 祈愿表 | 否,但是应该导出 |
| 常驻祈愿 | `gacha_type` : `200` 的祈愿数据 | 祈愿表 | 否,但是应该导出 |
| 新手祈愿 | `gacha_type` : `100` 的祈愿数据 | 祈愿表 | 否,但是应该导出 |
| 原始数据 | 全部祈愿数据 | 数据表 | **详见下方原始数据表结构说明** |
- 表的顺序可以是任意的
- 可以隐藏部分表,防止用户随意篡改数据
- Sheet 的名称应与游戏内祈愿记录页面显示的名称保持一致
> App 间应依据 `原始数据表` 的内容,来进行数据互通
### 祈愿表结构
本节内容是为了规范兼容分析类 App
- 表头对应的内容填充**顺序需要严格按照下方说明**排布
- **共享保底的卡池**按祈愿类型 (`gacha_type`) 区分
- 此类 `Sheet` 存在的目的,是为了便于用户观看与祈愿分析工具的分析
| 表头 | 内容 | 是否必要 |
| -------- | ---------------------------------------- | ---------------------------- |
| 时间 | `yyyy-MM-dd HH:mm:ss` 格式的 `time` 时间 | 是 |
| 名称 | `name`物品名称 | 是 |
| 物品类型 | `item_type` | 是 |
| 星级 | `rank_type` | 是 |
| 祈愿类型 | `gacha_type` 的转义名称 | 是,尽管部分工具不会分析此项 |
| ... | ... | 否 |
> 如果你认为有必要的话,可以额外增加其他表头,但请确保表头的前几列为上表规范的内容
> 表内的数据通常按祈愿 Id 升序或降序排列,分析 App 不应假设表内的顺序为特定的升序与降序
#### `gacha_type` 转义名称
| gacha_type | 名称 |
| ---------- | -------------- |
| 100 | 新手祈愿 |
| 200 | 常驻祈愿 |
| 301 | 角色活动祈愿 |
| 400 | 角色活动祈愿-2 |
| 302 | 武器活动祈愿 |
#### 示例
| 时间 | 名称 | 类别 | 星级 | 祈愿类型 | ... |
| ------------------- | -------- | ---- | ---- | -------------- | --- |
| 2021-02-17 18:45:09 | 以理服人 | 武器 | 3 | 角色活动祈愿-2 | ... |
| ... | ... | ... | ... | ... | ... |
### 原始数据表结构
导出时
- App 在导出时应尽可能询问用户是否应包含原始数据表
- 一旦在工作簿内包含了名为 `原始数据` 的表,即表示支持本格式
- 该表内的内容应严格按照本格式所述填充
- **表头的顺序需严格按照下表设置**。
- 现有的字段采用**字典顺序**递增排序,后续新增的字段依添加的顺序排在后侧。
- 若无特殊需求,我们建议导出所有 json 数据内包含的字段
导入时
- 强烈建议您编写不依赖于列的顺序位置便可实现导入的程序,以达到最大化的兼容。
- 如果省略了其中某些非必要字段的值,请保持表头存在,对应的列则空置。
| 表头 | 是否必要 |
| ----------------- | ---------------------------------------------------- |
| `count` | 否,但是建议保留,不排除后续会有`count`不为 1 的情况 |
| `gacha_type` | 是 |
| `id` | 是,且大部分 App 按此字段排序数据 |
| `item_id` | 否,目前官方已经弃用了此字段 |
| `item_type` | 是 |
| `lang` | 否,但建议保留,以便国际化 |
| `name` | 是 |
| `rank_type` | 否,但建议保留,以便分析 |
| `time` | 否,但建议保留,以便分析 |
| `uid` | 否,但建议将选择权交予用户,保留以便分析 |
| `uigf_gacha_type` | 是 |
#### 示例
| count | gacha_type | id | item_id | item_type | lang | name | rank_type | time | uid | uigf_gacha_type |
| ----- | ---------- | ------------------- | ------- | --------- | ----- | -------- | --------- | ------------------- | --------- | --------------- |
| 1 | 301 | 1613556360008291100 | | 武器 | zh-cn | 以理服人 | 3 | 2021-02-17 18:45:09 | 123456789 | 301 |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |

View File

@@ -1,9 +1,9 @@
{
"name": "TeyvatGuide",
"version": "0.3.4",
"version": "0.3.8",
"description": "Game Tool for Genshin Impact player",
"private": true,
"packageManager": "pnpm@8.9.2",
"packageManager": "pnpm@8.11.0",
"scripts": {
"build": "tauri build",
"debug": "tauri build --debug",
@@ -67,7 +67,8 @@
},
"dependencies": {
"@mdi/font": "7.3.67",
"@tauri-apps/api": "^1.5.1",
"@tauri-apps/api": "^1.5.2",
"artplayer": "^5.0.9",
"clipboard": "^2.0.11",
"color-convert": "^2.0.1",
"echarts": "^5.4.3",
@@ -78,47 +79,47 @@
"qrcode.vue": "^3.4.1",
"tauri-plugin-sql-api": "github:tauri-apps/tauri-plugin-sql#v1",
"uuid": "^9.0.1",
"vue": "^3.3.4",
"vue-echarts": "^6.6.1",
"vue": "^3.3.11",
"vue-echarts": "^6.6.3",
"vue-json-viewer": "^3.0.4",
"vue-router": "^4.2.5",
"vuetify": "^3.3.22",
"vuetify": "^3.4.6",
"wcag-color": "^1.1.1"
},
"devDependencies": {
"@tauri-apps/cli": "^1.5.4",
"@types/color-convert": "^2.0.2",
"@types/js-md5": "^0.7.1",
"@types/node": "^20.8.7",
"@types/uuid": "^9.0.6",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@vitejs/plugin-vue": "^4.4.0",
"@tauri-apps/cli": "^1.5.7",
"@types/color-convert": "^2.0.3",
"@types/js-md5": "^0.7.2",
"@types/node": "^20.10.4",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitejs/plugin-vue": "^4.5.2",
"@vue/devtools": "^6.5.1",
"concurrently": "^8.2.2",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^39.1.1",
"eslint-plugin-import": "^2.28.1",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsonc": "^2.10.0",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-n": "^16.4.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-vue": "^9.17.0",
"eslint-plugin-vue": "^9.19.2",
"eslint-plugin-yml": "^1.10.0",
"husky": "^8.0.3",
"jsonc-eslint-parser": "^2.3.0",
"lint-staged": "^15.0.2",
"prettier": "3.0.3",
"jsonc-eslint-parser": "^2.4.0",
"lint-staged": "^15.2.0",
"prettier": "3.1.0",
"stylelint": "^15.11.0",
"stylelint-config-idiomatic-order": "^9.0.0",
"stylelint-config-idiomatic-order": "^10.0.0",
"stylelint-config-standard-vue": "^1.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
"stylelint-high-performance-animation": "^1.9.0",
"stylelint-order": "^6.0.3",
"stylelint-prettier": "^4.0.2",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"stylelint-order": "^6.0.4",
"stylelint-prettier": "^4.1.0",
"typescript": "^5.3.3",
"vite": "^5.0.7",
"vite-plugin-vuetify": "^1.0.2",
"yaml-eslint-parser": "^1.2.2"
}

1779
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

Some files were not shown because too many files have changed in this diff Show More