From db60b4156c137e6a01f14ac32f3c9495098a6b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 21 Jan 2023 13:55:48 +0100 Subject: [PATCH] chore: add Gallery story --- webui/src/stories/Gallery.stories.ts | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 webui/src/stories/Gallery.stories.ts diff --git a/webui/src/stories/Gallery.stories.ts b/webui/src/stories/Gallery.stories.ts new file mode 100644 index 0000000..4ccec1b --- /dev/null +++ b/webui/src/stories/Gallery.stories.ts @@ -0,0 +1,40 @@ +import type { Meta, StoryObj } from "@storybook/svelte"; +import Gallery from "../components/widgets/Gallery.svelte"; +import { + imageAddress, + imageVerticalAddress, + videoAddress, + videoVerticalAddress, +} from "./common"; +import RouterDecorator from "./RouterDecorator.svelte"; + +const meta: Meta = { + title: "Widgets/Gallery", + component: Gallery, + tags: ["autodocs"], + args: { + entities: [ + imageAddress, + imageVerticalAddress, + videoAddress, + videoVerticalAddress, + + ], + }, + decorators: [() => RouterDecorator], +}; + +export default meta; +type Story = StoryObj; + +export const Plain: Story = { + args: { + thumbnails: false, + }, +}; + +export const Thumbnails: Story = { + args: { + thumbnails: true, + }, +};