Files: 67c840f15e591de413d2779d9d2ec66f6251f59a / src / components / Public.vue
548 bytesRaw
1 | |
2 | <template> |
3 | <div id="public" class="col-md-12"> |
4 | <h2>Public</h2> |
5 | <Message v-for="message in messages" :message="message"> |
6 | </Message> |
7 | </div> |
8 | </template> |
9 | |
10 | <script> |
11 | import Message from "./Message.vue" |
12 | |
13 | export default { |
14 | name: 'public', |
15 | components: { |
16 | "Message": Message |
17 | }, |
18 | subscriptions: function () { |
19 | return { |
20 | messages: this.$observers.accumulated_observable( |
21 | this.$depject_api.sbot_log[0]( |
22 | { limit: 10, reverse: true, live: true } |
23 | ) |
24 | ) |
25 | } |
26 | } |
27 | } |
28 | </script> |
29 | |
30 | <style scoped> |
31 | </style> |
32 |
Built with git-ssb-web