From d9f7a32503acfca8a26364c63442e99b611f19c6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BB=93=E9=BC=A0?=
<71394853+hamster1963@users.noreply.github.com>
Date: Wed, 30 Oct 2024 13:34:22 +0800
Subject: [PATCH 1/4] doc: update README.md
---
README.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/README.md b/README.md
index f6cbeb1..54e3028 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,10 @@
| ----------------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------- |
| [部署简易教程](https://buycoffee.top/blog/tech/nezha) | [Docker 部署教程](https://buycoffee.top/blog/tech/nezha-docker) | [Cloudflare 部署教程](https://buycoffee.top/blog/tech/nezha-cloudflare) | [更新教程](https://buycoffee.top/blog/tech/nezha-upgrade) |
| [Vercel-demo](https://nezha-vercel.buycoffee.top) | [Docker-demo](https://nezha-docker.buycoffee.tech) | [Cloudflare-demo](https://nezha-cloudflare.buycoffee.tech) [密码: nezhadash] |
+#### Cloudflare 部署所需环境变量
+NODE_VERSION 22.9.0
+
+BUN_VERSION 1.1.29
#### 环境变量
From 92c3894772eb9f76aab76d21ac92ff654a79f6cf Mon Sep 17 00:00:00 2001
From: hamster1963 <1410514192@qq.com>
Date: Wed, 30 Oct 2024 13:41:30 +0800
Subject: [PATCH 2/4] update: v1.1.0
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index f58c2f0..9f775aa 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "nezha-dash",
- "version": "1.0.0",
+ "version": "1.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 3020",
From 6c2edce5afd2b60a7a739a5a2e55c03a325773c4 Mon Sep 17 00:00:00 2001
From: hamster1963 <1410514192@qq.com>
Date: Wed, 30 Oct 2024 17:34:02 +0800
Subject: [PATCH 3/4] fix: unexpected scrollIntoView
---
.eslintrc.json | 3 ++-
components/Switch.tsx | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.eslintrc.json b/.eslintrc.json
index 40a4775..2884730 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -2,6 +2,7 @@
"extends": ["next/core-web-vitals", "next/typescript"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
- "@next/next/no-img-element": "off"
+ "@next/next/no-img-element": "off",
+ "react-hooks/exhaustive-deps": "off"
}
}
diff --git a/components/Switch.tsx b/components/Switch.tsx
index 0d6fbe1..4b0b0c4 100644
--- a/components/Switch.tsx
+++ b/components/Switch.tsx
@@ -53,7 +53,7 @@ export default function Switch({
inline: "center",
});
}
- }, [nowTag, allTag]);
+ }, [nowTag]);
return (