mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
docs: add storybook story for LoginForm
This commit is contained in:
parent
fced9ce435
commit
1549ff6c53
18
webapp/components/LoginForm/LoginForm.story.js
Normal file
18
webapp/components/LoginForm/LoginForm.story.js
Normal file
@ -0,0 +1,18 @@
|
||||
import { storiesOf } from '@storybook/vue'
|
||||
import { withA11y } from '@storybook/addon-a11y'
|
||||
import helpers from '~/storybook/helpers'
|
||||
import Vue from 'vue'
|
||||
|
||||
import LoginForm from './LoginForm.vue'
|
||||
|
||||
helpers.init()
|
||||
|
||||
storiesOf('LoginForm', module)
|
||||
.addDecorator(withA11y)
|
||||
.addDecorator(helpers.layout)
|
||||
.add('LoginForm', () => ({
|
||||
components: { LoginForm },
|
||||
data: () => ({}),
|
||||
store: helpers.store,
|
||||
template: `<login-form />`,
|
||||
}))
|
||||
@ -12,7 +12,7 @@
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"dev:styleguide": "cross-env STYLEGUIDE_DEV=true yarn run dev",
|
||||
"storybook": "start-storybook -p 3002 -c storybook/",
|
||||
"storybook": "start-storybook -p 3002 -s ./static -c storybook/",
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start",
|
||||
"generate:maintenance": "nuxt generate -c nuxt.config.maintenance.js",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user