Files
windmill/frontend/src/lib/components/InlineCodeCopy.svelte
Faton Ramadani a680acf6b0 Run page v2 (#1805)
* 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
2023-07-08 13:40:47 +02:00

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
>