Last active
July 25, 2016 03:44
-
-
Save tgoldenberg/ef3dc76063ca68ecab09840f6b3eb5ab to your computer and use it in GitHub Desktop.
fixtures for Assemblies Tutorial
This file contains hidden or 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
| import _ from 'underscore'; | |
| export const FAKE_USERS = [ | |
| { id: 0, firstName: 'Paul', lastName: 'Graham', avatarUrl: 'https://pbs.twimg.com/profile_images/1824002576/pg-railsconf_400x400.jpg' }, | |
| { id: 1, firstName: 'Dan', lastName: 'Abramov', avatarUrl: 'https://pbs.twimg.com/profile_images/553711083064541184/9VsY9i09.jpeg' }, | |
| { id: 2, firstName: 'Marc', lastName: 'Andreessen', avatarUrl: 'https://pbs.twimg.com/profile_images/649108987128868864/rWnwMe55.jpg'}, | |
| { id: 3, firstName: 'Nick', lastName: 'Brown', avatarUrl: 'https://pbs.twimg.com/profile_images/652242629556609024/nRgVcSMq.jpg'}, | |
| { id: 4, firstName: 'Brent', lastName: 'Vatne', avatarUrl: 'https://codecore.ca/assets/team/brent-5b7ed4ae6cedceb4e5a7df9ba1fada5e.jpg'}, | |
| { id: 5, firstName: 'Kanye', lastName: 'West', avatarUrl: 'https://pbs.twimg.com/profile_images/585565077207678977/N_eNSBXi.jpg'}, | |
| ]; | |
| export const FAKE_MESSAGES = [ | |
| 'Hello world', | |
| 'How are you?', | |
| 'Yo', | |
| "Neutra vegan everyday carry shoreditch. Man braid +1 mixtape, polaroid yr gentrify chartreuse 3 wolf moon. Photo booth crucifix shoreditch, kogi cornhole offal polaroid sustainable. Food truck sartorial selfies, blog typewriter put a bird on it taxidermy tattooed. Chillwave lumbersexual hashtag kinfolk sustainable four dollar toast. Stumptown sustainable blue bottle man bun, tofu shabby chic occupy kinfolk man braid artisan poutine. Before they sold out sustainable lumbersexual, man braid you probably haven't heard of them vice actually single-origin coffee kitsch street art biodiesel.", | |
| "3 wolf moon offal meditation, gluten-free neutra post-ironic literally asymmetrical thundercats put a bird on it food truck. Gastropub kinfolk synth craft beer whatever pinterest, waistcoat etsy banh mi fanny pack authentic locavore. Kombucha meggings kickstarter gentrify, narwhal hella photo booth. Wayfarers man bun offal keytar, vegan poutine mlkshk banh mi. Tattooed direct trade hella organic, affogato humblebrag yr small batch stumptown bitters flannel crucifix typewriter intelligentsia. Pork belly dreamcatcher intelligentsia, authentic venmo seitan gentrify yr vinyl scenester pour-over chambray portland selfies. Meditation church-key hashtag brooklyn, leggings keffiyeh cardigan shoreditch selfies beard.", | |
| "Put a bird on it four loko keffiyeh ramps meggings, bushwick sartorial kogi. Thundercats food truck kombucha, blue bottle franzen butcher organic bushwick green juice viral tilde banjo cold-pressed. Venmo umami before they sold out yr, blog tilde kogi. Master cleanse authentic sartorial cliche, knausgaard tacos selvage lo-fi 8-bit iPhone VHS YOLO. Hella hoodie venmo vice crucifix waistcoat. Food truck leggings fashion axe church-key pour-over, cliche heirloom sustainable. Truffaut four dollar toast dreamcatcher, quinoa butcher authentic stumptown.", | |
| "Brunch flannel four loko kombucha, skateboard blue bottle kale chips truffaut pour-over taxidermy. Four dollar toast readymade before they sold out, paleo seitan scenester gochujang kogi distillery. Salvia vice tilde craft beer, DIY selvage tofu freegan ugh franzen post-ironic. Photo booth drinking vinegar normcore cronut, yuccie cray neutra stumptown before they sold out chambray YOLO tacos. Cronut pork belly godard disrupt bespoke. Kogi deep v aesthetic slow-carb synth heirloom, pug schlitz fanny pack blue bottle marfa yr lumbersexual. Listicle retro celiac chambray street art, synth bitters shoreditch affogato tacos truffaut viral.", | |
| "Gochujang chartreuse four dollar toast pour-over viral, heirloom deep v chia typewriter austin kickstarter mustache. Actually trust fund cornhole, cronut narwhal cred wolf. Listicle migas next level narwhal scenester, franzen portland locavore craft beer asymmetrical. Normcore waistcoat put a bird on it helvetica, schlitz retro truffaut artisan hammock skateboard. Fap sartorial yr hashtag street art blue bottle, semiotics salvia tumblr twee shabby chic. Austin master cleanse swag, hoodie ugh taxidermy chambray shabby chic meggings. Chillwave austin irony forage godard, iPhone 8-bit.", | |
| "Blue bottle waistcoat irony, chambray brunch authentic lomo kale chips franzen selvage godard gluten-free schlitz sartorial green juice. Gochujang knausgaard aesthetic, yr cronut DIY sriracha you probably haven't heard of them raw denim locavore banh mi gentrify small batch craft beer schlitz. Chicharrones VHS pour-over, gluten-free hashtag 8-bit sustainable slow-carb butcher kinfolk fixie bitters meggings chillwave fanny pack. Trust fund banjo cliche marfa, leggings lo-fi shoreditch gluten-free chicharrones pop-up craft beer. Kale chips health goth photo booth, bushwick letterpress cold-pressed next level tattooed chicharrones vegan gluten-free gentrify. Health goth cardigan forage everyday carry kogi humblebrag jean shorts. Beard typewriter swag photo booth, deep v 8-bit tattooed pug selfies plaid raw denim squid.", | |
| "Ugh trust fund hammock, organic schlitz pitchfork flannel. Church-key stumptown kale chips readymade swag, polaroid man bun chia brooklyn aesthetic pickled. Echo park four loko pitchfork meggings semiotics lo-fi jean shorts, aesthetic swag paleo chambray intelligentsia. Wolf helvetica ethical meh small batch offal. Tofu pork belly yr marfa, swag pug kitsch chicharrones selvage sustainable. Cold-pressed bitters crucifix, pabst letterpress craft beer sriracha mlkshk selfies mumblecore. Ethical kitsch flexitarian PBR&B hashtag put a bird on it franzen.", | |
| "Chicharrones chia schlitz, next level farm-to-table stumptown roof party semiotics. Put a bird on it pickled tumblr, selfies beard fixie pop-up banh mi tilde biodiesel austin hammock ugh. Four loko chia pug, pabst crucifix artisan drinking vinegar umami XOXO kombucha. Small batch photo booth gastropub pour-over cold-pressed thundercats, chartreuse DIY kombucha fap actually master cleanse. Gastropub etsy hashtag everyday carry 90's, tote bag 8-bit. Pinterest PBR&B slow-carb, tumblr quinoa man bun wayfarers bitters gentrify offal meditation. Lumbersexual kombucha mlkshk bicycle rights iPhone.", | |
| "You probably haven't heard of them heirloom pour-over, PBR&B yr XOXO tofu fashion axe chicharrones gentrify", | |
| "Tofu asymmetrical etsy, pabst hoodie beard bicycle rights pug.", | |
| "Meggings venmo truffaut, keytar +1 kale chips skateboard selfies taxidermy sartorial cronut mustache knausgaard church-key.", | |
| "Stumptown actually keffiyeh, man braid aesthetic food truck pour-over four dollar toast flexitarian before they sold out ethical.", | |
| "Hammock disrupt pabst, brooklyn shabby chic 90's cray.", | |
| "Ramps ennui photo booth master cleanse, 3 wolf moon bicycle rights listicle polaroid PBR&B hoodie. Pug cray stumptown fap VHS twee.", | |
| "IPhone disrupt chicharrones letterpress cray helvetica.", | |
| "Green juice put a bird on it crucifix, kitsch waistcoat disrupt skateboard. Lo-fi fixie wayfarers, shoreditch sartorial plaid cardigan heirloom meggings.", | |
| "Health goth offal yuccie microdosing, vice cardigan banjo lo-fi tofu.", | |
| "Etsy tousled pop-up, lomo 8-bit craft beer intelligentsia sartorial bespoke hoodie kinfolk.", | |
| ]; | |
| export const currentUser = { | |
| groupIds: ["b20a1741a2449955"], | |
| summary: 'React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about — learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native.', | |
| firstName: 'Example', | |
| lastName: 'Account', | |
| avatarUrl: 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/React.js_logo.svg/2000px-React.js_logo.svg.png', | |
| technologies: ['JavaScript', 'React Native'], | |
| username: 'example@example.com', | |
| id: 6, | |
| location : { | |
| lat: 40.7127837, | |
| lng: -74.0059413, | |
| city: { | |
| long_name: "New York", | |
| short_name: "New York", | |
| types: [ | |
| "locality", | |
| "political" | |
| ] | |
| }, | |
| state: { | |
| long_name: "New York", | |
| short_name: "NY", | |
| types: [ | |
| "administrative_area_level_1", | |
| "political" | |
| ] | |
| }, | |
| formattedAddress: "New York, NY, USA" | |
| } | |
| }; | |
| function randomDate(){ | |
| let d1 = new Date().valueOf(); | |
| let d2 = new Date(d1 - Math.floor(Math.random()*30)*24*60*60*1000); | |
| return d2; | |
| }; | |
| export const messages = _.flatten(FAKE_USERS.map(user => { | |
| let userIds = [ currentUser.id, user.id ]; | |
| let userMessages = []; | |
| for (let i=0; i<5; i++){ | |
| let sender = Math.random() < 0.5 ? currentUser : user; | |
| userMessages.push({ | |
| createdAt: randomDate(), | |
| participants: userIds, | |
| text: FAKE_MESSAGES[Math.floor(Math.random()*FAKE_MESSAGES.length)], | |
| senderName: `${sender.firstName} ${sender.lastName}`, | |
| senderAvatar: sender.avatarUrl, | |
| senderId: sender.id | |
| }); | |
| } | |
| return userMessages; | |
| })); | |
| export const upcomingEvent = { | |
| start: new Date(new Date().valueOf() + 3*24*60*60*1000), | |
| end: new Date(new Date().valueOf() + 3*27*60*60*1000), | |
| name: 'React Native NYC Meetup', | |
| summary: 'React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about — learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native.', | |
| attending: {'6': true }, | |
| maybe: { }, | |
| notAttending : { }, | |
| location : { | |
| "lat": -27.4679542, | |
| "lng": 153.0063908, | |
| "city": { | |
| "long_name": "Milton", | |
| "short_name": "Milton", | |
| "types": [ | |
| "locality", | |
| "political" | |
| ] | |
| }, | |
| "state": { | |
| "long_name": "Queensland", | |
| "short_name": "QLD", | |
| "types": [ | |
| "administrative_area_level_1", | |
| "political" | |
| ] | |
| }, | |
| "formattedAddressess": "Black St & Paten St, Milton QLD 4064, Australia" | |
| }, | |
| comments: [], | |
| capacity: 100, | |
| groupId: 1, | |
| }; | |
| export const notifications = [ | |
| {time: randomDate().valueOf(), message: 'new message from Kanye', type: 'Message', seen: false,}, | |
| {time: randomDate().valueOf(), message: 'comment in React Native NYC', type: 'Event', seen: false,}, | |
| {time: randomDate().valueOf(), message: 'new members in React Native NYC', type: 'Group', seen: false,}, | |
| {time: randomDate().valueOf(), message: 'new message from Nick', type: 'Message', seen: false,}, | |
| {time: randomDate().valueOf(), message: 'new event in JavaScript', type: 'Event', seen: false,}, | |
| ] | |
| export const userGroups = []; | |
| export const suggestedGroups = []; | |
| export const Technologies = [ | |
| 'JavaScript', | |
| 'Python', | |
| 'Java', | |
| 'Product Management', | |
| 'Business Development', | |
| 'Ruby', | |
| 'Haskell', | |
| 'Hadoop', | |
| 'Machine Learning', | |
| 'Natural Language Processing', | |
| 'Elm', | |
| 'Redux', | |
| 'React Native' | |
| ]; | |
| export const ImageOptions = { | |
| title: 'Select Avatar', // specify null or empty string to remove the title | |
| cancelButtonTitle: 'Cancel', | |
| takePhotoButtonTitle: 'Take Photo...', // specify null or empty string to remove this button | |
| chooseFromLibraryButtonTitle: 'Choose from Library...', // specify null or empty string to remove this button | |
| cameraType: 'back', // 'front' or 'back' | |
| mediaType: 'photo', // 'photo' or 'video' | |
| videoQuality: 'high', // 'low', 'medium', or 'high' | |
| maxWidth: 200, // photos only | |
| maxHeight: 200, // photos only | |
| aspectX: 1, // aspectX:aspectY, the cropping image's ratio of width to height | |
| aspectY: 1, // aspectX:aspectY, the cropping image's ratio of width to height | |
| quality: 1, // photos only | |
| angle: 0, // photos only | |
| allowsEditing: false, // Built in functionality to resize/reposition the image | |
| noData: false, // photos only - disables the base64 `data` field from being generated (greatly improves performance on large photos) | |
| storageOptions: { // if this key is provided, the image will get saved in the documents/pictures directory (rather than a temporary directory) | |
| skipBackup: true, // image will NOT be backed up to icloud | |
| path: 'images' // will save image at /Documents/images rather than the root | |
| } | |
| }; | |
| export const DefaultAvatar = 'https://confluence.slac.stanford.edu/s/en_GB/5996/4a6343ec7ed8542179d6c78fa7f87c01f81da016.20/_/images/icons/profilepics/default.png'; | |
| export const events = []; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment