New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fastcomments-vue

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastcomments-vue

A Vue library for FastComments

latest
Source
npmnpm
Version
4.0.2
Version published
Weekly downloads
4
33.33%
Maintainers
0
Weekly downloads
 
Created
Source

fastcomments-vue

A Vue library for FastComments, a fast and developer friendly comment system.

NPM JavaScript Style Guide

For Vue 3.0, see fastcomments-vue-next.

Installation

NPM

npm install --save fastcomments-vue

Yarn

yarn add fastcomments-vue

Usage

The Comment Widget

The FastCommentsVue component contains the live FastComments comment widget.

Replace "demo" below with your "tenantId" - available here in the FastComments admin area.

The widget supports a lot of options - see FastCommentsConfig here.

<script lang="ts">
import Vue from 'vue';
import FastCommentsVue from 'fastcomments-vue';

export default Vue.extend({
  name: 'ServeDev',
  components: {
    FastCommentsVue
  }
});
</script>

<template>
  <div id="app">
    <fast-comments-vue v-bind:config="{tenantId: 'demo'}" />
  </div>
</template>

Updating The Current Page (SPA Example)

In FastComments we call the article id, or page the comments get tied to, the URL ID as it can be a url or an ID. Define the URL ID in the following manner. The component watches for changes in config object, and will reload, so you can just update the "url" and "urlId" settings.

See a full working example here.

Run the pagination example via:

npm run serve-pagination
<fast-comments-vue v-bind:config="{tenantId: 'demo', url: 'https://example.com', urlId: 'some-page-id'}" />

Account Region (ATTENTION: EU Customers)

If your account is located in the EU, set region = 'eu' in the widget configuration, for example:

<fast-comments-vue v-bind:config="{tenantId: 'demo', url: 'https://example.com', urlId: 'some-page-id', region: 'eu'}" />

Otherwise, you do not have to define region.

In Production

You probably don't want to define the config inline if you're passing callbacks etc. Instead, you'll want to define the config in a computed block, otherwise each time your callback etc is invoked the entire widget will re-render.

See the spinner example for how to do this.

Contributing

Please check out our contribution guidelines before starting on a change. Remember to communicate first!

License

MIT © winrid

FAQs

Package last updated on 18 Mar 2025

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