Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 458caeb

Browse files
committed
refactor: replace vuepress-plugin-disqus-commeny with vuepress-plugin-disqus
1 parent 84393ce commit 458caeb

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

Diff for: docs/config/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Service to accomplish commenting.
231231

232232
### others
233233
Other options depend on which service you pick since this feature is accomplished by the plugins below. All options except `service` will be passed directly to the plugin, so take a look at their documentation for more details:
234-
- [vuepress-plugin-disqus-comment](https://vuepress-plugin-disqus.netlify.com/#config)
234+
- [vuepress-plugin-disqus](https://github.com/lorisleiva/vuepress-plugin-disqus)
235235
- [vuepress-plugin-vssue](https://vssue.js.org/guide/vuepress.html#usage)
236236

237237
## newsletter

Diff for: docs/guide/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export default {
363363
```
364364

365365
You have to tell the plugin which service you're going to use.
366-
Since comment is implemented by other plugins, make sure you've read [vuepress-plugin-vssue](https://vssue.js.org/) or [vuepress-plugin-disqus-comment](https://vuepress-plugin-disqus.netlify.com) before using them:
366+
Since comment is implemented by other plugins, make sure you've read [vuepress-plugin-vssue](https://vssue.js.org/) or [vuepress-plugin-disqus](https://github.com/lorisleiva/vuepress-plugin-disqus) before using them:
367367
```js
368368
// .vuepress/config.js
369369
module.exports = {

Diff for: examples/zh/.vuepress/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = {
4343
nextText: '下一頁'
4444
},
4545
/**
46-
* vuepress-plugin-disqus-comment will use $lang as default
46+
* vuepress-plugin-disqus will use $lang as default
4747
*/
4848
comment: {
4949
service: 'disqus',

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@vssue/vuepress-plugin-vssue": "^1.2.0",
5656
"dayjs": "^1.8.19",
5757
"vuejs-paginate": "^2.1.0",
58-
"vuepress-plugin-disqus-comment": "^0.2.3",
58+
"vuepress-plugin-disqus": "^0.2.0",
5959
"vuepress-plugin-mailchimp": "^1.4.1",
6060
"vuepress-plugin-sitemap": "^2.3.1"
6161
},

Diff for: src/client/components/Comment.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<Vssue v-if="$service.comment.service === 'vssue'" v-bind="vssueProps" />
3-
<vue-disqus
3+
<Disqus
44
v-else-if="$service.comment.service === 'disqus'"
55
v-bind="disqusProps"
66
/>

Diff for: src/node/handleOptions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export function handleOptions(
219219
services.comment.service = commentService;
220220
break;
221221
case 'disqus':
222-
plugins.push(['vuepress-plugin-disqus-comment', commentOptions]);
222+
plugins.push(['vuepress-plugin-disqus', commentOptions]);
223223
services.comment.enabled = true;
224224
services.comment.service = commentService;
225225
break;

Diff for: yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -9850,10 +9850,10 @@ vuepress-plugin-container@^2.0.2:
98509850
dependencies:
98519851
markdown-it-container "^2.0.0"
98529852

9853-
vuepress-plugin-disqus-comment@^0.2.3:
9854-
version "0.2.3"
9855-
resolved "https://registry.yarnpkg.com/vuepress-plugin-disqus-comment/-/vuepress-plugin-disqus-comment-0.2.3.tgz#606c79af48a73ab21af95013154de8c3ddddad30"
9856-
integrity sha512-M1oBosK3XkXnmFg2MIUI420VRSk7hF0QXXAiyTUVb7tzdzAjKnRLzRAvLcnrLrXq7XklV7wxTa7o6R7NdWlirg==
9853+
vuepress-plugin-disqus@^0.2.0:
9854+
version "0.2.0"
9855+
resolved "https://registry.yarnpkg.com/vuepress-plugin-disqus/-/vuepress-plugin-disqus-0.2.0.tgz#0a5bde424f81e0185eda36fba23d7ac4cae6ff07"
9856+
integrity sha512-kx+AeVzjJ9lx9bufLt1/X35V1VXfnQ1srkDMIzFKD9NyQ3eycsWQRcGO1dFe1HMrY3+7fTu+1/JeUEUEpGZ5tw==
98579857
dependencies:
98589858
vue-disqus "^3.0.5"
98599859

0 commit comments

Comments
 (0)