-
-
Notifications
You must be signed in to change notification settings - Fork 145
doc: add openomy #597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: add openomy #597
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Walkthrough本次更改在 README.md 文件末尾新增了“Contributing”部分,内容包括一个居中的超链接,指向项目的外部贡献排行榜页面,并以全宽嵌入 SVG 图片展示贡献统计信息。未对其他内容或结构进行修改。 Changes
Poem
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #597 +/- ##
=======================================
Coverage 99.83% 99.83%
=======================================
Files 23 23
Lines 610 611 +1
Branches 176 186 +10
=======================================
+ Hits 609 610 +1
Misses 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (1)
README.md (1)
302-306
: 建议使用 Markdown 语法替代内嵌 HTML
当前直接使用<a>
和<img>
,虽然可行但可能导致渲染器兼容性和维护成本问题。改用标准 Markdown 语法更简洁易读,例如:## 🤝 Contributing [](https://openomy.app/github/react-component/cascader){:target="_blank" rel="noopener noreferrer"}如需居中和全宽,可在渲染器中配置或使用 class/内联样式:
<div align="center" style="width:100%"> [](…){:rel="noopener noreferrer"} </div>
<a href="https://openomy.app/github/react-component/cascader" target="_blank" style="display: block; width: 100%;" align="center"> | ||
<img src="https://www.openomy.app/svg?repo=react-component/cascader&chart=bubble&latestMonth=24" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" /> | ||
</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
在新标签页打开外部链接时请添加 rel="noopener noreferrer"
使用 target="_blank"
时未添加 rel="noopener noreferrer"
会导致潜在的反向标签劫持(tabnabbing)安全风险。
- <a href="https://openomy.app/github/react-component/cascader" target="_blank" style="display: block; width: 100%;" align="center">
+ <a href="https://openomy.app/github/react-component/cascader" target="_blank" rel="noopener noreferrer" style="display: block; width: 100%;" align="center">
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
<a href="https://openomy.app/github/react-component/cascader" target="_blank" style="display: block; width: 100%;" align="center"> | |
<img src="https://www.openomy.app/svg?repo=react-component/cascader&chart=bubble&latestMonth=24" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" /> | |
</a> | |
<a href="https://openomy.app/github/react-component/cascader" target="_blank" rel="noopener noreferrer" style="display: block; width: 100%;" align="center"> | |
<img src="https://www.openomy.app/svg?repo=react-component/cascader&chart=bubble&latestMonth=24" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" /> | |
</a> |
🤖 Prompt for AI Agents
In README.md around lines 304 to 306, the anchor tag uses target="_blank" to
open the link in a new tab but lacks the rel="noopener noreferrer" attribute,
which is necessary to prevent tabnabbing security risks. Add rel="noopener
noreferrer" to the anchor tag alongside target="_blank" to mitigate this
vulnerability.
## 🤝 Contributing | ||
|
||
<a href="https://openomy.app/github/react-component/cascader" target="_blank" style="display: block; width: 100%;" align="center"> | ||
<img src="https://www.openomy.app/svg?repo=react-component/cascader&chart=bubble&latestMonth=24" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
移除 <img>
标签上的 target
属性
<img>
元素不支持 target
属性,该属性在此处无效,应删除以保持语义和规范正确。
- <img src="https://www.openomy.app/svg?repo=react-component/cascader&chart=bubble&latestMonth=24" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" />
+ <img src="https://www.openomy.app/svg?repo=react-component/cascader&chart=bubble&latestMonth=24" alt="Contribution Leaderboard" style="display: block; width: 100%;" />
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
<img src="https://www.openomy.app/svg?repo=react-component/cascader&chart=bubble&latestMonth=24" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" /> | |
<img src="https://www.openomy.app/svg?repo=react-component/cascader&chart=bubble&latestMonth=24" alt="Contribution Leaderboard" style="display: block; width: 100%;" /> |
🤖 Prompt for AI Agents
In README.md at line 305, remove the target="_blank" attribute from the <img>
tag because the img element does not support the target attribute. This will
correct the HTML semantics and ensure the markup is valid.
Summary by CodeRabbit