build(#10336): generate components/global stories only

This commit is contained in:
Acid Chicken (硫酸鶏)
2023-04-01 13:45:31 +09:00
parent 5605b03ce4
commit a47f4b8955
417 changed files with 175 additions and 13984 deletions

View File

@@ -0,0 +1,52 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { StoryObj } from '@storybook/vue3';
import MkMisskeyFlavoredMarkdown from './MkMisskeyFlavoredMarkdown.vue';
export const Default = {
render(args) {
return {
components: {
MkMisskeyFlavoredMarkdown,
},
setup() {
return {
args,
};
},
computed: {
props() {
return {
...args,
};
},
},
template: '<MkMisskeyFlavoredMarkdown v-bind="props" />',
};
},
args: {
text: 'Hello, world!',
},
parameters: {
layout: 'centered',
},
} satisfies StoryObj<typeof MkMisskeyFlavoredMarkdown>;
export const Plain = {
...Default,
args: {
...Default.args,
plain: true,
},
};
export const Nowrap = {
...Default,
args: {
...Default.args,
nowrap: true,
},
};
export const IsNote = {
...Default,
args: {
...Default.args,
isNote: true,
},
};