mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-12 16:10:30 +02:00
* ensure that eslint runs on all frontend code * remove tslint from `design-system` * enable prettier and eslint-prettier for `design-system` * Delete tslint.json * use a single editorconfig for the repo * enable prettier for all code in `design-system` * more linting fixes on design-system * ignore coverage for git and prettier * lintfix on editor-ui
39 lines
731 B
JavaScript
39 lines
731 B
JavaScript
import N8nUserInfo from './UserInfo.vue';
|
|
|
|
export default {
|
|
title: 'Modules/UserInfo',
|
|
component: N8nUserInfo,
|
|
parameters: {
|
|
backgrounds: { default: '--color-background-light' },
|
|
},
|
|
};
|
|
|
|
const Template = (args, { argTypes }) => ({
|
|
props: Object.keys(argTypes),
|
|
components: {
|
|
N8nUserInfo,
|
|
},
|
|
template: '<n8n-user-info v-bind="$props" />',
|
|
});
|
|
|
|
export const Member = Template.bind({});
|
|
Member.args = {
|
|
firstName: 'Oscar',
|
|
lastName: 'Wilde',
|
|
email: 'test@n8n.io',
|
|
};
|
|
|
|
export const Current = Template.bind({});
|
|
Current.args = {
|
|
firstName: 'Ham',
|
|
lastName: 'Sam',
|
|
email: 'test@n8n.io',
|
|
isCurrentUser: true,
|
|
};
|
|
|
|
export const Invited = Template.bind({});
|
|
Invited.args = {
|
|
email: 'test@n8n.io',
|
|
isPendingUser: true,
|
|
};
|