diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-07-08 19:35:26 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-07-08 19:35:26 -0400 |
| commit | e7f942dd5b638a351cbff4ae4e4c35aef6aebcac (patch) | |
| tree | c2fd9f88ad24316dad9cc805393d41794a5f8b82 | |
| parent | c631c8fc855b1854f14fc7fbf1d8afedaa37a0db (diff) | |
Add a swatch for the `ChangePassword` component.
| -rw-r--r-- | ui/routes/(swatch)/.swatch/+page.svelte | 1 | ||||
| -rw-r--r-- | ui/routes/(swatch)/.swatch/ChangePassword/+page.svelte | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/ui/routes/(swatch)/.swatch/+page.svelte b/ui/routes/(swatch)/.swatch/+page.svelte index abcb53f..4833bcb 100644 --- a/ui/routes/(swatch)/.swatch/+page.svelte +++ b/ui/routes/(swatch)/.swatch/+page.svelte @@ -8,5 +8,6 @@ <h2>components</h2> <ul> + <li><a href="ChangePassword">ChangePassword</a></li> <li><a href="swatch/EventLog">swatch/EventLog</a></li> </ul> diff --git a/ui/routes/(swatch)/.swatch/ChangePassword/+page.svelte b/ui/routes/(swatch)/.swatch/ChangePassword/+page.svelte new file mode 100644 index 0000000..8ef6792 --- /dev/null +++ b/ui/routes/(swatch)/.swatch/ChangePassword/+page.svelte @@ -0,0 +1,23 @@ +<script> + import EventCapture from '$lib/swatch/event-capture.svelte.js'; + + import ChangePassword from '$lib/components/ChangePassword.svelte'; + import EventLog from '$lib/components/swatch/EventLog.svelte'; + + let capture = $state(new EventCapture()); + const changePassword = capture.on('changePassword'); +</script> + +<h1><code>ChangePassword</code></h1> + +<nav><p><a href=".">Back to swatches</a></p></nav> + +<h2>rendered</h2> + +<div class="component-preview"> + <ChangePassword {changePassword} /> +</div> + +<h2>events</h2> + +<EventLog events={capture.events} clear={capture.clear.bind(capture)} /> |
