git ssb

16+

Dominic / patchbay



Commit e3efce5ef814291ba8bc43f7ffe6b7348feee531

Merge branch 'master' into fix-emoji-size

mix irving committed on 5/16/2017, 5:46:06 AM
Parent: 8ba14ee45feb74b60293b50fd0c6af96edfa2ec9
Parent: 2a429433c0a7938918ac401bede1bf26762b197a

Files changed

README.mdchanged
app/html/app.jschanged
app/html/hypertabs.mcsschanged
app/html/page/thread.jschanged
main.jschanged
message/html/render/about.jschanged
package.jsonchanged
.babelrcadded
README.mdView
@@ -59,9 +59,9 @@
5959
6060 From inside the patchbay repo folder,
6161
6262 ```sh
63-npm install -g electron electro
63 +npm install -g electron electro font-awesome
6464 npm run rebuild
6565 npm start
6666 ```
6767
app/html/app.jsView
@@ -15,8 +15,9 @@
1515 tabs: 'first',
1616 page: 'first'
1717 },
1818 sync: {
19 + window: 'reduce',
1920 addPage: 'first',
2021 catchKeyboardShortcut: 'first'
2122 }
2223 },
@@ -26,8 +27,9 @@
2627 exports.create = function (api) {
2728 return nest('app.html.app', app)
2829
2930 function app () {
31 + window = api.app.sync.window(window)
3032 const css = values(api.styles.css()).join('\n')
3133 insertCss(css)
3234
3335 const initialTabs = ['/public', '/private', '/notifications']
@@ -67,4 +69,5 @@
6769 const keys = Object.keys(object)
6870 return keys.map(k => object[k])
6971 }
7072
73 +
app/html/hypertabs.mcssView
@@ -30,8 +30,14 @@
3030 margin-left: .6rem
3131 border: 1px gainsboro solid
3232 border-bottom: none
3333
34 + :hover {
35 + a.close {
36 + visibility: visible
37 + }
38 + }
39 +
3440 -selected {
3541 color: #222
3642 background-color: #fff
3743
app/html/page/thread.jsView
@@ -68,9 +68,9 @@
6868 placeholder: 'Write a reply',
6969 shrink: false
7070 })
7171 const content = h('section.content', map(messages, m => {
72- return api.message.html.render(resolve(m))
72 + return api.message.html.render(resolve(m), {pageId: id})
7373 }))
7474 const { container } = api.app.html.scroller({ prepend: header, content, append: composer })
7575
7676 container.classList.add('Thread')
main.jsView
@@ -1,19 +1,25 @@
11 const combine = require('depject')
22 const entry = require('depject/entry')
33 const nest = require('depnest')
44
5 +const context = require('patch-context')
56 const git = require('patch-git')
67 const horcrux = require('ssb-horcrux')
8 +const gatherings = require('patch-gatherings')
9 +const bayGatherings = require('patchbay-gatherings')
710 const patchbay = require('./')
811 const patchcore = require('patchcore')
912
1013 // polyfills
1114 require('setimmediate')
1215
1316 // from more specialized to more general
1417 const sockets = combine(
18 + context,
1519 git,
20 + bayGatherings, //adds menu items
21 + gatherings,
1622 horcrux,
1723 patchbay,
1824 patchcore
1925 )
message/html/render/about.jsView
@@ -19,8 +19,11 @@
1919
2020 function about (msg, opts) {
2121 if (msg.value.content.type !== 'about') return
2222
23 + const { name, description, image } = msg.value.content
24 + if (!name && !description && !image) return
25 +
2326 const element = api.message.html.layout(msg, extend({
2427 content: renderContent(msg),
2528 layout: 'default'
2629 }, opts))
@@ -35,14 +38,20 @@
3538 // TODO : build better normalizers
3639 if (image && ref.isBlob(image.link)) image = image.link
3740 about = about || link
3841
42 + const metaData = [
43 + when(name, h('div', [ h('strong', 'Name: '), name ])),
44 + when(description, h('div', [ h('strong', 'Description: '), description ])),
45 + when(image, h('img', { src: api.blob.sync.url(image) }))
46 + ]
47 +
3948 if (!ref.isFeed(about)) {
4049 return [
4150 'Describes ',
4251 h('a', { href: about }, [about.slice(0, 7), '...']),
4352 ' as: ',
44- name
53 + ...metaData
4554 ]
4655 }
4756
4857 const target = author === about
@@ -50,11 +59,9 @@
5059 : api.about.html.link(about)
5160
5261 return [
5362 'Declares the following about ', target,
54- when(name, h('div', [ h('strong', 'Name: '), name ])),
55- when(description, h('div', [ h('strong', 'Description: '), description ])),
56- when(image, h('img', { src: api.blob.sync.url(image) }))
63 + ...metaData
5764 ]
5865 }
5966 }
6067
package.jsonView
@@ -1,7 +1,7 @@
11 {
22 "name": "patchbay",
3- "version": "7.5.2",
3 + "version": "7.6.0",
44 "description": "patchbay 2, built on patchcore",
55 "main": "index.js",
66 "scripts": {
77 "lint": "standard",
@@ -45,12 +45,15 @@
4545 "hypertabs": "^4.2.0",
4646 "insert-css": "^2.0.0",
4747 "libnested": "^1.2.1",
4848 "micro-css": "^1.0.0",
49- "mutant": "^3.16.0",
49 + "mutant": "^3.18.0",
5050 "mutant-pull-reduce": "^1.0.1",
5151 "open-external": "^0.1.1",
52 + "patch-context": "^2.0.0",
53 + "patch-gatherings": "^2.3.0",
5254 "patch-git": "0.1.0",
55 + "patchbay-gatherings": "^1.1.0",
5356 "patchcore": "^0.5.0",
5457 "pull-abortable": "^4.1.1",
5558 "pull-cat": "^1.1.11",
5659 "pull-next": "1.0.0",
.babelrcView
@@ -1,0 +1,1 @@
1 +{}

Built with git-ssb-web