git ssb

0+

mixmix / patchbay-scry



Tree: 7a6e1a0a968a0758f38993c9214cc21ac0d500f4

Files: 7a6e1a0a968a0758f38993c9214cc21ac0d500f4 / plugs / app / page / scry-show.js

868 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3// const Scuttle = require('scuttle-dark-crystal')
4const getContent = require('ssb-msg-content')
5
6const ScryShow = require('../../../views/show')
7
8exports.gives = nest({
9 'app.page.scryShow': true
10})
11
12exports.needs = nest({
13 // 'about.html.avatar': 'first',
14 // 'app.html.modal': 'first',
15 // 'app.sync.goTo': 'first',
16 // 'sbot.obs.connection': 'first'
17})
18
19exports.create = function (api) {
20 return nest({
21 'app.page.scryShow': scryShowPage
22 })
23
24 function scryShowPage (location) {
25 const scuttle = Scuttle(api.sbot.obs.connection)
26 const { title } = getContent(location)
27
28 const page = h('Scry -show', { title: `/scry — ${name}` }, [
29 h('h1', ['Scry', h('i.fa.fa-diamond')]),
30 ])
31
32 page.scroll = () => {} // stops keyboard shortcuts from breaking
33 return page
34 }
35}
36

Built with git-ssb-web