Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
web-three-twitter-boilerplate/src/sample.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (34 sloc)
1.25 KB
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
const store = { | |
data: { | |
search: '', | |
feed: [ | |
{ | |
body: 'My parents fumbled the bag by not moving to UK. I should be shouting innit left and right but instead I’m shouting litt', | |
date: '1m', | |
author: 'Franz Kafka', | |
avatar: '/assets/barksend-03.png' | |
}, | |
{ | |
body: 'See how one chef is passing out meals to those who need them.', | |
date: '2m', | |
author: 'Naguib Mahfouz', | |
avatar: '/assets/barksend-03.png' | |
}, | |
{ | |
body: 'Trumbull superintendent Iassogna presents budget cut list; includes freshman sports.', | |
date: '6m', | |
author: 'Vladimir Nabokov', | |
avatar: '/assets/barksend-03.png' | |
}, | |
{ | |
body: 'Many years later, as he faced the firing squad, Colonel Aureliano Buendía was to remember that distant afternoon when his father took him to discover ice.', | |
date: '11m', | |
author: 'Gabriel Garcia Marquez', | |
avatar: '/assets/barksend-03.png' | |
} | |
] | |
}, | |
addBarkAction (bark) { | |
this.data.feed.unshift(bark); | |
} | |
} |