diff --git a/README.md b/README.md index a2e05a1..a8f8191 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ Built on ArchiMate · Powered by Go · PostgreSQL · Open Source +[](https://demo.archipulse.org/#/login?try=demo) + [](https://github.com/DisruptiveWorks/archipulse/actions) [](./LICENSE) [](https://go.dev) @@ -17,13 +19,13 @@ Built on ArchiMate · Powered by Go · PostgreSQL · Open Source [](https://www.opengroup.org/archimate-forum) [](./CONTRIBUTING.md) -[Live Demo](https://demo.archipulse.org) · [Getting Started](#getting-started) · [Features](#features) · [How It Works](#how-it-works) · [Roadmap](#roadmap) · [Contributing](#contributing) · [Support](#support) +[Live Demo](https://demo.archipulse.org/#/login?try=demo) · [Getting Started](#getting-started) · [Features](#features) · [How It Works](#how-it-works) · [Roadmap](#roadmap) · [Contributing](#contributing) · [Support](#support) --- -> **Try it:** [demo.archipulse.org](https://demo.archipulse.org) — pre-loaded with the ArchiSurance example model. No sign-up required. +> **Try it:** [demo.archipulse.org](https://demo.archipulse.org/#/login?try=demo) — pre-loaded with ArchiSurance and ArchiMetal example models. One click, no sign-up required. --- @@ -129,7 +131,7 @@ flowchart TD -> Demo video coming soon. In the meantime, try the [live demo](https://demo.archipulse.org) — no sign-up required. +> Demo video coming soon. In the meantime, try the [live demo](https://demo.archipulse.org/#/login?try=demo) — one click, no sign-up required. --- diff --git a/cmd/archipulse/ui/src/routes/Login.svelte b/cmd/archipulse/ui/src/routes/Login.svelte index 3aadd82..85f267a 100644 --- a/cmd/archipulse/ui/src/routes/Login.svelte +++ b/cmd/archipulse/ui/src/routes/Login.svelte @@ -20,6 +20,13 @@ demoMode = cfg.demo_mode ?? false; demoEmail = cfg.demo_email ?? ''; demoPassword = cfg.demo_password ?? ''; + + const hashParams = new URLSearchParams(window.location.hash.split('?')[1] || ''); + const searchParams = new URLSearchParams(window.location.search); + const tryParam = hashParams.get('try') || searchParams.get('try'); + if (demoMode && tryParam === 'demo') { + await loginAsDemo(); + } }); async function handleSubmit(e) { diff --git a/website/index.html b/website/index.html index 5ea617c..46e673b 100644 --- a/website/index.html +++ b/website/index.html @@ -565,7 +565,7 @@