git ssb

2+

mixmix / ticktack



Tree: ca60633113df0b41f3bab3e4319dcd13a9c9555e

Files: ca60633113df0b41f3bab3e4319dcd13a9c9555e / app / html / app.js

439 bytesRaw
1const nest = require('depnest')
2const values = require('lodash/values')
3const insertCss = require('insert-css')
4
5exports.gives = nest('app.html.app')
6
7exports.needs = nest({
8 'app.sync.goTo': 'first',
9 'styles.css': 'first'
10})
11
12exports.create = (api) => {
13 return nest('app.html.app', app)
14
15 function app () {
16 const css = values(api.styles.css()).join('\n')
17 insertCss(css)
18
19 return api.app.sync.goTo({ page: 'home' })
20 }
21}
22

Built with git-ssb-web