mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-26 16:53:02 +00:00
3548ffba26
* enhance(frontend): 自分のクリップ一覧ではアバターを表示しないように * Update Changelog * rename --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
44 lines
1,004 B
TypeScript
44 lines
1,004 B
TypeScript
/*
|
|
* 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(),
|
|
noUserInfo: false,
|
|
},
|
|
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>;
|