diff --git a/packages/frontend/.storybook/generate.tsx b/packages/frontend/.storybook/generate.tsx
index 49304602d..b167f232e 100644
--- a/packages/frontend/.storybook/generate.tsx
+++ b/packages/frontend/.storybook/generate.tsx
@@ -305,30 +305,6 @@ function toStories(component: string): string {
(
) as estree.Identifier,
- (
-
- ) as estree.Identifier
- }
- value={
- (
-
- ) as estree.Identifier
- }
- kind={
- 'init' as const
- }
- shorthand
- />
- ) as estree.AssignmentProperty,
- ]}
- />
- ) as estree.ObjectPattern,
]}
body={
(
@@ -378,35 +354,123 @@ function toStories(component: string): string {
+
) as estree.Identifier
}
value={
(
-
+
+ ) as estree.Identifier
+ }
+ value={
+ (
+
+ ) as estree.Identifier
+ }
+ kind={
+ 'init' as const
+ }
+ shorthand
+ />
+ ) as estree.Property,
+ ]}
+ />
+ ) as estree.ObjectExpression
+ }
+ />
+ ) as estree.ReturnStatement,
+ ]}
+ />
+ ) as estree.BlockStatement
+ }
+ />
+ ) as estree.FunctionExpression
+ }
+ method
+ kind={
+ 'init' as const
+ }
+ />
+ ) as estree.Property,
+ (
+
+ ) as estree.Identifier
+ }
+ value={
+ (
+
) as estree.Identifier
}
- property={
+ value={
(
-
- ) as estree.Identifier
+
+ ) as estree.Identifier
+ }
+ />
+ ) as estree.SpreadElement,
+ ]}
+ />
+ ) as estree.ObjectExpression
+ }
+ />
+ ) as estree.ReturnStatement,
+ ]}
+ />
+ ) as estree.BlockStatement
+ }
+ />
+ ) as estree.FunctionExpression
+ }
+ method
+ kind={
+ 'init' as const
}
/>
- ) as estree.MemberExpression
- }
- arguments={[
- (
-
- ) as estree.Identifier,
+ ) as estree.Property,
]}
/>
- ) as estree.CallExpression
+ ) as estree.ObjectExpression
}
kind={
'init' as const
@@ -423,7 +487,7 @@ function toStories(component: string): string {
value={
(
`}
+ value={`<${identifier.name} v-bind="props" />`}
/>
) as estree.Literal
}
diff --git a/packages/frontend/.storybook/main.ts b/packages/frontend/.storybook/main.ts
index d54c49362..90cc57536 100644
--- a/packages/frontend/.storybook/main.ts
+++ b/packages/frontend/.storybook/main.ts
@@ -8,6 +8,7 @@ const config = {
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
+ '@storybook/addon-storysource',
'../node_modules/storybook-addon-misskey-theme',
],
framework: {
@@ -22,10 +23,15 @@ const config = {
},
async viteFinal(config, options) {
const { plugins, build: { rollupOptions, ...build }, ...original } = getConfig();
+ console.dir(config, {depth:Infinity});
+ console.dir(original, {depth:Infinity});
const x = mergeConfig(config, {
...original,
build,
assetsInclude: [resolve(__dirname, '../node_modules/@tabler/icons-webfont/**/*.{css,eot,ttf,woff,woff2}')],
+ server: {
+ hmr: false,
+ },
});
return x;
},
diff --git a/packages/frontend/.storybook/preview.ts b/packages/frontend/.storybook/preview.ts
index 72e642189..291432db0 100644
--- a/packages/frontend/.storybook/preview.ts
+++ b/packages/frontend/.storybook/preview.ts
@@ -1,13 +1,18 @@
import { addons } from '@storybook/addons';
import { FORCE_REMOUNT } from '@storybook/core-events';
-import { type Preview, forceReRender, setup } from '@storybook/vue3';
+import { type Preview, setup } from '@storybook/vue3';
import { initialize, mswDecorator } from 'msw-storybook-addon';
import locale from './locale';
import { commonHandlers, onUnhandledRequest } from './mocks';
import themes from './themes';
import '../src/style.scss';
-let initialized = false;
+// TODO: HMR が壊れているのを直す
+import.meta.hot.invalidate();
+
+const appInitialized = Symbol();
+
+let moduleInitialized = false;
let unobserve = () => {};
function loadTheme(applyTheme: typeof import('../src/scripts/theme')['applyTheme']) {
@@ -48,7 +53,11 @@ queueMicrotask(() => {
import('../src/scripts/theme'),
]).then(([{ default: components }, { default: directives }, { default: widgets }, { applyTheme }]) => {
setup((app) => {
- initialized = true;
+ moduleInitialized = true;
+ if (app[appInitialized]) {
+ return;
+ }
+ app[appInitialized] = true;
loadTheme(applyTheme);
components(app);
directives(app);
@@ -59,17 +68,17 @@ queueMicrotask(() => {
const preview = {
decorators: [
- mswDecorator,
(Story, context) => {
const story = Story();
- if (!initialized) {
+ if (!moduleInitialized) {
const channel = addons.getChannel();
(globalThis.requestIdleCallback || setTimeout)(() => {
channel.emit(FORCE_REMOUNT, { storyId: context.id });
});
}
return story;
- }
+ },
+ mswDecorator,
],
parameters: {
msw: {
diff --git a/packages/frontend/package.json b/packages/frontend/package.json
index 182585a87..06d90b524 100644
--- a/packages/frontend/package.json
+++ b/packages/frontend/package.json
@@ -72,21 +72,22 @@
"vuedraggable": "next"
},
"devDependencies": {
- "@storybook/addon-essentials": "^7.0.0-rc.4",
- "@storybook/addon-interactions": "^7.0.0-rc.4",
- "@storybook/addon-links": "^7.0.0-rc.4",
+ "@storybook/addon-essentials": "7.0.0-rc.6",
+ "@storybook/addon-interactions": "7.0.0-rc.6",
+ "@storybook/addon-links": "7.0.0-rc.6",
+ "@storybook/addon-storysource": "7.0.0-rc.6",
"@storybook/addons": "7.0.0-rc.5",
- "@storybook/blocks": "^7.0.0-rc.4",
- "@storybook/core-events": "^7.0.0-rc.4",
- "@storybook/manager-api": "^7.0.0-rc.4",
- "@storybook/preview-api": "^7.0.0-rc.4",
- "@storybook/react": "^7.0.0-rc.4",
- "@storybook/react-vite": "^7.0.0-rc.4",
+ "@storybook/blocks": "7.0.0-rc.6",
+ "@storybook/core-events": "7.0.0-rc.6",
+ "@storybook/manager-api": "7.0.0-rc.6",
+ "@storybook/preview-api": "7.0.0-rc.6",
+ "@storybook/react": "7.0.0-rc.6",
+ "@storybook/react-vite": "7.0.0-rc.6",
"@storybook/testing-library": "^0.0.14-next.1",
- "@storybook/theming": "^7.0.0-rc.4",
- "@storybook/types": "^7.0.0-rc.4",
- "@storybook/vue3": "^7.0.0-rc.4",
- "@storybook/vue3-vite": "^7.0.0-rc.4",
+ "@storybook/theming": "7.0.0-rc.6",
+ "@storybook/types": "7.0.0-rc.6",
+ "@storybook/vue3": "7.0.0-rc.6",
+ "@storybook/vue3-vite": "7.0.0-rc.6",
"@testing-library/vue": "^6.6.1",
"@types/escape-regexp": "0.0.1",
"@types/estree": "^1.0.0",
@@ -119,7 +120,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"start-server-and-test": "2.0.0",
- "storybook": "^7.0.0-rc.4",
+ "storybook": "7.0.0-rc.6",
"storybook-addon-misskey-theme": "github:misskey-dev/storybook-addon-misskey-theme",
"summaly": "github:misskey-dev/summaly",
"vitest": "^0.29.2",
diff --git a/packages/frontend/src/components/MkAbuseReport.stories.ts b/packages/frontend/src/components/MkAbuseReport.stories.ts
index 7d97a6e7b..dac1b2793 100644
--- a/packages/frontend/src/components/MkAbuseReport.stories.ts
+++ b/packages/frontend/src/components/MkAbuseReport.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkAbuseReport,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkAbuseReport,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkAbuseReportWindow.stories.ts b/packages/frontend/src/components/MkAbuseReportWindow.stories.ts
index 76ab111f4..acaf171e9 100644
--- a/packages/frontend/src/components/MkAbuseReportWindow.stories.ts
+++ b/packages/frontend/src/components/MkAbuseReportWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkAbuseReportWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkAbuseReportWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkAchievements.stories.ts b/packages/frontend/src/components/MkAchievements.stories.ts
index 8220dbcbb..492358ebc 100644
--- a/packages/frontend/src/components/MkAchievements.stories.ts
+++ b/packages/frontend/src/components/MkAchievements.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkAchievements,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkAchievements,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkAsUi.stories.ts b/packages/frontend/src/components/MkAsUi.stories.ts
index 6965f4103..b27668655 100644
--- a/packages/frontend/src/components/MkAsUi.stories.ts
+++ b/packages/frontend/src/components/MkAsUi.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkAsUi,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkAsUi,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkAutocomplete.stories.ts b/packages/frontend/src/components/MkAutocomplete.stories.ts
index f2bc0b837..2242bfde3 100644
--- a/packages/frontend/src/components/MkAutocomplete.stories.ts
+++ b/packages/frontend/src/components/MkAutocomplete.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkAutocomplete,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkAutocomplete,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkAvatars.stories.ts b/packages/frontend/src/components/MkAvatars.stories.ts
index 289269193..71a40e5cc 100644
--- a/packages/frontend/src/components/MkAvatars.stories.ts
+++ b/packages/frontend/src/components/MkAvatars.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkAvatars,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkAvatars,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkButton.stories.impl.ts b/packages/frontend/src/components/MkButton.stories.impl.ts
index 94bf1e39b..228af8f91 100644
--- a/packages/frontend/src/components/MkButton.stories.impl.ts
+++ b/packages/frontend/src/components/MkButton.stories.impl.ts
@@ -1,13 +1,27 @@
+/* eslint-disable @typescript-eslint/explicit-function-return-type */
+/* eslint-disable import/no-default-export */
+/* eslint-disable import/no-duplicates */
import { StoryObj } from '@storybook/vue3';
import MkButton from './MkButton.vue';
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkButton,
},
- props: Object.keys(argTypes),
- template: 'Text',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: 'Text',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkButton.stories.ts b/packages/frontend/src/components/MkButton.stories.ts
index c3da0d1a4..c85ce89e1 100644
--- a/packages/frontend/src/components/MkButton.stories.ts
+++ b/packages/frontend/src/components/MkButton.stories.ts
@@ -6,16 +6,30 @@ const meta = {
component: MkButton,
} satisfies Meta;
export default meta;
+/* eslint-disable @typescript-eslint/explicit-function-return-type */
+/* eslint-disable import/no-default-export */
+/* eslint-disable import/no-duplicates */
import { StoryObj } from '@storybook/vue3';
import MkButton from './MkButton.vue';
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkButton,
},
- props: Object.keys(argTypes),
- template: 'Text',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: 'Text',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkCaptcha.stories.ts b/packages/frontend/src/components/MkCaptcha.stories.ts
index f6d0648d8..78db7287a 100644
--- a/packages/frontend/src/components/MkCaptcha.stories.ts
+++ b/packages/frontend/src/components/MkCaptcha.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkCaptcha,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkCaptcha,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkChannelFollowButton.stories.ts b/packages/frontend/src/components/MkChannelFollowButton.stories.ts
index 461d6f2fd..8c7c31c56 100644
--- a/packages/frontend/src/components/MkChannelFollowButton.stories.ts
+++ b/packages/frontend/src/components/MkChannelFollowButton.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkChannelFollowButton,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkChannelFollowButton,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkChannelPreview.stories.ts b/packages/frontend/src/components/MkChannelPreview.stories.ts
index 9ad2fe84a..aedeba110 100644
--- a/packages/frontend/src/components/MkChannelPreview.stories.ts
+++ b/packages/frontend/src/components/MkChannelPreview.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkChannelPreview,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkChannelPreview,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkChart.stories.ts b/packages/frontend/src/components/MkChart.stories.ts
index 5cd72a480..d42adbe99 100644
--- a/packages/frontend/src/components/MkChart.stories.ts
+++ b/packages/frontend/src/components/MkChart.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkChart,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkChart,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkChartLegend.stories.ts b/packages/frontend/src/components/MkChartLegend.stories.ts
index ff21636c3..482f10c31 100644
--- a/packages/frontend/src/components/MkChartLegend.stories.ts
+++ b/packages/frontend/src/components/MkChartLegend.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkChartLegend,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkChartLegend,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkChartTooltip.stories.ts b/packages/frontend/src/components/MkChartTooltip.stories.ts
index 69555e9dd..49cccaa5b 100644
--- a/packages/frontend/src/components/MkChartTooltip.stories.ts
+++ b/packages/frontend/src/components/MkChartTooltip.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkChartTooltip,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkChartTooltip,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkCheckbox.stories.ts b/packages/frontend/src/components/MkCheckbox.stories.ts
index 4cfed2609..315ba320a 100644
--- a/packages/frontend/src/components/MkCheckbox.stories.ts
+++ b/packages/frontend/src/components/MkCheckbox.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkCheckbox,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkCheckbox,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkClickerGame.stories.ts b/packages/frontend/src/components/MkClickerGame.stories.ts
index 750b979f6..7b8f5165f 100644
--- a/packages/frontend/src/components/MkClickerGame.stories.ts
+++ b/packages/frontend/src/components/MkClickerGame.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkClickerGame,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkClickerGame,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkClipPreview.stories.ts b/packages/frontend/src/components/MkClipPreview.stories.ts
index 02ec124cf..a941c3612 100644
--- a/packages/frontend/src/components/MkClipPreview.stories.ts
+++ b/packages/frontend/src/components/MkClipPreview.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkClipPreview,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkClipPreview,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkCode.core.stories.ts b/packages/frontend/src/components/MkCode.core.stories.ts
index 9498e4160..dc47abb6b 100644
--- a/packages/frontend/src/components/MkCode.core.stories.ts
+++ b/packages/frontend/src/components/MkCode.core.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkCode_core,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkCode_core,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkCode.stories.ts b/packages/frontend/src/components/MkCode.stories.ts
index 5d9ebec74..94b8af9cd 100644
--- a/packages/frontend/src/components/MkCode.stories.ts
+++ b/packages/frontend/src/components/MkCode.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkCode,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkCode,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkContainer.stories.ts b/packages/frontend/src/components/MkContainer.stories.ts
index 5d8b4891c..3b2da66f2 100644
--- a/packages/frontend/src/components/MkContainer.stories.ts
+++ b/packages/frontend/src/components/MkContainer.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkContainer,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkContainer,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkContextMenu.stories.ts b/packages/frontend/src/components/MkContextMenu.stories.ts
index 46b8ae124..37cc68c7b 100644
--- a/packages/frontend/src/components/MkContextMenu.stories.ts
+++ b/packages/frontend/src/components/MkContextMenu.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkContextMenu,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkContextMenu,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkCropperDialog.stories.ts b/packages/frontend/src/components/MkCropperDialog.stories.ts
index 9e3808eae..a4ccf146c 100644
--- a/packages/frontend/src/components/MkCropperDialog.stories.ts
+++ b/packages/frontend/src/components/MkCropperDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkCropperDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkCropperDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkCwButton.stories.ts b/packages/frontend/src/components/MkCwButton.stories.ts
index 16e1b0321..67d60052f 100644
--- a/packages/frontend/src/components/MkCwButton.stories.ts
+++ b/packages/frontend/src/components/MkCwButton.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkCwButton,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkCwButton,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDateSeparatedList.stories.ts b/packages/frontend/src/components/MkDateSeparatedList.stories.ts
index 3d5b27e0c..f0f203b71 100644
--- a/packages/frontend/src/components/MkDateSeparatedList.stories.ts
+++ b/packages/frontend/src/components/MkDateSeparatedList.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDateSeparatedList,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDateSeparatedList,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDialog.stories.ts b/packages/frontend/src/components/MkDialog.stories.ts
index 9af7dad32..194e2c9cb 100644
--- a/packages/frontend/src/components/MkDialog.stories.ts
+++ b/packages/frontend/src/components/MkDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDigitalClock.stories.ts b/packages/frontend/src/components/MkDigitalClock.stories.ts
index cfe65bcfc..c99020c9e 100644
--- a/packages/frontend/src/components/MkDigitalClock.stories.ts
+++ b/packages/frontend/src/components/MkDigitalClock.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDigitalClock,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDigitalClock,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDonation.stories.ts b/packages/frontend/src/components/MkDonation.stories.ts
index b63ccc23e..7157b7e82 100644
--- a/packages/frontend/src/components/MkDonation.stories.ts
+++ b/packages/frontend/src/components/MkDonation.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDonation,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDonation,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDrive.file.stories.ts b/packages/frontend/src/components/MkDrive.file.stories.ts
index 56b007cbe..17ba8df80 100644
--- a/packages/frontend/src/components/MkDrive.file.stories.ts
+++ b/packages/frontend/src/components/MkDrive.file.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDrive_file,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDrive_file,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDrive.folder.stories.ts b/packages/frontend/src/components/MkDrive.folder.stories.ts
index 7c5514a29..74b810e31 100644
--- a/packages/frontend/src/components/MkDrive.folder.stories.ts
+++ b/packages/frontend/src/components/MkDrive.folder.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDrive_folder,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDrive_folder,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDrive.navFolder.stories.ts b/packages/frontend/src/components/MkDrive.navFolder.stories.ts
index cc7d93788..50272c4d8 100644
--- a/packages/frontend/src/components/MkDrive.navFolder.stories.ts
+++ b/packages/frontend/src/components/MkDrive.navFolder.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDrive_navFolder,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDrive_navFolder,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDrive.stories.ts b/packages/frontend/src/components/MkDrive.stories.ts
index d80015a57..3038312c3 100644
--- a/packages/frontend/src/components/MkDrive.stories.ts
+++ b/packages/frontend/src/components/MkDrive.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDrive,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDrive,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDriveFileThumbnail.stories.ts b/packages/frontend/src/components/MkDriveFileThumbnail.stories.ts
index 2efa600aa..6da7aab8c 100644
--- a/packages/frontend/src/components/MkDriveFileThumbnail.stories.ts
+++ b/packages/frontend/src/components/MkDriveFileThumbnail.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDriveFileThumbnail,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDriveFileThumbnail,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDriveSelectDialog.stories.ts b/packages/frontend/src/components/MkDriveSelectDialog.stories.ts
index 00d23ad8f..b665516de 100644
--- a/packages/frontend/src/components/MkDriveSelectDialog.stories.ts
+++ b/packages/frontend/src/components/MkDriveSelectDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDriveSelectDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDriveSelectDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkDriveWindow.stories.ts b/packages/frontend/src/components/MkDriveWindow.stories.ts
index c2054de12..b0f13f562 100644
--- a/packages/frontend/src/components/MkDriveWindow.stories.ts
+++ b/packages/frontend/src/components/MkDriveWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkDriveWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkDriveWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkEmojiPicker.section.stories.ts b/packages/frontend/src/components/MkEmojiPicker.section.stories.ts
index 567ab0ca0..141a55f59 100644
--- a/packages/frontend/src/components/MkEmojiPicker.section.stories.ts
+++ b/packages/frontend/src/components/MkEmojiPicker.section.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkEmojiPicker_section,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkEmojiPicker_section,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkEmojiPicker.stories.ts b/packages/frontend/src/components/MkEmojiPicker.stories.ts
index 5811d0d1e..5980c9a47 100644
--- a/packages/frontend/src/components/MkEmojiPicker.stories.ts
+++ b/packages/frontend/src/components/MkEmojiPicker.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkEmojiPicker,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkEmojiPicker,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkEmojiPickerDialog.stories.ts b/packages/frontend/src/components/MkEmojiPickerDialog.stories.ts
index dad27b0d5..db0900340 100644
--- a/packages/frontend/src/components/MkEmojiPickerDialog.stories.ts
+++ b/packages/frontend/src/components/MkEmojiPickerDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkEmojiPickerDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkEmojiPickerDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkEmojiPickerWindow.stories.ts b/packages/frontend/src/components/MkEmojiPickerWindow.stories.ts
index 39c5ca2b0..f56e5369a 100644
--- a/packages/frontend/src/components/MkEmojiPickerWindow.stories.ts
+++ b/packages/frontend/src/components/MkEmojiPickerWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkEmojiPickerWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkEmojiPickerWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkFeaturedPhotos.stories.ts b/packages/frontend/src/components/MkFeaturedPhotos.stories.ts
index 9f4f2506b..489499990 100644
--- a/packages/frontend/src/components/MkFeaturedPhotos.stories.ts
+++ b/packages/frontend/src/components/MkFeaturedPhotos.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkFeaturedPhotos,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkFeaturedPhotos,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkFileCaptionEditWindow.stories.ts b/packages/frontend/src/components/MkFileCaptionEditWindow.stories.ts
index c8f731bab..da29eb06c 100644
--- a/packages/frontend/src/components/MkFileCaptionEditWindow.stories.ts
+++ b/packages/frontend/src/components/MkFileCaptionEditWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkFileCaptionEditWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkFileCaptionEditWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkFileListForAdmin.stories.ts b/packages/frontend/src/components/MkFileListForAdmin.stories.ts
index 9f3b26100..a3fe97ee3 100644
--- a/packages/frontend/src/components/MkFileListForAdmin.stories.ts
+++ b/packages/frontend/src/components/MkFileListForAdmin.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkFileListForAdmin,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkFileListForAdmin,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkFlashPreview.stories.ts b/packages/frontend/src/components/MkFlashPreview.stories.ts
index 951863c69..a87b58c7f 100644
--- a/packages/frontend/src/components/MkFlashPreview.stories.ts
+++ b/packages/frontend/src/components/MkFlashPreview.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkFlashPreview,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkFlashPreview,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkFoldableSection.stories.ts b/packages/frontend/src/components/MkFoldableSection.stories.ts
index da65def88..20eab42e7 100644
--- a/packages/frontend/src/components/MkFoldableSection.stories.ts
+++ b/packages/frontend/src/components/MkFoldableSection.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkFoldableSection,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkFoldableSection,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkFolder.stories.ts b/packages/frontend/src/components/MkFolder.stories.ts
index c426a6611..7086d2c6f 100644
--- a/packages/frontend/src/components/MkFolder.stories.ts
+++ b/packages/frontend/src/components/MkFolder.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkFolder,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkFolder,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkFollowButton.stories.ts b/packages/frontend/src/components/MkFollowButton.stories.ts
index 0e61cb36d..8b4ed2acf 100644
--- a/packages/frontend/src/components/MkFollowButton.stories.ts
+++ b/packages/frontend/src/components/MkFollowButton.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkFollowButton,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkFollowButton,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkForgotPassword.stories.ts b/packages/frontend/src/components/MkForgotPassword.stories.ts
index 4976670c9..50a82ec10 100644
--- a/packages/frontend/src/components/MkForgotPassword.stories.ts
+++ b/packages/frontend/src/components/MkForgotPassword.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkForgotPassword,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkForgotPassword,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkFormDialog.stories.ts b/packages/frontend/src/components/MkFormDialog.stories.ts
index b63991185..7388e075c 100644
--- a/packages/frontend/src/components/MkFormDialog.stories.ts
+++ b/packages/frontend/src/components/MkFormDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkFormDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkFormDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkGalleryPostPreview.stories.ts b/packages/frontend/src/components/MkGalleryPostPreview.stories.ts
index fc6b7ec0d..6b354e02b 100644
--- a/packages/frontend/src/components/MkGalleryPostPreview.stories.ts
+++ b/packages/frontend/src/components/MkGalleryPostPreview.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkGalleryPostPreview,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkGalleryPostPreview,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkGoogle.stories.ts b/packages/frontend/src/components/MkGoogle.stories.ts
index 1c15e263e..046b4bd65 100644
--- a/packages/frontend/src/components/MkGoogle.stories.ts
+++ b/packages/frontend/src/components/MkGoogle.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkGoogle,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkGoogle,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkHeatmap.stories.ts b/packages/frontend/src/components/MkHeatmap.stories.ts
index 17bf874d0..1782029bf 100644
--- a/packages/frontend/src/components/MkHeatmap.stories.ts
+++ b/packages/frontend/src/components/MkHeatmap.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkHeatmap,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkHeatmap,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkImageViewer.stories.ts b/packages/frontend/src/components/MkImageViewer.stories.ts
index 19d50af61..8276b916a 100644
--- a/packages/frontend/src/components/MkImageViewer.stories.ts
+++ b/packages/frontend/src/components/MkImageViewer.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkImageViewer,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkImageViewer,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkImgWithBlurhash.stories.ts b/packages/frontend/src/components/MkImgWithBlurhash.stories.ts
index 6694a4aaf..b2693395b 100644
--- a/packages/frontend/src/components/MkImgWithBlurhash.stories.ts
+++ b/packages/frontend/src/components/MkImgWithBlurhash.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkImgWithBlurhash,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkImgWithBlurhash,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkInfo.stories.ts b/packages/frontend/src/components/MkInfo.stories.ts
index 886af9af8..99e46f95e 100644
--- a/packages/frontend/src/components/MkInfo.stories.ts
+++ b/packages/frontend/src/components/MkInfo.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkInfo,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkInfo,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkInput.stories.ts b/packages/frontend/src/components/MkInput.stories.ts
index e37211574..623473540 100644
--- a/packages/frontend/src/components/MkInput.stories.ts
+++ b/packages/frontend/src/components/MkInput.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkInput,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkInput,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkInstanceCardMini.stories.ts b/packages/frontend/src/components/MkInstanceCardMini.stories.ts
index eeb72cd79..919948e64 100644
--- a/packages/frontend/src/components/MkInstanceCardMini.stories.ts
+++ b/packages/frontend/src/components/MkInstanceCardMini.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkInstanceCardMini,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkInstanceCardMini,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkInstanceStats.stories.ts b/packages/frontend/src/components/MkInstanceStats.stories.ts
index 1b14c365b..df6005ccc 100644
--- a/packages/frontend/src/components/MkInstanceStats.stories.ts
+++ b/packages/frontend/src/components/MkInstanceStats.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkInstanceStats,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkInstanceStats,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkInstanceTicker.stories.ts b/packages/frontend/src/components/MkInstanceTicker.stories.ts
index 2ed162866..364290640 100644
--- a/packages/frontend/src/components/MkInstanceTicker.stories.ts
+++ b/packages/frontend/src/components/MkInstanceTicker.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkInstanceTicker,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkInstanceTicker,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkKeyValue.stories.ts b/packages/frontend/src/components/MkKeyValue.stories.ts
index 748630113..503637975 100644
--- a/packages/frontend/src/components/MkKeyValue.stories.ts
+++ b/packages/frontend/src/components/MkKeyValue.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkKeyValue,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkKeyValue,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkLaunchPad.stories.ts b/packages/frontend/src/components/MkLaunchPad.stories.ts
index aa3525124..54f3ae3b7 100644
--- a/packages/frontend/src/components/MkLaunchPad.stories.ts
+++ b/packages/frontend/src/components/MkLaunchPad.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkLaunchPad,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkLaunchPad,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkLink.stories.ts b/packages/frontend/src/components/MkLink.stories.ts
index ef98855b0..cea9509a7 100644
--- a/packages/frontend/src/components/MkLink.stories.ts
+++ b/packages/frontend/src/components/MkLink.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkLink,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkLink,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkMarquee.stories.ts b/packages/frontend/src/components/MkMarquee.stories.ts
index 6ade5a4cf..943b512bf 100644
--- a/packages/frontend/src/components/MkMarquee.stories.ts
+++ b/packages/frontend/src/components/MkMarquee.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMarquee,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMarquee,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkMediaBanner.stories.ts b/packages/frontend/src/components/MkMediaBanner.stories.ts
index 9d2d1069d..9dd835b55 100644
--- a/packages/frontend/src/components/MkMediaBanner.stories.ts
+++ b/packages/frontend/src/components/MkMediaBanner.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMediaBanner,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMediaBanner,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkMediaImage.stories.ts b/packages/frontend/src/components/MkMediaImage.stories.ts
index adfad8506..4089a53ce 100644
--- a/packages/frontend/src/components/MkMediaImage.stories.ts
+++ b/packages/frontend/src/components/MkMediaImage.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMediaImage,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMediaImage,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkMediaList.stories.ts b/packages/frontend/src/components/MkMediaList.stories.ts
index e68935ee9..d88e19c06 100644
--- a/packages/frontend/src/components/MkMediaList.stories.ts
+++ b/packages/frontend/src/components/MkMediaList.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMediaList,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMediaList,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkMediaVideo.stories.ts b/packages/frontend/src/components/MkMediaVideo.stories.ts
index 61aafdad8..9f94e8ce5 100644
--- a/packages/frontend/src/components/MkMediaVideo.stories.ts
+++ b/packages/frontend/src/components/MkMediaVideo.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMediaVideo,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMediaVideo,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkMention.stories.ts b/packages/frontend/src/components/MkMention.stories.ts
index 503ac4a54..ef88a5a6b 100644
--- a/packages/frontend/src/components/MkMention.stories.ts
+++ b/packages/frontend/src/components/MkMention.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMention,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMention,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkMenu.child.stories.ts b/packages/frontend/src/components/MkMenu.child.stories.ts
index b45a046ef..5e8413643 100644
--- a/packages/frontend/src/components/MkMenu.child.stories.ts
+++ b/packages/frontend/src/components/MkMenu.child.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMenu_child,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMenu_child,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkMenu.stories.ts b/packages/frontend/src/components/MkMenu.stories.ts
index 8a60b68f3..557ce5363 100644
--- a/packages/frontend/src/components/MkMenu.stories.ts
+++ b/packages/frontend/src/components/MkMenu.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMenu,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMenu,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkMiniChart.stories.ts b/packages/frontend/src/components/MkMiniChart.stories.ts
index c0d58421b..f26c74446 100644
--- a/packages/frontend/src/components/MkMiniChart.stories.ts
+++ b/packages/frontend/src/components/MkMiniChart.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMiniChart,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMiniChart,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkModal.stories.ts b/packages/frontend/src/components/MkModal.stories.ts
index 50c77800d..baaf79dc7 100644
--- a/packages/frontend/src/components/MkModal.stories.ts
+++ b/packages/frontend/src/components/MkModal.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkModal,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkModal,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkModalPageWindow.stories.ts b/packages/frontend/src/components/MkModalPageWindow.stories.ts
index 6c8cbef34..eebd26502 100644
--- a/packages/frontend/src/components/MkModalPageWindow.stories.ts
+++ b/packages/frontend/src/components/MkModalPageWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkModalPageWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkModalPageWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkModalWindow.stories.ts b/packages/frontend/src/components/MkModalWindow.stories.ts
index 7b162ab8b..fddf98574 100644
--- a/packages/frontend/src/components/MkModalWindow.stories.ts
+++ b/packages/frontend/src/components/MkModalWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkModalWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkModalWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNote.stories.ts b/packages/frontend/src/components/MkNote.stories.ts
index 79d28a7ef..d7a82cffd 100644
--- a/packages/frontend/src/components/MkNote.stories.ts
+++ b/packages/frontend/src/components/MkNote.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNote,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNote,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNoteDetailed.stories.ts b/packages/frontend/src/components/MkNoteDetailed.stories.ts
index 3a63251f2..abed199c5 100644
--- a/packages/frontend/src/components/MkNoteDetailed.stories.ts
+++ b/packages/frontend/src/components/MkNoteDetailed.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNoteDetailed,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNoteDetailed,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNoteHeader.stories.ts b/packages/frontend/src/components/MkNoteHeader.stories.ts
index 1ccda9725..d8723eea4 100644
--- a/packages/frontend/src/components/MkNoteHeader.stories.ts
+++ b/packages/frontend/src/components/MkNoteHeader.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNoteHeader,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNoteHeader,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNotePreview.stories.ts b/packages/frontend/src/components/MkNotePreview.stories.ts
index 927029070..a00795f9b 100644
--- a/packages/frontend/src/components/MkNotePreview.stories.ts
+++ b/packages/frontend/src/components/MkNotePreview.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNotePreview,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNotePreview,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNoteSimple.stories.ts b/packages/frontend/src/components/MkNoteSimple.stories.ts
index e6e9fb9f4..148089d82 100644
--- a/packages/frontend/src/components/MkNoteSimple.stories.ts
+++ b/packages/frontend/src/components/MkNoteSimple.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNoteSimple,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNoteSimple,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNoteSub.stories.ts b/packages/frontend/src/components/MkNoteSub.stories.ts
index 4d7c0af7b..dc3fad2f8 100644
--- a/packages/frontend/src/components/MkNoteSub.stories.ts
+++ b/packages/frontend/src/components/MkNoteSub.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNoteSub,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNoteSub,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNotes.stories.ts b/packages/frontend/src/components/MkNotes.stories.ts
index 4551b2c30..8fe2d31b4 100644
--- a/packages/frontend/src/components/MkNotes.stories.ts
+++ b/packages/frontend/src/components/MkNotes.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNotes,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNotes,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNotification.stories.ts b/packages/frontend/src/components/MkNotification.stories.ts
index 3e4478f9a..3612d1310 100644
--- a/packages/frontend/src/components/MkNotification.stories.ts
+++ b/packages/frontend/src/components/MkNotification.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNotification,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNotification,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNotificationSettingWindow.stories.ts b/packages/frontend/src/components/MkNotificationSettingWindow.stories.ts
index 059f86b00..ad5e055d0 100644
--- a/packages/frontend/src/components/MkNotificationSettingWindow.stories.ts
+++ b/packages/frontend/src/components/MkNotificationSettingWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNotificationSettingWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNotificationSettingWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNotifications.stories.ts b/packages/frontend/src/components/MkNotifications.stories.ts
index 48ab20bf9..5de01c2f9 100644
--- a/packages/frontend/src/components/MkNotifications.stories.ts
+++ b/packages/frontend/src/components/MkNotifications.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNotifications,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNotifications,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNumber.stories.ts b/packages/frontend/src/components/MkNumber.stories.ts
index 837de8329..1689bb431 100644
--- a/packages/frontend/src/components/MkNumber.stories.ts
+++ b/packages/frontend/src/components/MkNumber.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNumber,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNumber,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkNumberDiff.stories.ts b/packages/frontend/src/components/MkNumberDiff.stories.ts
index 9c1fcc217..bc281e62a 100644
--- a/packages/frontend/src/components/MkNumberDiff.stories.ts
+++ b/packages/frontend/src/components/MkNumberDiff.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkNumberDiff,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkNumberDiff,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkObjectView.stories.ts b/packages/frontend/src/components/MkObjectView.stories.ts
index c7aec40dc..90c446fbd 100644
--- a/packages/frontend/src/components/MkObjectView.stories.ts
+++ b/packages/frontend/src/components/MkObjectView.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkObjectView,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkObjectView,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkObjectView.value.stories.ts b/packages/frontend/src/components/MkObjectView.value.stories.ts
index da7ae5958..24b0e1553 100644
--- a/packages/frontend/src/components/MkObjectView.value.stories.ts
+++ b/packages/frontend/src/components/MkObjectView.value.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkObjectView_value,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkObjectView_value,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkOmit.stories.ts b/packages/frontend/src/components/MkOmit.stories.ts
index 4c2dd1b3a..06963423b 100644
--- a/packages/frontend/src/components/MkOmit.stories.ts
+++ b/packages/frontend/src/components/MkOmit.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkOmit,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkOmit,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPagePreview.stories.ts b/packages/frontend/src/components/MkPagePreview.stories.ts
index 6b8121527..d1ddf6707 100644
--- a/packages/frontend/src/components/MkPagePreview.stories.ts
+++ b/packages/frontend/src/components/MkPagePreview.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPagePreview,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPagePreview,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPageWindow.stories.ts b/packages/frontend/src/components/MkPageWindow.stories.ts
index 846dd9f65..334b3bc29 100644
--- a/packages/frontend/src/components/MkPageWindow.stories.ts
+++ b/packages/frontend/src/components/MkPageWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPageWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPageWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPagination.stories.ts b/packages/frontend/src/components/MkPagination.stories.ts
index 78a99081c..3bf7fb92b 100644
--- a/packages/frontend/src/components/MkPagination.stories.ts
+++ b/packages/frontend/src/components/MkPagination.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPagination,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPagination,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPlusOneEffect.stories.ts b/packages/frontend/src/components/MkPlusOneEffect.stories.ts
index b6851053d..6708f2ba6 100644
--- a/packages/frontend/src/components/MkPlusOneEffect.stories.ts
+++ b/packages/frontend/src/components/MkPlusOneEffect.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPlusOneEffect,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPlusOneEffect,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPoll.stories.ts b/packages/frontend/src/components/MkPoll.stories.ts
index 651847cb1..dbab8671d 100644
--- a/packages/frontend/src/components/MkPoll.stories.ts
+++ b/packages/frontend/src/components/MkPoll.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPoll,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPoll,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPollEditor.stories.ts b/packages/frontend/src/components/MkPollEditor.stories.ts
index 0629b9a68..8d26f2cbf 100644
--- a/packages/frontend/src/components/MkPollEditor.stories.ts
+++ b/packages/frontend/src/components/MkPollEditor.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPollEditor,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPollEditor,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPopupMenu.stories.ts b/packages/frontend/src/components/MkPopupMenu.stories.ts
index 090e1f494..2727ae37a 100644
--- a/packages/frontend/src/components/MkPopupMenu.stories.ts
+++ b/packages/frontend/src/components/MkPopupMenu.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPopupMenu,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPopupMenu,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPostForm.stories.ts b/packages/frontend/src/components/MkPostForm.stories.ts
index 5ed74b029..e9623581a 100644
--- a/packages/frontend/src/components/MkPostForm.stories.ts
+++ b/packages/frontend/src/components/MkPostForm.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPostForm,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPostForm,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPostFormAttaches.stories.ts b/packages/frontend/src/components/MkPostFormAttaches.stories.ts
index 687f0bfaf..26ea2a43f 100644
--- a/packages/frontend/src/components/MkPostFormAttaches.stories.ts
+++ b/packages/frontend/src/components/MkPostFormAttaches.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPostFormAttaches,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPostFormAttaches,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPostFormDialog.stories.ts b/packages/frontend/src/components/MkPostFormDialog.stories.ts
index 616d6f1f8..3b7973050 100644
--- a/packages/frontend/src/components/MkPostFormDialog.stories.ts
+++ b/packages/frontend/src/components/MkPostFormDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPostFormDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPostFormDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkPushNotificationAllowButton.stories.ts b/packages/frontend/src/components/MkPushNotificationAllowButton.stories.ts
index 15ef8eb04..664ed0a44 100644
--- a/packages/frontend/src/components/MkPushNotificationAllowButton.stories.ts
+++ b/packages/frontend/src/components/MkPushNotificationAllowButton.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPushNotificationAllowButton,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPushNotificationAllowButton,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkRadio.stories.ts b/packages/frontend/src/components/MkRadio.stories.ts
index 8056eecf8..728b864fc 100644
--- a/packages/frontend/src/components/MkRadio.stories.ts
+++ b/packages/frontend/src/components/MkRadio.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkRadio,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkRadio,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkRadios.stories.ts b/packages/frontend/src/components/MkRadios.stories.ts
index b3a0e39ef..b5059ea47 100644
--- a/packages/frontend/src/components/MkRadios.stories.ts
+++ b/packages/frontend/src/components/MkRadios.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkRadios,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkRadios,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkRange.stories.ts b/packages/frontend/src/components/MkRange.stories.ts
index dc6caae4d..8b68f4d1c 100644
--- a/packages/frontend/src/components/MkRange.stories.ts
+++ b/packages/frontend/src/components/MkRange.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkRange,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkRange,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkReactedUsersDialog.stories.ts b/packages/frontend/src/components/MkReactedUsersDialog.stories.ts
index 10b9b6e2e..16041af5a 100644
--- a/packages/frontend/src/components/MkReactedUsersDialog.stories.ts
+++ b/packages/frontend/src/components/MkReactedUsersDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkReactedUsersDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkReactedUsersDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkReactionEffect.stories.ts b/packages/frontend/src/components/MkReactionEffect.stories.ts
index 5bba9aa1a..2d5599c14 100644
--- a/packages/frontend/src/components/MkReactionEffect.stories.ts
+++ b/packages/frontend/src/components/MkReactionEffect.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkReactionEffect,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkReactionEffect,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkReactionIcon.stories.ts b/packages/frontend/src/components/MkReactionIcon.stories.ts
index ab7880735..309e86ade 100644
--- a/packages/frontend/src/components/MkReactionIcon.stories.ts
+++ b/packages/frontend/src/components/MkReactionIcon.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkReactionIcon,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkReactionIcon,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkReactionTooltip.stories.ts b/packages/frontend/src/components/MkReactionTooltip.stories.ts
index b3478f311..41bb73c7b 100644
--- a/packages/frontend/src/components/MkReactionTooltip.stories.ts
+++ b/packages/frontend/src/components/MkReactionTooltip.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkReactionTooltip,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkReactionTooltip,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkReactionsViewer.details.stories.ts b/packages/frontend/src/components/MkReactionsViewer.details.stories.ts
index c853b4da3..9e54ce740 100644
--- a/packages/frontend/src/components/MkReactionsViewer.details.stories.ts
+++ b/packages/frontend/src/components/MkReactionsViewer.details.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkReactionsViewer_details,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkReactionsViewer_details,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.stories.ts b/packages/frontend/src/components/MkReactionsViewer.reaction.stories.ts
index 9f5160f06..9e35252be 100644
--- a/packages/frontend/src/components/MkReactionsViewer.reaction.stories.ts
+++ b/packages/frontend/src/components/MkReactionsViewer.reaction.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkReactionsViewer_reaction,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkReactionsViewer_reaction,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkReactionsViewer.stories.ts b/packages/frontend/src/components/MkReactionsViewer.stories.ts
index 30262c02b..706428fb0 100644
--- a/packages/frontend/src/components/MkReactionsViewer.stories.ts
+++ b/packages/frontend/src/components/MkReactionsViewer.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkReactionsViewer,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkReactionsViewer,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkRemoteCaution.stories.ts b/packages/frontend/src/components/MkRemoteCaution.stories.ts
index 103e77fc4..3b91a0715 100644
--- a/packages/frontend/src/components/MkRemoteCaution.stories.ts
+++ b/packages/frontend/src/components/MkRemoteCaution.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkRemoteCaution,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkRemoteCaution,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkRetentionHeatmap.stories.ts b/packages/frontend/src/components/MkRetentionHeatmap.stories.ts
index fb19bd30f..3b7872b18 100644
--- a/packages/frontend/src/components/MkRetentionHeatmap.stories.ts
+++ b/packages/frontend/src/components/MkRetentionHeatmap.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkRetentionHeatmap,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkRetentionHeatmap,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkRippleEffect.stories.ts b/packages/frontend/src/components/MkRippleEffect.stories.ts
index 73552e9d0..04eb7cc1d 100644
--- a/packages/frontend/src/components/MkRippleEffect.stories.ts
+++ b/packages/frontend/src/components/MkRippleEffect.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkRippleEffect,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkRippleEffect,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkRolePreview.stories.ts b/packages/frontend/src/components/MkRolePreview.stories.ts
index 1cc60992e..15953c717 100644
--- a/packages/frontend/src/components/MkRolePreview.stories.ts
+++ b/packages/frontend/src/components/MkRolePreview.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkRolePreview,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkRolePreview,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSample.stories.ts b/packages/frontend/src/components/MkSample.stories.ts
index 6bc18d290..b1e6459cf 100644
--- a/packages/frontend/src/components/MkSample.stories.ts
+++ b/packages/frontend/src/components/MkSample.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSample,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSample,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSelect.stories.ts b/packages/frontend/src/components/MkSelect.stories.ts
index 7996a53e1..801204597 100644
--- a/packages/frontend/src/components/MkSelect.stories.ts
+++ b/packages/frontend/src/components/MkSelect.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSelect,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSelect,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSignin.stories.ts b/packages/frontend/src/components/MkSignin.stories.ts
index 8f03065e1..1ac0973ce 100644
--- a/packages/frontend/src/components/MkSignin.stories.ts
+++ b/packages/frontend/src/components/MkSignin.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSignin,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSignin,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSigninDialog.stories.ts b/packages/frontend/src/components/MkSigninDialog.stories.ts
index d2e0689b4..3e4a3a7cb 100644
--- a/packages/frontend/src/components/MkSigninDialog.stories.ts
+++ b/packages/frontend/src/components/MkSigninDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSigninDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSigninDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSignup.stories.ts b/packages/frontend/src/components/MkSignup.stories.ts
index a67235f6a..837268001 100644
--- a/packages/frontend/src/components/MkSignup.stories.ts
+++ b/packages/frontend/src/components/MkSignup.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSignup,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSignup,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSignupDialog.stories.ts b/packages/frontend/src/components/MkSignupDialog.stories.ts
index dfca62ba2..7eb70e6a8 100644
--- a/packages/frontend/src/components/MkSignupDialog.stories.ts
+++ b/packages/frontend/src/components/MkSignupDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSignupDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSignupDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSparkle.stories.ts b/packages/frontend/src/components/MkSparkle.stories.ts
index 4e784abf5..6c1dca90d 100644
--- a/packages/frontend/src/components/MkSparkle.stories.ts
+++ b/packages/frontend/src/components/MkSparkle.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSparkle,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSparkle,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSubNoteContent.stories.ts b/packages/frontend/src/components/MkSubNoteContent.stories.ts
index ee19f578b..fa9c0bb7f 100644
--- a/packages/frontend/src/components/MkSubNoteContent.stories.ts
+++ b/packages/frontend/src/components/MkSubNoteContent.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSubNoteContent,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSubNoteContent,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSuperMenu.stories.ts b/packages/frontend/src/components/MkSuperMenu.stories.ts
index b6db1e861..9ef790688 100644
--- a/packages/frontend/src/components/MkSuperMenu.stories.ts
+++ b/packages/frontend/src/components/MkSuperMenu.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSuperMenu,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSuperMenu,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkSwitch.stories.ts b/packages/frontend/src/components/MkSwitch.stories.ts
index 8e7b8ffb1..f01191be8 100644
--- a/packages/frontend/src/components/MkSwitch.stories.ts
+++ b/packages/frontend/src/components/MkSwitch.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSwitch,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSwitch,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkTab.stories.ts b/packages/frontend/src/components/MkTab.stories.ts
index 092a84a74..1ff6c06a0 100644
--- a/packages/frontend/src/components/MkTab.stories.ts
+++ b/packages/frontend/src/components/MkTab.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkTab,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkTab,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkTagCloud.stories.ts b/packages/frontend/src/components/MkTagCloud.stories.ts
index 6bfbc0352..83aba5409 100644
--- a/packages/frontend/src/components/MkTagCloud.stories.ts
+++ b/packages/frontend/src/components/MkTagCloud.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkTagCloud,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkTagCloud,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkTextarea.stories.ts b/packages/frontend/src/components/MkTextarea.stories.ts
index 92c496db9..9bfc2a23a 100644
--- a/packages/frontend/src/components/MkTextarea.stories.ts
+++ b/packages/frontend/src/components/MkTextarea.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkTextarea,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkTextarea,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkTimeline.stories.ts b/packages/frontend/src/components/MkTimeline.stories.ts
index b6bfb600d..511bdead1 100644
--- a/packages/frontend/src/components/MkTimeline.stories.ts
+++ b/packages/frontend/src/components/MkTimeline.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkTimeline,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkTimeline,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkToast.stories.ts b/packages/frontend/src/components/MkToast.stories.ts
index fef647287..c5f80f61b 100644
--- a/packages/frontend/src/components/MkToast.stories.ts
+++ b/packages/frontend/src/components/MkToast.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkToast,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkToast,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkTokenGenerateWindow.stories.ts b/packages/frontend/src/components/MkTokenGenerateWindow.stories.ts
index fb9b1bc6d..5229d6d6c 100644
--- a/packages/frontend/src/components/MkTokenGenerateWindow.stories.ts
+++ b/packages/frontend/src/components/MkTokenGenerateWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkTokenGenerateWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkTokenGenerateWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkTooltip.stories.ts b/packages/frontend/src/components/MkTooltip.stories.ts
index 2ea06ac2a..19f22ede1 100644
--- a/packages/frontend/src/components/MkTooltip.stories.ts
+++ b/packages/frontend/src/components/MkTooltip.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkTooltip,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkTooltip,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUpdated.stories.ts b/packages/frontend/src/components/MkUpdated.stories.ts
index 5a8a16a6b..58069bd1d 100644
--- a/packages/frontend/src/components/MkUpdated.stories.ts
+++ b/packages/frontend/src/components/MkUpdated.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUpdated,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUpdated,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUrlPreview.stories.ts b/packages/frontend/src/components/MkUrlPreview.stories.ts
index 9f9d8c8f8..29a393a5a 100644
--- a/packages/frontend/src/components/MkUrlPreview.stories.ts
+++ b/packages/frontend/src/components/MkUrlPreview.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUrlPreview,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUrlPreview,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUrlPreviewPopup.stories.ts b/packages/frontend/src/components/MkUrlPreviewPopup.stories.ts
index 74657a93a..f9df0987a 100644
--- a/packages/frontend/src/components/MkUrlPreviewPopup.stories.ts
+++ b/packages/frontend/src/components/MkUrlPreviewPopup.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUrlPreviewPopup,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUrlPreviewPopup,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUserCardMini.stories.ts b/packages/frontend/src/components/MkUserCardMini.stories.ts
index 81de09a19..8ed97c4b4 100644
--- a/packages/frontend/src/components/MkUserCardMini.stories.ts
+++ b/packages/frontend/src/components/MkUserCardMini.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUserCardMini,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUserCardMini,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUserInfo.stories.ts b/packages/frontend/src/components/MkUserInfo.stories.ts
index 286de8925..553df4466 100644
--- a/packages/frontend/src/components/MkUserInfo.stories.ts
+++ b/packages/frontend/src/components/MkUserInfo.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUserInfo,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUserInfo,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUserList.stories.ts b/packages/frontend/src/components/MkUserList.stories.ts
index 97f4d1f7d..927364596 100644
--- a/packages/frontend/src/components/MkUserList.stories.ts
+++ b/packages/frontend/src/components/MkUserList.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUserList,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUserList,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUserOnlineIndicator.stories.ts b/packages/frontend/src/components/MkUserOnlineIndicator.stories.ts
index 2b9daf9b5..c576b91b5 100644
--- a/packages/frontend/src/components/MkUserOnlineIndicator.stories.ts
+++ b/packages/frontend/src/components/MkUserOnlineIndicator.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUserOnlineIndicator,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUserOnlineIndicator,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUserPopup.stories.ts b/packages/frontend/src/components/MkUserPopup.stories.ts
index a74ed2609..5a30d4ba4 100644
--- a/packages/frontend/src/components/MkUserPopup.stories.ts
+++ b/packages/frontend/src/components/MkUserPopup.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUserPopup,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUserPopup,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUserSelectDialog.stories.ts b/packages/frontend/src/components/MkUserSelectDialog.stories.ts
index 522c1fc63..ffda531ed 100644
--- a/packages/frontend/src/components/MkUserSelectDialog.stories.ts
+++ b/packages/frontend/src/components/MkUserSelectDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUserSelectDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUserSelectDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkUsersTooltip.stories.ts b/packages/frontend/src/components/MkUsersTooltip.stories.ts
index 9b057bea6..6fa843e8b 100644
--- a/packages/frontend/src/components/MkUsersTooltip.stories.ts
+++ b/packages/frontend/src/components/MkUsersTooltip.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUsersTooltip,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUsersTooltip,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkVisibilityPicker.stories.ts b/packages/frontend/src/components/MkVisibilityPicker.stories.ts
index 52156bfe1..3d62ddd9d 100644
--- a/packages/frontend/src/components/MkVisibilityPicker.stories.ts
+++ b/packages/frontend/src/components/MkVisibilityPicker.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkVisibilityPicker,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkVisibilityPicker,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkWaitingDialog.stories.ts b/packages/frontend/src/components/MkWaitingDialog.stories.ts
index ea79004c3..b2314523d 100644
--- a/packages/frontend/src/components/MkWaitingDialog.stories.ts
+++ b/packages/frontend/src/components/MkWaitingDialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkWaitingDialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkWaitingDialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkWidgets.stories.ts b/packages/frontend/src/components/MkWidgets.stories.ts
index 7a6aad357..39e91faaf 100644
--- a/packages/frontend/src/components/MkWidgets.stories.ts
+++ b/packages/frontend/src/components/MkWidgets.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkWidgets,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkWidgets,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkWindow.stories.ts b/packages/frontend/src/components/MkWindow.stories.ts
index 8f1a27631..fcc9bd300 100644
--- a/packages/frontend/src/components/MkWindow.stories.ts
+++ b/packages/frontend/src/components/MkWindow.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkWindow,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkWindow,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/MkYouTubePlayer.stories.ts b/packages/frontend/src/components/MkYouTubePlayer.stories.ts
index 84f1dcd88..79191bbcd 100644
--- a/packages/frontend/src/components/MkYouTubePlayer.stories.ts
+++ b/packages/frontend/src/components/MkYouTubePlayer.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkYouTubePlayer,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkYouTubePlayer,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/form/link.stories.ts b/packages/frontend/src/components/form/link.stories.ts
index 54e6c25ca..b0ac7ee50 100644
--- a/packages/frontend/src/components/form/link.stories.ts
+++ b/packages/frontend/src/components/form/link.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: link_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
link_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/form/section.stories.ts b/packages/frontend/src/components/form/section.stories.ts
index fabddc668..0da19356e 100644
--- a/packages/frontend/src/components/form/section.stories.ts
+++ b/packages/frontend/src/components/form/section.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: section_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
section_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/form/slot.stories.ts b/packages/frontend/src/components/form/slot.stories.ts
index 6ddafe86c..2c441f115 100644
--- a/packages/frontend/src/components/form/slot.stories.ts
+++ b/packages/frontend/src/components/form/slot.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: slot_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
slot_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/form/split.stories.ts b/packages/frontend/src/components/form/split.stories.ts
index 3495bd731..5aece4082 100644
--- a/packages/frontend/src/components/form/split.stories.ts
+++ b/packages/frontend/src/components/form/split.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: split_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
split_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/form/suspense.stories.ts b/packages/frontend/src/components/form/suspense.stories.ts
index a22580d7a..ccd2d7d09 100644
--- a/packages/frontend/src/components/form/suspense.stories.ts
+++ b/packages/frontend/src/components/form/suspense.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: suspense_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
suspense_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkA.stories.ts b/packages/frontend/src/components/global/MkA.stories.ts
index e3d56c63c..91ea36826 100644
--- a/packages/frontend/src/components/global/MkA.stories.ts
+++ b/packages/frontend/src/components/global/MkA.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkA,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkA,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkAcct.stories.ts b/packages/frontend/src/components/global/MkAcct.stories.ts
index a710c227a..90f66bc18 100644
--- a/packages/frontend/src/components/global/MkAcct.stories.ts
+++ b/packages/frontend/src/components/global/MkAcct.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkAcct,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkAcct,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkAd.stories.ts b/packages/frontend/src/components/global/MkAd.stories.ts
index 687bf30ab..9f4dc320b 100644
--- a/packages/frontend/src/components/global/MkAd.stories.ts
+++ b/packages/frontend/src/components/global/MkAd.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkAd,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkAd,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkAvatar.stories.impl.ts b/packages/frontend/src/components/global/MkAvatar.stories.impl.ts
new file mode 100644
index 000000000..ca3db80b2
--- /dev/null
+++ b/packages/frontend/src/components/global/MkAvatar.stories.impl.ts
@@ -0,0 +1,64 @@
+/* eslint-disable @typescript-eslint/explicit-function-return-type */
+/* eslint-disable import/no-default-export */
+/* eslint-disable import/no-duplicates */
+import { StoryObj } from '@storybook/vue3';
+import MkAvatar from './MkAvatar.vue';
+export const Default = {
+ render(args) {
+ return {
+ components: {
+ MkAvatar,
+ },
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
+ };
+ },
+ args: {
+ size: 48,
+ user: {
+ avatarUrl: 'https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/about-icon.png?raw=true',
+ },
+ },
+ decorators: [
+ (Story, context) => ({
+ // eslint-disable-next-line quotes
+ template: `
`,
+ }),
+ ],
+ parameters: {
+ layout: 'centered',
+ },
+} satisfies StoryObj;
+export const ProfilePage = {
+ ...Default,
+ args: {
+ ...Default.args,
+ size: 120,
+ indicator: true,
+ user: {
+ ...Default.args.user,
+ onlineStatus: 'unknown',
+ },
+ },
+};
+export const ProfilePageCat = {
+ ...ProfilePage,
+ args: {
+ ...ProfilePage.args,
+ user: {
+ ...ProfilePage.args.user,
+ isCat: true,
+ },
+ },
+};
diff --git a/packages/frontend/src/components/global/MkAvatar.stories.ts b/packages/frontend/src/components/global/MkAvatar.stories.ts
index 644a1f2f3..6cd9ca0a9 100644
--- a/packages/frontend/src/components/global/MkAvatar.stories.ts
+++ b/packages/frontend/src/components/global/MkAvatar.stories.ts
@@ -1,23 +1,80 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable import/no-default-export */
-import { Meta, StoryObj } from '@storybook/vue3';
-import MkAvatar from './MkAvatar.vue';
+import { Meta } from '@storybook/vue3';
const meta = {
title: 'components/global/MkAvatar',
component: MkAvatar,
} satisfies Meta;
+export default meta;
+/* eslint-disable @typescript-eslint/explicit-function-return-type */
+/* eslint-disable import/no-default-export */
+/* eslint-disable import/no-duplicates */
+import { StoryObj } from '@storybook/vue3';
+import MkAvatar from './MkAvatar.vue';
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkAvatar,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
+ args: {
+ size: 48,
+ user: {
+ avatarUrl:
+ 'https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/about-icon.png?raw=true',
+ },
+ },
+ decorators: [
+ (Story, context) => ({
+ // eslint-disable-next-line quotes
+ template: `
`,
+ }),
+ ],
parameters: {
layout: 'centered',
},
} satisfies StoryObj;
-export default meta;
+export const ProfilePage = {
+ ...Default,
+ args: {
+ ...Default.args,
+ size: 120,
+ indicator: true,
+ user: {
+ ...Default.args.user,
+ onlineStatus: 'unknown',
+ },
+ },
+};
+export const ProfilePageCat = {
+ ...ProfilePage,
+ args: {
+ ...ProfilePage.args,
+ user: {
+ ...ProfilePage.args.user,
+ isCat: true,
+ // avatarUrl: 'https://millionlive-theaterdays.idolmaster-official.jp/assets/data/webp/common/footer/icon_app.png.webp',
+ // avatarUrl: 'https://cdn.imastodon.net/accounts/avatars/000/144/021/original/8137afa4114ab85f.png',
+ // avatarUrl: 'https://avatars.githubusercontent.com/u/4439005?v=4',
+ // avatarUrl: 'https://avatars.githubusercontent.com/u/7973572?v=4',
+ // avatarUrl: 'https://avatars.githubusercontent.com/u/6533808?v=4',
+ // avatarUrl: 'https://avatars.githubusercontent.com/u/7106976?v=4',
+ avatarUrl: 'https://avatars.githubusercontent.com/u/3396686?v=4',
+ },
+ },
+};
diff --git a/packages/frontend/src/components/global/MkCustomEmoji.stories.ts b/packages/frontend/src/components/global/MkCustomEmoji.stories.ts
index cc9d4d668..76c70b9ab 100644
--- a/packages/frontend/src/components/global/MkCustomEmoji.stories.ts
+++ b/packages/frontend/src/components/global/MkCustomEmoji.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkCustomEmoji,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkCustomEmoji,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkEllipsis.stories.ts b/packages/frontend/src/components/global/MkEllipsis.stories.ts
index cdae6b11b..5b8b7ca06 100644
--- a/packages/frontend/src/components/global/MkEllipsis.stories.ts
+++ b/packages/frontend/src/components/global/MkEllipsis.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkEllipsis,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkEllipsis,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkEmoji.stories.ts b/packages/frontend/src/components/global/MkEmoji.stories.ts
index 7c48937c7..cca084e2d 100644
--- a/packages/frontend/src/components/global/MkEmoji.stories.ts
+++ b/packages/frontend/src/components/global/MkEmoji.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkEmoji,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkEmoji,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkError.stories.ts b/packages/frontend/src/components/global/MkError.stories.ts
index d04d57f01..ce7f40f56 100644
--- a/packages/frontend/src/components/global/MkError.stories.ts
+++ b/packages/frontend/src/components/global/MkError.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkError,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkError,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkLoading.stories.ts b/packages/frontend/src/components/global/MkLoading.stories.ts
index 4fe0d4ff3..a83c41a0e 100644
--- a/packages/frontend/src/components/global/MkLoading.stories.ts
+++ b/packages/frontend/src/components/global/MkLoading.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkLoading,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkLoading,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.stories.ts b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.stories.ts
index 23869d98e..18407d188 100644
--- a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.stories.ts
+++ b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkMisskeyFlavoredMarkdown,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkMisskeyFlavoredMarkdown,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkPageHeader.stories.ts b/packages/frontend/src/components/global/MkPageHeader.stories.ts
index aa7c5b5f8..6f0b9dd34 100644
--- a/packages/frontend/src/components/global/MkPageHeader.stories.ts
+++ b/packages/frontend/src/components/global/MkPageHeader.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPageHeader,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPageHeader,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkPageHeader.tabs.stories.ts b/packages/frontend/src/components/global/MkPageHeader.tabs.stories.ts
index 0dfa7ab6e..611aa0179 100644
--- a/packages/frontend/src/components/global/MkPageHeader.tabs.stories.ts
+++ b/packages/frontend/src/components/global/MkPageHeader.tabs.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkPageHeader_tabs,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkPageHeader_tabs,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkSpacer.stories.ts b/packages/frontend/src/components/global/MkSpacer.stories.ts
index 1ca0f7da9..f5e7b2eb9 100644
--- a/packages/frontend/src/components/global/MkSpacer.stories.ts
+++ b/packages/frontend/src/components/global/MkSpacer.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkSpacer,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkSpacer,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkStickyContainer.stories.ts b/packages/frontend/src/components/global/MkStickyContainer.stories.ts
index cad5cd06f..180fdddb1 100644
--- a/packages/frontend/src/components/global/MkStickyContainer.stories.ts
+++ b/packages/frontend/src/components/global/MkStickyContainer.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkStickyContainer,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkStickyContainer,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkTime.stories.ts b/packages/frontend/src/components/global/MkTime.stories.ts
index c1d5fd664..d45dc70f2 100644
--- a/packages/frontend/src/components/global/MkTime.stories.ts
+++ b/packages/frontend/src/components/global/MkTime.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkTime,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkTime,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkUrl.stories.ts b/packages/frontend/src/components/global/MkUrl.stories.ts
index 7e6c813ce..e3b2c4ceb 100644
--- a/packages/frontend/src/components/global/MkUrl.stories.ts
+++ b/packages/frontend/src/components/global/MkUrl.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUrl,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUrl,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/MkUserName.stories.ts b/packages/frontend/src/components/global/MkUserName.stories.ts
index 68deaa4fe..ec708c61c 100644
--- a/packages/frontend/src/components/global/MkUserName.stories.ts
+++ b/packages/frontend/src/components/global/MkUserName.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: MkUserName,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
MkUserName,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/global/RouterView.stories.ts b/packages/frontend/src/components/global/RouterView.stories.ts
index 45a574cf5..86e25b475 100644
--- a/packages/frontend/src/components/global/RouterView.stories.ts
+++ b/packages/frontend/src/components/global/RouterView.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: RouterView,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
RouterView,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.block.stories.ts b/packages/frontend/src/components/page/page.block.stories.ts
index e321ca94e..896c99d3a 100644
--- a/packages/frontend/src/components/page/page.block.stories.ts
+++ b/packages/frontend/src/components/page/page.block.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_block,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_block,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.button.stories.ts b/packages/frontend/src/components/page/page.button.stories.ts
index 99088ffb7..6de5a2c3a 100644
--- a/packages/frontend/src/components/page/page.button.stories.ts
+++ b/packages/frontend/src/components/page/page.button.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_button,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_button,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.canvas.stories.ts b/packages/frontend/src/components/page/page.canvas.stories.ts
index c8a4dfc84..18ec9c787 100644
--- a/packages/frontend/src/components/page/page.canvas.stories.ts
+++ b/packages/frontend/src/components/page/page.canvas.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_canvas,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_canvas,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.counter.stories.ts b/packages/frontend/src/components/page/page.counter.stories.ts
index ce3bc0d2a..25380c6b2 100644
--- a/packages/frontend/src/components/page/page.counter.stories.ts
+++ b/packages/frontend/src/components/page/page.counter.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_counter,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_counter,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.if.stories.ts b/packages/frontend/src/components/page/page.if.stories.ts
index 4ad2d9898..1f9a77216 100644
--- a/packages/frontend/src/components/page/page.if.stories.ts
+++ b/packages/frontend/src/components/page/page.if.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_if,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_if,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.image.stories.ts b/packages/frontend/src/components/page/page.image.stories.ts
index 934380d2c..63d75629f 100644
--- a/packages/frontend/src/components/page/page.image.stories.ts
+++ b/packages/frontend/src/components/page/page.image.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_image,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_image,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.note.stories.ts b/packages/frontend/src/components/page/page.note.stories.ts
index 7d7fa7acf..642df514c 100644
--- a/packages/frontend/src/components/page/page.note.stories.ts
+++ b/packages/frontend/src/components/page/page.note.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_note,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_note,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.number-input.stories.ts b/packages/frontend/src/components/page/page.number-input.stories.ts
index cc78db58c..671c98fa8 100644
--- a/packages/frontend/src/components/page/page.number-input.stories.ts
+++ b/packages/frontend/src/components/page/page.number-input.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_number_input,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_number_input,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.post.stories.ts b/packages/frontend/src/components/page/page.post.stories.ts
index 17fc49c96..e089710aa 100644
--- a/packages/frontend/src/components/page/page.post.stories.ts
+++ b/packages/frontend/src/components/page/page.post.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_post,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_post,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.radio-button.stories.ts b/packages/frontend/src/components/page/page.radio-button.stories.ts
index 14f2463de..d7bda7200 100644
--- a/packages/frontend/src/components/page/page.radio-button.stories.ts
+++ b/packages/frontend/src/components/page/page.radio-button.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_radio_button,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_radio_button,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.section.stories.ts b/packages/frontend/src/components/page/page.section.stories.ts
index 826a861bf..23492d6f2 100644
--- a/packages/frontend/src/components/page/page.section.stories.ts
+++ b/packages/frontend/src/components/page/page.section.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_section,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_section,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.stories.ts b/packages/frontend/src/components/page/page.stories.ts
index 5754d4ad0..3b0aa96b8 100644
--- a/packages/frontend/src/components/page/page.stories.ts
+++ b/packages/frontend/src/components/page/page.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.switch.stories.ts b/packages/frontend/src/components/page/page.switch.stories.ts
index 79d884a5f..a8ab15f93 100644
--- a/packages/frontend/src/components/page/page.switch.stories.ts
+++ b/packages/frontend/src/components/page/page.switch.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_switch,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_switch,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.text-input.stories.ts b/packages/frontend/src/components/page/page.text-input.stories.ts
index cc2cb26a2..6aa022fec 100644
--- a/packages/frontend/src/components/page/page.text-input.stories.ts
+++ b/packages/frontend/src/components/page/page.text-input.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_text_input,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_text_input,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.text.stories.ts b/packages/frontend/src/components/page/page.text.stories.ts
index cbf1816df..ba937dc8a 100644
--- a/packages/frontend/src/components/page/page.text.stories.ts
+++ b/packages/frontend/src/components/page/page.text.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_text,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_text,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.textarea-input.stories.ts b/packages/frontend/src/components/page/page.textarea-input.stories.ts
index c0320807c..06142954d 100644
--- a/packages/frontend/src/components/page/page.textarea-input.stories.ts
+++ b/packages/frontend/src/components/page/page.textarea-input.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_textarea_input,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_textarea_input,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/components/page/page.textarea.stories.ts b/packages/frontend/src/components/page/page.textarea.stories.ts
index 9629c3ec9..d9337184b 100644
--- a/packages/frontend/src/components/page/page.textarea.stories.ts
+++ b/packages/frontend/src/components/page/page.textarea.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: page_textarea,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
page_textarea,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/_empty_.stories.ts b/packages/frontend/src/pages/_empty_.stories.ts
index eb9461579..489475ff7 100644
--- a/packages/frontend/src/pages/_empty_.stories.ts
+++ b/packages/frontend/src/pages/_empty_.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: _empty_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
_empty_,
},
- props: Object.keys(argTypes),
- template: '<_empty_ v-bind="$props" />',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '<_empty_ v-bind="props" />',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/_error_.stories.ts b/packages/frontend/src/pages/_error_.stories.ts
index 67c81d477..7406ea4de 100644
--- a/packages/frontend/src/pages/_error_.stories.ts
+++ b/packages/frontend/src/pages/_error_.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: _error_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
_error_,
},
- props: Object.keys(argTypes),
- template: '<_error_ v-bind="$props" />',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '<_error_ v-bind="props" />',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/_loading_.stories.ts b/packages/frontend/src/pages/_loading_.stories.ts
index 54bee8663..a5d5cbbea 100644
--- a/packages/frontend/src/pages/_loading_.stories.ts
+++ b/packages/frontend/src/pages/_loading_.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: _loading_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
_loading_,
},
- props: Object.keys(argTypes),
- template: '<_loading_ v-bind="$props" />',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '<_loading_ v-bind="props" />',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/about-misskey.stories.ts b/packages/frontend/src/pages/about-misskey.stories.ts
index 82217ac20..3143ff958 100644
--- a/packages/frontend/src/pages/about-misskey.stories.ts
+++ b/packages/frontend/src/pages/about-misskey.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: about_misskey,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
about_misskey,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/about.emojis.stories.ts b/packages/frontend/src/pages/about.emojis.stories.ts
index a172ce9c8..3d9500879 100644
--- a/packages/frontend/src/pages/about.emojis.stories.ts
+++ b/packages/frontend/src/pages/about.emojis.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: about_emojis,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
about_emojis,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/about.federation.stories.ts b/packages/frontend/src/pages/about.federation.stories.ts
index a7c4b059d..cf1fc1e61 100644
--- a/packages/frontend/src/pages/about.federation.stories.ts
+++ b/packages/frontend/src/pages/about.federation.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: about_federation,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
about_federation,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/about.stories.ts b/packages/frontend/src/pages/about.stories.ts
index 64b393231..c8858f3f9 100644
--- a/packages/frontend/src/pages/about.stories.ts
+++ b/packages/frontend/src/pages/about.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: about_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
about_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/achievements.stories.ts b/packages/frontend/src/pages/achievements.stories.ts
index 32a359720..181731266 100644
--- a/packages/frontend/src/pages/achievements.stories.ts
+++ b/packages/frontend/src/pages/achievements.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: achievements_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
achievements_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin-file.stories.ts b/packages/frontend/src/pages/admin-file.stories.ts
index bd8ee0f04..57ea46d6a 100644
--- a/packages/frontend/src/pages/admin-file.stories.ts
+++ b/packages/frontend/src/pages/admin-file.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: admin_file,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
admin_file,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/RolesEditorFormula.stories.ts b/packages/frontend/src/pages/admin/RolesEditorFormula.stories.ts
index bf1250f08..1af5513b7 100644
--- a/packages/frontend/src/pages/admin/RolesEditorFormula.stories.ts
+++ b/packages/frontend/src/pages/admin/RolesEditorFormula.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: RolesEditorFormula,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
RolesEditorFormula,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/_header_.stories.ts b/packages/frontend/src/pages/admin/_header_.stories.ts
index 1c3871ddb..47cec0313 100644
--- a/packages/frontend/src/pages/admin/_header_.stories.ts
+++ b/packages/frontend/src/pages/admin/_header_.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: _header_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
_header_,
},
- props: Object.keys(argTypes),
- template: '<_header_ v-bind="$props" />',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '<_header_ v-bind="props" />',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/abuses.stories.ts b/packages/frontend/src/pages/admin/abuses.stories.ts
index 3c64cb36a..4de75bccb 100644
--- a/packages/frontend/src/pages/admin/abuses.stories.ts
+++ b/packages/frontend/src/pages/admin/abuses.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: abuses_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
abuses_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/ads.stories.ts b/packages/frontend/src/pages/admin/ads.stories.ts
index 5f939afec..e56f72a2b 100644
--- a/packages/frontend/src/pages/admin/ads.stories.ts
+++ b/packages/frontend/src/pages/admin/ads.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: ads_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
ads_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/announcements.stories.ts b/packages/frontend/src/pages/admin/announcements.stories.ts
index f9416c0c2..9a0c0828b 100644
--- a/packages/frontend/src/pages/admin/announcements.stories.ts
+++ b/packages/frontend/src/pages/admin/announcements.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: announcements_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
announcements_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/bot-protection.stories.ts b/packages/frontend/src/pages/admin/bot-protection.stories.ts
index c76808ede..366ef0860 100644
--- a/packages/frontend/src/pages/admin/bot-protection.stories.ts
+++ b/packages/frontend/src/pages/admin/bot-protection.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: bot_protection,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
bot_protection,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/database.stories.ts b/packages/frontend/src/pages/admin/database.stories.ts
index a2d240489..69c10b786 100644
--- a/packages/frontend/src/pages/admin/database.stories.ts
+++ b/packages/frontend/src/pages/admin/database.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: database_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
database_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/email-settings.stories.ts b/packages/frontend/src/pages/admin/email-settings.stories.ts
index 7433c4413..2fb931019 100644
--- a/packages/frontend/src/pages/admin/email-settings.stories.ts
+++ b/packages/frontend/src/pages/admin/email-settings.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: email_settings,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
email_settings,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/federation.stories.ts b/packages/frontend/src/pages/admin/federation.stories.ts
index 761fdeee3..8be691fb9 100644
--- a/packages/frontend/src/pages/admin/federation.stories.ts
+++ b/packages/frontend/src/pages/admin/federation.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: federation_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
federation_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/files.stories.ts b/packages/frontend/src/pages/admin/files.stories.ts
index 6e868ec81..887636615 100644
--- a/packages/frontend/src/pages/admin/files.stories.ts
+++ b/packages/frontend/src/pages/admin/files.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: files_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
files_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/index.stories.ts b/packages/frontend/src/pages/admin/index.stories.ts
index 05ff1a370..135df4dd5 100644
--- a/packages/frontend/src/pages/admin/index.stories.ts
+++ b/packages/frontend/src/pages/admin/index.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: index_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
index_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/instance-block.stories.ts b/packages/frontend/src/pages/admin/instance-block.stories.ts
index bdf12a8d2..3e7d3f905 100644
--- a/packages/frontend/src/pages/admin/instance-block.stories.ts
+++ b/packages/frontend/src/pages/admin/instance-block.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: instance_block,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
instance_block,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/moderation.stories.ts b/packages/frontend/src/pages/admin/moderation.stories.ts
index e2ce3b23c..48eea3454 100644
--- a/packages/frontend/src/pages/admin/moderation.stories.ts
+++ b/packages/frontend/src/pages/admin/moderation.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: moderation_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
moderation_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/object-storage.stories.ts b/packages/frontend/src/pages/admin/object-storage.stories.ts
index b2815ae3f..d9da71dbd 100644
--- a/packages/frontend/src/pages/admin/object-storage.stories.ts
+++ b/packages/frontend/src/pages/admin/object-storage.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: object_storage,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
object_storage,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/other-settings.stories.ts b/packages/frontend/src/pages/admin/other-settings.stories.ts
index 4015dd47c..3dd5a9e36 100644
--- a/packages/frontend/src/pages/admin/other-settings.stories.ts
+++ b/packages/frontend/src/pages/admin/other-settings.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: other_settings,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
other_settings,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.active-users.stories.ts b/packages/frontend/src/pages/admin/overview.active-users.stories.ts
index c91a005f4..c809efec0 100644
--- a/packages/frontend/src/pages/admin/overview.active-users.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.active-users.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_active_users,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_active_users,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.ap-requests.stories.ts b/packages/frontend/src/pages/admin/overview.ap-requests.stories.ts
index 6c750a11a..62576f1b5 100644
--- a/packages/frontend/src/pages/admin/overview.ap-requests.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.ap-requests.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_ap_requests,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_ap_requests,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.federation.stories.ts b/packages/frontend/src/pages/admin/overview.federation.stories.ts
index 64fa535a5..46d085a8b 100644
--- a/packages/frontend/src/pages/admin/overview.federation.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.federation.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_federation,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_federation,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.heatmap.stories.ts b/packages/frontend/src/pages/admin/overview.heatmap.stories.ts
index f9fb6cd8e..dbb25c392 100644
--- a/packages/frontend/src/pages/admin/overview.heatmap.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.heatmap.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_heatmap,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_heatmap,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.instances.stories.ts b/packages/frontend/src/pages/admin/overview.instances.stories.ts
index ac3a86098..e8cdbebd7 100644
--- a/packages/frontend/src/pages/admin/overview.instances.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.instances.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_instances,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_instances,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.moderators.stories.ts b/packages/frontend/src/pages/admin/overview.moderators.stories.ts
index 4c6d2cf7c..0def4155f 100644
--- a/packages/frontend/src/pages/admin/overview.moderators.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.moderators.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_moderators,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_moderators,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.pie.stories.ts b/packages/frontend/src/pages/admin/overview.pie.stories.ts
index e9893549e..531b14729 100644
--- a/packages/frontend/src/pages/admin/overview.pie.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.pie.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_pie,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_pie,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.queue.chart.stories.ts b/packages/frontend/src/pages/admin/overview.queue.chart.stories.ts
index 2cbb7d78a..d51dde7ed 100644
--- a/packages/frontend/src/pages/admin/overview.queue.chart.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.queue.chart.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_queue_chart,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_queue_chart,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.queue.stories.ts b/packages/frontend/src/pages/admin/overview.queue.stories.ts
index 0fec1c1a7..e2b2be47e 100644
--- a/packages/frontend/src/pages/admin/overview.queue.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.queue.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_queue,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_queue,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.retention.stories.ts b/packages/frontend/src/pages/admin/overview.retention.stories.ts
index 25a159432..afe1e34c3 100644
--- a/packages/frontend/src/pages/admin/overview.retention.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.retention.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_retention,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_retention,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.stats.stories.ts b/packages/frontend/src/pages/admin/overview.stats.stories.ts
index 059ada5c9..75aa173aa 100644
--- a/packages/frontend/src/pages/admin/overview.stats.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.stats.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_stats,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_stats,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.stories.ts b/packages/frontend/src/pages/admin/overview.stories.ts
index 9c4f2f73a..b8897c2b7 100644
--- a/packages/frontend/src/pages/admin/overview.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/overview.users.stories.ts b/packages/frontend/src/pages/admin/overview.users.stories.ts
index 125c44f61..0c3d806d9 100644
--- a/packages/frontend/src/pages/admin/overview.users.stories.ts
+++ b/packages/frontend/src/pages/admin/overview.users.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: overview_users,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
overview_users,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/proxy-account.stories.ts b/packages/frontend/src/pages/admin/proxy-account.stories.ts
index 2a7a4bb6f..9ef9552fc 100644
--- a/packages/frontend/src/pages/admin/proxy-account.stories.ts
+++ b/packages/frontend/src/pages/admin/proxy-account.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: proxy_account,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
proxy_account,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/queue.chart.chart.stories.ts b/packages/frontend/src/pages/admin/queue.chart.chart.stories.ts
index 65ca99ccb..ea778bebb 100644
--- a/packages/frontend/src/pages/admin/queue.chart.chart.stories.ts
+++ b/packages/frontend/src/pages/admin/queue.chart.chart.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: queue_chart_chart,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
queue_chart_chart,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/queue.chart.stories.ts b/packages/frontend/src/pages/admin/queue.chart.stories.ts
index f08b88dad..c94f62725 100644
--- a/packages/frontend/src/pages/admin/queue.chart.stories.ts
+++ b/packages/frontend/src/pages/admin/queue.chart.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: queue_chart,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
queue_chart,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/queue.stories.ts b/packages/frontend/src/pages/admin/queue.stories.ts
index e13f4bf53..0f8207461 100644
--- a/packages/frontend/src/pages/admin/queue.stories.ts
+++ b/packages/frontend/src/pages/admin/queue.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: queue_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
queue_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/relays.stories.ts b/packages/frontend/src/pages/admin/relays.stories.ts
index 8aba31461..89fdf2aad 100644
--- a/packages/frontend/src/pages/admin/relays.stories.ts
+++ b/packages/frontend/src/pages/admin/relays.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: relays_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
relays_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/roles.edit.stories.ts b/packages/frontend/src/pages/admin/roles.edit.stories.ts
index 826b78af4..c70098771 100644
--- a/packages/frontend/src/pages/admin/roles.edit.stories.ts
+++ b/packages/frontend/src/pages/admin/roles.edit.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: roles_edit,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
roles_edit,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/roles.editor.stories.ts b/packages/frontend/src/pages/admin/roles.editor.stories.ts
index 1bac7a7b6..ebd4064e0 100644
--- a/packages/frontend/src/pages/admin/roles.editor.stories.ts
+++ b/packages/frontend/src/pages/admin/roles.editor.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: roles_editor,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
roles_editor,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/roles.role.stories.ts b/packages/frontend/src/pages/admin/roles.role.stories.ts
index 76f0d02ee..9e41dc227 100644
--- a/packages/frontend/src/pages/admin/roles.role.stories.ts
+++ b/packages/frontend/src/pages/admin/roles.role.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: roles_role,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
roles_role,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/roles.stories.ts b/packages/frontend/src/pages/admin/roles.stories.ts
index 41b6f82f6..cb5b29059 100644
--- a/packages/frontend/src/pages/admin/roles.stories.ts
+++ b/packages/frontend/src/pages/admin/roles.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: roles_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
roles_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/security.stories.ts b/packages/frontend/src/pages/admin/security.stories.ts
index 667dc1f28..3de0725c6 100644
--- a/packages/frontend/src/pages/admin/security.stories.ts
+++ b/packages/frontend/src/pages/admin/security.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: security_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
security_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/settings.stories.ts b/packages/frontend/src/pages/admin/settings.stories.ts
index 2646dd894..9acb4ec34 100644
--- a/packages/frontend/src/pages/admin/settings.stories.ts
+++ b/packages/frontend/src/pages/admin/settings.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: settings_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
settings_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/admin/users.stories.ts b/packages/frontend/src/pages/admin/users.stories.ts
index 7ec0fd406..d845f7652 100644
--- a/packages/frontend/src/pages/admin/users.stories.ts
+++ b/packages/frontend/src/pages/admin/users.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: users_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
users_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/ads.stories.ts b/packages/frontend/src/pages/ads.stories.ts
index 65afabd5d..b1a4ee1d8 100644
--- a/packages/frontend/src/pages/ads.stories.ts
+++ b/packages/frontend/src/pages/ads.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: ads_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
ads_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/announcements.stories.ts b/packages/frontend/src/pages/announcements.stories.ts
index 1488a805d..0f8d34972 100644
--- a/packages/frontend/src/pages/announcements.stories.ts
+++ b/packages/frontend/src/pages/announcements.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: announcements_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
announcements_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/antenna-timeline.stories.ts b/packages/frontend/src/pages/antenna-timeline.stories.ts
index f50785a71..8e07aeb95 100644
--- a/packages/frontend/src/pages/antenna-timeline.stories.ts
+++ b/packages/frontend/src/pages/antenna-timeline.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: antenna_timeline,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
antenna_timeline,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/api-console.stories.ts b/packages/frontend/src/pages/api-console.stories.ts
index 9c503f2fc..0475dfc3b 100644
--- a/packages/frontend/src/pages/api-console.stories.ts
+++ b/packages/frontend/src/pages/api-console.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: api_console,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
api_console,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/auth.form.stories.ts b/packages/frontend/src/pages/auth.form.stories.ts
index 4b0d95596..643ec487c 100644
--- a/packages/frontend/src/pages/auth.form.stories.ts
+++ b/packages/frontend/src/pages/auth.form.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: auth_form,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
auth_form,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/auth.stories.ts b/packages/frontend/src/pages/auth.stories.ts
index 235d5384b..827ac75eb 100644
--- a/packages/frontend/src/pages/auth.stories.ts
+++ b/packages/frontend/src/pages/auth.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: auth_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
auth_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/channel-editor.stories.ts b/packages/frontend/src/pages/channel-editor.stories.ts
index 7663db90e..f30e5e07c 100644
--- a/packages/frontend/src/pages/channel-editor.stories.ts
+++ b/packages/frontend/src/pages/channel-editor.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: channel_editor,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
channel_editor,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/channel.stories.ts b/packages/frontend/src/pages/channel.stories.ts
index 550d93754..52b690ee0 100644
--- a/packages/frontend/src/pages/channel.stories.ts
+++ b/packages/frontend/src/pages/channel.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: channel_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
channel_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/channels.stories.ts b/packages/frontend/src/pages/channels.stories.ts
index e0f79465e..a50d2e46f 100644
--- a/packages/frontend/src/pages/channels.stories.ts
+++ b/packages/frontend/src/pages/channels.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: channels_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
channels_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/clicker.stories.ts b/packages/frontend/src/pages/clicker.stories.ts
index 1e5dfcfae..010b1cb2a 100644
--- a/packages/frontend/src/pages/clicker.stories.ts
+++ b/packages/frontend/src/pages/clicker.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: clicker_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
clicker_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/clip.stories.ts b/packages/frontend/src/pages/clip.stories.ts
index 9921b57e1..ad35528ee 100644
--- a/packages/frontend/src/pages/clip.stories.ts
+++ b/packages/frontend/src/pages/clip.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: clip_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
clip_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/custom-emojis-manager.stories.ts b/packages/frontend/src/pages/custom-emojis-manager.stories.ts
index 6d8cb181d..6ff43ad8b 100644
--- a/packages/frontend/src/pages/custom-emojis-manager.stories.ts
+++ b/packages/frontend/src/pages/custom-emojis-manager.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: custom_emojis_manager,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
custom_emojis_manager,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/drive.stories.ts b/packages/frontend/src/pages/drive.stories.ts
index b51b0f5a0..94f85e773 100644
--- a/packages/frontend/src/pages/drive.stories.ts
+++ b/packages/frontend/src/pages/drive.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: drive_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
drive_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/emoji-edit-dialog.stories.ts b/packages/frontend/src/pages/emoji-edit-dialog.stories.ts
index 13e66cd5f..5ff9d4c0b 100644
--- a/packages/frontend/src/pages/emoji-edit-dialog.stories.ts
+++ b/packages/frontend/src/pages/emoji-edit-dialog.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: emoji_edit_dialog,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
emoji_edit_dialog,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/emojis.emoji.stories.ts b/packages/frontend/src/pages/emojis.emoji.stories.ts
index 0eb9a82c5..78964f570 100644
--- a/packages/frontend/src/pages/emojis.emoji.stories.ts
+++ b/packages/frontend/src/pages/emojis.emoji.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: emojis_emoji,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
emojis_emoji,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/explore.featured.stories.ts b/packages/frontend/src/pages/explore.featured.stories.ts
index aa6fb9a64..a9e0a1fb2 100644
--- a/packages/frontend/src/pages/explore.featured.stories.ts
+++ b/packages/frontend/src/pages/explore.featured.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: explore_featured,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
explore_featured,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/explore.roles.stories.ts b/packages/frontend/src/pages/explore.roles.stories.ts
index 5a033ff65..76b5a3e6d 100644
--- a/packages/frontend/src/pages/explore.roles.stories.ts
+++ b/packages/frontend/src/pages/explore.roles.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: explore_roles,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
explore_roles,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/explore.stories.ts b/packages/frontend/src/pages/explore.stories.ts
index 73b55b8d3..108282a02 100644
--- a/packages/frontend/src/pages/explore.stories.ts
+++ b/packages/frontend/src/pages/explore.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: explore_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
explore_,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/explore.users.stories.ts b/packages/frontend/src/pages/explore.users.stories.ts
index ad708a073..b89e29716 100644
--- a/packages/frontend/src/pages/explore.users.stories.ts
+++ b/packages/frontend/src/pages/explore.users.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: explore_users,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
explore_users,
},
- props: Object.keys(argTypes),
- template: '',
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...args,
+ };
+ },
+ },
+ template: '',
};
},
parameters: {
diff --git a/packages/frontend/src/pages/favorites.stories.ts b/packages/frontend/src/pages/favorites.stories.ts
index 3bcc85760..e8a19503f 100644
--- a/packages/frontend/src/pages/favorites.stories.ts
+++ b/packages/frontend/src/pages/favorites.stories.ts
@@ -7,13 +7,24 @@ const meta = {
component: favorites_,
} satisfies Meta;
export const Default = {
- render(args, { argTypes }) {
+ render(args) {
return {
components: {
favorites_,
},
- props: Object.keys(argTypes),
- template: '