mitydigital/statamic-bluesky-comments
Composer 安装命令:
composer require mitydigital/statamic-bluesky-comments
包简介
Attach a Bluesky thread to your Entries for a commenting system managed through Bluesky.
README 文档
README
Attach a Bluesky thread to your Entries for a commenting system managed through Bluesky.
This is currently a work in progress.
Feedback and comments are welcome. Remember to be polite.
Installation
composer require mitydigital/statamic-bluesky-comments
To get up and running you need a few things:
- Blueprint field named
bluesky_thread_uri - Add the
{{ bluesky_comments }}tag to your layout where you want comments to appear
When an entry has a value for the bluesky_thread_uri, the bluesky_comments tag will render
the comment block.
Currently populating the bluesky_thread_uri is a manual step - future plans are to automate that
from within the Statamic CP.
You can get this from the direct link to your post (thread) on Bluesky.
The real-world workflow is currently manual:
- Publish your entry
- Manually create a post on Bluesky, and get its URI
- Edit your entry and include the Bluesky Thread URI
Future updates will attempt to automate these 3 steps using an Action within the Statamic CP (so you can trigger it when you want, not just on publish). Stay tuned.
Views
You don't need to publish views: but you can if you want to make changes.
php artisan vendor:publish --tag=statamic-bluesky-comments-views
If you're using the built-in views only (i.e. not including them in your actual project) don't forget to update your Tailwind config to include the layout files in the vendor folder.
Layout
The bluesky-comments.antlers.html file includes the main layout for the Comments component.
Comment Directive
The Comment Directive is used to recursively attach comments to the list, with styles stored in one reusable area.
This is in the bluesky-comments-alpine.antlers.html file, and is the comment directive.
You'll see a template within this directive. You can freely change this to show whatever you need your layout to do. You do have access to the entire response from the Bluesky API too.
Alpine logic
This is in the bluesky-comments-alpine.antlers.html file, and is the data definition.
Features
- the
bluesky_commentsfrontend tag for rendering comments - action for creating a Bluesky Thread from the Statamic CP
Credits
Written for Statamic:
Contributions from:
Inspired by Emily Liu
Icons are lovingly used from HeroIcons
mitydigital/statamic-bluesky-comments 适用场景与选型建议
mitydigital/statamic-bluesky-comments 是一款 基于 Antlers 开发的 Composer 扩展包,目前已累计 227 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 11 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mitydigital/statamic-bluesky-comments 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mitydigital/statamic-bluesky-comments 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 227
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-26