Skip to content

Commit 0c18bea

Browse files
committed
🚀 v0.7.7
1 parent 66fd82e commit 0c18bea

File tree

8 files changed

+22
-42
lines changed

8 files changed

+22
-42
lines changed

CHANGELOG.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,27 @@
22
Author: 目棃
33
Description: CHANGELOG
44
Date: 2024-10-09
5-
Update: 2025-05-25
5+
Update: 2025-06-17
66
---
77

88
> 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter)[MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2024-10-09 15:51:43`
99
>
10-
> 更新于 `2025-05-25 14:28:57`
10+
> 更新于 `2025-06-17 17:08:35`
11+
12+
## [0.7.7](https://github.com/BTMuli/TeyvatGuide/releases/v0.7.7) (2025-06-17)
13+
14+
- 🍱 更新5.7资源
15+
- ✨ 页面触底加载
16+
- ✨ 部分浮窗触底加载
17+
- 🐛 修复五星平均抽数计算异常
18+
- 🐛 完善帖子ID判断逻辑
19+
- 🐛 修复公告卡片分享图生成异常
20+
- ♻️ 重构公告模块,降低界面加载耗时&请求次数
21+
- 💄 调整投票组件样式
22+
- 💄 调整链接卡片组件背景
23+
- 💄 调整帖子等页面网格列宽至360px
24+
- 🚸 修正无痕浏览状态提示信息
25+
- 🚸 首页卡池不传递ck
1126

1227
## [0.7.6](https://github.com/BTMuli/TeyvatGuide/releases/v0.7.6) (2025-05-25)
1328

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default [
2929
"src-tauri/tauri.conf.json",
3030
"src-tauri/**/*.json",
3131
"qodana.yaml",
32-
".github"
32+
".github",
3333
],
3434
},
3535
];

eslint/vueEslint.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ const vueConfig = {
5757
const eslintConfigVue = [tsConfig, vueConfig];
5858

5959
export default eslintConfigVue;
60-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "teyvatguide",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"description": "Game Tool for GenshinImpact player",
55
"private": true,
66
"packageManager": "pnpm@10.12.1",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "TeyvatGuide"
3-
version = "0.7.6"
3+
version = "0.7.7"
44
description = "Game Tool for Genshin Impact player"
55
authors = ["BTMuli <bt-muli@outlook.com>"]
66
license = "MIT"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "TeyvatGuide",
44
"identifier": "TeyvatGuide",
5-
"version": "0.7.6",
5+
"version": "0.7.7",
66
"build": {
77
"beforeDevCommand": "pnpm vite:dev",
88
"beforeBuildCommand": "pnpm vite:build",

src/utils/TGShare.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { sep } from "@tauri-apps/api/path";
1111
import { save } from "@tauri-apps/plugin-dialog";
1212
import { writeFile } from "@tauri-apps/plugin-fs";
1313
import { platform } from "@tauri-apps/plugin-os";
14-
import { snapdom } from "@zumer/snapdom";
1514
import html2canvas from "html2canvas";
1615
import { storeToRefs } from "pinia";
1716

@@ -85,33 +84,6 @@ function getShareImgBgColor(): string {
8584
return "#f9f6f2";
8685
}
8786

88-
/**
89-
* @description 开发环境生成分享截图
90-
* @since Beta v0.7.7
91-
* @see https://github.com/zumerlab/snapdom
92-
* @param {string} fileName - 文件名
93-
* @param {HTMLElement} element - 元素
94-
* @param {number} scale - 缩放比例
95-
* @returns {Promise<void>} 无返回值
96-
*/
97-
async function genShareImgDev(
98-
fileName: string,
99-
element: HTMLElement,
100-
scale: number = 1.2,
101-
): Promise<void> {
102-
const bgColor = getShareImgBgColor();
103-
await snapdom.download(element, {
104-
scale: scale,
105-
backgroundColor: bgColor,
106-
embedFonts: true,
107-
format: "webp",
108-
filename: fileName,
109-
compress: false,
110-
quality: 1,
111-
dpr: 1,
112-
});
113-
}
114-
11587
/**
11688
* @description 生成分享截图
11789
* @since Beta v0.7.7
@@ -127,12 +99,6 @@ export async function generateShareImg(
12799
scale: number = 1.2,
128100
scrollable: boolean = false,
129101
): Promise<void> {
130-
if (import.meta.env.DEV) {
131-
if (Math.random() < 0.1) {
132-
await genShareImgDev(fileName, element, scale);
133-
}
134-
return;
135-
}
136102
const canvas = document.createElement("canvas");
137103
const maxHeight = element.style.maxHeight;
138104
if (scrollable) element.style.maxHeight = "100%";

0 commit comments

Comments
 (0)