git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: 674a622e9b02a8a81e88a63f0a5f8ba74f9d2b7c

Files: 674a622e9b02a8a81e88a63f0a5f8ba74f9d2b7c / example / index.js

705 bytesRaw
1const combine = require('depject')
2const apply = require('depject/apply')
3const h = require('mutant/h')
4const fs = require('fs')
5
6const modules = require('../')
7var api = entry(combine(modules))
8
9// TODO depject.entry(sockets, {
10// render_feed: 'first',
11// feeds: {
12// public: 'first'
13// }
14// })()
15
16require('insert-css')(fs.readFileSync(__dirname + '/styles.css', 'utf8'))
17
18var app = h('div.App', [
19 api.render_feed(api.feeds.public)
20])
21
22document.head.appendChild(h('title', 'PATCHCORE :: Example'))
23document.body.appendChild(app)
24
25function entry (sockets) {
26 return {
27 render_feed: apply.first(sockets.render_feed),
28 feeds: {
29 public: apply.first(sockets.feeds.public)
30 }
31 }
32}
33

Built with git-ssb-web