* feat(frontend): Run page v2 * feat(frontend): Run page v2 * feat(frontend): Run page v2 * feat(frontend): migrate script details * feat(frontend): migrate script details * feat(frontend): done * feat(frontend): revert * feat(frontend): fix archive script * feat(frontend): remove old run page * feat(frontend): Update wording * feat(frontend): done * feat(frontend): Remove buttons for operator mode * feat(frontend): Fix spacing + add protocol * feat(frontend): Fix build
15 lines
498 B
Svelte
15 lines
498 B
Svelte
<script lang="ts">
|
|
import { copyToClipboard } from '$lib/utils'
|
|
import { faClipboard } from '@fortawesome/free-solid-svg-icons'
|
|
import { Icon } from 'svelte-awesome'
|
|
|
|
export let content: string
|
|
</script>
|
|
|
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
<pre class="bg-gray-700 text-gray-100 p-2 font-mono text-sm whitespace-pre-wrap my-2 rounded-md"
|
|
>{content} <span on:click={() => copyToClipboard(content)} class="cursor-pointer ml-2"
|
|
><Icon data={faClipboard} /></span
|
|
></pre
|
|
>
|