4.0.1 • Published 2 years ago

fastcomments-vue-next v4.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
2 years ago

fastcomments-vue-next

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

NPM JavaScript Style Guide

Installation

NPM

npm install --save fastcomments-vue-next

Yarn

yarn add fastcomments-vue-next

Usage

The Comment Widget

The FastCommentsVueNext 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.

<template>
  <FastComments v-bind:config="{tenantId: 'demo'}" />
</template>
<script>
import { FastComments } from 'fastcomments-vue-next'
export default {
  name: 'FastCommentsExample',
  components: {
    FastComments
  }
}
</script>

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 update the URL ID.

<FastComments v-bind:config="{tenantId: 'demo', url: 'https://example.com/somepage', 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:

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

Otherwise, you do not have to define region.

All Widgets and Documentation

Run the local documentation:

npm run serve

Contributing

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

License

MIT © winrid

4.0.1

2 years ago

4.0.0

2 years ago

3.1.0

2 years ago

3.0.2

3 years ago

3.0.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago