mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +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" />',
|
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 {
|
return {
|
||||||
components: { FollowList },
|
components: { FollowList },
|
||||||
store: helpers.store,
|
store: helpers.store,
|
||||||
@ -69,18 +81,7 @@ storiesOf('FollowList', module)
|
|||||||
template: '<follow-list :user="user" @fetchAllConnections="fetchAllConnections"/>',
|
template: '<follow-list :user="user" @fetchAllConnections="fetchAllConnections"/>',
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.add('with 1000 connections loaded', () => {
|
||||||
.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', () => {
|
|
||||||
return {
|
return {
|
||||||
components: { FollowList },
|
components: { FollowList },
|
||||||
store: helpers.store,
|
store: helpers.store,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user