diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-07-08 20:08:12 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-07-08 20:08:12 -0400 |
| commit | 5bdebec905c3ad13220c8f55c136c34d31236d35 (patch) | |
| tree | a71daa20b61850c20389b62e6c2d943f385c6ecb /ui/routes/(swatch)/.swatch/LogOut | |
| parent | c631c8fc855b1854f14fc7fbf1d8afedaa37a0db (diff) | |
Create swatch for the `LogOut` component.
Diffstat (limited to 'ui/routes/(swatch)/.swatch/LogOut')
| -rw-r--r-- | ui/routes/(swatch)/.swatch/LogOut/+page.svelte | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/routes/(swatch)/.swatch/LogOut/+page.svelte b/ui/routes/(swatch)/.swatch/LogOut/+page.svelte new file mode 100644 index 0000000..5eebcde --- /dev/null +++ b/ui/routes/(swatch)/.swatch/LogOut/+page.svelte @@ -0,0 +1,23 @@ +<script> + import EventCapture from '$lib/swatch/event-capture.svelte.js'; + + import LogOut from '$lib/components/LogOut.svelte'; + import EventLog from '$lib/components/swatch/EventLog.svelte'; + + let capture = $state(new EventCapture()); + const logOut = capture.on('logOut'); +</script> + +<h1><code>LogOut</code></h1> + +<nav><p><a href=".">Back to swatches</a></p></nav> + +<h2>rendered</h2> + +<div class="component-preview"> + <LogOut {logOut} /> +</div> + +<h2>events</h2> + +<EventLog events={capture.events} clear={capture.clear.bind(capture)} /> |
