diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index e6c25350..d09d1198 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -125,7 +125,10 @@ - diff --git a/src/lib/components/MainMenu.svelte b/src/lib/components/MainMenu.svelte index 35d31815..b0f838a9 100644 --- a/src/lib/components/MainMenu.svelte +++ b/src/lib/components/MainMenu.svelte @@ -23,17 +23,21 @@ ]); const mermaidChartMenuItems = $derived([ - { label: 'Edit in Playground', icon: PlaygroundIcon, href: $urlsStore.mermaidChart.playground }, + { + label: 'Edit in Playground', + icon: PlaygroundIcon, + href: $urlsStore.mermaidChart({ medium: 'main_menu' }).playground + }, { label: 'Plugins', icon: PluginIcon, - href: 'https://www.mermaidchart.com/plugins', + href: $urlsStore.mermaidChart({ medium: 'main_menu' }).plugins, checkDiagramType: false }, { label: 'MermaidChart', icon: MermaidChartIcon, - href: 'https://www.mermaidchart.com', + href: $urlsStore.mermaidChart({ medium: 'main_menu' }).home, checkDiagramType: false } ]); diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 23b728cc..25148bce 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -107,7 +107,7 @@ // Wait for the event to be logged setTimeout(() => { window.open( - $urlsStore.mermaidChart.playground, + $urlsStore.mermaidChart({ medium: 'toggle' }).playground, '_self', // Do not send referrer header, if the user already came from playground isReferral ? 'noreferrer' : '' @@ -115,7 +115,9 @@ }, 100); }} /> - + Playground diff --git a/src/lib/components/Share.svelte b/src/lib/components/Share.svelte index b0dddf5c..2595900c 100644 --- a/src/lib/components/Share.svelte +++ b/src/lib/components/Share.svelte @@ -37,7 +37,7 @@ Mermaid Chart Playground - + Opens the Mermaid Chart Playground with Mermaid AI, Visual Editor, and more. diff --git a/src/lib/util/promos/April2025.svelte b/src/lib/util/promos/April2025.svelte index 1ed25b28..fd0733c2 100644 --- a/src/lib/util/promos/April2025.svelte +++ b/src/lib/util/promos/April2025.svelte @@ -1,5 +1,6 @@