mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 00:01:34 +00:00
484fdfa2bc
* Improve workers page * Update group config drawer * improve dirty workergroup config * Make layout reactive * fix section animation * prevent opening dropdown while clicking New group config * migrate workers page to svelte 5 * Open drawer upon adding a worker group * nit critical alert table * improve queue metrics drawer * improve agent worker drawer * harmonize copy icon * improve agent worker doc * improve layout * Improve autoscaling event list * Improve tags managment * Remove default tags * fix npm check * Add info for agent workers * improve agent worker jwt token creation * Improve token display * nit * improve tag display * create EE component * nit * harmonize tag overflow * handle permission better * improve env var presets * handle permission for config * nit alerts * nit * Improve custom tag creation in tag select * optimistic tag addition * nit * nit * fix typo * improve workers table * Group config tags * show mismatch * fix typo * optimistic update when adding tag * do not allow to create tag when picking a tag to watch in alerts
30 lines
839 B
Svelte
30 lines
839 B
Svelte
<script lang="ts">
|
|
import Markdown from 'svelte-exmarkdown'
|
|
import { ExternalLink } from 'lucide-svelte'
|
|
import { gfmPlugin } from 'svelte-exmarkdown/gfm'
|
|
export let documentationLink: string | undefined = undefined
|
|
export let markdownTooltip: string | undefined = undefined
|
|
const plugins = [gfmPlugin()]
|
|
</script>
|
|
|
|
<div
|
|
class="shadow-lg max-w-sm break-words py-2 px-3 rounded-md text-xs font-normal text-primary bg-surface-secondary whitespace-normal text-left dark:border max-h-64 overflow-y-auto"
|
|
>
|
|
{#if markdownTooltip}
|
|
<div class="prose-sm">
|
|
<Markdown md={markdownTooltip} {plugins} />
|
|
</div>
|
|
{:else}
|
|
<slot />
|
|
{/if}
|
|
|
|
{#if documentationLink}
|
|
<a href={documentationLink} target="_blank">
|
|
<div class="flex flex-row gap-2 mt-4">
|
|
See documentation
|
|
<ExternalLink size="16" />
|
|
</div>
|
|
</a>
|
|
{/if}
|
|
</div>
|