discord-client/webpack/vue/channel.vue

41 lines
842 B
Vue
Raw Normal View History

2018-03-21 17:44:27 +00:00
<template>
<div class='container'>
2018-03-21 17:44:27 +00:00
<div class='header'>
2018-03-22 13:57:03 +00:00
<div class='title'>{{ gs.room.get('text') ? gs.room.get('text').name : '?' }}</div>
</div>
2018-03-21 17:44:27 +00:00
<div class='body'>
2018-03-22 21:00:57 +00:00
<section class='message-stack'>
<div class='message' v-for='m in gs.content.messages'>
<div class='icon'></div>
<span class='meta'>
<span class='author'>{{ gs.content.user(m.uid).name || 'inconnu' }}</span>
<span class='date' >{{ new Date(m.ts*1000).toLocaleString('fr') || 'inconnu' }}</span>
</span>
<span class='text'>{{ m.msg }}</span>
</div>
2018-03-22 21:00:57 +00:00
</section>
2018-03-22 21:00:57 +00:00
<section class='message-input'>
<textarea :placeholder='`Message #${gs.room.get("text").name}`'></textarea>
2018-03-22 21:00:57 +00:00
</section>
</div>
2018-03-21 17:44:27 +00:00
</div>
</template><script>
export default {
name: 'channel-',
data(){ return { gs: gs.get }; }
}
</script>