-
-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1574 from mermaid-js/release-promotion
Release live editor
- Loading branch information
Showing
11 changed files
with
340 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
MERMAID_DOMAIN='' | ||
MERMAID_ANALYTICS_URL='' | ||
MERMAID_RENDERER_URL='https://mermaid.ink' | ||
MERMAID_KROKI_RENDERER='https://kroki.io' | ||
MERMAID_IS_ENABLED_MERMAID_CHART_LINKS='' | ||
MERMAID_DOMAIN='' | ||
MERMAID_ANALYTICS_URL='' | ||
MERMAID_RENDERER_URL='https://mermaid.ink' | ||
MERMAID_KROKI_RENDERER='https://kroki.io' | ||
MERMAID_IS_ENABLED_MERMAID_CHART_LINKS='' | ||
|
||
# cp .env .env.local to make local changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<script lang="ts"> | ||
interface Props { | ||
links: { title: string; href: string }[]; | ||
label?: string; | ||
icon?: string; | ||
} | ||
let { links, label, icon }: Props = $props(); | ||
</script> | ||
|
||
<div class="dropdown dropdown-end"> | ||
<button class="btn btn-ghost"> | ||
{#if icon} | ||
<i class={icon}></i> | ||
{/if} | ||
{#if label} | ||
<span>{label}</span> | ||
{/if} | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 1792 1792" | ||
class="ml-1 inline-block h-4 w-4 fill-current" | ||
><path | ||
d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z" /></svg> | ||
</button> | ||
<div | ||
class="dropdown-content menu top-14 size-fit overflow-y-auto bg-base-200 text-base-content shadow-2xl"> | ||
<!-- svelte-ignore a11y_no_noninteractive_tabindex --> | ||
<ul tabindex="0" class="menu compact p-4"> | ||
{#each links as { href, title }} | ||
<li> | ||
<a | ||
role="menuitem" | ||
tabindex="0" | ||
class="whitespace-nowrap underline" | ||
target="_blank" | ||
{href}> | ||
{title} | ||
</a> | ||
</li> | ||
{/each} | ||
</ul> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.