Created
May 16, 2013 23:30
-
-
Save simpleshadow/5595941 to your computer and use it in GitHub Desktop.
Fixture structure. Fixtures no workie. :'(
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var now = new Date(); | |
App.Conversation.FIXTURES = [ | |
{ | |
id: 1, | |
messages: [{ | |
id: 1, | |
user: 2, | |
text: "We are having such a blast at Sam's birthday party!", | |
conversation_id: 0, | |
captures: [{ | |
id: 1, | |
type: 'image', | |
src: 'http://placehold.it/150x150/123', | |
date: now | |
}] | |
}, { | |
id: 2, | |
user: 2, | |
text: "Wish you were here! Lama.", | |
conversation_id: 0, | |
captures: [{ | |
id: 2, | |
type: 'image', | |
src: 'http://placehold.it/150x150/abc', | |
date: now.setSeconds(now.getSeconds() - 15) | |
}] | |
}, { | |
id: 3, | |
user: 1, | |
text: "This is the view from our hotel. How's the party?", | |
conversation_id: 0, | |
captures: [{ | |
id: 3, | |
type: 'image', | |
src: 'http://placehold.it/150x150/def', | |
date: now.setSeconds(now.getSeconds() - 60) | |
}] | |
}, { | |
id: 4, | |
user: 2, | |
text: "Jenae and Adam just got here. How's San Diego?", | |
conversation_id: 0, | |
captures: [{ | |
id: 4, | |
type: 'image', | |
src: 'http://placehold.it/150x150/1de', | |
date: now.setSeconds(now.getSeconds() - 60*60) | |
}] | |
}, { | |
id: 5, | |
user: 1, | |
text: "We miss you too! Remember this!? :P", | |
conversation_id: 0, | |
captures: [{ | |
id: 5, | |
type: 'image', | |
src: 'http://placehold.it/150x150/123', | |
date: now.setSeconds(now.getSeconds() - 60*60*25) | |
}] | |
}] | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment