nostr-comments 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -21
- package/dist/nostr-comments.cjs +2 -2
- package/dist/nostr-comments.js +2 -2
- package/dist/nostr-comments.umd.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,9 +10,7 @@ A web comment component based on the Nostr network, implementing the [NIP-22](ht
|
|
|
10
10
|
- NIP-46 Bunker remote signing
|
|
11
11
|
- Temporary account (locally generated key pair)
|
|
12
12
|
- **Multilingual**: 20 languages built-in (en, zh-CN, zh-TW, ja, ko, es, fr, de, pt, ru, ar, it, nl, pl, tr, vi, th, id, hi, uk), supports custom translations
|
|
13
|
-
- **Profile Links**: Click avatar or username to view profile on [Jumble](https://jumble.social)
|
|
14
13
|
- **Themes**: Light, dark, auto (follows system), easy customization with a few CSS variables
|
|
15
|
-
- **Transparent Background**: No default background, blends into any host page
|
|
16
14
|
- **Headless Mode**: Disable default styles for fully custom UI
|
|
17
15
|
|
|
18
16
|
## Installation
|
|
@@ -34,25 +32,6 @@ function App() {
|
|
|
34
32
|
}
|
|
35
33
|
```
|
|
36
34
|
|
|
37
|
-
### CDN Usage
|
|
38
|
-
|
|
39
|
-
```html
|
|
40
|
-
<link
|
|
41
|
-
rel="stylesheet"
|
|
42
|
-
href="https://cdn.jsdelivr.net/npm/nostr-comments/dist/nostr-comments.css"
|
|
43
|
-
/>
|
|
44
|
-
<script src="https://cdn.jsdelivr.net/npm/nostr-comments/dist/nostr-comments.umd.js"></script>
|
|
45
|
-
|
|
46
|
-
<div id="comments"></div>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
NostrComments.render("#comments", {
|
|
50
|
-
url: "https://example.com/blog/my-post",
|
|
51
|
-
locale: "en",
|
|
52
|
-
});
|
|
53
|
-
</script>
|
|
54
|
-
```
|
|
55
|
-
|
|
56
35
|
## API
|
|
57
36
|
|
|
58
37
|
### NostrComments Component Props
|