FastComments.com

Add Comments to Your Svelte App

这是 FastComments 的官方 Svelte 库。

适用于 Svelte 的 FastComments 评论小部件

仓库

在 GitHub 上查看


快速开始 Internal Link

<script lang="ts">
  import CommentWidget from "fastcomments-svelte/CommentWidget.svelte";
  import type { FastCommentsCommentWidgetConfig } from "fastcomments-typescript";

  let config: FastCommentsCommentWidgetConfig = {
    tenantId: "demo",
    urlId: "my-page"
  };
</script>

<CommentWidget config={config} />

小部件 Internal Link


该库当前包含以下小部件:

它还提供以下示例:


开发 Internal Link

在使用 npm install(或 pnpm installyarn)安装依赖后,启动开发服务器:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

src/lib 中的所有内容都是库的一部分,src/routes 中的所有内容是示例展示。

构建 Internal Link


构建:

npm run package

需要帮助?

如果您在使用 Svelte 库时遇到任何问题或有疑问,请:

贡献

欢迎贡献!请访问 GitHub 仓库 获取贡献指南。