Files: 314000baff3b2045fe13f8edf6519b9bdd1779d5 / app / html / app.js
534 bytesRaw
1 | const nest = require('depnest') |
2 | const values = require('lodash/values') |
3 | const insertCss = require('insert-css') |
4 | |
5 | exports.gives = nest('app.html.app') |
6 | |
7 | exports.needs = nest({ |
8 | 'app.sync.goTo': 'first', |
9 | 'styles.css': 'first' |
10 | }) |
11 | |
12 | exports.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 | return api.app.sync.goTo({key: "%fXXZgQrwnj7F+Y19H0IXxNriuvPFoahvusih3UzpkfA=.sha256"}) |
21 | } |
22 | } |
23 |
Built with git-ssb-web