This commit is contained in:
FruitRiin 2024-09-29 14:38:26 +09:00
parent 502657235c
commit c942071b58
2 changed files with 12427 additions and 16136 deletions

View file

@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable import/no-default-export */ /* eslint-disable import/no-default-export */
/* eslint-disable import/no-duplicates */
/* eslint-disable import/order */
import { Meta } from '@storybook/vue3'; import { Meta } from '@storybook/vue3';
const meta = { const meta = {
title: 'components/MkNote', title: 'components/MkNote',
@ -13,21 +12,18 @@ export default meta;
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { StoryObj } from '@storybook/vue3'; import { StoryObj } from '@storybook/vue3';
import { HttpResponse, http } from 'msw'; import { HttpResponse, http } from 'msw';
import { import {
note, note,
channel,
channelNote, channelNote,
quotedNote, quotedNote,
renotedNote, renotedNote,
remoteNote, remoteNote,
renotedFromChannelnote, renotedToChannel, renotedToChannelFromChannel renotedFromChannelnote, renotedToChannel, renotedToChannelFromChannel,
} from '../../.storybook/fakes.js'; } from '../../.storybook/fakes.js';
import { commonHandlers } from '../../.storybook/mocks.js'; import { commonHandlers } from '../../.storybook/mocks.js';
import MkNote from "@/components/MkNote.vue"; import MkNote from '@/components/MkNote.vue';
export const Default = { export const Default = {
render(args) { render(args) {
@ -90,30 +86,30 @@ export const Default = {
export const Channel = { export const Channel = {
...Default, ...Default,
args: { args: {
note: channelNote() note: channelNote(),
} },
} };
export const Quoted = { export const Quoted = {
...Default, ...Default,
args: { args: {
note: quotedNote() note: quotedNote(),
} },
} };
export const Renoted = { export const Renoted = {
...Default, ...Default,
args: { args: {
note: renotedNote() note: renotedNote(),
} },
} };
export const RemoteNote = { export const RemoteNote = {
...Default, ...Default,
args: { args: {
note: remoteNote(), note: remoteNote(),
} },
} };
export const Renote_RemoteNote = { export const Renote_RemoteNote = {
...Default, ...Default,
@ -121,10 +117,10 @@ export const Renote_RemoteNote = {
note: { note: {
...note(), ...note(),
renote: remoteNote(), renote: remoteNote(),
text: null text: null,
} },
} },
} };
export const RemoteuserRenoteNote = { export const RemoteuserRenoteNote = {
...Default, ...Default,
@ -132,29 +128,29 @@ export const RemoteuserRenoteNote = {
note: { note: {
...remoteNote(), ...remoteNote(),
renote: note(), renote: note(),
text: null text: null,
} },
} },
} };
export const RenotedFromChannel = { export const RenotedFromChannel = {
...Default, ...Default,
args: { args: {
note: renotedFromChannelnote() note: renotedFromChannelnote(),
} },
} };
export const RenotedToChannel = { export const RenotedToChannel = {
...Default, ...Default,
args: { args: {
note: renotedToChannel() note: renotedToChannel(),
} },
} };
export const RenotedToChannelFromChannel = { export const RenotedToChannelFromChannel = {
...Default, ...Default,
args: { args: {
note: renotedToChannelFromChannel() note: renotedToChannelFromChannel(),
} },
} };

File diff suppressed because it is too large Load diff