mirror of
https://github.com/edufeed-org/polloer.git
synced 2025-12-07 23:34:31 +00:00
i18n
This commit is contained in:
parent
1a7da6d1c1
commit
5028aca5ac
2 changed files with 6 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
|||
import 'carta-md/default.css'; /* Default theme */
|
||||
import DOMPurify from 'dompurify';
|
||||
|
||||
console.log("show reactions", showReactions)
|
||||
console.log("show reactions", showReactions, event)
|
||||
|
||||
|
||||
// Create a new instance of Carta (you might also want to add a sanitizer if you're processing user input)
|
||||
|
|
@ -57,7 +57,9 @@
|
|||
</script>
|
||||
|
||||
<div class="comment w-full border p-2">
|
||||
<Markdown value={event.content} {carta} />
|
||||
{#key event.content}
|
||||
<Markdown {carta} value={event.content} />
|
||||
{/key}
|
||||
|
||||
<div class="flex gap-2 reactions">
|
||||
{#if $reacted}
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
console.log('ndk ready');
|
||||
const sub = $ndk.subscribe({ kinds: [2222], '#E': [data.id] });
|
||||
sub.on('event', (event) => {
|
||||
console.log(event);
|
||||
$comments = [...$comments, event];
|
||||
console.log(`${event.content}`);
|
||||
});
|
||||
|
|
@ -69,7 +70,7 @@
|
|||
|
||||
<div class="main-layout mx-auto flex w-3/4 flex-col items-center justify-center">
|
||||
{#if $question}
|
||||
<button class="btn" onclick={() => startReactions($question)}>Start Reaktionen</button>
|
||||
<button class="btn btn-primary mb-4" onclick={() => startReactions($question)}>Reaktionen/Voting aktivieren</button>
|
||||
|
||||
<div class="question mb-4 w-full rounded border p-4 text-xl">
|
||||
<h2 class="text-xl font-bold">Frage / Thema:</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue