mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-06 08:32:51 +08:00
🚀 v0.7.7
This commit is contained in:
19
CHANGELOG.md
19
CHANGELOG.md
@@ -2,12 +2,27 @@
|
||||
Author: 目棃
|
||||
Description: CHANGELOG
|
||||
Date: 2024-10-09
|
||||
Update: 2025-05-25
|
||||
Update: 2025-06-17
|
||||
---
|
||||
|
||||
> 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2024-10-09 15:51:43`
|
||||
>
|
||||
> 更新于 `2025-05-25 14:28:57`
|
||||
> 更新于 `2025-06-17 17:08:35`
|
||||
|
||||
## [0.7.7](https://github.com/BTMuli/TeyvatGuide/releases/v0.7.7) (2025-06-17)
|
||||
|
||||
- 🍱 更新5.7资源
|
||||
- ✨ 页面触底加载
|
||||
- ✨ 部分浮窗触底加载
|
||||
- 🐛 修复五星平均抽数计算异常
|
||||
- 🐛 完善帖子ID判断逻辑
|
||||
- 🐛 修复公告卡片分享图生成异常
|
||||
- ♻️ 重构公告模块,降低界面加载耗时&请求次数
|
||||
- 💄 调整投票组件样式
|
||||
- 💄 调整链接卡片组件背景
|
||||
- 💄 调整帖子等页面网格列宽至360px
|
||||
- 🚸 修正无痕浏览状态提示信息
|
||||
- 🚸 首页卡池不传递ck
|
||||
|
||||
## [0.7.6](https://github.com/BTMuli/TeyvatGuide/releases/v0.7.6) (2025-05-25)
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export default [
|
||||
"src-tauri/tauri.conf.json",
|
||||
"src-tauri/**/*.json",
|
||||
"qodana.yaml",
|
||||
".github"
|
||||
".github",
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -57,4 +57,3 @@ const vueConfig = {
|
||||
const eslintConfigVue = [tsConfig, vueConfig];
|
||||
|
||||
export default eslintConfigVue;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "teyvatguide",
|
||||
"version": "0.7.6",
|
||||
"version": "0.7.7",
|
||||
"description": "Game Tool for GenshinImpact player",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.12.1",
|
||||
|
||||
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -4,7 +4,7 @@ version = 4
|
||||
|
||||
[[package]]
|
||||
name = "TeyvatGuide"
|
||||
version = "0.7.6"
|
||||
version = "0.7.7"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"log",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "TeyvatGuide"
|
||||
version = "0.7.6"
|
||||
version = "0.7.7"
|
||||
description = "Game Tool for Genshin Impact player"
|
||||
authors = ["BTMuli <bt-muli@outlook.com>"]
|
||||
license = "MIT"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "TeyvatGuide",
|
||||
"identifier": "TeyvatGuide",
|
||||
"version": "0.7.6",
|
||||
"version": "0.7.7",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm vite:dev",
|
||||
"beforeBuildCommand": "pnpm vite:build",
|
||||
|
||||
@@ -11,7 +11,6 @@ import { sep } from "@tauri-apps/api/path";
|
||||
import { save } from "@tauri-apps/plugin-dialog";
|
||||
import { writeFile } from "@tauri-apps/plugin-fs";
|
||||
import { platform } from "@tauri-apps/plugin-os";
|
||||
import { snapdom } from "@zumer/snapdom";
|
||||
import html2canvas from "html2canvas";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
@@ -85,33 +84,6 @@ function getShareImgBgColor(): string {
|
||||
return "#f9f6f2";
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 开发环境生成分享截图
|
||||
* @since Beta v0.7.7
|
||||
* @see https://github.com/zumerlab/snapdom
|
||||
* @param {string} fileName - 文件名
|
||||
* @param {HTMLElement} element - 元素
|
||||
* @param {number} scale - 缩放比例
|
||||
* @returns {Promise<void>} 无返回值
|
||||
*/
|
||||
async function genShareImgDev(
|
||||
fileName: string,
|
||||
element: HTMLElement,
|
||||
scale: number = 1.2,
|
||||
): Promise<void> {
|
||||
const bgColor = getShareImgBgColor();
|
||||
await snapdom.download(element, {
|
||||
scale: scale,
|
||||
backgroundColor: bgColor,
|
||||
embedFonts: true,
|
||||
format: "webp",
|
||||
filename: fileName,
|
||||
compress: false,
|
||||
quality: 1,
|
||||
dpr: 1,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 生成分享截图
|
||||
* @since Beta v0.7.7
|
||||
@@ -127,12 +99,6 @@ export async function generateShareImg(
|
||||
scale: number = 1.2,
|
||||
scrollable: boolean = false,
|
||||
): Promise<void> {
|
||||
if (import.meta.env.DEV) {
|
||||
if (Math.random() < 0.1) {
|
||||
await genShareImgDev(fileName, element, scale);
|
||||
}
|
||||
return;
|
||||
}
|
||||
const canvas = document.createElement("canvas");
|
||||
const maxHeight = element.style.maxHeight;
|
||||
if (scrollable) element.style.maxHeight = "100%";
|
||||
|
||||
Reference in New Issue
Block a user