mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
* Added read me and Inbox Page * Fixed inbox linting * Added converstaion route * Added temp data and style * Added social page and nav * Fixed Inbox routes * Added basic layout for Tavern Page
41 lines
743 B
Vue
41 lines
743 B
Vue
<template lang="pug">
|
|
.row
|
|
|
|
.sixteen.wide.column
|
|
.ui.secondary.menu
|
|
a.item
|
|
router-link(:to="{ name: 'tavern' }")
|
|
| Tavern
|
|
a.item
|
|
router-link(:to="{ name: '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>
|