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

Commit

Permalink
refactor: replace vuepress-plugin-disqus-commeny with vuepress-plugin…
Browse files Browse the repository at this point in the history
…-disqus
  • Loading branch information
billyyyyy3320 committed Jan 16, 2020
1 parent 84393ce commit 458caeb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Service to accomplish commenting.

### others
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:
- [vuepress-plugin-disqus-comment](https://vuepress-plugin-disqus.netlify.com/#config)
- [vuepress-plugin-disqus](https://github.com/lorisleiva/vuepress-plugin-disqus)
- [vuepress-plugin-vssue](https://vssue.js.org/guide/vuepress.html#usage)

## newsletter
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export default {
```

You have to tell the plugin which service you're going to use.
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:
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:
```js
// .vuepress/config.js
module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion examples/zh/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
nextText: '下一頁'
},
/**
* vuepress-plugin-disqus-comment will use $lang as default
* vuepress-plugin-disqus will use $lang as default
*/
comment: {
service: 'disqus',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@vssue/vuepress-plugin-vssue": "^1.2.0",
"dayjs": "^1.8.19",
"vuejs-paginate": "^2.1.0",
"vuepress-plugin-disqus-comment": "^0.2.3",
"vuepress-plugin-disqus": "^0.2.0",
"vuepress-plugin-mailchimp": "^1.4.1",
"vuepress-plugin-sitemap": "^2.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/Comment.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Vssue v-if="$service.comment.service === 'vssue'" v-bind="vssueProps" />
<vue-disqus
<Disqus
v-else-if="$service.comment.service === 'disqus'"
v-bind="disqusProps"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/node/handleOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export function handleOptions(
services.comment.service = commentService;
break;
case 'disqus':
plugins.push(['vuepress-plugin-disqus-comment', commentOptions]);
plugins.push(['vuepress-plugin-disqus', commentOptions]);
services.comment.enabled = true;
services.comment.service = commentService;
break;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9850,10 +9850,10 @@ vuepress-plugin-container@^2.0.2:
dependencies:
markdown-it-container "^2.0.0"

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

Expand Down

0 comments on commit 458caeb

Please sign in to comment.