tangled
alpha
login
or
join now
moth11.net
/
xcvr
2
fork
atom
frontend for xcvr appview
2
fork
atom
overview
issues
pulls
pipelines
change to basic emoji list
moth11.net
6 months ago
c8bca901
7e01387b
+2
-2
1 changed file
expand all
collapse all
unified
split
src
lib
components
AutoGrowTextArea.svelte
+2
-2
src/lib/components/AutoGrowTextArea.svelte
···
1
<script lang="ts">
2
import { onMount } from "svelte";
3
import Fuse from "fuse.js";
4
-
import emojis from "$lib/keyword-emojis.json";
5
import { computePosition, flip } from "@floating-ui/dom";
6
7
interface Props {
···
107
};
108
type EmojiSearchResults = FuseResult<{
109
emoji: string;
110
-
keywords: string[];
111
}>[];
112
function searchEmoji(s: string): null | EmojiSearchResults {
113
const results = fuse.search(s);
···
1
<script lang="ts">
2
import { onMount } from "svelte";
3
import Fuse from "fuse.js";
4
+
import emojis from "$lib/emojis.json";
5
import { computePosition, flip } from "@floating-ui/dom";
6
7
interface Props {
···
107
};
108
type EmojiSearchResults = FuseResult<{
109
emoji: string;
110
+
slug: string;
111
}>[];
112
function searchEmoji(s: string): null | EmojiSearchResults {
113
const results = fuse.search(s);