mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Show twemojis in project descriptions
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import Clipboard from "@app/components/Clipboard.svelte";
|
||||
import DOMPurify from "dompurify";
|
||||
import ProjectLink from "@app/components/ProjectLink.svelte";
|
||||
import { formatNodeId } from "@app/lib/utils";
|
||||
import { formatNodeId, twemoji } from "@app/lib/utils";
|
||||
|
||||
export let project: Project;
|
||||
export let nodeId: string | undefined = undefined;
|
||||
@@ -99,7 +99,7 @@
|
||||
<span class="truncate">{project.id}</span>
|
||||
<Clipboard small text={project.id} />
|
||||
</div>
|
||||
<div class="description">
|
||||
<div class="description" use:twemoji>
|
||||
{@html DOMPurify.sanitize(linkifyDescription(project.description))}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import { groupCommitsByWeek } from "@app/lib/commit";
|
||||
import type { Host } from "@app/lib/api";
|
||||
import { Project } from "@app/lib/project";
|
||||
import { formatCommit } from "@app/lib/utils";
|
||||
import { formatCommit, twemoji } from "@app/lib/utils";
|
||||
|
||||
export let project: proj.ProjectInfo;
|
||||
export let seed: { addr: Host };
|
||||
@@ -117,7 +117,7 @@
|
||||
<span class="name">{project.name}</span>
|
||||
</div>
|
||||
{#if project.description}
|
||||
<div class="description">{project.description}</div>
|
||||
<div class="description" use:twemoji>{project.description}</div>
|
||||
{:else}
|
||||
<div class="description txt-missing">No description</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user