Browse Source

connecting Oasis to SSB multiverse

psy 1 year ago
parent
commit
baa861a346
3 changed files with 6392 additions and 4 deletions
  1. 6386 1
      package-lock.json
  2. 5 2
      package.json
  3. 1 1
      src/views/index.js

File diff suppressed because it is too large
+ 6386 - 1
package-lock.json


+ 5 - 2
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@krakenslab/oasis",
-  "version": "0.1.7",
+  "version": "0.2.0",
   "description": "SNH-Oasis Project Network GUI",
   "repository": {
     "type": "git",
@@ -10,7 +10,7 @@
   "author": "psy <epsylon@riseup.net>",
   "main": "src/index.js",
   "bin": {
-    "oasis": "src/index.js"
+    "oasis": "node_modules/ssb-server/bin.js start && src/index.js"
   },
   "scripts": {
     "dev": "nodemon --inspect src/index.js --debug --no-open",
@@ -37,6 +37,8 @@
     "lodash": "^4.17.11",
     "lodash.shuffle": "^4.2.0",
     "markdown-it": "^12.0.2",
+    "muxrpc-validation": "^3",
+    "muxrpcli": "^3.1",
     "open": "^8.0.1",
     "piexifjs": "^1.0.4",
     "pretty-ms": "^7.0.1",
@@ -76,6 +78,7 @@
     "ssb-replicate": "^1.3.0",
     "ssb-room": "^1.3.0",
     "ssb-search": "^1.3.0",
+    "ssb-server": "^15.3.0",
     "ssb-tangle": "^1.0.1",
     "ssb-thread-schema": "^1.1.1",
     "ssb-unix-socket": "^1.0.0",

+ 1 - 1
src/views/index.js

@@ -139,8 +139,8 @@ const template = (titlePrefix, ...elements) => {
         ul(
           //navLink({ href: "/imageSearch", emoji: "✧", text: i18n.imageSearch }),
           navLink({ href: "/public/latest/extended", emoji: "∞", text: i18n.extended }),
-          navLink({ href: "/public/popular/day", emoji: "⌘", text: i18n.popular }),
           navLink({ href: "/public/latest/threads", emoji: "♺", text: i18n.threads }),
+          navLink({ href: "/public/popular/day", emoji: "⌘", text: i18n.popular }),
           navLink({ href: "/public/latest", emoji: "☄", text: i18n.latest }),
           navLink({ href: "/public/latest/topics", emoji: "ϟ", text: i18n.topics }),
           navLink({ href: "/public/latest/summaries", emoji: "※", text: i18n.summaries }),