import { storiesOf } from '@storybook/vue' import { withA11y } from '@storybook/addon-a11y' import CommentCard from './CommentCard' import helpers from '~/storybook/helpers' helpers.init() const comment = { id: '5d42a2277f2725002a449cb3', content: '

Thank you all!

@wolfgang-huss @robert-schafer @greg @human-connection

watch my video

I think we can all learn a lot from Alex\'s video :)

It\'s really great stuff!!

Please give him a big smiley face emoticon :D

', contentExcerpt: '

Thank you all!

@wolfgang-huss @robert-schafer @greg @human-connection

watch my video

I think we can all learn a lot from Alex\'s video :)

It\'s really great stuff!!

Please give him a …

', createdAt: '2019-08-01T08:26:15.839Z', updatedAt: '2019-08-01T08:26:15.839Z', deleted: false, disabled: false, author: { id: '1', avatar: { url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg', }, slug: 'jenny-rostock', name: 'Rainer Unsinn', disabled: false, deleted: false, contributionsCount: 25, shoutedCount: 5, commentedCount: 39, followedByCount: 2, followedByCurrentUser: true, location: null, badges: [ { id: 'indiegogo_en_bear', icon: '/img/badges/indiegogo_en_bear.svg', __typename: 'Badge', }, ], __typename: 'User', }, __typename: 'Comment', } storiesOf('CommentCard', module) .addDecorator(withA11y) .addDecorator(helpers.layout) .add('Basic comment', () => ({ components: { CommentCard }, store: helpers.store, data: () => ({ comment, }), template: ``, }))