FastComments.com

Add Comments to Your Astro Site


ื–ื•ื”ื™ ืกืคืจื™ื™ืช Astro ื”ืจืฉืžื™ืช ืฉืœ FastComments.

ื•ื•ื™ื“ื’'ื˜ื™ื ืœืชื’ื•ื‘ื•ืช ืฉืœ FastComments ืขื‘ื•ืจ Astro

ืžืื’ืจ

ืฆืคื” ื‘-GitHub


ืชืฆื•ื’ื” ื—ื™ื” Internal Link

ื›ื“ื™ ืœืจืื•ืช ื›ืœ ื•ื•ื™ื“ื’'ื˜ ื•ื›ืœ ื–ืจื™ืžื” ืคื•ืขืœื™ื ืžืงื•ืžื™ืช ืžื•ืœ ื”-tenant ื”ืฆื™ื‘ื•ืจื™ demo, ืฉื›ืคืœ ืืช ื”ืžืื’ืจ ื•ื”ืจื™ืฅ:

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" ื‘-tenant ID ืฉืœ FastComments ืฉืœืš.

ืจื›ื™ื‘ื™ื Internal Link

Component Description
FastComments ื•ื•ื™ื“ื’'ื˜ ืชื’ื•ื‘ื•ืช ืขื ืชื’ื•ื‘ื•ืช ืžืฉื ื”, ื”ืฆื‘ืขื•ืช ื•ืขื•ื“
FastCommentsCommentCount ืžืฆื™ื’ ืกืคื™ืจืช ืชื’ื•ื‘ื•ืช ืœืขืžื•ื“
FastCommentsImageChat ื”ืขืจื•ืช ืขืœ ืชืžื•ื ื•ืช
FastCommentsLiveChat ื•ื•ื™ื“ื’'ื˜ ืฆ'ืื˜ ื—ื™
FastCommentsCollabChat ื”ืขืจื•ืช ืฉื™ืชื•ืคื™ื•ืช ื‘ืชื•ืš ื”ื˜ืงืกื˜
FastCommentsReviewsSummary ืกื™ื›ื•ื ื‘ื™ืงื•ืจื•ืช ื‘ื“ื™ืจื•ื’ ื›ื•ื›ื‘ื™ื
FastCommentsUserActivityFeed ืคื™ื“ ืคืขื™ืœื•ืช ืžืฉืชืžืฉ

All components are exported from the package root:

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

ืคืจื•ื™ืงื˜ ืœื“ื•ื’ืžื” Internal Link

ื“ื•ื’ืžื” ืขื•ื‘ื“ืช ื›ืœื•ืœื” ื‘ืชื™ืงื™ื™ืช example/:

cd example && npm install && npm run dev


ืžืฆื‘ ืชื—ื–ื•ืงื” Internal Link

ืจื›ื™ื‘ื™ื ืืœื” ื”ื ืขื˜ื™ืคื•ืช ืกื‘ื™ื‘ ืจื›ื™ื‘ื™ ื”โ€‘VanillaJS ื”ืœื™ื‘ื” ืฉืœื ื•. ืื ื—ื ื• ื™ื›ื•ืœื™ื ืœืขื“ื›ืŸ ืื•ื˜ื•ืžื˜ื™ืช ืจื›ื™ื‘ื™ื ืืœื” (ืœืชืงืŸ ื‘ืื’ื™ื, ืœื”ื•ืกื™ืฃ ืชื›ื•ื ื•ืช) ืžื‘ืœื™ ืœืคืจืกื ืืช ื”ืกืคืจื™ื™ื” ื”ื–ื•, ื•ืœื›ืŸ ืืฃ ืฉื™ื™ืชื›ืŸ ืฉื”ื™ื ืœื ืชืคื•ืจืกื ืœืชืงื•ืคื” ืžืกื•ื™ืžืช โ€” ื–ื” ืœื ืื•ืžืจ ืฉโ€‘FastComments ืื™ื ื” ื‘ืคื™ืชื•ื— ืคืขื™ืœ! ืืชื ืžื•ื–ืžื ื™ื ืœื‘ื“ื•ืง ืืช ื”ื‘ืœื•ื’ ืฉืœื ื• ืœืขื“ื›ื•ื ื™ื. ืฉื™ื ื•ื™ื™ื ืฉื‘ื™ืจื™ API ืื• ืชื›ื•ื ื•ืช ืฉื™ืฉื‘ืจื• ืชืื™ืžื•ืช ืœื ื™ืฉื•ืœื—ื• ืœืขื•ืœื ืœืกืคืจื™ื™ืช ื”ืœื™ื‘ื” ื”ืชื•ืžื›ืช ืœืœื ื”ืขืœืืช ื’ืจืกื” ื‘ืกืคืจื™ื™ื” ื–ื•.

ื–ืงื•ืง ืœืขื–ืจื”?

ืื ืชื™ืชืงืœื• ื‘ื‘ืขื™ื•ืช ืื• ื™ืฉ ืœื›ื ืฉืืœื•ืช ืœื’ื‘ื™ ืกืคืจื™ื™ืช Astro, ืื ื:

ืชืจื•ืžื•ืช

ืชืจื•ืžื•ืช ื™ืชืงื‘ืœื• ื‘ื‘ืจื›ื”! ืื ื ื‘ืงืจื• ื‘-ืžืื’ืจ GitHub ืœืงื‘ืœืช ื”ื ื—ื™ื•ืช ืœืชืจื•ืžื”.