Socket
Socket
Sign inDemoInstall

@detalk/static

Package Overview
Dependencies
254
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @detalk/static

The fastest way to add Detalk (Based on Deta) to your website. | 将 Detalk (Based on Deta) 加入你的网站。


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Detalk Client

⚡ The static files of Detalk(a simple comment plugin based on Deta).

⚡ 您部署 Detalk 的最快方式。

为什么是 Detalk?

  • 快,开箱即用。它不需要你写繁琐的配置文件,也不需要你定义麻烦的环境变量。
  • 轻,快速加载。前端打包文件仅 60kb, Gzip 压缩后仅 14kb! 同时,主要功能得以保留。
  • 易,免费部署。Detalk 在 Deta 平台上可免费快速部署。
  • 强,高自定义。Detalk 提供高自定义性,完整 API 支持,同时还具备脚本插件功能。

初始化

载入

最推荐的方法:

<script src="https://cdn.jsdelivr.net/npm/@detalk/static@latest/dist/detalk.js"></script>
<!-- 我们推荐您将 @latest 替换为所需的版本号 -->

初始化

首先,在页面上需要有一个空白的挂载点。

<div id="detalk"></div>

然后,您需要使用下方代码进行最简单的初始化:

detalk.init({
    // 挂载点 (CSS 选择器)
    el: "#detalk", // <div id="detalk"></div>
    // 后端地址
    url: "https://detalk.deta.dev/",
    // 当前页面的路径 (为空默认获取)
    path: window.location.pathname,
});

更多信息,请参考:「初始化 | Detalk.js」.

更多文档

如果需要更多支持文档,或是后端部署方法,请查看文档

加入讨论群

现在 Detalk 正在开发中,还会增加新功能。

欢迎加入 QQ 讨论群测试讨论,群号:914564265

反馈问题

如果在使用中出现任何问题,请在 GitHub 发起 Issue。

前端问题请前往 detalkjs/client,后端问题请前往 detalkjs/server 仓库。

同时,你也可以参与 GitHub 讨论

FAQs

Last updated on 14 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc