feat: add util page
This commit is contained in:
1 parent
5a892648fb
commit
39975008c8
10 files changed
+174
-12
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<script lang="ts">
|
||||
import { photonify } from '$lib/components/markdown/markdown.js'
|
||||
import { TextInput } from 'mono-svelte'
|
||||
|
||||
let link = ''
|
||||
|
||||
$: photonified = photonify(link)
|
||||
</script>
|
||||
|
||||
<h1 class="font-bold text-2xl">Photonify links</h1>
|
||||
<p>Convert a link from a Lemmy post to a Photon link.</p>
|
||||
|
||||
<div class="flex flex-row items-center flex-wrap gap-4">
|
||||
<TextInput
|
||||
label="Input"
|
||||
bind:value={link}
|
||||
placeholder="https://lemmy.world/post/1"
|
||||
/>
|
||||
<TextInput label="Output" bind:value={photonified} />
|
||||
</div>
|
||||
Reference in new issue
Block a user