2018-03-21 17:44:27 +00:00
|
|
|
<template>
|
|
|
|
|
2018-03-21 23:53:32 +00:00
|
|
|
<div class='container'>
|
2018-03-21 17:44:27 +00:00
|
|
|
|
2018-03-21 23:53:32 +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>
|
2018-03-21 23:53:32 +00:00
|
|
|
</div>
|
2018-03-21 17:44:27 +00:00
|
|
|
|
2018-03-21 23:53:32 +00:00
|
|
|
<div class='body'>
|
2018-03-22 15:01:41 +00:00
|
|
|
<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>
|
2018-03-22 14:28:34 +00:00
|
|
|
</div>
|
2018-03-21 23:53:32 +00:00
|
|
|
</div>
|
2018-03-21 17:44:27 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template><script>
|
|
|
|
export default {
|
|
|
|
|
|
|
|
name: 'channel-',
|
|
|
|
|
|
|
|
data(){ return { gs: gs.get }; }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|