diff --git a/packages/frontend/.storybook/generate.tsx b/packages/frontend/.storybook/generate.tsx
index 49304602d8..b167f232e3 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 d54c493625..90cc57536f 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 72e642189f..291432db0f 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 182585a87d..06d90b5249 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 7d97a6e7bc..dac1b27938 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 76ab111f46..acaf171e9f 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 8220dbcbb8..492358ebc4 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 6965f41036..b27668655f 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 f2bc0b8374..2242bfde39 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 2892691933..71a40e5cc4 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 94bf1e39b2..228af8f919 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 c3da0d1a46..c85ce89e18 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 f6d0648d89..78db7287ae 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 461d6f2fda..8c7c31c56a 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 9ad2fe84a0..aedeba1104 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 5cd72a4805..d42adbe992 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 ff21636c3b..482f10c31f 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 69555e9dd1..49cccaa5b4 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 4cfed26091..315ba320ad 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 750b979f6c..7b8f5165ff 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 02ec124cf7..a941c36120 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 9498e4160d..dc47abb6b1 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 5d9ebec74d..94b8af9cde 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 5d8b4891c8..3b2da66f25 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 46b8ae124f..37cc68c7b4 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 9e3808eae2..a4ccf146c1 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 16e1b03217..67d60052fe 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 3d5b27e0c0..f0f203b717 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 9af7dad32c..194e2c9cb3 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 cfe65bcfc7..c99020c9ea 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 b63ccc23e0..7157b7e82b 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 56b007cbea..17ba8df806 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 7c5514a292..74b810e314 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 cc7d937883..50272c4d8a 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 d80015a579..3038312c39 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 2efa600aa1..6da7aab8c4 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 00d23ad8f3..b665516de6 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 c2054de123..b0f13f562a 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 567ab0ca06..141a55f59b 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 5811d0d1ec..5980c9a471 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 dad27b0d50..db0900340b 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 39c5ca2b04..f56e5369a8 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 9f4f2506bc..4894999903 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 c8f731bab9..da29eb06cf 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 9f3b261005..a3fe97ee30 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 951863c697..a87b58c7f9 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 da65def88c..20eab42e71 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 c426a66112..7086d2c6f7 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 0e61cb36dc..8b4ed2acf9 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 4976670c9e..50a82ec105 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 b63991185a..7388e075cc 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 fc6b7ec0d9..6b354e02b3 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 1c15e263e2..046b4bd652 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 17bf874d0f..1782029bfc 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 19d50af615..8276b916af 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 6694a4aaf9..b2693395ba 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 886af9af8b..99e46f95e7 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 e372115748..6234735409 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 eeb72cd796..919948e64e 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 1b14c365b6..df6005ccc9 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 2ed1628663..364290640e 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 748630113f..5036379752 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 aa3525124e..54f3ae3b73 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 ef98855b07..cea9509a76 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 6ade5a4cf2..943b512bf8 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 9d2d1069da..9dd835b557 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 adfad85063..4089a53ce8 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 e68935ee9d..d88e19c06e 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 61aafdad83..9f94e8ce52 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 503ac4a542..ef88a5a6bc 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 b45a046ef8..5e84136437 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 8a60b68f3e..557ce5363a 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 c0d58421b1..f26c74446d 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 50c77800d8..baaf79dc71 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 6c8cbef34c..eebd26502f 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 7b162ab8bc..fddf98574b 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 79d28a7efe..d7a82cffd3 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 3a63251f2a..abed199c52 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 1ccda97258..d8723eea42 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 9270290701..a00795f9ba 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 e6e9fb9f49..148089d829 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 4d7c0af7b7..dc3fad2f81 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 4551b2c304..8fe2d31b4c 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 3e4478f9ae..3612d13107 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 059f86b007..ad5e055d04 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 48ab20bf90..5de01c2f92 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 837de8329e..1689bb431e 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 9c1fcc2179..bc281e62aa 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 c7aec40dc8..90c446fbdb 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 da7ae5958d..24b0e15531 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 4c2dd1b3ac..06963423bd 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 6b8121527e..d1ddf6707b 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 846dd9f65c..334b3bc292 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 78a99081c9..3bf7fb92bd 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 b6851053d3..6708f2ba61 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 651847cb15..dbab8671dd 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 0629b9a685..8d26f2cbfb 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 090e1f494b..2727ae37a3 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 5ed74b029d..e9623581a7 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 687f0bfaf2..26ea2a43f4 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 616d6f1f83..3b79730501 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 15ef8eb045..664ed0a447 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 8056eecf84..728b864fca 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 b3a0e39efb..b5059ea47c 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 dc6caae4d5..8b68f4d1c3 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 10b9b6e2ed..16041af5ac 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 5bba9aa1af..2d5599c147 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 ab78807357..309e86aded 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 b3478f3110..41bb73c7bf 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 c853b4da3b..9e54ce7401 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 9f5160f06e..9e35252beb 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 30262c02b0..706428fb01 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 103e77fc4f..3b91a07153 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 fb19bd30fe..3b7872b189 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 73552e9d09..04eb7cc1d4 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 1cc60992e4..15953c7171 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 6bc18d2903..b1e6459cf3 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 7996a53e14..8012045973 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 8f03065e1d..1ac0973cef 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 d2e0689b44..3e4a3a7cb7 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 a67235f6a2..8372680014 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 dfca62ba28..7eb70e6a88 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 4e784abf5e..6c1dca90d9 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 ee19f578bc..fa9c0bb7f0 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 b6db1e8617..9ef7906884 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 8e7b8ffb1c..f01191be83 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 092a84a748..1ff6c06a0d 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 6bfbc03524..83aba5409b 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 92c496db9b..9bfc2a23af 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 b6bfb600dc..511bdead17 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 fef647287c..c5f80f61be 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 fb9b1bc6da..5229d6d6c6 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 2ea06ac2a8..19f22ede15 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 5a8a16a6b7..58069bd1d9 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 9f9d8c8f86..29a393a5ac 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 74657a93ae..f9df0987a1 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 81de09a199..8ed97c4b49 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 286de8925f..553df44660 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 97f4d1f7d8..927364596b 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 2b9daf9b5b..c576b91b57 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 a74ed2609b..5a30d4ba4f 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 522c1fc632..ffda531ed3 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 9b057bea6d..6fa843e8b5 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 52156bfe11..3d62ddd9d0 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 ea79004c39..b2314523d9 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 7a6aad357f..39e91faafd 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 8f1a27631c..fcc9bd3002 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 84f1dcd889..79191bbcd0 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 54e6c25ca8..b0ac7ee504 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 fabddc668b..0da19356e9 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 6ddafe86c8..2c441f1156 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 3495bd7318..5aece4082f 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 a22580d7a9..ccd2d7d099 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 e3d56c63c3..91ea368263 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 a710c227a0..90f66bc182 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 687bf30ab5..9f4dc320ba 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 0000000000..ca3db80b2e
--- /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 644a1f2f34..6cd9ca0a9b 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 cc9d4d668a..76c70b9aba 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 cdae6b11b5..5b8b7ca062 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 7c48937c7a..cca084e2db 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 d04d57f01f..ce7f40f56d 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 4fe0d4ff34..a83c41a0ea 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 23869d98e7..18407d188c 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 aa7c5b5f8a..6f0b9dd344 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 0dfa7ab6e9..611aa01790 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 1ca0f7da95..f5e7b2eb9b 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 cad5cd06fa..180fdddb1a 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 c1d5fd6644..d45dc70f28 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 7e6c813ce0..e3b2c4ceba 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 68deaa4fec..ec708c61c8 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 45a574cf56..86e25b4757 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 e321ca94e3..896c99d3af 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 99088ffb71..6de5a2c3ab 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 c8a4dfc843..18ec9c7873 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 ce3bc0d2af..25380c6b2e 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 4ad2d98989..1f9a77216b 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 934380d2c2..63d75629fd 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 7d7fa7acf0..642df514cd 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 cc78db58c6..671c98fa8a 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 17fc49c96c..e089710aab 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 14f2463dee..d7bda72007 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 826a861bf7..23492d6f29 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 5754d4ad0d..3b0aa96b8a 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 79d884a5f2..a8ab15f93d 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 cc2cb26a22..6aa022fec0 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 cbf1816dfd..ba937dc8af 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 c0320807ca..06142954d2 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 9629c3ec9b..d9337184b9 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 eb94615790..489475ff76 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 67c81d4770..7406ea4dea 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 54bee86632..a5d5cbbea5 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 82217ac20a..3143ff9582 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 a172ce9c80..3d95008795 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 a7c4b059df..cf1fc1e611 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 64b3932312..c8858f3f95 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 32a359720a..1817312665 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 bd8ee0f04c..57ea46d6a1 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 bf1250f085..1af5513b76 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 1c3871ddb9..47cec03136 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 3c64cb36ad..4de75bccb7 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 5f939afecf..e56f72a2bf 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 f9416c0c24..9a0c0828be 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 c76808edec..366ef08609 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 a2d240489a..69c10b786d 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 7433c44136..2fb9310194 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 761fdeee3f..8be691fb9e 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 6e868ec81a..8876366153 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 05ff1a3703..135df4dd59 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 bdf12a8d21..3e7d3f905b 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 e2ce3b23cc..48eea34542 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 b2815ae3ff..d9da71dbdc 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 4015dd47c6..3dd5a9e369 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 c91a005f4d..c809efec08 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 6c750a11a7..62576f1b57 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 64fa535a55..46d085a8b0 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 f9fb6cd8e8..dbb25c3921 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 ac3a86098e..e8cdbebd72 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 4c6d2cf7cf..0def4155fe 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 e9893549ee..531b14729d 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 2cbb7d78a8..d51dde7ede 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 0fec1c1a7c..e2b2be47e3 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 25a1594327..afe1e34c3d 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 059ada5c9a..75aa173aa6 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 9c4f2f73ac..b8897c2b7c 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 125c44f61f..0c3d806d9a 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 2a7a4bb6f7..9ef9552fc4 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 65ca99ccb8..ea778bebb5 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 f08b88dad5..c94f627251 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 e13f4bf536..0f8207461b 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 8aba314618..89fdf2aade 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 826b78af42..c70098771e 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 1bac7a7b60..ebd4064e0e 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 76f0d02ee3..9e41dc227d 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 41b6f82f68..cb5b29059f 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 667dc1f28d..3de0725c60 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 2646dd894c..9acb4ec34e 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 7ec0fd4060..d845f76520 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 65afabd5df..b1a4ee1d82 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 1488a805d6..0f8d34972a 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 f50785a714..8e07aeb956 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 9c503f2fc2..0475dfc3b8 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 4b0d95596b..643ec487c7 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 235d5384be..827ac75eb3 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 7663db90e6..f30e5e07c4 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 550d937545..52b690ee02 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 e0f79465ee..a50d2e46f6 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 1e5dfcfae0..010b1cb2a7 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 9921b57e1f..ad35528eea 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 6d8cb181d7..6ff43ad8b6 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 b51b0f5a06..94f85e773c 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 13e66cd5f5..5ff9d4c0b5 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 0eb9a82c55..78964f570c 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 aa6fb9a641..a9e0a1fb2a 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 5a033ff659..76b5a3e6d2 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 73b55b8d3e..108282a02c 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 ad708a0732..b89e297167 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 3bcc85760a..e8a19503f6 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: '