-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
Erica Thompson edited this page Dec 10, 2020
·
10 revisions
{
entities: {
users: {
5: {
id: 5,
username: 'indigo',
email: '[email protected]',
location: 'New York',
link: 'indigo.com',
catalog: [],
collection: [],
wishlist: [],
followers: [],
following: [],
imageURL: null
},
19: {
id: 19,
username: 'turquoise',
email: '[email protected]',
location: 'San Francisco',
link: 'turquoise.com',
catalog: [],
collection: [],
wishlist: [],
followers: [],
following: [],
imageURL: 'http://img.com/image19.jpg'
}
},
items: {
6: {
id: 6,
ownerId: 5,
title: 'indigo blues',
genre: 'alternative',
price: 'free',
type: 'album',
released: false,
about: 'this is a great item',
collection_id: 1,
imageURL: 'http://img.com/image6.jpg',
musicURL: 'http://mus.com/music6.mp3'
},
7: {
id: 7,
ownerId: 19,
title: 'turquoise sunset',
genre: 'experimental',
price: 'any',
type: 'album',
released: true,
about: 'this is a great item',
collection_id: 2,
imageURL: 'http://img.com/image7.jpg',
musicURL: 'http://mus.com/music6.mp3'
},
8: {
id: 8,
ownerId: 19,
title: 'in the forest',
genre: 'alternative',
price: '7',
type: 'single',
released: true,
about: 'this is a great item',
collection_id: null,
imageURL: 'http://img.com/image8.jpg',
musicURL: 'http://mus.com/music6.mp3'
}
},
stories: {
0: {
id: 0,
authorId: 5,
title: 'In Search of Feeling',
body: 'What can we know when..',
imageURL: 'http://img.com/image0.jpg'
}
1: {
id: 1,
authorId: 19,
title: 'Blending Music Like Color',
body: 'Like paint and sound..',
imageURL: 'http://img.com/image1.jpg'
}
}
},
ui: {
loading: true/false,
modal: true/false
},
errors: {
login: ['Incorrect username/password combination'],
musicForm: ['Audio must be uploaded'],
sessionErrors: ['You must be logged in to do that'],
postErrors: ['Song did not successfully save']
}
session: {
currentUser: 19
}
}