mirror of
https://gitee.com/HuLaSpark/HuLa.git
synced 2024-11-29 18:28:30 +08:00
fix(view): 🐛 修复侧边栏文字模式下更多图标的样式
修改github和gitee提交bug issue的模板 closed #IAVNW7
This commit is contained in:
parent
503d90af49
commit
9d23424587
@ -39,7 +39,7 @@ body:
|
||||
id: info
|
||||
attributes:
|
||||
label: '☄️ 完整的 `tauri info` 输出'
|
||||
description: '“pnpm run tauri info”或“cargo tauri info”的输出'
|
||||
description: '请运行 “tauri info” 在控制台等待输出完毕,并将输出内容复制到此处'
|
||||
render: text
|
||||
validations:
|
||||
required: true
|
||||
|
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@ -39,7 +39,7 @@ body:
|
||||
id: info
|
||||
attributes:
|
||||
label: '☄️ intact `tauri info` output'
|
||||
description: '“pnpm run tauri info” or “cargo tauri info” output'
|
||||
description: 'Please run "tauri info" in the console and wait for the output to finish, then copy the output here'
|
||||
render: text
|
||||
validations:
|
||||
required: true
|
||||
|
2
.github/ISSUE_TEMPLATE/bug_report_cn.yml
vendored
2
.github/ISSUE_TEMPLATE/bug_report_cn.yml
vendored
@ -39,7 +39,7 @@ body:
|
||||
id: info
|
||||
attributes:
|
||||
label: '☄️ 完整的 `tauri info` 输出'
|
||||
description: '“pnpm run tauri info”或“cargo tauri info”的输出'
|
||||
description: '请运行 “tauri info” 在控制台等待输出完毕,并将输出内容复制到此处'
|
||||
render: text
|
||||
validations:
|
||||
required: true
|
||||
|
33
.release-it.json
Normal file
33
.release-it.json
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"plugins": {
|
||||
"@release-it/conventional-changelog": {
|
||||
"preset": {
|
||||
"name": "conventionalcommits",
|
||||
"types": [
|
||||
{ "type": "feat", "section": "✨ Features | 新功能" },
|
||||
{ "type": "fix", "section": "🐛 Bug Fixes | Bug 修复" },
|
||||
{ "type": "chore", "section": "🎫 Chores | 其他更新" },
|
||||
{ "type": "docs", "section": "📝 Documentation | 文档" },
|
||||
{ "type": "style", "section": "💄 Styles | 风格" },
|
||||
{ "type": "refactor", "section": "♻️ Code Refactoring | 代码重构" },
|
||||
{ "type": "perf", "section": "⚡️ Performance Improvements | 性能优化" },
|
||||
{ "type": "test", "section": "✅ Tests | 测试" },
|
||||
{ "type": "revert", "section": "⏪ Reverts | 回退" },
|
||||
{ "type": "build", "section": "👷 Build System | 构建" },
|
||||
{ "type": "ci", "section": "🔧 Continuous Integration | CI 配置" },
|
||||
{ "type": "config", "section": "🔨 CONFIG | 配置" }
|
||||
]
|
||||
},
|
||||
"infile": "CHANGELOG.md",
|
||||
"ignoreRecommendedBump": true,
|
||||
"strictSemVer": true
|
||||
}
|
||||
},
|
||||
"git": {
|
||||
"commitMessage": "chore: 发布 v${version}"
|
||||
},
|
||||
"github": {
|
||||
"release": true,
|
||||
"draft": false
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "hula",
|
||||
"type": "module",
|
||||
"version": "2.2.0",
|
||||
"version": "v2.2.0",
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=18.12.0",
|
||||
@ -33,7 +33,8 @@
|
||||
"commit": "git add . && git-cz",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
||||
"lint:staged": "lint-staged",
|
||||
"prepare": "husky install"
|
||||
"prepare": "husky install",
|
||||
"release": "release-it --no-npm"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "2.0.2",
|
||||
@ -59,6 +60,7 @@
|
||||
"@babel/eslint-parser": "^7.24.7",
|
||||
"@commitlint/cli": "^19.3.0",
|
||||
"@commitlint/config-conventional": "^19.2.2",
|
||||
"@release-it/conventional-changelog": "^9.0.0",
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
"@tauri-apps/cli": "2.0.0",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
@ -86,6 +88,7 @@
|
||||
"lint-staged": "^15.2.7",
|
||||
"oxlint": "^0.2.18",
|
||||
"prettier": "^3.3.2",
|
||||
"release-it": "^17.9.0",
|
||||
"sass": "1.77.6",
|
||||
"typescript": "^5.6.2",
|
||||
"unplugin-auto-import": "^0.18.2",
|
||||
|
1108
pnpm-lock.yaml
1108
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@ -2070,7 +2070,7 @@ checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9"
|
||||
|
||||
[[package]]
|
||||
name = "hula"
|
||||
version = "2.2.0"
|
||||
version = "2.3.0"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"lazy_static",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "hula"
|
||||
version = "2.2.0"
|
||||
version = "2.3.0"
|
||||
description = "hula"
|
||||
authors = ["nongyehong"]
|
||||
license = ""
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"productName": "HuLa",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0",
|
||||
"identifier": "com.tauri.build",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"productName": "HuLa",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0",
|
||||
"identifier": "com.tauri.build",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"productName": "HuLa",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0",
|
||||
"identifier": "com.tauri.build",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
|
@ -134,7 +134,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 更多选项面板 -->
|
||||
<div title="更多" class="bottom-action">
|
||||
<div title="更多" :class="{ 'bottom-action': showMode === ShowModeEnum.TEXT }">
|
||||
<n-popover
|
||||
v-model:show="settingShow"
|
||||
style="padding: 0; background: transparent; user-select: none"
|
||||
@ -142,8 +142,8 @@
|
||||
trigger="click">
|
||||
<template #trigger>
|
||||
<svg
|
||||
:class="{ 'color-[--left-active-hover]': settingShow }"
|
||||
class="more size-22px relative"
|
||||
:class="[{ 'color-[--left-active-hover]': settingShow }, { more: showMode === ShowModeEnum.ICON }]"
|
||||
class="size-22px relative"
|
||||
@click="settingShow = !settingShow">
|
||||
<use :href="settingShow ? '#hamburger-button-action' : '#hamburger-button'"></use>
|
||||
</svg>
|
||||
|
@ -113,7 +113,7 @@ export const LockScreen = defineComponent(() => {
|
||||
*/
|
||||
export const CheckUpdate = defineComponent(() => {
|
||||
const url = ref(
|
||||
`https://gitee.com/api/v5/repos/HuLaSpark/HuLa/releases/tags/v${pkg.version}?access_token=${import.meta.env.VITE_GITEE_TOKEN}`
|
||||
`https://gitee.com/api/v5/repos/HuLaSpark/HuLa/releases/tags/${pkg.version}?access_token=${import.meta.env.VITE_GITEE_TOKEN}`
|
||||
)
|
||||
/** 项目提交日志记录 */
|
||||
const commitLog = ref<{ message: string; icon: string }[]>([])
|
||||
@ -205,7 +205,7 @@ export const CheckUpdate = defineComponent(() => {
|
||||
|
||||
const checkUpdate = () => {
|
||||
const url = `https://gitee.com/api/v5/repos/HuLaSpark/HuLa/tags?access_token=${import.meta.env.VITE_GITEE_TOKEN}&sort=name&direction=desc&page=1&per_page=1`
|
||||
if (lastVersion && lastVersion === `v${pkg.version}`) {
|
||||
if (lastVersion && lastVersion === `${pkg.version}`) {
|
||||
window.$message.success('当前已是最新版本')
|
||||
return
|
||||
}
|
||||
@ -214,10 +214,10 @@ export const CheckUpdate = defineComponent(() => {
|
||||
res
|
||||
.json()
|
||||
.then(async (data) => {
|
||||
if (data[0].name === `v${pkg.version}`) {
|
||||
if (data[0].name === `${pkg.version}`) {
|
||||
setTimeout(() => {
|
||||
window.$message.success('当前已是最新版本')
|
||||
lastVersion = `v${pkg.version}`
|
||||
lastVersion = `${pkg.version}`
|
||||
checkLoading.value = false
|
||||
}, 600)
|
||||
} else {
|
||||
@ -285,7 +285,7 @@ export const CheckUpdate = defineComponent(() => {
|
||||
<NFlex align={'center'} size={10}>
|
||||
<NFlex align={'center'} size={10}>
|
||||
<p>当前版本:</p>
|
||||
<p class="text-(20px #909090) font-500">v{pkg.version}</p>
|
||||
<p class="text-(20px #909090) font-500">{pkg.version}</p>
|
||||
</NFlex>
|
||||
|
||||
{newVersion.value ? (
|
||||
@ -344,7 +344,7 @@ export const CheckUpdate = defineComponent(() => {
|
||||
<use href={'#RightArrow'}></use>
|
||||
</svg>
|
||||
|
||||
<span class="p-[4px_8px] w-fit bg-#f1f1f1 rounded-6px text-(12px #999)">v{pkg.version}</span>
|
||||
<span class="p-[4px_8px] w-fit bg-#f1f1f1 rounded-6px text-(12px #999)">{pkg.version}</span>
|
||||
</NFlex>
|
||||
</NFlex>
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user