diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 8d34c688e0..9d81513c92 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1037,7 +1037,9 @@ _serverRules: description: "新規登録前に表示する、サーバーの簡潔なルールを設定します。内容は利用規約の要約とすることを推奨します。" _event: - title: "題" + title: "題名" + startDateTime: "開始日時" + endDateTime: "終了日時" startDate: "開始日" endDate: "終了日" startTime: "開始時刻" diff --git a/packages/frontend/.storybook/generate.tsx b/packages/frontend/.storybook/generate.tsx index dbe9729170..7e340b1c18 100644 --- a/packages/frontend/.storybook/generate.tsx +++ b/packages/frontend/.storybook/generate.tsx @@ -397,6 +397,7 @@ function toStories(component: string): string { Promise.all([ glob('src/components/global/*.vue'), glob('src/components/Mk{A,B}*.vue'), + glob('src/components/MkEvent.vue'), glob('src/components/MkGalleryPostPreview.vue'), glob('src/components/MkSignupServerRules.vue'), glob('src/pages/user/home.vue'), diff --git a/packages/frontend/src/components/MkEvent.stories.impl.ts b/packages/frontend/src/components/MkEvent.stories.impl.ts new file mode 100644 index 0000000000..e85dc5653b --- /dev/null +++ b/packages/frontend/src/components/MkEvent.stories.impl.ts @@ -0,0 +1,44 @@ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ +import { StoryObj } from '@storybook/vue3'; +import MkEvent from './MkEvent.vue'; +export const Default = { + render(args) { + return { + components: { + MkEvent, + }, + setup() { + return { + args, + }; + }, + beforeMount () { + document.body.style.background = 'var(--panel)'; + }, + computed: { + props() { + return { + ...this.args, + }; + }, + }, + template: '', + }; + }, + args: { + note: { + event: { + title: 'Come on a Tea Party!', + start: '2017-10-25T15:00:00+0900', + end: '2017-10-25T18:00:00+0900', + detail: { + location: 'Kawasaki, Japan', + description: 'Let\'s have a tea party!', + }, + }, + }, + }, + parameters: { + layout: 'centered', + }, +} satisfies StoryObj; diff --git a/packages/frontend/src/components/MkEvent.vue b/packages/frontend/src/components/MkEvent.vue index 1933515f35..3b445ce1b5 100644 --- a/packages/frontend/src/components/MkEvent.vue +++ b/packages/frontend/src/components/MkEvent.vue @@ -1,22 +1,66 @@