git ssb

16+

Dominic / patchbay



Commit 85a8b3d45f98303f3632d90891a25f81d143eb88

Merge branch 'master' of github.com:ssbc/patchbay

mixmix committed on 9/19/2018, 3:14:51 AM
Parent: 707b786ad8b53851c240262677d2e164cf75bf59
Parent: 2132bd9fceb7210863db722bc5fd5ad1370adf84

Files changed

app/sync/initialise/settings.jschanged
app/sync/initialise/suggestionCaches.jschanged
config.jschanged
package-lock.jsonchanged
package.jsonchanged
app/sync/initialise/settings.jsView
@@ -11,9 +11,9 @@
1111 })
1212
1313 const defaults = {
1414 patchbay: {
15- defaultTabs: ['/public', '/inbox', '/notifications'],
15 + defaultTabs: ['/posts', '/inbox', '/notifications'],
1616 accessibility: {
1717 invert: false,
1818 saturation: 100,
1919 brightness: 100,
app/sync/initialise/suggestionCaches.jsView
@@ -10,8 +10,9 @@
1010 exports.create = function (api) {
1111 return nest('app.sync.initialise', init)
1212
1313 function init () {
14- api.about.async.suggest()
14 + // lazy load abouts on first use, can be quite heavy during startup
15 + //api.about.async.suggest()
1516 api.channel.async.suggest()
1617 }
1718 }
config.jsView
@@ -1,8 +1,9 @@
11 const nest = require('depnest')
22 const Config = require('ssb-config/inject')
33 const ssbKeys = require('ssb-keys')
44 const Path = require('path')
5 +const merge = require('lodash/merge')
56
67 const appName = process.env.ssb_appname || 'ssb'
78 const opts = appName === 'ssb'
89 ? null
@@ -14,12 +15,19 @@
1415 return nest('config.sync.load', () => {
1516 if (!config) {
1617 console.log('LOADING config')
1718 config = Config(appName, opts)
18- config.keys = ssbKeys.loadOrCreateSync(Path.join(config.path, 'secret'))
1919
20- // HACK: fix offline on windows by specifying 127.0.0.1 instead of localhost (default)
21- config.remote = `net:127.0.0.1:${config.port}~shs:${config.keys.id.slice(1).replace('.ed25519', '')}`
20 + const keys = ssbKeys.loadOrCreateSync(Path.join(config.path, 'secret'))
21 + const pubkey = keys.id.slice(1).replace(`.${keys.curve}`, '')
22 +
23 + config = merge(config, {
24 + connections: {
25 + incoming: { unix: [{ 'scope': 'local', 'transform': 'noauth' }] }
26 + },
27 + keys,
28 + remote: `unix:${Path.join(config.path, 'socket')}:~noauth:${pubkey}`
29 + })
2230 }
2331 return config
2432 })
2533 }
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 315118 bytes
New file size: 315117 bytes
package.jsonView
@@ -82,17 +82,17 @@
8282 "read-directory": "^3.0.0",
8383 "require-style": "^1.0.1",
8484 "scuttle-blog": "^1.0.1",
8585 "scuttle-poll": "^1.3.4",
86- "scuttlebot": "^11.4.2",
86 + "scuttlebot": "^12.0.0",
8787 "setimmediate": "^1.0.5",
8888 "ssb-about": "^0.1.2",
8989 "ssb-backlinks": "^0.7.3",
9090 "ssb-blobs": "^1.1.5",
9191 "ssb-chess": "^2.3.12",
9292 "ssb-chess-db": "^1.0.3",
93- "ssb-config": "^2.2.0",
94- "ssb-ebt": "^5.2.2",
93 + "ssb-config": "^2.3.0",
94 + "ssb-ebt": "^5.2.3",
9595 "ssb-friends": "^3.1.3",
9696 "ssb-keys": "^7.0.15",
9797 "ssb-meme": "^1.0.4",
9898 "ssb-mentions": "^0.5.0",

Built with git-ssb-web