Skip to content

Add zhuxiucai/siyuandateprefix#1858

Open
zhuxiucai wants to merge 1 commit into
siyuan-note:mainfrom
zhuxiucai:main
Open

Add zhuxiucai/siyuandateprefix#1858
zhuxiucai wants to merge 1 commit into
siyuan-note:mainfrom
zhuxiucai:main

Conversation

@zhuxiucai
Copy link
Copy Markdown

这个插件是用来根据思源内部 updated 字段刷新文档标题 YYMMDD 前缀,并永远跳过目录型文档。

If you are submitting a new bazaar package for the first time, please confirm the following information.

  • [ x ] The repository is public
  • [ x ] Include the appropriate open source license file LICENSE
  • [ x ] Does not involve infringing content, such as non-commercial font files

If your marketplace package is closed-source, please grant @TCOTC, @88250, and @Vanessa219 access to the source code so that we can complete the review.

这个插件是用来根据思源内部 updated 字段刷新文档标题 YYMMDD 前缀,并永远跳过目录型文档。
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Pull Request Check Report

Add 1 Plugin Repo

zhuxiucai/siyuandateprefix


@TCOTC TCOTC changed the title 增加zhuxiucai/siyuandateprefix Add zhuxiucai/siyuandateprefix Jun 2, 2026
@TCOTC TCOTC self-requested a review June 2, 2026 05:38
@TCOTC TCOTC added the Check Run PR Check workflow label Jun 2, 2026
@github-actions github-actions Bot removed the Check Run PR Check workflow label Jun 2, 2026
@TCOTC
Copy link
Copy Markdown
Collaborator

TCOTC commented Jun 2, 2026

初步审核

以下是 AI 的审核结论,请开发者确认并修复之后回复,然后维护者会进行人工审核。

版本: v0.1.0 (commit: ee11d05)

发现的问题

  • package.zip 中的 plugin.json 与仓库源码不一致:package 中 author"hehua"url"https://github.com/hehua/siyuandateprefix",而仓库源码中已分别修正为 "zhuxiucai""https://github.com/zhuxiucai/siyuandateprefix"。请重新打包并上传 package.zip 以保持与仓库源码一致。
  • LICENSE 版权持有人未更新LICENSE 中版权声明为 Copyright (c) 2026 hehua,与当前作者 zhuxiucai 不一致。建议同步更新 LICENSE 中的版权持有人。

需要维护者人工验证

  • 实际安装插件并测试所有功能:顶栏按钮和命令面板两种入口
  • 测试全部四种范围选项(最近 7 天、最近 30 天、当前笔记本、全部笔记本)
  • 验证对目录型文档、日记标题、未命名文档、无 updated 字段文档的跳过逻辑
  • 验证插件在重载/更新周期后行为正常
  • 检查使用过程中无控制台错误

检查通过

  • plugin.json 包含所有必要字段(nameversionauthorurlminAppVersionbackendsfrontendsdisplayNamedescriptionreadmekeywords
  • namesiyuandateprefix,与仓库名一致
  • 不包含 i18n 字段(框架自动加载,正确)
  • displayNamedescription 无冗余 locale 字段,各语言值不同
  • frontends: ["all"] 合理化(仅使用标准 Web API 和 SiYuan API)
  • backends: ["all"] 合理化(仅使用 SQL 查询和文件重命名 API)
  • keywords 不含 "siyuan" 品牌名
  • readme 文件名与实际文件匹配(README.mdREADME_zh_CN.md
  • icon.png 大小 4.3K(< 20KB 限制)
  • preview.png 大小 35K(< 200KB 限制)
  • 未使用思源内置图标,自定义 SVG 图标
  • README 中未嵌入 preview.png
  • README 中无相对路径链接
  • 中英文 README 语言一致
  • 仓库包含 MIT LICENSE 文件
  • LICENSE 年份为 2026
  • package.zip 内无多余文件(无 node_modules.git 等)
  • package.zip 内所有路径使用正斜杠 /,无反斜杠
  • 代码质量良好:onload() 生命周期完整,无资源泄漏风险
  • 未使用 window.location.reload()
  • CSS 类名使用 date-prefix-refresh-* 前缀,无 .plugin-sample 残留
  • 代码中路径分隔符使用正斜杠 /
  • 无 EventBus、全局事件监听、定时器、Observer 或 IPC 泄漏(均未使用)
  • SQL 注入防护(使用 escapeSql
  • HTML 转义防护(使用 escapeHtml
  • 命令键 refreshDatePrefix 为英文
  • 无 i18n 目录,且代码中未使用 this.i18n(对于纯中文插件可接受)
  • 包与源码其余文件一致(index.jsindex.css、README 文件均一致)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants