2024-06-08 09:00:54 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
|
|
/* eslint-disable import/no-default-export */
|
|
|
|
import { StoryObj } from '@storybook/vue3';
|
|
|
|
import { clip } from '../../.storybook/fakes.js';
|
|
|
|
import MkClipPreview from './MkClipPreview.vue';
|
|
|
|
export const Default = {
|
|
|
|
render(args) {
|
|
|
|
return {
|
|
|
|
components: {
|
|
|
|
MkClipPreview,
|
|
|
|
},
|
|
|
|
setup() {
|
|
|
|
return {
|
|
|
|
args,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
props() {
|
|
|
|
return {
|
|
|
|
...this.args,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
template: '<MkClipPreview v-bind="props" />',
|
|
|
|
};
|
|
|
|
},
|
|
|
|
args: {
|
|
|
|
clip: clip(),
|
2024-07-30 08:24:36 +00:00
|
|
|
noUserInfo: false,
|
2024-06-08 09:00:54 +00:00
|
|
|
},
|
|
|
|
parameters: {
|
|
|
|
layout: 'fullscreen',
|
|
|
|
},
|
|
|
|
decorators: [
|
|
|
|
() => ({
|
|
|
|
template: '<div style="display: flex; align-items: center; justify-content: center; height: 100vh"><div style="max-width: 700px; width: 100%; margin: 3rem"><story/></div></div>',
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
} satisfies StoryObj<typeof MkClipPreview>;
|