Commit Graph

331 Commits

Author SHA1 Message Date
anime
ea1b76f5b7 fix(getPageContentText): add null check for postContent before accessing length property
Ensure postContent exists before checking its length property to prevent
potential runtime errors when postContent is null or undefined.
2025-07-09 16:22:38 +08:00
anime
9886e4d146 feat(getPageContentText): add references to NotionX types and comment out debug log
- Add reference links to NotionX type definitions for better documentation
- Comment out debug console.log statement to clean up output
- Maintain existing functionality while improving code clarity
2025-07-09 16:12:12 +08:00
anime
f9ac624498 feat(getPageContentText): implement getFullTextContent for enhanced text extraction
- Add new getFullTextContent function to handle various Notion text formats
- Support equation extraction from decorated text
- Handle special characters like '⁍' and '‣' with proper content resolution
- Process date mentions, link mentions, and other reference types
- Replace getTextContent with getFullTextContent in getTextArray function
- Maintain backward compatibility with existing text processing
2025-07-09 16:00:15 +08:00
anime
23550a61d3 feat(getPageContentText): add flexible property value retrieval and support for more block types
- Add getPropertyValue helper function for flexible property retrieval
- Enhance getText function to accept custom keys for property lookup
- Add support for additional block types: image, bookmark, callout, header
- Improve documentation with JSDoc comments for better code understanding
2025-07-09 15:19:47 +08:00
anime
9321b2dfae feat(getPageContentText): update getPageContentText to use post.content array
- modify content extraction logic to use post.content array
- avoid extra but wrong result by checking pageBlockMap.block
2025-07-09 14:39:47 +08:00
anime
3ad7605abe fix: prevent processing content for page type blocks
- Skip content processing when block type is 'page'
- Update debug log message for content text concatenation
2025-07-09 14:09:37 +08:00
anime
2a0f4fd49c feat(getPageContentText): ensure proper spacing in concatenated text content
Modify getPageContentText.js to use space delimiter when joining text
blocks instead of empty string. This change affects three functions:
getPageContentText, getTextArray, and getBlockContentText to improve
text readability and proper spacing between concatenated content blocks.
2025-07-09 13:58:48 +08:00
anime
72d64d7184 feat(getPageContentText): enhance getPageContentText to handle nested block content
- refactor getText function to process block properties and content
- add support for recursive processing of nested block content
- improve null checks and error handling in block processing
- update getBlockContentText to handle block value safely
2025-07-09 13:51:43 +08:00
anime
44ff4bcb23 feat(getPageContentText): remove debug console.log from getPageContentText
Commented out console.log statement in getPageContentText.js
to remove debug output while maintaining the functionality.
2025-07-09 13:15:49 +08:00
anime
b52f818154 feat(getPageContentText): replace custom text extraction with notion-utils
The getTextContent function was removed and replaced with an import from
notion-utils, simplifying the text extraction logic for Notion page
content. This change removes the custom recursive implementation and
uses the standardized utility function instead.
2025-07-09 13:15:43 +08:00
anime
d22e8bb177 feat(getPageContentText): add null checks for block references
- Add validation for transclusion reference pointer existence
- Return empty string when block is not found
- Prevent potential errors from undefined block references
2025-07-08 15:50:54 +08:00
anime
2a89027bb6 chore(getPageContentText): add todo comments for future improvements
- Add todo comment for cleaning up more useless tags
- Add todo comment for handling more block types
2025-07-08 00:32:16 +08:00
anime
b4ba7d8f23 refactor(getPageContentText): Relocate getPageContentText to a dedicated file and eliminate the redundant isIterable function. 2025-07-08 00:32:04 +08:00
tangly1024
04ffbbb7ef Notion数据库支持配置视图索引 2025-06-17 10:55:56 +08:00
tangly1024
c26d58a27c fix 小问题 2025-06-05 13:13:08 +08:00
tangly1024
f2fdda53c6 Merge pull request #3419 from LooseLi/fix-eslint-errors
Fix eslint errors
2025-06-05 12:43:48 +08:00
Jinli
c309ac5c6d fix: retrieve index 2025-05-29 14:28:42 +08:00
LooseLi
d9bbf58aa6 fix: 修复 TypeScript 类型错误 2025-05-27 10:11:59 +08:00
LooseLi
91493bda00 fix: 兼容旧的 AWS 链接格式以确保旧文件正常加载 2025-04-16 09:46:29 +08:00
LooseLi
a67e9086a0 fix:仅对 attachment 开头的上传文件签名,跳过 embed 链接 2025-04-15 10:47:49 +08:00
tangly1024
85ca8b1da7 修復无标签编译出错 2025-04-12 08:58:52 +08:00
tangly1024
7dbbcdd435 Merge pull request #3325 from qixing-jk/fix/invisible-tag
fix(修复隐藏文章中无法显示只存在于隐藏文章中的标签的问题):
2025-04-11 22:38:52 +08:00
tangly1024
c5c88a05f0 Merge pull request #3326 from tangly1024/fix/iconfont
Fix/iconfont
2025-04-11 22:37:48 +08:00
anime
4ee9656c8a fix(修复隐藏文章中无法显示只存在于隐藏文章中的标签的问题):
具体问题为:对于新打的标签,无法在隐藏文章里显示,只能显示之前添加好的旧标签。而将文章设置为公开,就能全部显示。

Closes #3322 #3038 #3137
2025-04-11 21:10:27 +08:00
tangly1024
f16b7b7b1e Merge branch 'main' into pr/noeFly/3223 2025-04-11 18:18:17 +08:00
tangly1024
99ba183f56 fix lang 2025-04-11 18:14:49 +08:00
LooseLi
86a1eddb92 fix: enable all Notion file types to work properly 2025-04-07 15:49:27 +08:00
tangly1024.com
8688278e02 gallery视图自动替换url 2025-03-04 13:54:46 +08:00
noeFly
861b8a92e0 refactor: 🚨 Prettier 自動格式化 2025-02-12 21:30:47 +08:00
noeFly
8df49a195d fix: 🐛 修復 i18n 無法套用語言變體
修復 i18n 無法正確使用語言變體,轉而使用最靠近的語系翻譯
2025-02-12 21:29:18 +08:00
tangly1024
280bb79e7b Notion新图床兼容 2025-02-02 13:58:43 +08:00
anime
3310a60fe3 fix(修复getPost 时异常值导致的500和无法正确渲染问题):
(cherry picked from commit cc3d0f81f93832c8671e8a48cd49c966ab8b279b)
2025-01-20 13:01:18 +08:00
tangly1024
9f8ff0a549 Merge branch 'main' into feat-data-cache 2025-01-05 19:15:55 +08:00
anime
019f5e470f feat(使用全局变量的 notionAPI): 避免多次创建NotionAPI,有效利用内置的concurrency并发请求限制 2025-01-04 01:00:49 +08:00
anime
b563744e24 perf(使用缓存优化): 复杂的数据转换函数使用缓存优化 2025-01-02 20:45:18 +08:00
anime
2766cb8d3b perf(PostBlocks 转换使用缓存优化): 复杂的数据转换函数使用缓存优化 2025-01-02 18:36:14 +08:00
tangly1024
2cfc6be804 Merge branch 'main' into original-fix 2025-01-01 15:49:15 +08:00
tangly1024
707a686c0d Merge pull request #3082 from qixing-jk/feat-private-notion-page
feat&fix(支持私有页面的数据访问): 使用react-notion-x要求的方式进行NotionAPI的配置
2025-01-01 15:40:03 +08:00
tangly1024
f52fcaf1c0 保留inline_config 2024-12-28 16:40:48 +08:00
tangly1024
02790ab8a3 INLINE_CONFIG 2024-12-28 16:04:34 +08:00
anime
3a16dadd76 feat&fix(支持私有页面的数据访问): 使用react-notion-x要求的方式进行NotionAPI的配置
(cherry picked from commit d5ae329e2c3a1e18b5fd5fc3507791be9da9b4ed)
2024-12-23 22:57:36 +08:00
anime
057f4d8881 feat(支持复杂格式的config表格式配置):
(cherry picked from commit 13dfb9a9078fedaac94da15ae3ee44a32ea6cdf0)
2024-12-21 22:18:23 +08:00
tangly1024
95e8f7cef0 Merge pull request #3072 from qixing-jk/fix-shortid
feat(更换short_id实现方式): 避免因为缩短导致的潜在bug
2024-12-21 21:24:18 +08:00
tangly1024
4b54344cce Merge pull request #3073 from qixing-jk/feat-article-multi-lang-link
feat(支持文章内站内链接多语言跳转并优化性能):
2024-12-21 21:23:49 +08:00
anime
0c41598455 feat(支持文章内站内链接多语言跳转并优化性能):
(cherry picked from commit d35fcfdfaaef78d14cdaa7d88f69884f09c84277)
2024-12-20 20:16:02 +08:00
anime
45a6ec1eb4 feat(更换short_id实现方式): 避免因为缩短导致的潜在bug
(cherry picked from commit 6d73a4388c1613dc0a719d68c8b4b3432fefd314)
2024-12-20 18:17:15 +08:00
anime
8cb2244f37 feat(支持同步块格式的目录识别):
(cherry picked from commit 079515a157f3d0ba5cc1a92272fc16e74537f25f)

feat(支持同步块格式的目录识别): 修复额外的多余目录识别问题

(cherry picked from commit c2d8ed211c16413aec37fd2438d93a7525afc03d)

feat(支持同步块格式的目录识别): 去除多余的判断逻辑

(cherry picked from commit bacbe55bea13c4d3c6e79a11afcde4ba5139c67b)
2024-12-04 11:25:59 +08:00
tangly1024
e3e78b643b Update getPageProperties.js
Hotfix
2024-11-20 10:57:28 +08:00
tangly1024.com
8c07957f26 build fix 2024-11-20 10:42:32 +08:00
tangly1024.com
ab2129464f sitemap.xml问题 2024-11-18 14:22:39 +08:00