Created
May 27, 2016 13:21
-
-
Save Rio517/04f28dcc6641978a3a59b2710a69125e to your computer and use it in GitHub Desktop.
Example Ember JSON w/ sideloaded data
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
ChatApp.Conversation.FIXTURES = [{ | |
profile: 'first', | |
id: 6, | |
messages: [1,2,3,4] | |
},{ | |
profile: 'second', | |
id: 7, | |
messages: [5,6,7,8] | |
},{ | |
profile: 'third', | |
id: 8, | |
messages: [9,10,11,12] | |
}] | |
ChatApp.Message.FIXTURES = [{ | |
"body": "test mt for m@m.com'", | |
"conversation": 6, | |
"created_at": "2015-04-10T16:15:34.934Z", | |
"type": "MT", | |
"id": 1 | |
}, { | |
"body": "test mo for m@m.com'", | |
"conversation": 6, | |
"created_at": "2015-04-10T16:16:34.982Z", | |
"type": "MO", | |
"id": 2 | |
}, { | |
"body": "test mt for m@m.com'", | |
"conversation": 6, | |
"created_at": "2015-04-10T16:16:35.032Z", | |
"type": "MT", | |
"id": 3 | |
}, { | |
"body": "test mo for m@m.com'", | |
"conversation": 6, | |
"created_at": "2015-04-10T16:18:35.084Z", | |
"type": "MO", | |
"id": 4 | |
}, { | |
"body": "test mt for m@m.com'", | |
"conversation": 7, | |
"created_at": "2015-04-10T16:18:35.138Z", | |
"type": "MT", | |
"id": 5 | |
}, { | |
"body": "test mo for m@m.com'", | |
"conversation": 7, | |
"created_at": "2015-04-10T16:19:35.157Z", | |
"type": "MO", | |
"id": 6 | |
}, { | |
"body": "test mt for m@m.com'", | |
"conversation": 7, | |
"created_at": "2015-04-10T16:20:35.179Z", | |
"type": "MT", | |
"id": 7 | |
}, { | |
"body": "test mo for m@m.com'", | |
"conversation": 7, | |
"created_at": "2015-04-10T16:22:35.196Z", | |
"type": "MO", | |
"id": 8 | |
}, { | |
"body": "test mt for m@m.com'", | |
"conversation": 8, | |
"created_at": "2015-04-10T16:22:35.238Z", | |
"type": "MT", | |
"id": 9 | |
}, { | |
"body": "test mo for m@m.com'", | |
"conversation": 8, | |
"created_at": "2015-04-10T16:22:35.277Z", | |
"type": "MO", | |
"id": 10 | |
}, { | |
"body": "test mt for m@m.com'", | |
"conversation": 8, | |
"created_at": "2015-04-10T16:24:35.336Z", | |
"type": "MT", | |
"id": 11 | |
}, { | |
"body": "test mo for m@m.com'", | |
"conversation": 8, | |
"created_at": "2015-04-10T16:26:35.392Z", | |
"type": "MO", | |
"id": 12 | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment