1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-26 03:14:14 +02:00

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

@@ -1,11 +1,14 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable import/no-default-export */
import { Meta, StoryObj } from '@storybook/vue3';
import MkLoading from './MkLoading.vue';
import { Meta } from '@storybook/vue3';
const meta = {
title: 'components/global/MkLoading',
component: MkLoading,
} satisfies Meta<typeof MkLoading>;
export default meta;
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { StoryObj } from '@storybook/vue3';
import MkLoading from './MkLoading.vue';
export const Default = {
render(args) {
return {
@@ -27,8 +30,36 @@ export const Default = {
template: '<MkLoading v-bind="props" />',
};
},
args: {},
parameters: {
layout: 'centered',
},
} satisfies StoryObj<typeof MkLoading>;
export default meta;
export const Inline = {
...Default,
args: {
...Default.args,
inline: true,
},
};
export const Colored = {
...Default,
args: {
...Default.args,
colored: true,
},
};
export const Mini = {
...Default,
args: {
...Default.args,
mini: true,
},
};
export const Em = {
...Default,
args: {
...Default.args,
em: true,
},
};