dev-store #1

Merged
purp1e merged 16 commits from dev-store into master 2025-03-13 00:54:31 +08:00
3 changed files with 6 additions and 5 deletions
Showing only changes of commit 918c6bf83a - Show all commits

View File

@@ -47,6 +47,7 @@
"@typescript-eslint/no-unsafe-return": "off", "@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off", "@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-unsafe-member-access": "warn" "@typescript-eslint/no-unsafe-member-access": "warn",
"jsx-a11y/click-events-have-key-events": "off"
} }
} }

View File

@@ -13,7 +13,7 @@
"build": "tauri build", "build": "tauri build",
"dev": "tauri dev", "dev": "tauri dev",
"lint": "next lint && biome check src/", "lint": "next lint && biome check src/",
"fix": "next lint --fix && biome check src/ --fix", "fix": "next lint --fix && biome check src/ --write",
"prepare": "husky" "prepare": "husky"
}, },
"dependencies": { "dependencies": {

View File

@@ -32,7 +32,7 @@ const SideButton = ({
return ( return (
<button <button
type="button" type="button"
onKeyUp={() => router.push(route || "/")} onClick={() => router.push(route || "/")}
className={clsx( className={clsx(
className, className,
"p-2.5 hover:bg-black/5 rounded-lg transition relative", "p-2.5 hover:bg-black/5 rounded-lg transition relative",
@@ -57,7 +57,7 @@ const Avatar = () => {
return ( return (
<div <div
onKeyUp={() => router.push("/users")} onClick={() => router.push("/users")}
className={clsx( className={clsx(
"w-12 h-12 bg-gray-700 rounded-full shadow-2xl cursor-pointer transition active:scale-95 shadow-purple-800", "w-12 h-12 bg-gray-700 rounded-full shadow-2xl cursor-pointer transition active:scale-95 shadow-purple-800",
path.startsWith("/users") && "shadow-sm", path.startsWith("/users") && "shadow-sm",
@@ -112,7 +112,7 @@ const SideBar = () => {
data-tauri-drag-region data-tauri-drag-region
> >
<p></p> <p></p>
<p onKeyUp={() => setVersion("x.y.z")}>{version}</p> <p onClick={() => setVersion("x.y.z")}>{version}</p>
</div> </div>
</div> </div>
) )