tangly1024.com
|
3cb9c8a374
|
Merge branch 'main' into dependabot/npm_and_yarn/next-13.5.1
|
2024-01-31 14:01:32 +08:00 |
|
Olimi
|
f73dddd72a
|
fix: 修复部分文章无法加载的问题,原因是Notion API加载时block上限1000
修复思路是在加载所有文章时,会首先一次性加载数据库中所有block,此时因为上限1000会发生溢出。之后会读取所有page的IDs,然后逐个获取page对应的block。此时如果发现ID查找不到(说明发生了溢出),则再调用API去逐一获取这些溢出了的page。可能这不是最优解。
修改的代码包括:
1. getDataBaseInfoByNotionAPI中添加上述判断逻辑。
2. 修改getPageProperties函数签名,直接传入block对应的value,而不是block数组。
|
2023-12-27 19:09:17 +08:00 |
|
dependabot[bot]
|
f8b4f663b2
|
Bump next from 13.3.1 to 13.5.1
Bumps [next](https://github.com/vercel/next.js) from 13.3.1 to 13.5.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v13.3.1...v13.5.1)
---
updated-dependencies:
- dependency-name: next
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2023-10-25 05:33:49 +00:00 |
|
emengweb
|
73c5c4e7b5
|
add mobile padding of main content area
|
2023-10-17 16:22:34 +08:00 |
|
tangly1024.com
|
cfab52c569
|
4.0.12
|
2023-08-07 18:22:39 +08:00 |
|