git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: d586656fe9c7044534f06d6fe4d390aac3d49118

Files: d586656fe9c7044534f06d6fe4d390aac3d49118 / example.js

698 bytesRaw
1const combine = require('depject')
2const apply = require('depject/apply')
3const h = require('mutant/h')
4
5const modules = require('./')
6var api = entry(combine(modules))
7
8// TODO depject.entry(sockets, {
9// render_feed: 'first',
10// feeds: {
11// public: 'first'
12// }
13// })()
14
15require('insert-css')(`
16 .Message {
17 padding: 20px;
18 border-bottom: 1px solid #EEE;
19 }
20
21 .Message > header.author {
22 font-weight: bold;
23 }
24`)
25
26var app = h('div.App', [
27 api.render_feed(api.feeds.public)
28])
29
30document.body.appendChild(app)
31
32function entry (sockets) {
33 return {
34 render_feed: apply.first(sockets.render_feed),
35 feeds: {
36 public: apply.first(sockets.feeds.public)
37 }
38 }
39}
40

Built with git-ssb-web