You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-disqus

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-disqus

Vue component to integrate Disqus comments in your application, with support for SPA

2.0.6
Source
npmnpm
Version published
Maintainers
1
Created
Source

vue-disqus

Vue component to integrate Disqus comments in your application Vue.js, with support for SPA and Vue 2.*

Installation

1.) Install package via NPM
$ npm install vue-disqus

For Vue 1.* use v1.0.2 - npm install --save vue-disqus@1.0.2

Using in .vue files

2.) Add the component vue-disqus
<template>
  // omited (identifier and url are optional)
  <div class="comments">
    <vue-disqus shortname="your_shortname_disqus" :identifier="page_id" url="http://example.com/path"></vue-disqus>
  </div>
</template>

<script>
import VueDisqus from 'vue-disqus/VueDisqus.vue'

export default {
  // ...
  components: {
    VueDisqus
  }
}
// ...

Using in AMD or CommonJS modules

3.) require the component vue-disqus

var VueDisqus = require('vue-disqus')

Using with HTML files

4.) Add the component to the base instance Vue
<!-- Required Javascript -->
<script src="vue.js"></script>
<script src="node_modules/vue-disqus/vue-disqus.js"></script>
<!-- Assuming your view app is APP. -->
<body id="app">
  <div class="comments">
    <vue-disqus shortname="your_shortname_disqus"></vue-disqus>
  </div>
</body>

Props

PropData TyperequiredDescription
shortnameStringtrueYour shortname disqus.
titleStringfalseTitle to identify current page.
identifierStringfalseYour unique identifier
sso_configObjectfalseSingle sign-on (SSO)
api_keyStringfalseYour API key disqus
remote_auth_s3Stringfalseimplementation with Laravel/PHP
languageStringfalseLanguage overrides

Events

Event nameDescription
readyWhen Disqus is ready. This can be used to show a placeholder or loading indicator.

See Event Handling.

License

MIT

Keywords

disqus

FAQs

Package last updated on 18 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts