From c5305b2c4671613a877c2b782ed4a4f1715f9a14 Mon Sep 17 00:00:00 2001
From: "tangly1024.com"
Date: Wed, 13 Nov 2024 16:10:16 +0800
Subject: [PATCH 1/4] tencent-edge-one
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 62312025..b585dec3 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,7 @@
"@waline/client": "^2.5.1",
"autoprefixer": "^10.4.13",
"cross-env": "^7.0.3",
- "eslint": "^9.6.0",
+ "eslint": "^8.56.0",
"eslint-config-next": "^13.1.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^16.0.2",
From c6adaa1859f60a7efa095e7bd3361c7a5e02ac21 Mon Sep 17 00:00:00 2001
From: "tangly1024.com"
Date: Wed, 13 Nov 2024 16:21:38 +0800
Subject: [PATCH 2/4] test
---
README.md | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index b7463b5c..5621da75 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,12 @@
# 帮助教程
-访问帮助:[NotionNext帮助手册](https://docs.tangly1024.com/)
+访问帮助:[NotionNext帮助手册](https://docs.tangly1024.com/)
> 本项目教程为免费、公开资源,仅限个人学习使用。严禁任何个人或组织将本教程用于商业用途,包括但不限于直接售卖、间接收费、或其他变相盈利行为。转载、复制或介绍本教程内容时,须保留作者信息并明确注明来源。
> 本项目仅提供由作者团队授权的付费咨询服务,请注意辨别,谨防诈骗行为。任何未经授权的收费服务均可能存在法律风险。
Notion是一个能让效率暴涨的生产力引擎,可以帮你书写文档、管理笔记,搭建知识库,甚至可以为你规划项目、时间管理、组织团队、提高生产力、还有当前最强大的AI技术加持。
+
> 如果希望进一步探索Notion的功能,欢迎购买《[Notion笔记从入门到精通进阶课程](https://docs.tangly1024.com/article/notion-tutorial)》
# NotionNext
@@ -25,23 +26,24 @@ Notion是一个能让效率暴涨的生产力引擎,可以帮你书写文档
-
中文文档 | [README in English](./README_EN.md)
一个使用 NextJS + Notion API 实现的,部署在 Vercel 上的静态博客系统。为Notion和所有创作者设计。
+支持多种部署方案
## 预览效果
在线演示:[https://preview.tangly1024.com/](https://preview.tangly1024.com/) ,点击左下角挂件可以切换主题,没找到喜欢的主题?[贡献](/CONTRIBUTING.md)一个吧~
-| Next | Medium | Hexo | Fukasawa |
-|--|--|--|--|
-|
[预览NEXT](https://preview.tangly1024.com/?theme=next) |
[预览MEDIUM](https://preview.tangly1024.com/?theme=medium) |
[预览HEXO](https://preview.tangly1024.com/?theme=hexo) |
[预览FUKASAWA](https://preview.tangly1024.com/?theme=fukasawa) |
+| Next | Medium | Hexo | Fukasawa |
+| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
+|
[预览NEXT](https://preview.tangly1024.com/?theme=next) |
[预览MEDIUM](https://preview.tangly1024.com/?theme=medium) |
[预览HEXO](https://preview.tangly1024.com/?theme=hexo) |
[预览FUKASAWA](https://preview.tangly1024.com/?theme=fukasawa) |
## 致谢
+
感谢Craig Hart发起的Nobelium项目
@@ -187,7 +189,6 @@ Notion是一个能让效率暴涨的生产力引擎,可以帮你书写文档
-
## 引用技术
- **框架**: [Next.js](https://nextjs.org)
@@ -196,15 +197,14 @@ Notion是一个能让效率暴涨的生产力引擎,可以帮你书写文档
- **评论**: [Twikoo](https://github.com/imaegoo/twikoo), [Giscus](https://giscus.app/zh-CN), [Gitalk](https://gitalk.github.io), [Cusdis](https://cusdis.com), [Utterances](https://utteranc.es)
- **图标**: [Fontawesome](https://fontawesome.com/v6/icons/)
-
## 🔗 友情链接
+
- [Elog](https://github.com/LetTTGACO/elog) Markdown 批量导出工具、开放式跨平台博客解决方案,随意组合写作平台(语雀/Notion/FlowUs/飞书)和博客平台(Hexo/Vitepress/Halo/Confluence/WordPress等)
## License
The MIT License.
-
## Star History
[](https://star-history.com/#tangly1024/NotionNext&Date)
From 0f9fd58e01d5cc3e8bf159f5bf4e403d519f2316 Mon Sep 17 00:00:00 2001
From: "tangly1024.com"
Date: Wed, 13 Nov 2024 17:03:01 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E5=87=8F=E5=B0=91props=E4=BC=A0=E5=8F=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/[prefix]/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/[prefix]/index.js b/pages/[prefix]/index.js
index 3e0b22fe..6b05f7f1 100644
--- a/pages/[prefix]/index.js
+++ b/pages/[prefix]/index.js
@@ -82,7 +82,7 @@ const Slug = props => {
}
}, [router, lock])
- props = { ...props, lock, setLock, validPassword }
+ props = { ...props, lock, validPassword }
// 根据页面路径加载不同Layout文件
const Layout = getLayoutByTheme({
theme: siteConfig('THEME'),
From fc7d86380cb02c6c6f964e930f4acd36514fb3d8 Mon Sep 17 00:00:00 2001
From: "tangly1024.com"
Date: Wed, 13 Nov 2024 17:03:19 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E6=89=93=E5=8C=85eslint=E5=86=B2=E7=AA=81?=
=?UTF-8?q?=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.eslintrc.js | 2 +-
next.config.js | 4 +++-
package.json | 4 +---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index e2a5efe4..f2744021 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -8,7 +8,7 @@ module.exports = {
'plugin:react/jsx-runtime',
'plugin:react/recommended',
'plugin:@next/next/recommended',
- 'standard',
+ 'next',
'prettier',
'plugin:@typescript-eslint/recommended', // 添加 TypeScript 推荐规则
'plugin:@typescript-eslint/recommended-requiring-type-checking' // 添加需要类型检查的规则
diff --git a/next.config.js b/next.config.js
index 5637feb5..00d08665 100644
--- a/next.config.js
+++ b/next.config.js
@@ -228,4 +228,6 @@ const nextConfig = {
}
}
-module.exports = withBundleAnalyzer(nextConfig)
+module.exports = process.env.ANALYZE
+ ? withBundleAnalyzer(nextConfig)
+ : nextConfig
diff --git a/package.json b/package.json
index b585dec3..35d90ad9 100644
--- a/package.json
+++ b/package.json
@@ -52,14 +52,12 @@
"@waline/client": "^2.5.1",
"autoprefixer": "^10.4.13",
"cross-env": "^7.0.3",
- "eslint": "^8.56.0",
+ "eslint": "^8.57.1",
"eslint-config-next": "^13.1.1",
"eslint-config-prettier": "^9.1.0",
- "eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.23.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.3",
- "eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"next-sitemap": "^1.6.203",