From 3b19cc7eb1c8e9d5ccb948685b8fbe5e9630faa2 Mon Sep 17 00:00:00 2001 From: Chocolate Pie <106949016+chocolate-pie@users.noreply.github.com> Date: Wed, 21 Jun 2023 09:39:58 +0900 Subject: [PATCH] =?UTF-8?q?enhance:=20Storybook=E3=81=AE=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=83=BC=E3=83=AA=E3=83=BC=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MkAbuseReportResolver.stories.impl.ts | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 packages/frontend/src/components/MkAbuseReportResolver.stories.impl.ts diff --git a/packages/frontend/src/components/MkAbuseReportResolver.stories.impl.ts b/packages/frontend/src/components/MkAbuseReportResolver.stories.impl.ts new file mode 100644 index 0000000000..d68457f699 --- /dev/null +++ b/packages/frontend/src/components/MkAbuseReportResolver.stories.impl.ts @@ -0,0 +1,39 @@ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ +import MkAbuseReportResolver from './MkAbuseReportResolver.vue'; +import type { StoryObj } from '@storybook/vue3'; +export const Default = { + render(args) { + return { + components: { + MkAbuseReportResolver, + }, + setup() { + return { + args, + }; + }, + computed: { + props() { + return { + ...this.args, + }; + }, + }, + template: '', + }; + }, + args: { + editable: true, + data: { + name: 'Sample', + targetUserPattern: '^.*@.+$', + reporterPattern: null, + reportContentPattern: null, + expiresAt: 'indefinitely', + forward: false, + }, + }, + parameters: { + layout: 'centered', + }, +} satisfies StoryObj;