* chore(#10336): register snippets
* test(#10336): add `components/Mk[A-B].*` stories
* build: desynced lockfile
* ci(#10336): preload assets
* ci(#10336): use pull_request
* build: update lockfile
* fix: reactivity transform
* chore: track upstream changes
* refactor: avoid temporary previous tapping declarations
* revert: avoid temporary previous tapping declarations
This reverts commit e649b1b1e6.
* test: flaky snapshots
* style: import
			
			
This commit is contained in:
		 Acid Chicken (硫酸鶏)
					Acid Chicken (硫酸鶏)
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							2a7ba37996
						
					
				
				
					commit
					9bb6c536c0
				
			
							
								
								
									
										46
									
								
								packages/frontend/src/components/MkAvatars.stories.impl.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								packages/frontend/src/components/MkAvatars.stories.impl.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| /* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||||
| import { StoryObj } from '@storybook/vue3'; | ||||
| import { rest } from 'msw'; | ||||
| import { userDetailed } from '../../.storybook/fakes'; | ||||
| import { commonHandlers } from '../../.storybook/mocks'; | ||||
| import MkAvatars from './MkAvatars.vue'; | ||||
| export const Default = { | ||||
| 	render(args) { | ||||
| 		return { | ||||
| 			components: { | ||||
| 				MkAvatars, | ||||
| 			}, | ||||
| 			setup() { | ||||
| 				return { | ||||
| 					args, | ||||
| 				}; | ||||
| 			}, | ||||
| 			computed: { | ||||
| 				props() { | ||||
| 					return { | ||||
| 						...this.args, | ||||
| 					}; | ||||
| 				}, | ||||
| 			}, | ||||
| 			template: '<MkAvatars v-bind="props" />', | ||||
| 		}; | ||||
| 	}, | ||||
| 	args: { | ||||
| 		userIds: ['17', '20', '18'], | ||||
| 	}, | ||||
| 	parameters: { | ||||
| 		layout: 'centered', | ||||
| 		msw: { | ||||
| 			handlers: [ | ||||
| 				...commonHandlers, | ||||
| 				rest.post('/api/users/show', (req, res, ctx) => { | ||||
| 					return res(ctx.json([ | ||||
| 						userDetailed('17'), | ||||
| 						userDetailed('20'), | ||||
| 						userDetailed('18'), | ||||
| 					])); | ||||
| 				}), | ||||
| 			], | ||||
| 		}, | ||||
| 	}, | ||||
| } satisfies StoryObj<typeof MkAvatars>; | ||||
		Reference in New Issue
	
	Block a user