0.0.8 • Published 2 years ago

svelte-cusdis v0.0.8

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

Svelte Cusdis

This is Cusdis integration for Svelte. Cusdis is a new lightweight, privacy first, open-source commenting system.

Installation

You can install Svelte Cusdis with npm or yarn.

npm i svelte-cusdis

Usage

<script>
    import Cusdis from "svelte-cusdis";
</script>

<Cusdis
appId="2f49c941-a723-4350-a9eb-cad6fab4772b"
pageId="demo"
Url="demo"
pageTitle="demo"
/>

Props

Props refer to the data that the component might need.

PropertyTypeDescriptionRequired
langStringThis is used to set the language. You need to enter the language codeNo
appIdStringThe website ID. This can be found on the dashboardYes
hostStringAPI server host. Default is cusdis, You should change it to your host if you self host Cusdis.No
pageIdStringCurrent page ID. Used to identity your page. Should be unique in a website. Such as page slug, permalink.Yes
pageUrlStringCurrent page URL. Used to display on dashboard.No
pageTitleStringCurrent page title. Used to display on dashboard.No
themeStringUsed to set the theme of the app. Values are light, dark and autoNo

Event Listeners

  1. on:load

    This is called each time the component is mounted or whenever updates are applied to the component. Best place to handle stuff like setting the theme

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago