]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /*\r |
2 | Twitter has deprecated the public Search. This application will simulate tweet data using schematic-ipsum.\r | |
3 | until an oauth solution is developed.\r | |
4 | */\r | |
5 | \r | |
6 | Ext.define('Oreilly.store.Tweets', {\r | |
7 | extend: 'Ext.data.Store',\r | |
8 | \r | |
9 | require: ['Ext.data.proxy.Ajax'],\r | |
10 | \r | |
11 | config: {\r | |
12 | fields: ['from_user', 'profile_image_url', 'text', 'created_at'],\r | |
13 | pageSize: 10,\r | |
14 | proxy: {\r | |
15 | type: 'ajax',\r | |
16 | reader: {\r | |
17 | rootProperty: 'data'\r | |
18 | },\r | |
19 | url: '/tweets'\r | |
20 | }\r | |
21 | }\r | |
22 | });\r |