Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@codewithshin/svelte-utterances
Advanced tools
npm i -D @codewithshin/svelte-utterances
After cloning this repo, you can see Svelte-Utterances in action in the demo-site branch.
git checkout demo-site
Name | Default |
---|---|
reponame | None |
issueTerm | pathname |
label | comments |
theme | github-light |
The default is github-light. Select one from:
The default is pathname. Select one from:
<script>
import { Utterances } from '@codewithshin/svelte-utterances'
</script>
<Utterances
theme="github-dark"
reponame="yourname/repo-name"
/>
Check more details Svelte-Utterances
You can toggle between two themes.
<script>
import Utterances from "@codewithshin/svelte-utterances";
import {Button} from 'flowbite-svelte'
let theme = "github-light";
const switchTheme = () => {
theme = theme === "github-light" ? "github-dark" : "github-light";
};
</script>
<Button on:click={switchTheme} name="Toggle theme" />
<Utterances reponame="shinokada/svelte-utterances" {theme} />
This is an example of how to reactively change the theme.
Install Flowbite-Svelte
:
npm i -D flowbite-svelte
<script>
import { Utterances } from "@codewithshin/svelte-utterances";
import { Select } from "flowbite-svelte";
let theme = "github-light";
let selectprops = {
id: "theme-select",
name: "theme-select",
label: "Select your theme",
};
let selectClass =
"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-48 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500";
</script>
<div class="my-16 relative">
<Select {...selectprops} bind:value={theme} {selectClass}>
<option value="github-light">GitHub Light</option>
<option value="github-dark">GitHub Dark</option>
<option value="github-dark-orange">GitHub Dark Orange</option>
<option value="icy-dark">Icy Dark</option>
<option value="dark-blue">Dark Blue</option>
<option value="photon-dark">Photon Dark</option>
<option value="boxy-light">Boxy Light</option>
<option value="gruvbox-dark">Gruvbox Dark</option>
</Select>
<Utterances reponame="shinokada/svelte-utterances" {theme} />
</div>
Check more details Utterances
FAQs
Svelte Utterances Component
The npm package @codewithshin/svelte-utterances receives a total of 1 weekly downloads. As such, @codewithshin/svelte-utterances popularity was classified as not popular.
We found that @codewithshin/svelte-utterances demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.