Commit ef3dae6fb3beca286ae899aae35601e349f93c05
adding plugins
andre alves garzia committed on 6/28/2018, 11:26:43 PMParent: 127f1e06b127fbdfba1b9259fa62bd0a6bdb3050
Files changed
README.md | changed |
package-lock.json | changed |
package.json | changed |
server.js | changed |
README.md | ||
---|---|---|
@@ -39,6 +39,6 @@ | ||
39 | 39 … | ### Running Setup (again) |
40 | 40 … | If anything went wrong during the setup or if you rename the folder this app is in, you can redo the setup with: |
41 | 41 … | |
42 | 42 … | ``` |
43 | -$ npm run install | |
43 … | +$ npm install | |
44 | 44 … | ``` |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 167968 bytes New file size: 168702 bytes |
package.json | ||
---|---|---|
@@ -20,16 +20,18 @@ | ||
20 | 20 … | "ecstatic": "^3.1.0", |
21 | 21 … | "minimist": "^1.2.0", |
22 | 22 … | "node-notifier": "^5.2.1", |
23 | 23 … | "scuttlebot": "10.4.10", |
24 … | + "ssb-about": "^0.1.2", | |
24 | 25 … | "ssb-backlinks": "^0.7.1", |
25 | 26 … | "ssb-blobs": "^1.1.4", |
26 | 27 … | "ssb-config": "^2.2.0", |
27 | 28 … | "ssb-ebt": "^2.0.0", |
28 | 29 … | "ssb-friends": "^2.4.0", |
29 | 30 … | "ssb-keys": "^7.0.13", |
30 | 31 … | "ssb-names": "^3.1.0", |
31 | 32 … | "ssb-ooo": "^1.0.7", |
33 … | + "ssb-query": "^2.1.0", | |
32 | 34 … | "ssb-web-resolver": "^1.1.2", |
33 | 35 … | "ssb-ws": "^2.0.0", |
34 | 36 … | "systray": "^1.0.3" |
35 | 37 … | }, |
server.js | |||
---|---|---|---|
@@ -23,11 +23,8 @@ | |||
23 | 23 … | } | |
24 | 24 … | ||
25 | 25 … | const manifestFile = path.join(config.path, 'manifest.json') | |
26 | 26 … | ||
27 | -// special server command: | ||
28 | -// import sbot and start the server | ||
29 | - | ||
30 | 27 … | const createSbot = require('scuttlebot') | |
31 | 28 … | // .use(require('scuttlebot/plugins/plugins')) | |
32 | 29 … | .use(require('scuttlebot/plugins/master')) | |
33 | 30 … | .use(require('scuttlebot/plugins/gossip')) | |
@@ -35,25 +32,16 @@ | |||
35 | 32 … | .use(require('ssb-friends')) | |
36 | 33 … | .use(require('ssb-blobs')) | |
37 | 34 … | .use(require('scuttlebot/plugins/invite')) | |
38 | 35 … | .use(require('scuttlebot/plugins/local')) | |
39 | - // .use(require('scuttlebot/plugins/logging')) | ||
40 | - // .use(require('scuttlebot/plugins/private')) | ||
41 | - // .use(require('ssb-query')) | ||
42 | - // .use(require('ssb-links')) | ||
36 … | + .use(require('ssb-query')) | ||
43 | 37 … | .use(require('ssb-ooo')) | |
44 | 38 … | .use(require('ssb-ebt')) | |
45 | 39 … | .use(require('ssb-ws')) | |
46 | 40 … | .use(require('ssb-names')) | |
47 | 41 … | .use(require('ssb-backlinks')) | |
42 … | + .use(require('ssb-about')) | ||
48 | 43 … | ||
49 | -// http.createServer( | ||
50 | -// serve({ root: path.resolve('../webextension/build/') }) | ||
51 | -// ).listen(3013) | ||
52 | - | ||
53 | -// add third-party plugins | ||
54 | -// require('./plugins/plugins').loadUserPlugins(createSbot, config) | ||
55 | - | ||
56 | 44 … | // start server | |
57 | 45 … | ||
58 | 46 … | config.keys = keys | |
59 | 47 … | const server = createSbot(config) | |
@@ -64,9 +52,9 @@ | |||
64 | 52 … | const icon = fs.readFileSync(path.join(__dirname, `icon.${process.platform === 'win32' ? 'ico' : 'png'}`)) | |
65 | 53 … | const tray = new SysTray({ | |
66 | 54 … | menu: { | |
67 | 55 … | icon: icon.toString('base64'), | |
68 | - title: 'Secure Scuttlebutt', | ||
56 … | + title: 'Scuttle-Shell', | ||
69 | 57 … | tooltip: 'Secure Scuttlebutt tray app', | |
70 | 58 … | items: [ | |
71 | 59 … | ||
72 | 60 … | { |
Built with git-ssb-web