Giter VIP home page Giter VIP logo

svelte-cusdis's Introduction

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.

Property Type Description Required
lang String This is used to set the language. You need to enter the language code No
appId String The website ID. This can be found on the dashboard Yes
host String API server host. Default is cusdis, You should change it to your host if you self host Cusdis. No
pageId String Current page ID. Used to identity your page. Should be unique in a website. Such as page slug, permalink. Yes
pageUrl String Current page URL. Used to display on dashboard. No
pageTitle String Current page title. Used to display on dashboard. No
theme String Used to set the theme of the app. Values are light, dark and auto No

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

svelte-cusdis's People

Contributors

lubiah avatar

Stargazers

 avatar  avatar

Watchers

 avatar

svelte-cusdis's Issues

Update to recent sveltekit changes and other things

Hi, thanks for creating this great library.

I made a fork to suggest some edits, but when I tried to install dependencies, I found some errors related to the breaking changes in sveltekit post 405 release.

So my suggestion is to upgrade all dependencies and alter the file structure accordingly.

I have the project cloned on my device, if you like, I can do these changes and open a PR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.