import { storiesOf } from '@storybook/vue' import { withA11y } from '@storybook/addon-a11y' import UserTeaser from '~/components/UserTeaser/UserTeaser.vue' import helpers from '~/storybook/helpers' helpers.init() export const user = { id: 'u6', slug: 'louie', name: 'Louie', avatar: { url: 'https://s3.amazonaws.com/uifaces/faces/twitter/designervzm/128.jpg', }, about: 'Illum in et velit soluta voluptatem architecto consequuntur enim placeat. Eum excepturi est ratione rerum in voluptatum corporis. Illum consequatur minus. Modi incidunt velit.', disabled: false, deleted: false, locationName: null, location: null, createdAt: '2019-09-18T14:16:01.695Z', badges: [], badgesCount: 0, shoutedCount: 1, commentedCount: 2, contributionsCount: 5, followingCount: 1, following: [ { id: 'u3', slug: 'jenny-rostock', name: 'Jenny Rostock', avatar: { url: 'https://s3.amazonaws.com/uifaces/faces/twitter/bowbrick/128.jpg', }, disabled: false, deleted: false, followedByCount: 2, followedByCurrentUser: false, contributionsCount: 1, commentedCount: 3, badges: [ { id: 'trophy_bear', icon: '/img/badges/trophy_blue_bear.svg', }, ], location: { name: 'Paris', }, }, ], followedByCount: 0, followedByCurrentUser: false, isMuted: false, followedBy: [], socialMedia: [], } export const group = { id: 'g2', name: 'Yoga Practice', slug: 'yoga-practice', about: null, description: `

What Is yoga?

Yoga is not just about practicing asanas. It's about how we do it.

And practicing asanas doesn't have to be yoga, it can be more athletic than yogic.

What makes practicing asanas yogic?

The important thing is:

`, descriptionExcerpt: `

What Is yoga?

Yoga is not just about practicing asanas. It's about how we do it.

And practicing asanas doesn't have to be yoga, it can be more athletic than yogic.

What makes practicing asanas yogic?

The important thing is:

`, groupType: 'public', actionRadius: 'interplanetary', categories: [ { id: 'cat4', icon: 'psyche', name: 'psyche', slug: 'psyche', description: 'Seele, Gefühle, Glück', }, { id: 'cat5', icon: 'movement', name: 'body-and-excercise', slug: 'body-and-excercise', description: 'Sport, Yoga, Massage, Tanzen, Entspannung', }, { id: 'cat17', icon: 'spirituality', name: 'spirituality', slug: 'spirituality', description: 'Religion, Werte, Ethik', }, ], locationName: null, location: null, } storiesOf('UserTeaser', module) .addDecorator(withA11y) .addDecorator(helpers.layout) .add('user only', () => ({ components: { UserTeaser }, store: helpers.store, data: () => ({ user, }), template: '', })) .add('with date', () => ({ components: { UserTeaser }, store: helpers.store, data: () => ({ user, }), template: '', })) .add('has edited something', () => ({ components: { UserTeaser }, store: helpers.store, data: () => ({ user, }), template: ` `, })) .add('anonymous', () => ({ components: { UserTeaser }, store: helpers.store, data: () => ({ user: null, }), template: '', })) .add('with group and date', () => ({ components: { UserTeaser }, store: helpers.store, data: () => ({ user, group, }), template: '', })) .add('with group and date – wide', () => ({ components: { UserTeaser }, store: helpers.store, data: () => ({ user, group, }), template: '', }))