Skip to content

Commit 67ac356

Browse files
committed
Renamed platform "nodejs-ssb" to "nodejs-db1" to be able to better support "nodejs-db2" in the future.
1 parent 6ae5345 commit 67ac356

File tree

26 files changed

+27
-27
lines changed

26 files changed

+27
-27
lines changed

ui/core/kernel/prefs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const loadSavedData = async () => {
3737
savedData.identities[keys.public] = {
3838
keys,
3939
remote,
40-
type: "nodejs-ssb"
40+
type: "nodejs-db1"
4141
}
4242
}
4343

File renamed without changes.

ui/core/platforms/nodejs-ssb/ssb.js renamed to ui/core/platforms/nodejs-db1/ssb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let isMessageHidden = () => false
4040
*/
4141
class NodeJsSSB {
4242
constructor() {
43-
this.platform = "nodejs-ssb"
43+
this.platform = "nodejs-db1"
4444

4545
// add basic built-in pipelines
4646
pipelines.thread.use(filterHasContent)
File renamed without changes.

ui/core/platforms/platforms.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
const { NodeJsSSB } = require("./nodejs-ssb/ssb.js")
1+
const { NodeJsDB1 } = require("./nodejs-db1/ssb.js")
22

33
//const { GoSSB } = require("./go-ssb/ssb.js")
44
//const { BrowserSSB } = require("./browser-ssb/ssb.js")
55

66

77
const platforms = {
8-
"nodejs-ssb": NodeJsSSB,
8+
"nodejs-db1": NodeJsDB1,
99
// "go-ssb": GoSSB,
1010
// "browser-ssb": BrowserSSB
1111
}
1212

13-
const setServerType = (serverType = "nodejs-ssb", keys, remote) => {
13+
const setServerType = (serverType = "nodejs-db1", keys, remote) => {
1414
if (platforms.hasOwnProperty(serverType)) {
1515
global.ssb = new platforms[serverType]()
1616
} else {

ui/packages/blog/blog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ patchfox.package({
77
name: "blog",
88
app: true,
99
icon: "web-page.svg",
10-
supportedPlatforms: ["nodejs-ssb"],
10+
supportedPlatforms: ["nodejs-db1"],
1111
view: BlogApp,
1212
import: BlogImport,
1313
compose: BlogCompose,

ui/packages/books/books.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ patchfox.package({
77
name: "books",
88
app: true,
99
icon: "books.svg",
10-
supportedPlatforms: ["nodejs-ssb"],
10+
supportedPlatforms: ["nodejs-db1"],
1111
view: BooksView,
1212
details: BookDetails,
1313
edit: BookEdit,

ui/packages/calendar/ExportView.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
let currentDate = new Date().getTime()
2323
console.log(currentDate)
2424
25-
if (ssb.platform === "nodejs-ssb") {
25+
if (ssb.platform === "nodejs-db1") {
2626
pull(
2727
sbot.messagesByType({
2828
type: "gathering",

ui/packages/calendar/TimelineView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const TimelineView = {
1818

1919
let currentDate = new Date().getTime()
2020

21-
if (ssb.platform === "nodejs-ssb") {
21+
if (ssb.platform === "nodejs-db1") {
2222
console.time("loading gatherings")
2323
pull(
2424
sbot.messagesByType({

0 commit comments

Comments
 (0)