跳到主要内容
ArcBlock Community

How do I install DID comments?

Twelve
开发者
discuss-kitdocsqualifiedrewarded

I see some directions on the discuss kit doc, but I can’t make sense of how to do it?

Can we have a comment section at the bottom of our pages?

That would be fresh!!!’

8 条回复

wangshijun2年前

DID Comments has been rebranded to Discuss Kit

Discuss Kit

If you just want Discuss/Blog/Doc/Bookmark feature in Discuss Kit, you can add it as an component to your existing app.

If you want to integrate it via code with your existing app, checkout above link too.

Twelve2年前

yes I want to integrate.

i know altering code is probably very simple and take only a few minutes.

I asked z1TTxpjeYVMyNVwRbBjrhxa4E94UaDd6ZX9 and he said he would also like to know how to do this.

I need z1TFmhjLLroSTYtJT5PF61aatJBKdfRG7ck to make one of this nice tutorials 😀 with an article that has a tip button.

having comments at bottom page would really make our pages lookin top notch.

wangshijun2年前

We have https://npmjs.com/package/@blocklet/discuss-kit (README will be updated)

What's the stack used in your code base? react? vue? more detail would be better, so that we can test our lib.

Currently the lib can only be used in webapps created with react, and can work in browsers, not tested in SSR.

Twelve2年前

thanks I’ll work on it.

would be great if we could just embed them similar to the the waiting list.

Twelve2年前

When I try to add as a component I get this error

Failed to resolve module specifier "@blocklet/discuss-kit". Relative references must start with either "/", "./", or "../".

wangqi2年前

Could you give me more details, like:

  • Was your project made with create-blocklet? Which template did you choose?
  • Can you share the full code snippet where '@blocklet/discuss-kit' is imported?
Twelve2年前

I did not create a blockIet.

I added the code below, to the custom component section of my pages kit.

import { Comments } from '@blocklet/discuss-kit';

<Comments

target={{

Copy
id: `&lt;content id&gt;`,

title: `&lt;content title&gt;`,

desc: `&lt;content description&gt;`,

owner: `&lt;content author&gt;`,

}}

/>;

wangqi2年前

Sorry about that. Discuss kit provides a Comments React component. This component must be used in a React blocklet application with a bundler like Webpack or Vite. We recommend using create-blocklet to make it. Currently, we can't use the Comments component in pages kit components.

回复