-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
Lawrence Menyah edited this page Sep 30, 2020
·
6 revisions
{
entities: {
videos: {
1: {
id: 1,
title: "Blue Jeans",
description: "Music in this video:
Song Blue Jeans (Album Version - Remastered)
Artist Lana Del Rey",
uploader_id: 1,
num_likes: 1,
num_dislikes: 0,
total_views: 3,
upload_date: September 15, 2020,
comments: [1, 2]
},
2: {
id: 2,
title: "Bel-Air",
description: "Music in this video:
Song Bel-Air (Album Version - Remastered)
Artist Lana Del Rey",
uploader_id: 1,
num_likes: 1,
num_dislikes: 0,
total_views: 3,
upload_date: September 15, 2020,
comments: []
},
3: {
id: 3,
title: "CORNER TAKEN QUICKLY",
description: "Trent Alexander-Arnold and Divock Origi bamboozle Barcelona in the Champions League Semi-final 2019"
uploader_id: 1,
num_likes: 1,
num_dislikes: 0,
total_views: 3,
upload_date: September 15, 2020,
comments: []
}
4: {
id: 4,
title: "BFH Quickscoping Montage",
description: "Quickscoping in Battlefield Hardline"
uploader_id: 2,
num_likes: 1,
num_dislikes: 0,
total_views: 3,
upload_date: September 15, 2020,
comments: [3]
}
},
users: {
1: {
id: 1,
username: "A$AP Rocky",
email: "[email protected]",
uploaded_videos: [1, 2, 3],
subscribers: 1
liked_videos: [1,2,3]
},
2: {
id: 2,
username: "iSWATxJOKERi",
email: "[email protected]",
uploaded_videos: [4],
subscribers: 1,
liked_videos: [3]
}
},
comments: {
1: {
id: 1,
body: "She needs a grammy :'(",
commenter_id: 2,
parent_comment_id: null,
commented_on: September 15, 2020,
num_likes: 1,
num_dislikes: 0,
replies: [2],
video_id: 1
},
2: {
id: 2,
body: "I know right, Adele would've won 30 grammys by now :'(",
commenter_id: 1,
parent_comment_id: 1,
commented_on: September 15, 2020,
num_likes: 1,
num_dislikes: 0,
replies: [],
video_id: 1
}
3: {
id: 3,
body: "Damn boy, you dum nice",
commenter_id: 1,
parent_comment_id: null,
commented_on: September 15, 2020,
num_likes: 1,
num_dislikes: 0,
replies: [],
video_id: 4
}
},
},
ui: {
loading: true/false,
modal
},
errors: {
login: ["Incorrect username/password combination"],
uploadVideoForm: ["All parts of the video form are required to be filled"],
commentForm: ["Comments must have a body"]
},
session: { currentUserId: 1 }
}