mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-30 21:14:12 +00:00 
			
		
		
		
	* 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>;
 |