git ssb

2+

dinoworm ๐Ÿ› / ssb-graphviz



Tree: ca718f616a051e93adeb22faa3fc06646f667973

Files: ca718f616a051e93adeb22faa3fc06646f667973 / browser.js

626 bytesRaw
1const css = require('sheetify')
2const { start, html, pull } = require('inu')
3const log = require('inu-log')
4
5const config = require('./config')
6const App = require('./app')
7
8css`
9 html, body, .main, .graph {
10 width: 100%;
11 height: 100%;
12 position: absolute;
13 overflow: hidden;
14 padding: 0;
15 margin: 0;
16 }
17`
18
19var app = App(config)
20if (process.env.NODE_ENV !== 'production') {
21 app = log(app)
22}
23const { views, models } = start(app)
24const main = document.createElement('div')
25main.className = 'main'
26document.body.appendChild(main)
27
28pull(
29 views(),
30 pull.drain(view => {
31 html.update(main, view)
32 })
33)
34

Built with git-ssb-web