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