@roudanio/awesome-comment 0.10.9 → 0.10.10
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 +5 -1
- package/dist/awesome-comment.iife.js +68 -0
- package/dist/awesome-comment.js +11297 -931
- package/dist/awesome-comment.umd.js +68 -0
- package/package.json +1 -1
- package/dist/vendor-auth0-DkqbqvnH.js +0 -1464
- package/dist/vendor-i18n-B4UB934p.js +0 -984
- package/dist/vendor-lodash-CKuyBgAy.js +0 -714
- package/dist/vendor-lucide-Cl8oS5sQ.js +0 -96
- package/dist/vendor-marked-B6IoMkOX.js +0 -1105
- package/dist/vendor-misc-CwXjvmXA.js +0 -1916
- package/dist/vendor-pinia-Dzo8X_0B.js +0 -210
- package/dist/vendor-vue-BTtW1k2s.js +0 -4012
package/README.md
CHANGED
|
@@ -42,10 +42,14 @@ Usage
|
|
|
42
42
|
import AwesomeComment from 'https://unpkg.com/@roudanio/awesome-comment@<版本>/dist/esm-unpkg/awesome-comment.js';
|
|
43
43
|
|
|
44
44
|
AwesomeComment.init('#comments', {
|
|
45
|
-
apiUrl: 'https://
|
|
45
|
+
apiUrl: 'https://comments.example.com',
|
|
46
46
|
postId: 'post-1',
|
|
47
|
+
siteId: 'your-site-id',
|
|
47
48
|
domain: 'your-auth0-domain',
|
|
48
49
|
clientId: 'your-auth0-client-id',
|
|
49
50
|
});
|
|
50
51
|
</script>
|
|
51
52
|
```
|
|
53
|
+
|
|
54
|
+
`apiUrl` 应传入评论服务根域,例如 `https://comments.example.com`。组件内部会拼接 `/api/comments` 等接口路径;误传 `/api` 后缀会被兼容处理,但不推荐作为新集成方式。
|
|
55
|
+
SaaS 接入时请把 `siteId` 作为独立字段传入,不要拼进 `postId`;`postId` 只保留页面或文章标识。
|