mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 07:54:57 -06:00
111 lines
3.5 KiB
JavaScript
111 lines
3.5 KiB
JavaScript
// @flow
|
|
|
|
// TODO open a websoket and create observable from it
|
|
const DUMMY_DATA = [
|
|
{
|
|
id: 1,
|
|
name: 'Big John Cookies',
|
|
placeId: 'ChIJf5QJFBK1RIYRjjfxZz9Z0O0',
|
|
latitude: 30.270667599999996,
|
|
longitude: -97.7532464,
|
|
distance: 0.5,
|
|
quantity: 'alot',
|
|
category: 'desserts',
|
|
images: [
|
|
'https://s-media-cache-ak0.pinimg.com/564x/e7/5f/08/e75f08b00c0bc7f2b01b3d1a636389f6.jpg',
|
|
'http://images.media-allrecipes.com/userphotos/560x315/1107530.jpg',
|
|
],
|
|
thumbImage: 'http://images.media-allrecipes.com/userphotos/560x315/1107530.jpg',
|
|
},
|
|
{
|
|
id: 2,
|
|
name: 'Jelly Filled Donuts',
|
|
placeId: 'ChIJ72if-Qe1RIYRCzMucGEEdBA',
|
|
latitude: 30.263963300000004,
|
|
longitude: -97.742308,
|
|
distance: 1.0,
|
|
quantity: 'few',
|
|
category: 'desserts',
|
|
images: ['https://timenewsfeed.files.wordpress.com/2013/06/jellydonut.jpg'],
|
|
thumbImage: 'https://timenewsfeed.files.wordpress.com/2013/06/jellydonut.jpg',
|
|
},
|
|
{
|
|
id: 3,
|
|
name: 'Spelt Brownies',
|
|
placeId: 'ChIJG44vBQi1RIYRvWGHdYUolZY',
|
|
latitude: 30.265019100000004,
|
|
longitude: -97.7419085,
|
|
distance: 1.7,
|
|
quantity: 'few',
|
|
category: 'desserts',
|
|
images: ['http://www.momshealthyeats.com/wp-content/uploads/2011/11/spelt-fudge-brownie.jpg'],
|
|
thumbImage: 'http://www.momshealthyeats.com/wp-content/uploads/2011/11/spelt-fudge-brownie.jpg',
|
|
},
|
|
{
|
|
id: 4,
|
|
name: 'Oatmeal Raisin Cookies',
|
|
placeId: 'ChIJf5QJFBK1RIYRjjfxZz9Z0O0',
|
|
latitude: 30.270667599999996,
|
|
longitude: -97.7532464,
|
|
distance: 0.5,
|
|
quantity: 'few',
|
|
category: 'desserts',
|
|
images: ['http://cookingontheside.com/wp-content/uploads/2009/04/oatmeal_raisin_cookies_stack-400.jpg'],
|
|
thumbImage: 'http://cookingontheside.com/wp-content/uploads/2009/04/oatmeal_raisin_cookies_stack-400.jpg',
|
|
},
|
|
{
|
|
id: 5,
|
|
name: 'Donuts with Sprinkles',
|
|
placeId: 'ChIJ72if-Qe1RIYRCzMucGEEdBA',
|
|
latitude: 30.263963300000004,
|
|
longitude: -97.742308,
|
|
distance: 1.0,
|
|
quantity: 'few',
|
|
category: 'desserts',
|
|
images: ['https://dannivee.files.wordpress.com/2013/10/img_1950.jpg'],
|
|
thumbImage: 'https://dannivee.files.wordpress.com/2013/10/img_1950.jpg',
|
|
},
|
|
{
|
|
id: 6,
|
|
name: 'Powdered Donuts',
|
|
placeId: 'ChIJ72if-Qe1RIYRCzMucGEEdBA',
|
|
latitude: 30.263963300000004,
|
|
longitude: -97.742308,
|
|
distance: 1.0,
|
|
quantity: 'few',
|
|
category: 'desserts',
|
|
images: [
|
|
'http://3.bp.blogspot.com/-NUKSXr1qLHs/UQmsaEFgbTI/AAAAAAAAA_Y/l4psfVl4a5A/s1600/white-powdered-sugar-doughnuts-tracie-kaska.jpg',
|
|
],
|
|
thumbImage:
|
|
'http://3.bp.blogspot.com/-NUKSXr1qLHs/UQmsaEFgbTI/AAAAAAAAA_Y/l4psfVl4a5A/s1600/white-powdered-sugar-doughnuts-tracie-kaska.jpg',
|
|
},
|
|
{
|
|
id: 7,
|
|
name: 'Snickerdoodles',
|
|
placeId: 'ChIJr3szW6a1RIYRkM7LRpnBIO0',
|
|
latitude: 30.266898599999998,
|
|
longitude: -97.73798459999999,
|
|
quantity: 'few',
|
|
category: 'desserts',
|
|
images: ['http://josephcphillips.com/wp-content/uploads/2015/02/snickerdoodles2.jpg'],
|
|
thumbImage: 'http://josephcphillips.com/wp-content/uploads/2015/02/snickerdoodles2.jpg',
|
|
},
|
|
{
|
|
id: 8,
|
|
name: 'Pizza',
|
|
placeId: 'ChIJr3szW6a1RIYRkM7LRpnBIO0',
|
|
latitude: 30.266898599999998,
|
|
longitude: -97.73798459999999,
|
|
quantity: 'few',
|
|
category: 'entrees',
|
|
images: ['http://www.foodandhealth.co.uk/wp-content/uploads/2016/05/Hot-stone-Vegan-Pizza.jpg'],
|
|
thumbImage: 'http://www.foodandhealth.co.uk/wp-content/uploads/2016/05/Hot-stone-Vegan-Pizza.jpg',
|
|
},
|
|
];
|
|
|
|
/* eslint-disable no-unused-vars */
|
|
export const getFoodItemsForLocation = (location: Location) => {
|
|
return Promise.resolve(DUMMY_DATA);
|
|
};
|
|
/* eslint-enable no-unused-vars */
|