style: 💄 代码格式优化

This commit is contained in:
ZOL4789 2024-10-27 10:25:04 +08:00 committed by nongyehong
parent 4ee3e2b8a3
commit 3158c85630
5 changed files with 10 additions and 31 deletions

View File

@ -1,5 +1,12 @@
## [2.5.0](https://github.com/HuLaSpark/HuLa/compare/v2.4.5...v2.5.0) (2024-10-27)
### ✨ Features | 新功能
* **layout:** :sparkles: 自动更新增加进度条 ([6b781a4](https://github.com/HuLaSpark/HuLa/commit/6b781a419417bda256c90a4013bfec0559242e23))
## [2.4.5](https://github.com/HuLaSpark/HuLa/compare/v2.4.4...v2.4.5) (2024-10-26) ## [2.4.5](https://github.com/HuLaSpark/HuLa/compare/v2.4.4...v2.4.5) (2024-10-26)
## [2.4.4](https://github.com/HuLaSpark/HuLa/compare/v2.4.3...v2.4.4) (2024-10-26) ## [2.4.4](https://github.com/HuLaSpark/HuLa/compare/v2.4.3...v2.4.4) (2024-10-26)

View File

@ -1,27 +0,0 @@
// 注意要安装@actions/github依赖
import { context, getOctokit } from "@actions/github";
import { readFile } from "node:fs/promises";
// 在容器中可以通过env环境变量来获取参数
const octokit = getOctokit(process.env.GITHUB_TOKEN);
const updateRelease = async () => {
// 获取updater tag的release
const { data: release } = await octokit.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo,
});
// 上传新的文件
const file = await readFile("latest.json", { encoding: "utf-8" });
await octokit.rest.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: release.id,
name: "latest.json",
data: file,
});
};
updateRelease();

View File

@ -1,7 +1,7 @@
{ {
"name": "hula", "name": "hula",
"type": "module", "type": "module",
"version": "2.4.0", "version": "2.5.0",
"license": "Apache-2.0", "license": "Apache-2.0",
"engines": { "engines": {
"node": ">=18.12.0", "node": ">=18.12.0",

View File

@ -43,8 +43,8 @@ rodio = "0.17.3"
[features] [features]
# by default Tauri runs in production mode # by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is a URL
default = ["custom-protocol"] default = ["custom-protocol"]
# this feature is used used for production builds where `devPath` points to the filesystem # this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this # DO NOT remove this
custom-protocol = ["tauri/custom-protocol"] custom-protocol = ["tauri/custom-protocol"]

View File

@ -47,7 +47,6 @@ declare module 'vue' {
NPopconfirm: typeof import('naive-ui')['NPopconfirm'] NPopconfirm: typeof import('naive-ui')['NPopconfirm']
NPopover: typeof import('naive-ui')['NPopover'] NPopover: typeof import('naive-ui')['NPopover']
NPopselect: typeof import('naive-ui')['NPopselect'] NPopselect: typeof import('naive-ui')['NPopselect']
NProgress: typeof import('naive-ui')['NProgress']
NQrCode: typeof import('naive-ui')['NQrCode'] NQrCode: typeof import('naive-ui')['NQrCode']
NRadio: typeof import('naive-ui')['NRadio'] NRadio: typeof import('naive-ui')['NRadio']
NScrollbar: typeof import('naive-ui')['NScrollbar'] NScrollbar: typeof import('naive-ui')['NScrollbar']