Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80684 views
1
/**
2
* This file is provided by Facebook for testing and evaluation purposes
3
* only. Facebook reserves all rights not expressly granted.
4
*
5
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
8
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
9
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
10
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11
*/
12
13
module.exports = {
14
15
init: function() {
16
localStorage.clear();
17
localStorage.setItem('messages', JSON.stringify([
18
{
19
id: 'm_1',
20
threadID: 't_1',
21
threadName: 'Jing and Bill',
22
authorName: 'Bill',
23
text: 'Hey Jing, want to give a Flux talk at ForwardJS?',
24
timestamp: Date.now() - 99999
25
},
26
{
27
id: 'm_2',
28
threadID: 't_1',
29
threadName: 'Jing and Bill',
30
authorName: 'Bill',
31
text: 'Seems like a pretty cool conference.',
32
timestamp: Date.now() - 89999
33
},
34
{
35
id: 'm_3',
36
threadID: 't_1',
37
threadName: 'Jing and Bill',
38
authorName: 'Jing',
39
text: 'Sounds good. Will they be serving dessert?',
40
timestamp: Date.now() - 79999
41
},
42
{
43
id: 'm_4',
44
threadID: 't_2',
45
threadName: 'Dave and Bill',
46
authorName: 'Bill',
47
text: 'Hey Dave, want to get a beer after the conference?',
48
timestamp: Date.now() - 69999
49
},
50
{
51
id: 'm_5',
52
threadID: 't_2',
53
threadName: 'Dave and Bill',
54
authorName: 'Dave',
55
text: 'Totally! Meet you at the hotel bar.',
56
timestamp: Date.now() - 59999
57
},
58
{
59
id: 'm_6',
60
threadID: 't_3',
61
threadName: 'Functional Heads',
62
authorName: 'Bill',
63
text: 'Hey Brian, are you going to be talking about functional stuff?',
64
timestamp: Date.now() - 49999
65
},
66
{
67
id: 'm_7',
68
threadID: 't_3',
69
threadName: 'Bill and Brian',
70
authorName: 'Brian',
71
text: 'At ForwardJS? Yeah, of course. See you there!',
72
timestamp: Date.now() - 39999
73
}
74
]));
75
}
76
77
};
78
79