承接 mitydigital/statamic-bluesky-comments 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mitydigital/statamic-bluesky-comments

最新稳定版本:0.0.5

Composer 安装命令:

composer require mitydigital/statamic-bluesky-comments

包简介

Attach a Bluesky thread to your Entries for a commenting system managed through Bluesky.

README 文档

README

Statamic 5 Statamic 6 Bluesky Comments for Statamic on Packagist

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:

  1. Blueprint field named bluesky_thread_uri
  2. 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:

  1. Publish your entry
  2. Manually create a post on Bluesky, and get its URI
  3. 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_comments frontend 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

统计信息

  • 总下载量: 215
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: Antlers

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固