|
@@ -9,6 +9,10 @@ const cli = require("./cli");
|
|
const fs = require("fs");
|
|
const fs = require("fs");
|
|
const exif = require("piexifjs");
|
|
const exif = require("piexifjs");
|
|
|
|
|
|
|
|
+const supports = require("./supports.js").supporting;
|
|
|
|
+const blocks = require("./supports.js").blocking;
|
|
|
|
+const recommends = require("./supports.js").recommending;
|
|
|
|
+
|
|
const defaultConfig = {};
|
|
const defaultConfig = {};
|
|
const defaultConfigFile = path.join(
|
|
const defaultConfigFile = path.join(
|
|
envPaths("oasis", { suffix: "" }).config,
|
|
envPaths("oasis", { suffix: "" }).config,
|
|
@@ -748,9 +752,6 @@ router
|
|
.get("/peers", async (ctx) => {
|
|
.get("/peers", async (ctx) => {
|
|
const theme = ctx.cookies.get("theme") || config.theme;
|
|
const theme = ctx.cookies.get("theme") || config.theme;
|
|
const getMeta = async ({ theme }) => {
|
|
const getMeta = async ({ theme }) => {
|
|
- const supports = require("./supports.js").supporting;
|
|
|
|
- const blocks = require("./supports.js").blocking;
|
|
|
|
- const recommends = require("./supports.js").recommending;
|
|
|
|
const peers = await meta.connectedPeers();
|
|
const peers = await meta.connectedPeers();
|
|
const peersWithNames = await Promise.all(
|
|
const peersWithNames = await Promise.all(
|
|
peers.map(async ([key, value]) => {
|
|
peers.map(async ([key, value]) => {
|