mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-01 20:36:44 -06:00
3b3f683f8c
* feat(#8149): respect nsfw settings on gallery list * ci(#10336): use pull_request * test(#8149): add interaction tests * test(#10336): use `waitFor` * chore: transition
43 lines
768 B
TypeScript
43 lines
768 B
TypeScript
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
import { StoryObj } from '@storybook/vue3';
|
|
import { userDetailed } from '../../../.storybook/fakes';
|
|
import MkAcct from './MkAcct.vue';
|
|
export const Default = {
|
|
render(args) {
|
|
return {
|
|
components: {
|
|
MkAcct,
|
|
},
|
|
setup() {
|
|
return {
|
|
args,
|
|
};
|
|
},
|
|
computed: {
|
|
props() {
|
|
return {
|
|
...this.args,
|
|
};
|
|
},
|
|
},
|
|
template: '<MkAcct v-bind="props" />',
|
|
};
|
|
},
|
|
args: {
|
|
user: {
|
|
...userDetailed(),
|
|
host: null,
|
|
},
|
|
},
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies StoryObj<typeof MkAcct>;
|
|
export const Detail = {
|
|
...Default,
|
|
args: {
|
|
...Default.args,
|
|
user: userDetailed(),
|
|
detail: true,
|
|
},
|
|
} satisfies StoryObj<typeof MkAcct>;
|