Files
habitica/website/client/components/SocialPage.vue
Matteo Pagliazzi d8128cc3db New Client: english translations and misc fixes (#8410)
* misc fixes and add english translations

* add tests
2017-01-14 21:12:11 +01:00

38 lines
712 B
Vue

<template lang="pug">
.row
.sixteen.wide.column
.ui.secondary.menu
router-link.item(to="/social/tavern")
| Tavern
router-link.item(to="/social/inbox")
| Inbox
.sixteen.wide.column
router-view
</template>
<script>
export default {
data () {
// @TODO: Abstract to Store
let messages = [
{
from: 'Paglias',
fromUserId: 1234,
to: 'TheHollidayInn',
message: 'I love the Gang of Four',
},
];
let conversations = {};
for (let message of messages) {
if (!conversations[message.fromUserId]) conversations[message.fromUserId] = message;
}
return {
conversations,
};
},
};
</script>