bildpunkt / surfbird

A Microblogging client built on Electron and Vue
MIT License
331 stars 56 forks source link

Implement the date of posts #70

Closed Fubinator closed 6 years ago

Fubinator commented 6 years ago

Description

At the moment every post is showing now, because it's hardcoded in the html. The Twitter-API is providing a date for every post. We could pass the date from the Post component to the Post-Header component and use a computed property to get it into the right format (maybe using moment.js?). I guess we should discuss how to properly get such a date object in the "... time ago"-format. Another question is if this is trivial regarding different authentication services, so it does not break when implementing another client.

pixeldesu commented 6 years ago

@Fubinator I think one relatively easy way would be using vue-timeago, usage of that library seems straight-forward.

pixeldesu commented 6 years ago

Added with #73