style(格式化): 改成单引号、一行最长 160,全仓重新格式化
Deploy / deploy (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-26 13:52:24 +08:00
1 parent 530e1a3d5d
commit 195069450f
480 files changed
+15507 -24650

No files matched your search

+7 -7
View File
@@ -1,16 +1,16 @@
import { useThemeVars } from "naive-ui"
import { useDark } from "@vueuse/core"
import { useThemeVars } from 'naive-ui'
import { useDark } from '@vueuse/core'
export type Tone = "success" | "error" | "warning" | "info" | "default"
export type Tone = 'success' | 'error' | 'warning' | 'info' | 'default'
export function rgba(hex: string, alpha: number) {
const value = hex.replace("#", "")
const value = hex.replace('#', '')
const full =
value.length === 3
? value
.split("")
.split('')
.map((c) => c + c)
.join("")
.join('')
: value.slice(0, 6)
const n = parseInt(full, 16)
return `rgba(${(n >> 16) & 255}, ${(n >> 8) & 255}, ${n & 255}, ${alpha})`
@@ -43,7 +43,7 @@ export function useTone() {
}[kind]
return {
color: isDark.value ? base : pressed,
background: kind === "default" ? t.actionColor : rgba(base, isDark.value ? 0.16 : 0.12),
background: kind === 'default' ? t.actionColor : rgba(base, isDark.value ? 0.16 : 0.12),
solid: base,
}
}