git ssb

16+

Dominic / patchbay



Commit d9ba09fe7118718dfeddc73ddab338839d9e78c7

Merge pull request #71 from ssbc/sorting_the_chaff

Sorting the chaff
Dominic Tarr authored on 1/18/2017, 11:46:25 AM
GitHub committed on 1/18/2017, 11:46:25 AM
Parent: f93ceefd06a4ef69e3af1d2fb39bc0fed84c2c7a
Parent: 87e8dd5ccef51221cc20ce6c491bfcb4d106f63b

Files changed

modules_basic/avatar-edit.jschanged
modules_basic/avatar-image.jschanged
modules_basic/avatar-name.jschanged
modules_basic/avatar-profile.jschanged
modules_basic/avatar.jschanged
modules_basic/compose.jschanged
modules_basic/feed.jschanged
modules_basic/follow.jschanged
modules_basic/invite.jschanged
modules_basic/like.jschanged
modules_basic/message-link.jschanged
modules_basic/message.jschanged
modules_basic/names.jschanged
modules_basic/post.jschanged
modules_basic/pub.jschanged
modules_basic/public.jschanged
modules_basic/relationships.jschanged
modules_basic/search-box.jschanged
modules_basic/setup.jschanged
modules_basic/suggest-mentions.jschanged
modules_basic/thread.jschanged
modules_core/app.jschanged
modules_core/file-input.jschanged
modules_core/menu.jschanged
modules_core/message-confirm.jschanged
modules_core/styles.jschanged
modules_core/tabs.jschanged
modules_extra/audio-mp3.jschanged
modules_extra/channel.jschanged
modules_extra/emoji.jschanged
modules_extra/git-ssb.jschanged
modules_extra/git.jschanged
modules_extra/key.jschanged
modules_extra/meta-image.jschanged
modules_extra/music-release-cc.jschanged
modules_extra/music-release.jschanged
modules_extra/network.jschanged
modules_extra/notifications.jschanged
modules_extra/query.jschanged
modules_extra/raw.jschanged
modules_extra/search.jschanged
modules_extra/split.jschanged
modules_extra/suggest-emoji.jschanged
modules_basic/avatar-edit.jsView
@@ -5,22 +5,13 @@
55 var hyperlightbox = require('hyperlightbox')
66 var h = require('hyperscript')
77 var pull = require('pull-stream')
88 var getAvatar = require('ssb-avatar')
9-var plugs = require('../plugs')
109 var ref = require('ssb-ref')
1110 var visualize = require('visualize-buffer')
1211 var self_id = require('../keys').id
1312
14-//var confirm = plugs.first(exports.message_confirm = [])
15-//var sbot_blobs_add = plugs.first(exports.sbot_blobs_add = [])
16-//var blob_url = plugs.first(exports.blob_url = [])
17-//var sbot_links = plugs.first(exports.sbot_links = [])
18-//var avatar_name = plugs.first(exports.avatar_name = [])
19-//
20-
2113 function crop (d, cb) {
22- var data
2314 var canvas = hypercrop(h('img', {src: d}))
2415
2516 return h('div.column.avatar_pic',
2617 canvas,
@@ -54,9 +45,9 @@
5445
5546 var lb = hyperlightbox()
5647 var name_input = h('input', {placeholder: 'rename'})
5748 var name = api.avatar_name(id)
58- var selected = null, selected_data = null
49 + var selected = null
5950
6051 getAvatar({links: api.sbot_links}, self_id, id, function (err, avatar) {
6152 if (err) return console.error(err)
6253 //don't show user has already selected an avatar.
modules_basic/avatar-image.jsView
@@ -1,20 +1,12 @@
11 'use strict'
2-var getAvatar = require('ssb-avatar')
32 var h = require('hyperscript')
4-var ref = require('ssb-ref')
5-var path = require('path')
63 var visualize = require('visualize-buffer')
74
85 var pull = require('pull-stream')
96
107 var self_id = require('../keys').id
118
12-//var plugs = require('../plugs')
13-//var sbot_query = plugs.first(exports.sbot_query = [])
14-//var blob_url = require('../plugs').first(exports.blob_url = [])
15-//
16-
179 exports.needs = {
1810 sbot_query: 'first',
1911 blob_url: 'first'
2012 }
@@ -22,14 +14,8 @@
2214 exports.gives = {
2315 connection_status: true, avatar_image: true
2416 }
2517
26-
27-function isFunction (f) {
28- return 'function' === typeof f
29-}
30-
31-
3218 var ready = false
3319 var waiting = []
3420
3521 var last = 0
@@ -113,5 +99,4 @@
11399 return img
114100 }
115101 }
116102 }
117-
modules_basic/avatar-name.jsView
@@ -1,6 +1,4 @@
1-
2-var signifier = require('../plugs').first(exports.signifier = [])
31 var h = require('hyperscript')
42
53 exports.needs = { signifier: 'first' }
64
modules_basic/avatar-profile.jsView
@@ -1,15 +1,7 @@
11 var h = require('hyperscript')
22 var pull = require('pull-stream')
33
4-//var plugs = require('../plugs')
5-//var avatar_image_link = plugs.first(exports.avatar_image_link = [])
6-//var avatar_action = plugs.map(exports.avatar_action = [])
7-//var avatar_edit = plugs.first(exports.avatar_edit = [])
8-
9-//var follows = plugs.first(exports.follows = [])
10-//var followers = plugs.first(exports.followers = [])
11-//
124 exports.needs = {
135 avatar_image_link: 'first',
146 avatar_action: 'map',
157 avatar_edit: 'first',
@@ -84,5 +76,4 @@
8476 )
8577 }
8678
8779 }
88-
modules_basic/avatar.jsView
@@ -1,6 +1,4 @@
1-var h = require('hyperscript')
2-var u = require('../util')
31
42 exports.needs = {
53 avatar_name: 'first',
64 avatar_image: 'first',
modules_basic/compose.jsView
@@ -1,19 +1,11 @@
11 'use strict'
22 const fs = require('fs')
33 const h = require('../h')
4-const u = require('../util')
54 const suggest = require('suggest-box')
65 const mentions = require('ssb-mentions')
76 const cont = require('cont')
87
9-//var plugs = require('../plugs')
10-//var suggest_mentions= plugs.asyncConcat(exports.suggest_mentions = [])
11-//var publish = plugs.first(exports.sbot_publish = [])
12-//var message_content = plugs.first(exports.message_content = [])
13-//var message_confirm = plugs.first(exports.message_confirm = [])
14-//var file_input = plugs.first(exports.file_input = [])
15-
168 exports.needs = {
179 suggest_mentions: 'map', //<-- THIS MUST BE REWRITTEN
1810 publish: 'first',
1911 message_content: 'first',
@@ -133,9 +125,9 @@
133125 var actions = h('section.actions', [
134126 fileInput, publishBtn
135127 ])
136128
137- var composer = h('Compose', {
129 + var composer = h('Compose', {
138130 className: opts.shrink === false ? '-expanded' : '-contracted'
139131 }, [
140132 textArea,
141133 actions
@@ -156,5 +148,4 @@
156148
157149 }
158150
159151 function id (e) { return e }
160-
modules_basic/feed.jsView
@@ -3,14 +3,8 @@
33 var h = require('hyperscript')
44 var pull = require('pull-stream')
55 var u = require('../util')
66
7-//var plugs = require('../plugs')
8-//var sbot_user_feed = plugs.first(exports.sbot_user_feed = [])
9-//var message_render = plugs.first(exports.message_render = [])
10-//var avatar_profile = plugs.first(exports.avatar_profile = [])
11-//var signifier = plugs.first(exports.signifier = [])
12-
137 exports.needs = {
148 sbot_user_feed: 'first',
159 message_render: 'first',
1610 avatar_profile: 'first',
modules_basic/follow.jsView
@@ -1,15 +1,6 @@
11 var h = require('hyperscript')
2-var u = require('../util')
3-var pull = require('pull-stream')
42
5-//var plugs = require('../plugs')
6-//var avatar = plugs.first(exports.avatar = [])
7-//var avatar_name = plugs.first(exports.avatar_name = [])
8-//var avatar_link = plugs.first(exports.avatar_link = [])
9-//var message_confirm = plugs.first(exports.message_confirm = [])
10-//var follower_of = plugs.first(exports.follower_of = [])
11-
123 //render a message when someone follows someone,
134 //so you see new users
145 function isRelated(value, name) {
156 return value ? name : value === false ? 'un'+name : ''
modules_basic/invite.jsView
@@ -5,13 +5,8 @@
55 var h = require('hyperscript')
66
77 var Progress = require('hyperprogress')
88
9-//var plugs = require('../plugs')
10-//var sbot_publish = plugs.first(exports.sbot_publish = [])
11-//var sbot_gossip_connect = plugs.first(exports.sbot_gossip_connect = [])
12-//var follower_of = plugs.first(exports.follower_of = [])
13-
149 exports.needs = {
1510 sbot_publish: 'first',
1611 sbot_gossip_connect: 'first',
1712 follower_of: 'first',
modules_basic/like.jsView
@@ -1,15 +1,7 @@
1-
21 var h = require('hyperscript')
3-var u = require('../util')
42 var pull = require('pull-stream')
53
6-var plugs = require('../plugs')
7-
8-//var message_confirm = plugs.first(exports.message_confirm = [])
9-//var message_link = plugs.first(exports.message_link = [])
10-//var sbot_links = plugs.first(exports.sbot_links = [])
11-
124 exports.needs = {
135 avatar_name: 'first',
146 message_confirm: 'first',
157 message_link: 'first',
modules_basic/message-link.jsView
@@ -1,11 +1,7 @@
11 var h = require('hyperscript')
22 var ref = require('ssb-ref')
33
4-//var first = require('../plugs').first
5-//var sbot_get = first(exports.sbot_get = [])
6-//var message_name = first(exports.message_name = [])
7-
84 exports.needs = {
95 message_name: 'first'
106 }
117
modules_basic/message.jsView
@@ -1,7 +1,5 @@
11 const fs = require('fs')
2-const pull = require('pull-stream')
3-const u = require('../util')
42 const h = require('../h')
53
64 exports.needs = {
75 avatar_name: 'first',
modules_basic/names.jsView
@@ -5,12 +5,8 @@
55 function all(stream, cb) {
66 pull(stream, pull.collect(cb))
77 }
88
9-//var plugs = require('../plugs')
10-//var sbot_links2 = plugs.first(exports.sbot_links2 = [])
11-//var sbot_query = plugs.first(exports.sbot_query = [])
12-//
139 exports.needs = {
1410 sbot_links2: 'first',
1511 sbot_query: 'first'
1612 }
modules_basic/post.jsView
@@ -1,16 +1,8 @@
1-var markdown = require('ssb-markdown')
21 var h = require('hyperscript')
3-var u = require('../util')
4-var ref = require('ssb-ref')
52
63 //render a message
74
8-//var plugs = require('../plugs')
9-//var message_link = plugs.first(exports.message_link = [])
10-//var markdown = plugs.first(exports.markdown = [])
11-//
12-
135 exports.needs = {
146 message_link: 'first',
157 markdown: 'first'
168 }
modules_basic/pub.jsView
@@ -1,9 +1,6 @@
11 var h = require('hyperscript')
2-//var plugs = require('../plugs')
3-//var avatar_name = plugs.first(exports.avatar_name = [])
4-//var avatar_link = plugs.first(exports.avatar_link = [])
5-//
2 +
63 exports.needs = {
74 avatar_name: 'first',
85 avatar_link: 'first'
96 }
modules_basic/public.jsView
@@ -2,13 +2,8 @@
22 var u = require('../util')
33 var pull = require('pull-stream')
44 var Scroller = require('pull-scroll')
55
6-//var plugs = require('../plugs')
7-//var message_render = plugs.first(exports.message_render = [])
8-//var message_compose = plugs.first(exports.message_compose = [])
9-//var sbot_log = plugs.first(exports.sbot_log = [])
10-
116 exports.needs = {
127 message_render: 'first',
138 message_compose: 'first',
149 sbot_log: 'first',
modules_basic/relationships.jsView
@@ -1,11 +1,6 @@
11 var pull = require('pull-stream')
2-//var plugs = require('../plugs')
32
4-//var sbot_query = plugs.first(exports.sbot_query = [])
5-
6-//this is a bit crude, and doesn't actually show unfollows yet.
7-
83 function makeQuery (a, b) {
94 return {"$filter": {
105 value: {
116 author: a,
modules_basic/search-box.jsView
@@ -1,22 +1,14 @@
11 'use strict'
22 var cont = require('cont')
33 var h = require('hyperscript')
44 var suggest = require('suggest-box')
5-var pull = require('pull-stream')
65
7-//var plugs = require('../plugs')
8-//var sbot_query = plugs.first(exports.sbot_query = [])
9-//var sbot_links2 = plugs.first(exports.sbot_links2 = [])
10-//var suggest_search = plugs.asyncConcat(exports.suggest_search = [])
11-
126 exports.needs = {
137 sbot_query: 'first', sbot_links2: 'first',
148 suggest_search: 'map' //REWRITE
159 }
1610
17-var channels = []
18-
1911 exports.gives = 'search_box'
2012
2113 exports.create = function (api) {
2214
@@ -54,10 +46,8 @@
5446 search.value = sigil
5547 }
5648 }
5749
58- var suggestions = {}
59-
6050 // delay until the element has a parent
6151 setTimeout(function () {
6252 suggestBox = suggest(search, function (word, cb) {
6353 cont.para(api.suggest_search(word))
modules_basic/setup.jsView
@@ -1,17 +1,8 @@
11
22 var h = require('hyperscript')
33 var pull = require('pull-stream')
44
5-//var plugs = require('../plugs')
6-//
7-//var avatar_edit = plugs.first(exports.avatar_edit = [])
8-//var invite_parse = plugs.first(exports.invite_parse = [])
9-//var invite_accept = plugs.first(exports.invite_accept = [])
10-//var sbot_progress = plugs.first(exports.sbot_progress = [])
11-//var sbot_query = plugs.first(exports.sbot_query = [])
12-//var avatar = plugs.first(exports.avatar = [])
13-
145 exports.needs = {
156 avatar: 'first',
167 avatar_edit: 'first',
178 invite_parse: 'first',
@@ -128,18 +119,15 @@
128119 return joined
129120 }
130121
131122 exports.screen_view = function (path) {
132-
133123 if(path !== '/setup') return
134124
135125 var id = require('../keys').id
136126
137127 //set up an avatar
138128
139-
140129 var status = h('span')
141- var invite = h('input', {placeholder: 'invite code'})
142130 return h('div.scroller', h('div.scroller__wrapper',
143131 h('h1', 'welcome to patchbay!'),
144132 h('div',
145133 'please choose avatar image and name',
modules_basic/suggest-mentions.jsView
@@ -1,14 +1,5 @@
1-var pull = require('pull-stream')
2-function isImage (filename) {
3- return /\.(gif|jpg|png|svg)$/i.test(filename)
4-}
51
6-//var sbot_links2 = require('../plugs').first(exports.sbot_links2 = [])
7-//var blob_url = require('../plugs').first(exports.blob_url = [])
8-//var signified = require('../plugs').first(exports.signified = [])
9-//var builtin_tabs = require('../plugs').map(exports.builtin_tabs = [])
10-
112 exports.needs = {
123 sbot_links2: 'first',
134 blob_url: 'first',
145 signified: 'first',
modules_basic/thread.jsView
@@ -1,11 +1,8 @@
11 var pull = require('pull-stream')
2-var Cat = require('pull-cat')
32 var sort = require('ssb-sort')
43 var ref = require('ssb-ref')
54 var h = require('hyperscript')
6-var u = require('../util')
7-var Scroller = require('pull-scroll')
85 var self_id = require('../keys').id
96
107 function once (cont) {
118 var ended = false
@@ -20,18 +17,8 @@
2017 })
2118 }
2219 }
2320
24-//var plugs = require('../plugs')
25-//
26-//var message_render = plugs.first(exports.message_render = [])
27-//var message_name = plugs.first(exports.message_name = [])
28-//var message_compose = plugs.first(exports.message_compose = [])
29-//var message_unbox = plugs.first(exports.message_unbox = [])
30-//
31-//var sbot_get = plugs.first(exports.sbot_get = [])
32-//var sbot_links = plugs.first(exports.sbot_links = [])
33-
3421 exports.needs = {
3522 message_render: 'first',
3623 message_name: 'first',
3724 message_compose: 'first',
modules_core/app.jsView
@@ -1,5 +1,4 @@
1-var plugs = require('../plugs')
21 var h = require('hyperscript')
32 var insertCss = require('insert-css')
43
54 module.exports = {
@@ -24,9 +23,8 @@
2423 function hash() {
2524 return window.location.hash.substring(1)
2625 }
2726
28- console.log(hash() || 'tabs')
2927 var view = api.screen_view(hash() || 'tabs')
3028
3129 var screen = h('div.screen.column', view)
3230
modules_core/file-input.jsView
@@ -1,5 +1,4 @@
1-var u = require('../util')
21 var h = require('hyperscript')
32 var pull = require('pull-stream')
43 var mime = require('simple-mime')('application/octect-stream')
54 var split = require('split-buffer')
modules_core/menu.jsView
@@ -1,13 +1,12 @@
1-var plugs = require('../plugs')
21 var h = require('hyperscript')
32
43 module.exports = {
54 needs: {menu_items: 'map'},
65 gives: {connection_status: true, menu: true},
76 create: function (api) {
87
9- var menu_items = api.menu_items //plugs.map(exports.menu_items = [])
8 + var menu_items = api.menu_items
109
1110 var status = h('div.status.error') //start off disconnected
1211 var list = h('div.menu.column', {style: 'display: none;'})
1312
modules_core/message-confirm.jsView
@@ -1,13 +1,10 @@
11 var fs = require('fs')
22 var lightbox = require('hyperlightbox')
33 var h = require('../h')
4-var u = require('../util')
54 var self_id = require('../keys').id
65 //publish or add
76
8-var plugs = require('../plugs')
9-
107 exports.needs = {
118 publish: 'first',
129 message_render: 'first',
1310 avatar: 'first',
modules_core/styles.jsView
@@ -1,5 +1,4 @@
1-var h = require('../h')
21 var compile = require('micro-css')
32 var fs = require('fs')
43 var Path = require('path')
54
modules_core/tabs.jsView
@@ -1,8 +1,6 @@
11 var Tabs = require('hypertabs')
22 var h = require('hyperscript')
3-var pull = require('pull-stream')
4-var u = require('../util')
53 var keyscroll = require('../keyscroll')
64 var open = require('open-external')
75
86 function ancestor (el) {
@@ -10,13 +8,8 @@
108 if(el.tagName !== 'A') return ancestor(el.parentElement)
119 return el
1210 }
1311
14-//var plugs = require('../plugs')
15-//var screen_view = plugs.first(exports._screen_view = [])
16-//var search_box = plugs.first(exports.search_box = [])
17-//var menu = plugs.first(exports.menu = [])
18-
1912 exports.needs = {screen_view: 'first', search_box: 'first', menu: 'first', 'external_confirm':'first'}
2013
2114 exports.gives = 'screen_view'
2215
modules_extra/audio-mp3.jsView
@@ -4,14 +4,8 @@
44 var ref = require('ssb-ref');
55
66 //render a message
77
8-//var plugs = require('../plugs');
9-//var message_link = plugs.first(exports.message_link = []);
10-//var message_confirm = plugs.first(exports.message_confirm = []);
11-//var sbot_links = plugs.first(exports.sbot_links = []);
12-//var blob_url = plugs.first(exports.blob_url = []);
13-//
148 exports.needs = {
159 // message_link: 'first',
1610 // message_confirm: 'first',
1711 // sbot_links: 'first',
modules_extra/channel.jsView
@@ -1,6 +1,5 @@
11 var h = require('hyperscript')
2-var u = require('../util')
32 var pull = require('pull-stream')
43 var Scroller = require('pull-scroll')
54 var mfr = require('map-filter-reduce')
65
modules_extra/emoji.jsView
@@ -1,11 +1,7 @@
11 var emojis = require('emoji-named-characters')
22 var emojiNames = Object.keys(emojis)
33
4-//var plugs = require('../plugs')
5-//var blob_url = plugs.first(exports.blob_url = [])
6-//
7-
84 exports.needs = { blob_url: 'first' }
95 exports.gives = { emoji_names: true, emoji_url: true }
106
117 exports.create = function (api) {
modules_extra/git-ssb.jsView
@@ -2,13 +2,8 @@
22 var u = require('../util')
33 var pull = require('pull-stream')
44 var Scroller = require('pull-scroll')
55
6-//var plugs = require('../plugs')
7-//var message_render = plugs.first(exports.message_render = [])
8-//var message_compose = plugs.first(exports.message_compose = [])
9-//var sbot_log = plugs.first(exports.sbot_log = [])
10-
116 exports.needs = {
127 message_render: 'first',
138 message_compose: 'first',
149 sbot_log: 'first'
modules_extra/git.jsView
@@ -9,18 +9,8 @@
99 var getAvatar = require('ssb-avatar')
1010 var KVGraph = require('kvgraph')
1111 var mergeRepo = require('ssb-git/merge')
1212
13-//var plugs = require('../plugs')
14-//var message_link = plugs.first(exports.message_link = [])
15-//var message_confirm = plugs.first(exports.message_confirm = [])
16-//var message_compose = plugs.first(exports.message_compose = [])
17-//var sbot_links = plugs.first(exports.sbot_links = [])
18-//var sbot_links2 = plugs.first(exports.sbot_links2 = [])
19-//var sbot_get = plugs.first(exports.sbot_get = [])
20-//var avatar_name = plugs.first(exports.avatar_name = [])
21-//var markdown = plugs.first(exports.markdown = [])
22-
2313 exports.needs = {
2414 message_link: 'first',
2515 message_confirm: 'first',
2616 message_compose: 'first',
modules_extra/key.jsView
@@ -1,15 +1,6 @@
11 var h = require('hyperscript')
2-var u = require('../util')
3-var pull = require('pull-stream')
4-var Scroller = require('pull-scroll')
52
6-//var plugs = require('../plugs')
7-// var message_render = plugs.first(exports.message_render = [])
8-// var message_compose = plugs.first(exports.message_compose = [])
9-// var sbot_log = plugs.first(exports.sbot_log = [])
10-
11-
123 exports.gives = {
134 menu_items: true, screen_view: true
145 }
156
@@ -22,10 +13,10 @@
2213 if(path === '/key') {
2314 if(process.title === 'browser') {
2415 var importKey = h('textarea', {placeholder: 'import an existing public/private key', name: 'textarea'})
2516 var importRemote = h('textarea', {placeholder: 'import an existing remote', name: 'textarea'})
26- var content = h('div.column.scroller__content')
27- var div = h('div.column.scroller',
17 +
18 + return h('div.column.scroller',
2819 {style: {'overflow':'auto'}},
2920 h('div.scroller__wrapper',
3021 h('div.column.scroller__content',
3122 h('div.message',
@@ -50,9 +41,8 @@
5041 )
5142 )
5243 )
5344 )
54- return div
5545 } else {
5646 return h('p', 'Your key is saved at .ssb/secret')
5747 }
5848 }
modules_extra/meta-image.jsView
@@ -1,17 +1,8 @@
1-var markdown = require('ssb-markdown');
21 var h = require('hyperscript');
3-var u = require('../util');
4-var ref = require('ssb-ref');
52
63 //render a message
74
8-//var plugs = require('../plugs');
9-//var message_link = plugs.first(exports.message_link = []);
10-//var message_confirm = plugs.first(exports.message_confirm = []);
11-//var sbot_links = plugs.first(exports.sbot_links = []);
12-//var blob_url = plugs.first(exports.blob_url = []);
13-//
145 exports.needs = { blob_url: 'first' }
156 exports.gives = 'message_content'
167
178 exports.create = function (api) {
modules_extra/music-release-cc.jsView
@@ -4,15 +4,8 @@
44 var ref = require('ssb-ref');
55
66 //render a message
77
8-//var plugs = require('../plugs');
9-//var message_link = plugs.first(exports.message_link = []);
10-//var message_confirm = plugs.first(exports.message_confirm = []);
11-//var sbot_links = plugs.first(exports.sbot_links = []);
12-//var blob_url = plugs.first(exports.blob_url = []);
13-//
14-
158 exports.needs = { blob_url: 'first' }
169 exports.gives = 'message_content'
1710
1811 exports.create = function (api) {
modules_extra/music-release.jsView
@@ -4,13 +4,8 @@
44 var ref = require('ssb-ref');
55
66 //render a message
77
8-//var plugs = require('../plugs');
9-//var message_link = plugs.first(exports.message_link = []);
10-//var message_confirm = plugs.first(exports.message_confirm = []);
11-//var sbot_links = plugs.first(exports.sbot_links = []);
12-//
138 exports.gives = 'message_content'
149
1510 exports.create = function () {
1611
modules_extra/network.jsView
@@ -7,12 +7,8 @@
77 Struct, Value, Dict,
88 dictToCollection, map: mutantMap, when, computed
99 } = require('@mmckegg/mutant')
1010
11-//var avatar = plugs.first(exports.avatar = [])
12-//var sbot_gossip_peers = plugs.first(exports.sbot_gossip_peers = [])
13-//var sbot_gossip_connect = plugs.first(exports.sbot_gossip_connect = [])
14-
1511 exports.needs = {
1612 avatar_image_link: 'first',
1713 avatar_name_link: 'first',
1814 sbot_gossip_peers: 'first',
modules_extra/notifications.jsView
@@ -3,18 +3,11 @@
33 var u = require('../util')
44 var pull = require('pull-stream')
55 var Scroller = require('pull-scroll')
66 var paramap = require('pull-paramap')
7-var plugs = require('../plugs')
87 var cont = require('cont')
98 var ref = require('ssb-ref')
109
11-//var message_render = plugs.first(exports.message_render = [])
12-//var sbot_log = plugs.first(exports.sbot_log = [])
13-//var sbot_get = plugs.first(exports.sbot_get = [])
14-//var sbot_user_feed = plugs.first(exports.sbot_user_feed = [])
15-//var message_unbox = plugs.first(exports.message_unbox = [])
16-
1710 exports.needs = {
1811 message_render: 'first',
1912 sbot_log: 'first',
2013 sbot_get: 'first',
modules_extra/query.jsView
@@ -1,10 +1,8 @@
11 var h = require('hyperscript')
22 var pull = require('pull-stream')
33 var HJSON = require('hjson')
44
5-//var sbot_query = require('../plugs').first(exports.sbot_query = [])
6-
75 exports.needs = { sbot_query: 'first' }
86
97 exports.gives = {
108 menu_items: true,
modules_extra/raw.jsView
@@ -1,13 +1,6 @@
11 var h = require('hyperscript')
2-var u = require('../util')
3-var pull = require('pull-stream')
4-var Scroller = require('pull-scroll')
52
6-var plugs = require('../plugs')
7-//var message_render = plugs.first(exports.message_render = [])
8-//var message_compose = plugs.first(exports.message_compose = [])
9-
103 // from ssb-ref
114 var refRegex = /((?:@|%|&)[A-Za-z0-9\/+]{43}=\.[\w\d]+)/g
125
136 exports.gives = 'message_meta'
modules_extra/search.jsView
@@ -3,12 +3,8 @@
33 var pull = require('pull-stream')
44 var Scroller = require('pull-scroll')
55 var TextNodeSearcher = require('text-node-searcher')
66
7-//var plugs = require('../plugs')
8-//var message_render = plugs.first(exports.message_render = [])
9-//var sbot_log = plugs.first(exports.sbot_log = [])
10-
117 exports.needs = {
128 message_render: 'first',
139 sbot_log: 'first'
1410 }
modules_extra/split.jsView
@@ -1,10 +1,6 @@
11 var h = require('hyperscript')
22
3-//var screen_view =
4-// require('../plugs').first(exports._screen_view = [])
5-
6-
73 exports.needs = {
84 screen_view: 'first'
95 }
106
modules_extra/suggest-emoji.jsView
@@ -1,7 +1,4 @@
1-//var plugs = require('../plugs')
2-//var emoji_url = plugs.first(exports.emoji_url = [])
3-//var emoji_names = plugs.first(exports.emoji_names = [])
41
52 exports.needs = {
63 emoji_url: 'first',
74 emoji_names: 'first'

Built with git-ssb-web