FastComments.com

Add Comments to Your Astro Site


這是 FastComments 的官方 Astro 函式庫。

FastComments 適用於 Astro 的評論小工具

儲存庫

在 GitHub 檢視


線上展示 Internal Link

要在本機查看所有針對公開 demo 租戶執行的每個 widget 和 flow,請複製此儲存庫並執行:

cd example
npm install
npm run dev

每個元件在 example/src/pages/ 底下都有自己的頁面,您可以直接複製到自己的 Astro 網站中。

安裝 Internal Link

npm install fastcomments-astro

快速開始 Internal Link

---
import { FastComments } from 'fastcomments-astro';
---

<FastComments tenantId="demo" />

"demo" 換成你的 FastComments 租戶 ID。

元件 Internal Link

元件 說明
FastComments 具有回覆、投票等功能的留言小工具
FastCommentsCommentCount 顯示頁面的留言數量
FastCommentsImageChat 圖片註解留言
FastCommentsLiveChat 即時聊天小工具
FastCommentsCollabChat 協作式內嵌留言
FastCommentsReviewsSummary 星級評分評論摘要
FastCommentsUserActivityFeed 使用者活動動態

所有元件皆從套件根目錄匯出:

---
import { FastComments, FastCommentsLiveChat } from 'fastcomments-astro';
---

範例專案 Internal Link

一個可運行的示範包含在 example/ 目錄中:

cd example && npm install && npm run dev


維護狀態 Internal Link

這些元件是我們核心 VanillaJS 元件的包裝器。我們可以自動更新這些元件(修復錯誤、加入功能),而無需發佈這個函式庫,因此即使這個函式庫可能暫時沒有發佈,也不代表 FastComments 沒有在積極開發中!歡迎查看 我們的部落格 以取得更新。在未對此函式庫進行版本更新的情況下,破壞性 API 變更或功能絕不會被發佈到底層核心函式庫。


需要幫助?

如果您在使用 Astro Library 時遇到任何問題或有任何疑問,請:

貢獻

歡迎您的貢獻!請造訪 GitHub 儲存庫 以查看貢獻指南。