build(#10336): separate definitions and generated codes

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-03-20 16:13:07 +09:00
parent a19c560e7b
commit 6e21147ff6
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
435 changed files with 3887 additions and 1361 deletions

View File

@ -1,4 +1,5 @@
import * as fs from 'node:fs/promises'; import { existsSync, readFileSync } from 'node:fs';
import { writeFile } from 'node:fs/promises';
import { basename, dirname } from 'node:path/posix'; import { basename, dirname } from 'node:path/posix';
import { promisify } from 'node:util'; import { promisify } from 'node:util';
import { generate } from 'astring'; import { generate } from 'astring';
@ -12,6 +13,10 @@ function h<T extends estree.Node>(component: T['type'], props: Omit<T, 'type'>):
} }
function toStories(component: string): string { function toStories(component: string): string {
const msw = `${component.slice(0, -'.vue'.length)}.msw`;
const implStories = `${component.slice(0, -'.vue'.length)}.stories.impl`;
const hasMsw = existsSync(`${msw}.ts`);
const hasImplStories = existsSync(`${implStories}.ts`);
const base = basename(component); const base = basename(component);
const dir = dirname(component); const dir = dirname(component);
const literal = ( const literal = (
@ -27,7 +32,17 @@ function toStories(component: string): string {
key={<identifier name="layout" />} key={<identifier name="layout" />}
value={<literal value={`${dir}/`.startsWith('src/pages/') || base === 'MkAnalogClock.vue' ? 'fullscreen' : 'centered'} />} value={<literal value={`${dir}/`.startsWith('src/pages/') || base === 'MkAnalogClock.vue' ? 'fullscreen' : 'centered'} />}
kind="init" kind="init"
/> />,
...hasMsw
? [
<property
key={<identifier name="msw" />}
value={<identifier name="msw" />}
kind="init"
shorthand
/>,
]
: [],
]} ]}
/> />
); );
@ -47,6 +62,18 @@ function toStories(component: string): string {
/>, />,
]} ]}
/>, />,
...hasMsw
? [
<import-declaration
source={<literal value={`./${basename(msw)}`} />}
specifiers={[
<import-namespace-specifier
local={<identifier name="msw" />}
/>,
]}
/>,
]
: [],
<import-declaration <import-declaration
source={<literal value={`./${base}`} />} source={<literal value={`./${base}`} />}
specifiers={[ specifiers={[
@ -80,6 +107,10 @@ function toStories(component: string): string {
/>, />,
]} ]}
/>, />,
...hasImplStories
? [
]
: [
<export-named-declaration <export-named-declaration
declaration={ declaration={
<variable-declaration <variable-declaration
@ -88,6 +119,31 @@ function toStories(component: string): string {
<variable-declarator <variable-declarator
id={<identifier name="Default" />} id={<identifier name="Default" />}
init={ init={
<object-expression
properties={[
<property
key={<identifier name="render" />}
value={
<function-expression
id={<identifier name="render" />}
params={[
<identifier name="args" />,
<object-pattern
properties={[
<property
key={<identifier name="argTypes" />}
value={<identifier name="argTypes" />}
kind="init"
shorthand
/>,
]}
/>,
]}
body={
<block-statement
body={[
<return-statement
argument={
<object-expression <object-expression
properties={[ properties={[
<property <property
@ -107,8 +163,37 @@ function toStories(component: string): string {
kind="init" kind="init"
/>, />,
<property <property
key={<identifier name="props" />}
value={
<call-expression
callee={
<member-expression
object={<identifier name="Object" />}
property={<identifier name="keys" />}
/>
}
arguments={[
<identifier name="argTypes" />,
]}
/>
}
kind="init"
/>,
<property
key={<identifier name="template" />} key={<identifier name="template" />}
value={<literal value={`<${identifier.name} />`} />} value={<literal value={`<${identifier.name} v-bind="$props" />`} />}
kind="init"
/>,
]}
/>
}
/>,
]}
/>
}
/>
}
method
kind="init" kind="init"
/>, />,
<property <property
@ -124,6 +209,7 @@ function toStories(component: string): string {
/> />
} }
/>, />,
],
<export-default-declaration <export-default-declaration
declaration={<identifier name="meta" />} declaration={<identifier name="meta" />}
/>, />,
@ -131,7 +217,7 @@ function toStories(component: string): string {
/> />
) as unknown as estree.Program; ) as unknown as estree.Program;
return format( return format(
generate(program), generate(program) + (hasImplStories ? readFileSync(`${implStories}.ts`, 'utf-8') : ''),
{ {
parser: 'babel-ts', parser: 'babel-ts',
singleQuote: true, singleQuote: true,
@ -143,11 +229,6 @@ function toStories(component: string): string {
promisify(glob)('src/{components,pages,ui,widgets}/**/*.vue').then((components) => Promise.all( promisify(glob)('src/{components,pages,ui,widgets}/**/*.vue').then((components) => Promise.all(
components.map((component) => { components.map((component) => {
const stories = component.replace(/\.vue$/, '.stories.ts'); const stories = component.replace(/\.vue$/, '.stories.ts');
fs.stat(stories).then( return writeFile(stories, toStories(component));
() => {},
() => {
fs.writeFile(stories, toStories(component));
}
);
}) })
)); ));

View File

@ -0,0 +1,12 @@
import { addons } from '@storybook/manager-api';
import { create } from '@storybook/theming/create';
addons.setConfig({
theme: create({
base: 'dark',
brandTitle: 'Misskey Storybook',
brandUrl: 'https://misskey-hub.net',
brandImage: 'https://github.com/misskey-dev/assets/blob/main/misskey.svg?raw=true',
brandTarget: '_blank',
}),
});

View File

@ -1,8 +1,10 @@
import { type Preview, setup } from '@storybook/vue3'; import { type Preview, setup } from '@storybook/vue3';
import { initialize, mswDecorator } from 'msw-storybook-addon';
import locale from './locale'; import locale from './locale';
import theme from './theme'; import theme from './theme';
import '../src/style.scss'; import '../src/style.scss';
initialize();
localStorage.setItem("locale", JSON.stringify(locale)); localStorage.setItem("locale", JSON.stringify(locale));
Promise.all([ Promise.all([
import('../src/components'), import('../src/components'),
@ -15,12 +17,22 @@ Promise.all([
directives(app); directives(app);
widgets(app); widgets(app);
}); });
}) });
const preview = { const preview = {
decorators: [
mswDecorator,
],
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },
argTypes: {
default: {
control: {
type: 'text',
},
},
},
} satisfies Preview; } satisfies Preview;
export default preview; export default preview;

View File

@ -76,7 +76,9 @@
"@storybook/addon-interactions": "^7.0.0-rc.4", "@storybook/addon-interactions": "^7.0.0-rc.4",
"@storybook/addon-links": "^7.0.0-rc.4", "@storybook/addon-links": "^7.0.0-rc.4",
"@storybook/blocks": "^7.0.0-rc.4", "@storybook/blocks": "^7.0.0-rc.4",
"@storybook/manager-api": "7.0.0-rc.4",
"@storybook/testing-library": "^0.0.14-next.1", "@storybook/testing-library": "^0.0.14-next.1",
"@storybook/theming": "7.0.0-rc.4",
"@storybook/vue3": "^7.0.0-rc.4", "@storybook/vue3": "^7.0.0-rc.4",
"@storybook/vue3-vite": "^7.0.0-rc.4", "@storybook/vue3-vite": "^7.0.0-rc.4",
"@testing-library/vue": "^6.6.1", "@testing-library/vue": "^6.6.1",
@ -105,6 +107,8 @@
"eslint-plugin-import": "2.27.5", "eslint-plugin-import": "2.27.5",
"eslint-plugin-vue": "9.9.0", "eslint-plugin-vue": "9.9.0",
"happy-dom": "8.9.0", "happy-dom": "8.9.0",
"msw": "^1.1.0",
"msw-storybook-addon": "^1.8.0",
"prettier": "^2.8.4", "prettier": "^2.8.4",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",

View File

@ -5,10 +5,15 @@ const meta = {
component: MkAbuseReport, component: MkAbuseReport,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkAbuseReport, MkAbuseReport,
}, },
template: '<MkAbuseReport />', props: Object.keys(argTypes),
template: '<MkAbuseReport v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkAbuseReportWindow, component: MkAbuseReportWindow,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkAbuseReportWindow, MkAbuseReportWindow,
}, },
template: '<MkAbuseReportWindow />', props: Object.keys(argTypes),
template: '<MkAbuseReportWindow v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkAchievements, component: MkAchievements,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkAchievements, MkAchievements,
}, },
template: '<MkAchievements />', props: Object.keys(argTypes),
template: '<MkAchievements v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkAnalogClock, component: MkAnalogClock,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkAnalogClock, MkAnalogClock,
}, },
template: '<MkAnalogClock />', props: Object.keys(argTypes),
template: '<MkAnalogClock v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'fullscreen', layout: 'fullscreen',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkAsUi, component: MkAsUi,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkAsUi, MkAsUi,
}, },
template: '<MkAsUi />', props: Object.keys(argTypes),
template: '<MkAsUi v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkAutocomplete, component: MkAutocomplete,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkAutocomplete, MkAutocomplete,
}, },
template: '<MkAutocomplete />', props: Object.keys(argTypes),
template: '<MkAutocomplete v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkAvatars, component: MkAvatars,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkAvatars, MkAvatars,
}, },
template: '<MkAvatars />', props: Object.keys(argTypes),
template: '<MkAvatars v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -0,0 +1,14 @@
export const Default = {
render(args, { argTypes }) {
return {
components: {
MkButton,
},
props: Object.keys(argTypes),
template: '<MkButton v-bind="$props">Text</MkButton>',
};
},
parameters: {
layout: 'centered',
},
};

View File

@ -4,13 +4,18 @@ const meta = {
title: 'components/MkButton', title: 'components/MkButton',
component: MkButton, component: MkButton,
}; };
export default meta;
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkButton, MkButton,
}, },
template: '<MkButton />', props: Object.keys(argTypes),
template: '<MkButton v-bind="$props">Text</MkButton>',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },
}; };
export default meta;

View File

@ -5,10 +5,15 @@ const meta = {
component: MkCaptcha, component: MkCaptcha,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkCaptcha, MkCaptcha,
}, },
template: '<MkCaptcha />', props: Object.keys(argTypes),
template: '<MkCaptcha v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkChannelFollowButton, component: MkChannelFollowButton,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkChannelFollowButton, MkChannelFollowButton,
}, },
template: '<MkChannelFollowButton />', props: Object.keys(argTypes),
template: '<MkChannelFollowButton v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkChannelPreview, component: MkChannelPreview,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkChannelPreview, MkChannelPreview,
}, },
template: '<MkChannelPreview />', props: Object.keys(argTypes),
template: '<MkChannelPreview v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkChart, component: MkChart,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkChart, MkChart,
}, },
template: '<MkChart />', props: Object.keys(argTypes),
template: '<MkChart v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkChartLegend, component: MkChartLegend,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkChartLegend, MkChartLegend,
}, },
template: '<MkChartLegend />', props: Object.keys(argTypes),
template: '<MkChartLegend v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkChartTooltip, component: MkChartTooltip,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkChartTooltip, MkChartTooltip,
}, },
template: '<MkChartTooltip />', props: Object.keys(argTypes),
template: '<MkChartTooltip v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkCheckbox, component: MkCheckbox,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkCheckbox, MkCheckbox,
}, },
template: '<MkCheckbox />', props: Object.keys(argTypes),
template: '<MkCheckbox v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkClickerGame, component: MkClickerGame,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkClickerGame, MkClickerGame,
}, },
template: '<MkClickerGame />', props: Object.keys(argTypes),
template: '<MkClickerGame v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkClipPreview, component: MkClipPreview,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkClipPreview, MkClipPreview,
}, },
template: '<MkClipPreview />', props: Object.keys(argTypes),
template: '<MkClipPreview v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkCode_core, component: MkCode_core,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkCode_core, MkCode_core,
}, },
template: '<MkCode_core />', props: Object.keys(argTypes),
template: '<MkCode_core v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkCode, component: MkCode,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkCode, MkCode,
}, },
template: '<MkCode />', props: Object.keys(argTypes),
template: '<MkCode v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkContainer, component: MkContainer,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkContainer, MkContainer,
}, },
template: '<MkContainer />', props: Object.keys(argTypes),
template: '<MkContainer v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkContextMenu, component: MkContextMenu,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkContextMenu, MkContextMenu,
}, },
template: '<MkContextMenu />', props: Object.keys(argTypes),
template: '<MkContextMenu v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkCropperDialog, component: MkCropperDialog,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkCropperDialog, MkCropperDialog,
}, },
template: '<MkCropperDialog />', props: Object.keys(argTypes),
template: '<MkCropperDialog v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkCwButton, component: MkCwButton,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkCwButton, MkCwButton,
}, },
template: '<MkCwButton />', props: Object.keys(argTypes),
template: '<MkCwButton v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDateSeparatedList, component: MkDateSeparatedList,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDateSeparatedList, MkDateSeparatedList,
}, },
template: '<MkDateSeparatedList />', props: Object.keys(argTypes),
template: '<MkDateSeparatedList v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDialog, component: MkDialog,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDialog, MkDialog,
}, },
template: '<MkDialog />', props: Object.keys(argTypes),
template: '<MkDialog v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDigitalClock, component: MkDigitalClock,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDigitalClock, MkDigitalClock,
}, },
template: '<MkDigitalClock />', props: Object.keys(argTypes),
template: '<MkDigitalClock v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDonation, component: MkDonation,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDonation, MkDonation,
}, },
template: '<MkDonation />', props: Object.keys(argTypes),
template: '<MkDonation v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDrive_file, component: MkDrive_file,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDrive_file, MkDrive_file,
}, },
template: '<MkDrive_file />', props: Object.keys(argTypes),
template: '<MkDrive_file v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDrive_folder, component: MkDrive_folder,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDrive_folder, MkDrive_folder,
}, },
template: '<MkDrive_folder />', props: Object.keys(argTypes),
template: '<MkDrive_folder v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDrive_navFolder, component: MkDrive_navFolder,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDrive_navFolder, MkDrive_navFolder,
}, },
template: '<MkDrive_navFolder />', props: Object.keys(argTypes),
template: '<MkDrive_navFolder v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDrive, component: MkDrive,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDrive, MkDrive,
}, },
template: '<MkDrive />', props: Object.keys(argTypes),
template: '<MkDrive v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDriveFileThumbnail, component: MkDriveFileThumbnail,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDriveFileThumbnail, MkDriveFileThumbnail,
}, },
template: '<MkDriveFileThumbnail />', props: Object.keys(argTypes),
template: '<MkDriveFileThumbnail v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDriveSelectDialog, component: MkDriveSelectDialog,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDriveSelectDialog, MkDriveSelectDialog,
}, },
template: '<MkDriveSelectDialog />', props: Object.keys(argTypes),
template: '<MkDriveSelectDialog v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkDriveWindow, component: MkDriveWindow,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkDriveWindow, MkDriveWindow,
}, },
template: '<MkDriveWindow />', props: Object.keys(argTypes),
template: '<MkDriveWindow v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkEmojiPicker_section, component: MkEmojiPicker_section,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkEmojiPicker_section, MkEmojiPicker_section,
}, },
template: '<MkEmojiPicker_section />', props: Object.keys(argTypes),
template: '<MkEmojiPicker_section v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkEmojiPicker, component: MkEmojiPicker,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkEmojiPicker, MkEmojiPicker,
}, },
template: '<MkEmojiPicker />', props: Object.keys(argTypes),
template: '<MkEmojiPicker v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkEmojiPickerDialog, component: MkEmojiPickerDialog,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkEmojiPickerDialog, MkEmojiPickerDialog,
}, },
template: '<MkEmojiPickerDialog />', props: Object.keys(argTypes),
template: '<MkEmojiPickerDialog v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkEmojiPickerWindow, component: MkEmojiPickerWindow,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkEmojiPickerWindow, MkEmojiPickerWindow,
}, },
template: '<MkEmojiPickerWindow />', props: Object.keys(argTypes),
template: '<MkEmojiPickerWindow v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkFeaturedPhotos, component: MkFeaturedPhotos,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkFeaturedPhotos, MkFeaturedPhotos,
}, },
template: '<MkFeaturedPhotos />', props: Object.keys(argTypes),
template: '<MkFeaturedPhotos v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkFileCaptionEditWindow, component: MkFileCaptionEditWindow,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkFileCaptionEditWindow, MkFileCaptionEditWindow,
}, },
template: '<MkFileCaptionEditWindow />', props: Object.keys(argTypes),
template: '<MkFileCaptionEditWindow v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkFileListForAdmin, component: MkFileListForAdmin,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkFileListForAdmin, MkFileListForAdmin,
}, },
template: '<MkFileListForAdmin />', props: Object.keys(argTypes),
template: '<MkFileListForAdmin v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkFlashPreview, component: MkFlashPreview,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkFlashPreview, MkFlashPreview,
}, },
template: '<MkFlashPreview />', props: Object.keys(argTypes),
template: '<MkFlashPreview v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkFoldableSection, component: MkFoldableSection,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkFoldableSection, MkFoldableSection,
}, },
template: '<MkFoldableSection />', props: Object.keys(argTypes),
template: '<MkFoldableSection v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkFolder, component: MkFolder,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkFolder, MkFolder,
}, },
template: '<MkFolder />', props: Object.keys(argTypes),
template: '<MkFolder v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkFollowButton, component: MkFollowButton,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkFollowButton, MkFollowButton,
}, },
template: '<MkFollowButton />', props: Object.keys(argTypes),
template: '<MkFollowButton v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkForgotPassword, component: MkForgotPassword,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkForgotPassword, MkForgotPassword,
}, },
template: '<MkForgotPassword />', props: Object.keys(argTypes),
template: '<MkForgotPassword v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkFormDialog, component: MkFormDialog,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkFormDialog, MkFormDialog,
}, },
template: '<MkFormDialog />', props: Object.keys(argTypes),
template: '<MkFormDialog v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkGalleryPostPreview, component: MkGalleryPostPreview,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkGalleryPostPreview, MkGalleryPostPreview,
}, },
template: '<MkGalleryPostPreview />', props: Object.keys(argTypes),
template: '<MkGalleryPostPreview v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkGoogle, component: MkGoogle,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkGoogle, MkGoogle,
}, },
template: '<MkGoogle />', props: Object.keys(argTypes),
template: '<MkGoogle v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkHeatmap, component: MkHeatmap,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkHeatmap, MkHeatmap,
}, },
template: '<MkHeatmap />', props: Object.keys(argTypes),
template: '<MkHeatmap v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkImageViewer, component: MkImageViewer,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkImageViewer, MkImageViewer,
}, },
template: '<MkImageViewer />', props: Object.keys(argTypes),
template: '<MkImageViewer v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkImgWithBlurhash, component: MkImgWithBlurhash,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkImgWithBlurhash, MkImgWithBlurhash,
}, },
template: '<MkImgWithBlurhash />', props: Object.keys(argTypes),
template: '<MkImgWithBlurhash v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkInfo, component: MkInfo,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkInfo, MkInfo,
}, },
template: '<MkInfo />', props: Object.keys(argTypes),
template: '<MkInfo v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkInput, component: MkInput,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkInput, MkInput,
}, },
template: '<MkInput />', props: Object.keys(argTypes),
template: '<MkInput v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkInstanceCardMini, component: MkInstanceCardMini,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkInstanceCardMini, MkInstanceCardMini,
}, },
template: '<MkInstanceCardMini />', props: Object.keys(argTypes),
template: '<MkInstanceCardMini v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkInstanceStats, component: MkInstanceStats,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkInstanceStats, MkInstanceStats,
}, },
template: '<MkInstanceStats />', props: Object.keys(argTypes),
template: '<MkInstanceStats v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkInstanceTicker, component: MkInstanceTicker,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkInstanceTicker, MkInstanceTicker,
}, },
template: '<MkInstanceTicker />', props: Object.keys(argTypes),
template: '<MkInstanceTicker v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkKeyValue, component: MkKeyValue,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkKeyValue, MkKeyValue,
}, },
template: '<MkKeyValue />', props: Object.keys(argTypes),
template: '<MkKeyValue v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkLaunchPad, component: MkLaunchPad,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkLaunchPad, MkLaunchPad,
}, },
template: '<MkLaunchPad />', props: Object.keys(argTypes),
template: '<MkLaunchPad v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkLink, component: MkLink,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkLink, MkLink,
}, },
template: '<MkLink />', props: Object.keys(argTypes),
template: '<MkLink v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkMarquee, component: MkMarquee,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkMarquee, MkMarquee,
}, },
template: '<MkMarquee />', props: Object.keys(argTypes),
template: '<MkMarquee v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkMediaBanner, component: MkMediaBanner,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkMediaBanner, MkMediaBanner,
}, },
template: '<MkMediaBanner />', props: Object.keys(argTypes),
template: '<MkMediaBanner v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkMediaImage, component: MkMediaImage,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkMediaImage, MkMediaImage,
}, },
template: '<MkMediaImage />', props: Object.keys(argTypes),
template: '<MkMediaImage v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkMediaList, component: MkMediaList,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkMediaList, MkMediaList,
}, },
template: '<MkMediaList />', props: Object.keys(argTypes),
template: '<MkMediaList v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkMediaVideo, component: MkMediaVideo,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkMediaVideo, MkMediaVideo,
}, },
template: '<MkMediaVideo />', props: Object.keys(argTypes),
template: '<MkMediaVideo v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkMention, component: MkMention,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkMention, MkMention,
}, },
template: '<MkMention />', props: Object.keys(argTypes),
template: '<MkMention v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkMenu_child, component: MkMenu_child,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkMenu_child, MkMenu_child,
}, },
template: '<MkMenu_child />', props: Object.keys(argTypes),
template: '<MkMenu_child v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkMenu, component: MkMenu,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkMenu, MkMenu,
}, },
template: '<MkMenu />', props: Object.keys(argTypes),
template: '<MkMenu v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkMiniChart, component: MkMiniChart,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkMiniChart, MkMiniChart,
}, },
template: '<MkMiniChart />', props: Object.keys(argTypes),
template: '<MkMiniChart v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkModal, component: MkModal,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkModal, MkModal,
}, },
template: '<MkModal />', props: Object.keys(argTypes),
template: '<MkModal v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkModalPageWindow, component: MkModalPageWindow,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkModalPageWindow, MkModalPageWindow,
}, },
template: '<MkModalPageWindow />', props: Object.keys(argTypes),
template: '<MkModalPageWindow v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkModalWindow, component: MkModalWindow,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkModalWindow, MkModalWindow,
}, },
template: '<MkModalWindow />', props: Object.keys(argTypes),
template: '<MkModalWindow v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNote, component: MkNote,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNote, MkNote,
}, },
template: '<MkNote />', props: Object.keys(argTypes),
template: '<MkNote v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNoteDetailed, component: MkNoteDetailed,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNoteDetailed, MkNoteDetailed,
}, },
template: '<MkNoteDetailed />', props: Object.keys(argTypes),
template: '<MkNoteDetailed v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNoteHeader, component: MkNoteHeader,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNoteHeader, MkNoteHeader,
}, },
template: '<MkNoteHeader />', props: Object.keys(argTypes),
template: '<MkNoteHeader v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNotePreview, component: MkNotePreview,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNotePreview, MkNotePreview,
}, },
template: '<MkNotePreview />', props: Object.keys(argTypes),
template: '<MkNotePreview v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNoteSimple, component: MkNoteSimple,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNoteSimple, MkNoteSimple,
}, },
template: '<MkNoteSimple />', props: Object.keys(argTypes),
template: '<MkNoteSimple v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNoteSub, component: MkNoteSub,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNoteSub, MkNoteSub,
}, },
template: '<MkNoteSub />', props: Object.keys(argTypes),
template: '<MkNoteSub v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNotes, component: MkNotes,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNotes, MkNotes,
}, },
template: '<MkNotes />', props: Object.keys(argTypes),
template: '<MkNotes v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNotification, component: MkNotification,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNotification, MkNotification,
}, },
template: '<MkNotification />', props: Object.keys(argTypes),
template: '<MkNotification v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNotificationSettingWindow, component: MkNotificationSettingWindow,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNotificationSettingWindow, MkNotificationSettingWindow,
}, },
template: '<MkNotificationSettingWindow />', props: Object.keys(argTypes),
template: '<MkNotificationSettingWindow v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNotifications, component: MkNotifications,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNotifications, MkNotifications,
}, },
template: '<MkNotifications />', props: Object.keys(argTypes),
template: '<MkNotifications v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNumber, component: MkNumber,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNumber, MkNumber,
}, },
template: '<MkNumber />', props: Object.keys(argTypes),
template: '<MkNumber v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkNumberDiff, component: MkNumberDiff,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkNumberDiff, MkNumberDiff,
}, },
template: '<MkNumberDiff />', props: Object.keys(argTypes),
template: '<MkNumberDiff v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkObjectView, component: MkObjectView,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkObjectView, MkObjectView,
}, },
template: '<MkObjectView />', props: Object.keys(argTypes),
template: '<MkObjectView v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkObjectView_value, component: MkObjectView_value,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkObjectView_value, MkObjectView_value,
}, },
template: '<MkObjectView_value />', props: Object.keys(argTypes),
template: '<MkObjectView_value v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkOmit, component: MkOmit,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkOmit, MkOmit,
}, },
template: '<MkOmit />', props: Object.keys(argTypes),
template: '<MkOmit v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkPagePreview, component: MkPagePreview,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkPagePreview, MkPagePreview,
}, },
template: '<MkPagePreview />', props: Object.keys(argTypes),
template: '<MkPagePreview v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkPageWindow, component: MkPageWindow,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkPageWindow, MkPageWindow,
}, },
template: '<MkPageWindow />', props: Object.keys(argTypes),
template: '<MkPageWindow v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkPagination, component: MkPagination,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkPagination, MkPagination,
}, },
template: '<MkPagination />', props: Object.keys(argTypes),
template: '<MkPagination v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkPlusOneEffect, component: MkPlusOneEffect,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkPlusOneEffect, MkPlusOneEffect,
}, },
template: '<MkPlusOneEffect />', props: Object.keys(argTypes),
template: '<MkPlusOneEffect v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkPoll, component: MkPoll,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkPoll, MkPoll,
}, },
template: '<MkPoll />', props: Object.keys(argTypes),
template: '<MkPoll v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkPollEditor, component: MkPollEditor,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkPollEditor, MkPollEditor,
}, },
template: '<MkPollEditor />', props: Object.keys(argTypes),
template: '<MkPollEditor v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkPopupMenu, component: MkPopupMenu,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkPopupMenu, MkPopupMenu,
}, },
template: '<MkPopupMenu />', props: Object.keys(argTypes),
template: '<MkPopupMenu v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

View File

@ -5,10 +5,15 @@ const meta = {
component: MkPostForm, component: MkPostForm,
}; };
export const Default = { export const Default = {
render(args, { argTypes }) {
return {
components: { components: {
MkPostForm, MkPostForm,
}, },
template: '<MkPostForm />', props: Object.keys(argTypes),
template: '<MkPostForm v-bind="$props" />',
};
},
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },

Some files were not shown because too many files have changed in this diff Show More