diff --git a/Dockerfile b/Dockerfile index 5d184a4..d30643a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,13 @@ COPY . /app/ RUN yarn && yarn build -#RUN yarn global add yaml2json +RUN yarn global add yaml2json yaml-doctor -#RUN yaml2json relays.yaml > dist/relays.json +RUN yaml-doctor relays.yaml --fix + +RUN echo $(cat relays.yaml) + +RUN yaml2json relays.yaml > dist/relays.json FROM nginx:stable-alpine as nginx-nostr-relay-registry diff --git a/package.json b/package.json index 213b559..91cd1d7 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,13 @@ "private": true, "scripts": { "build": "vue-cli-service build", - "prebuild": "yarn get:relays && yarn get:geo", "get:relays": "node ./scripts/relays.js", "get:geo": "node ./scripts/geo.js", "serve": "vue-cli-service serve --host localhost", "lint": "vue-cli-service lint", "docker": "yarn docker:build && yarn docker:tag && yarn docker:push", "docker:up": "docker-compose up", - "docker:build": "docker build . -t nostr-relay-status", + "docker:build": "docker build . -t nostr-relay-status --progress=plain", "docker:tag": "docker tag nostr-relay-status:latest registry.digitalocean.com/sandwich-farm/nostr-relay-status", "docker:push": "docker push registry.digitalocean.com/sandwich-farm/nostr-relay-status" }, @@ -35,6 +34,7 @@ "nostr": "0.2.5", "nostr-relay-inspector": "0.0.25", "nostr-tools": "1.1.1", + "object-hash": "3.0.0", "object-sizeof": "1.6.3", "onion-regex": "2.0.8", "pinia": "2.0.28", diff --git a/relays.yaml b/relays.yaml index ffcf0d9..d7d8ac3 100644 --- a/relays.yaml +++ b/relays.yaml @@ -210,4 +210,6 @@ relays: - wss://nostr.kollider.xyz - wss://relay.nostr.band - wss://relay.nosphr.com + - wss://rsslay.nostr.moe + - wss://relay.nostr.scot - wss://student.chadpolytechnic.com diff --git a/src/components/partials/AboutNostrWatch.vue b/src/components/partials/AboutNostrWatch.vue index edc0d84..e13df5a 100644 --- a/src/components/partials/AboutNostrWatch.vue +++ b/src/components/partials/AboutNostrWatch.vue @@ -6,8 +6,9 @@
I launched nostr.watch as a prototype for fun and a few weeks later nostr took off. Built - with Vue3/Pinia, Tailwind and nostr-relay-inspector. - Thank you for giving me something positive to focus on. + with Vue3/Pinia, Tailwind and nostr-tools, + nostr-js and nostr-relay-inspector. Fork of + nostr-relay-registry; rewrite.
sandwich diff --git a/src/components/partials/DarkMode.vue b/src/components/partials/DarkMode.vue index c93204f..cbfb659 100644 --- a/src/components/partials/DarkMode.vue +++ b/src/components/partials/DarkMode.vue @@ -14,7 +14,7 @@ import { useDark, useToggle } from "@vueuse/core"; const isDark = useDark({ selector: "html", //element to add attribute to - attribute: "theme", // attribute name + // attribute: "theme", // attribute name valueDark: "dark", // attribute value for dark mode valueLight: "light", // attribute value for light mode }) diff --git a/src/components/relays/blocks/MapSummary.vue b/src/components/relays/blocks/MapSummary.vue index 7e59f41..1feacf3 100644 --- a/src/components/relays/blocks/MapSummary.vue +++ b/src/components/relays/blocks/MapSummary.vue @@ -41,7 +41,7 @@
{{ relay }} - Status Page + Status Page diff --git a/src/components/relays/blocks/RelaysResultTable.vue b/src/components/relays/blocks/RelaysResultTable.vue index aa9c228..6ab66b9 100644 --- a/src/components/relays/blocks/RelaysResultTable.vue +++ b/src/components/relays/blocks/RelaysResultTable.vue @@ -1,5 +1,5 @@