mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Review: storybook
This commit is contained in:
parent
e018e2ead9
commit
30f66c3e14
@ -53,7 +53,19 @@ storiesOf('FollowList', module)
|
||||
template: '<follow-list :user="user" type="following" />',
|
||||
}
|
||||
})
|
||||
.add('with up to 7 connections', () => {
|
||||
.add('with all connections loaded', () => {
|
||||
return {
|
||||
components: { FollowList },
|
||||
store: helpers.store,
|
||||
data() {
|
||||
return { user: lessThanSevenUser }
|
||||
},
|
||||
|
||||
template: '<follow-list :user="user"/>',
|
||||
}
|
||||
})
|
||||
|
||||
.add('with more connections loadable', () => {
|
||||
return {
|
||||
components: { FollowList },
|
||||
store: helpers.store,
|
||||
@ -69,18 +81,7 @@ storiesOf('FollowList', module)
|
||||
template: '<follow-list :user="user" @fetchAllConnections="fetchAllConnections"/>',
|
||||
}
|
||||
})
|
||||
|
||||
.add('with all connections', () => {
|
||||
return {
|
||||
components: { FollowList },
|
||||
store: helpers.store,
|
||||
data() {
|
||||
return { user: allConnectionsUser }
|
||||
},
|
||||
template: '<follow-list :user="user" />',
|
||||
}
|
||||
})
|
||||
.add('with a lot of connections', () => {
|
||||
.add('with 1000 connections loaded', () => {
|
||||
return {
|
||||
components: { FollowList },
|
||||
store: helpers.store,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user