git ssb

7+

dinoworm 🐛 / patchcore



Commit cc390daa09626dec00f9649bd2685152e9466432

run standard --fix

Matt McKegg committed on 10/19/2017, 2:30:12 AM
Parent: 19df811a89f199ca6aa042c09ff9aeaa2e7ea1f8

Files changed

contact/obs.jschanged
feed/pull/channel.jschanged
feed/pull/public.jschanged
feed/pull/rollup.jschanged
feed/pull/type.jschanged
message/html/render/channel.jschanged
message/html/render/issue.jschanged
message/html/render/post.jschanged
message/html/render/vote.jschanged
contact/obs.jsView
@@ -3,9 +3,9 @@
33 var pull = require('pull-stream')
44 var ref = require('ssb-ref')
55
66 exports.needs = nest({
7- 'sbot.pull.stream': 'first',
7 + 'sbot.pull.stream': 'first'
88 })
99
1010 exports.gives = nest({
1111 'contact.obs': ['following', 'followers', 'blocking', 'blockers'],
feed/pull/channel.jsView
@@ -4,9 +4,9 @@
44
55 exports.gives = nest('feed.pull.channel')
66 exports.needs = nest({
77 'sbot.pull.backlinks': 'first',
8- 'message.sync.isBlocked': 'first',
8 + 'message.sync.isBlocked': 'first'
99 })
1010
1111 exports.create = function (api) {
1212 return nest('feed.pull.channel', function (channel) {
feed/pull/public.jsView
@@ -3,9 +3,9 @@
33
44 exports.gives = nest('feed.pull.public')
55 exports.needs = nest({
66 'sbot.pull.feed': 'first',
7- 'message.sync.isBlocked': 'first',
7 + 'message.sync.isBlocked': 'first'
88 })
99
1010 exports.create = function (api) {
1111 return nest('feed.pull.public', (opts) => {
feed/pull/rollup.jsView
@@ -13,9 +13,9 @@
1313 'backlinks.obs.for': 'first',
1414 'sbot.async.get': 'first',
1515 'message.sync.isBlocked': 'first',
1616 'message.sync.root': 'first',
17- 'message.sync.unbox': 'first',
17 + 'message.sync.unbox': 'first'
1818 })
1919
2020 exports.gives = nest('feed.pull.rollup', true)
2121
feed/pull/type.jsView
@@ -4,9 +4,9 @@
44
55 exports.gives = nest('feed.pull.type')
66 exports.needs = nest({
77 'sbot.pull.messagesByType': 'first',
8- 'message.sync.isBlocked': 'first',
8 + 'message.sync.isBlocked': 'first'
99 })
1010
1111 exports.create = function (api) {
1212 return nest('feed.pull.type', (type) => {
message/html/render/channel.jsView
@@ -17,15 +17,15 @@
1717 render: true
1818 }
1919 })
2020
21-exports.create = function(api) {
21 +exports.create = function (api) {
2222 return nest('message.html', {
2323 canRender: isRenderable,
2424 render: channel
2525 })
2626
27- function channel(msg, opts) {
27 + function channel (msg, opts) {
2828 if (!isRenderable(msg)) return
2929 var element = api.message.html.layout(msg, extend({
3030 content: renderContent(msg),
3131 layout: 'mini'
@@ -35,17 +35,17 @@
3535 msg
3636 })
3737 }
3838
39- function renderContent(msg) {
39 + function renderContent (msg) {
4040 var channel = '#' + msg.value.content.channel
4141 return [
4242 msg.value.content.subscribed ? 'subscribed to channel' : 'unsubscribed from channel', ' ', h('a.channel', {
4343 href: channel
4444 }, channel)
4545 ]
4646 }
4747
48- function isRenderable(msg) {
48 + function isRenderable (msg) {
4949 return msg.value.content.type === 'channel' ? true : undefined
5050 }
5151 }
message/html/render/issue.jsView
@@ -17,12 +17,12 @@
1717 render: true
1818 }
1919 })
2020
21-exports.create = function(api) {
21 +exports.create = function (api) {
2222 return nest('message.html', {
2323 canRender: isRenderable,
24- render: function(msg, opts) {
24 + render: function (msg, opts) {
2525 if (!isRenderable(msg)) return
2626 var element = api.message.html.layout(msg, extend({
2727 content: messageContent(msg),
2828 layout: 'default'
@@ -33,13 +33,13 @@
3333 })
3434 }
3535 })
3636
37- function messageContent(data) {
37 + function messageContent (data) {
3838 if (!data.value.content || !data.value.content.text) return
3939 return h('div', {}, api.message.html.markdown(data.value.content))
4040 }
4141
42- function isRenderable(msg) {
42 + function isRenderable (msg) {
4343 return msg.value.content.type === 'issue' ? true : undefined
4444 }
4545 }
message/html/render/post.jsView
@@ -17,12 +17,12 @@
1717 render: true
1818 }
1919 })
2020
21-exports.create = function(api) {
21 +exports.create = function (api) {
2222 return nest('message.html', {
2323 canRender: isRenderable,
24- render: function(msg, opts) {
24 + render: function (msg, opts) {
2525 if (!isRenderable(msg)) return
2626 var element = api.message.html.layout(msg, extend({
2727 title: messageTitle(msg),
2828 content: msg.isBlocked ? 'Content of a blocked user' : messageContent(msg),
@@ -34,18 +34,18 @@
3434 })
3535 }
3636 })
3737
38- function isRenderable(msg) {
38 + function isRenderable (msg) {
3939 return (msg.value.content.type === 'post') ? true : undefined
4040 }
4141
42- function messageContent(data) {
42 + function messageContent (data) {
4343 if (!data.value.content || !data.value.content.text) return
4444 return h('div', {}, api.message.html.markdown(data.value.content))
4545 }
4646
47- function messageTitle(data) {
47 + function messageTitle (data) {
4848 var root = data.value.content && data.value.content.root
4949 return !root ? null : h('span', ['re: ', api.message.html.link(root)])
5050 }
5151 }
message/html/render/vote.jsView
@@ -33,9 +33,9 @@
3333
3434 return api.message.html.decorate(element, { msg })
3535 }
3636
37- function isRenderable(msg) {
37 + function isRenderable (msg) {
3838 return msg.value.content.type === 'vote' ? true : undefined
3939 }
4040
4141 function renderContent (msg) {

Built with git-ssb-web