From 53a06be734a757dc08f27df5474023388a5e5533 Mon Sep 17 00:00:00 2001 From: Jason Buchanan Date: Fri, 7 Feb 2025 10:04:38 -0700 Subject: [PATCH 1/8] deps: updated `nostr-tools` and import --- package.json | 2 +- src/views/NewEditProjectView.vue | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 79af24ef..f5ca83ce 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "lru-cache": "^10.2.0", "luxon": "^3.4.4", "merkletreejs": "^0.3.11", - "nostr-tools": "^2.7.2", + "nostr-tools": "^2.10.4", "notiwind": "^2.0.2", "papaparse": "^5.4.1", "pina": "^0.20.2204228", diff --git a/src/views/NewEditProjectView.vue b/src/views/NewEditProjectView.vue index fe2811ed..2a99e914 100644 --- a/src/views/NewEditProjectView.vue +++ b/src/views/NewEditProjectView.vue @@ -230,17 +230,7 @@ import "leaflet/dist/leaflet.css"; import { AxiosError, AxiosRequestHeaders } from "axios"; import { DateTime } from "luxon"; import { hexToBytes } from "@noble/hashes/utils"; -// these core imports could also be included as "import type ..." -import { - EventTemplate, - UnsignedEvent, - VerifiedEvent, -} from "nostr-tools/lib/types/core"; -import { - accountFromExtendedKey, - extendedKeysFromSeedWords, -} from "nostr-tools/nip06"; -import { finalizeEvent, serializeEvent } from "nostr-tools/pure"; +import { finalizeEvent, serializeEvent } from "nostr-tools"; import { Component, Vue } from "vue-facing-decorator"; import { LMap, LMarker, LTileLayer } from "@vue-leaflet/vue-leaflet"; import { RouteLocationNormalizedLoaded, Router } from "vue-router"; From 781afd8954c345573b559b2fe81e1df919532d21 Mon Sep 17 00:00:00 2001 From: Jason Buchanan Date: Fri, 14 Feb 2025 09:58:55 -0700 Subject: [PATCH 2/8] feat(feed): better image formatting, to take up the width of the feed container --- src/views/HomeView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 2db6c187..84d5bfde 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -346,9 +346,9 @@ -
+ From 77ebd329562fdab18f773014321bc33150a41bfa Mon Sep 17 00:00:00 2001 From: Jason Buchanan Date: Fri, 14 Feb 2025 09:59:47 -0700 Subject: [PATCH 3/8] deps: updating the nostr-tools version from 2.7.2 to 2.10.4 to fix a bug I was seeing locally --- package-lock.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index ea064aef..2c15992a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,7 +54,7 @@ "lru-cache": "^10.2.0", "luxon": "^3.4.4", "merkletreejs": "^0.3.11", - "nostr-tools": "^2.7.2", + "nostr-tools": "^2.10.4", "notiwind": "^2.0.2", "papaparse": "^5.4.1", "pina": "^0.20.2204228", @@ -18905,9 +18905,10 @@ } }, "node_modules/nostr-tools": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/nostr-tools/-/nostr-tools-2.7.2.tgz", - "integrity": "sha512-Bq3Ug0SZFtgtL1+0wCnAe8AJtI7yx/00/a2nUug9SkhfOwlKS92Tef12iCK9FdwXw+oFZWMtRnSwcLayQso+xA==", + "version": "2.10.4", + "resolved": "https://registry.npmjs.org/nostr-tools/-/nostr-tools-2.10.4.tgz", + "integrity": "sha512-biU7sk+jxHgVASfobg2T5ttxOGGSt69wEVBC51sHHOEaKAAdzHBLV/I2l9Rf61UzClhliZwNouYhqIso4a3HYg==", + "license": "Unlicense", "dependencies": { "@noble/ciphers": "^0.5.1", "@noble/curves": "1.2.0", @@ -18917,7 +18918,7 @@ "@scure/bip39": "1.2.1" }, "optionalDependencies": { - "nostr-wasm": "v0.1.0" + "nostr-wasm": "0.1.0" }, "peerDependencies": { "typescript": ">=5.0.0" From be1146c7df6e2b2d021008c0c35485e5022e327f Mon Sep 17 00:00:00 2001 From: Jason Buchanan Date: Fri, 14 Feb 2025 11:46:17 -0700 Subject: [PATCH 4/8] fix(feed): long words or urls displayed in feed break the container layout --- src/views/HomeView.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 84d5bfde..245ca591 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -281,8 +281,8 @@ /> - - - + {{ giveDescription(record) }} From 0511bbc17b33d33ee3599c855b58ad7e78825f28 Mon Sep 17 00:00:00 2001 From: Jason Buchanan Date: Fri, 14 Feb 2025 11:52:20 -0700 Subject: [PATCH 5/8] feat(feed): adding image viewer for expanding images found in the feed instead of displaying in a new tab and taking the viewer away from the application --- src/components/ImageViewer.vue | 51 ++++++++++++++++++++++++++++++++++ src/views/HomeView.vue | 24 ++++++++++++++-- 2 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 src/components/ImageViewer.vue diff --git a/src/components/ImageViewer.vue b/src/components/ImageViewer.vue new file mode 100644 index 00000000..f821f0d5 --- /dev/null +++ b/src/components/ImageViewer.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 245ca591..44023e84 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -347,9 +347,16 @@
@@ -368,6 +375,8 @@ + + From f4c7805266ecb75630db59b8ddff308ec6ddce44 Mon Sep 17 00:00:00 2001 From: Jason Buchanan Date: Fri, 14 Feb 2025 13:06:36 -0700 Subject: [PATCH 6/8] feat(feed): improving the image viewer, to be more conventional, and also allowing the viewer to download the image on mobile with `...` control --- src/components/ImageViewer.vue | 78 +++++++++++++++++++++++++++------- src/views/HomeView.vue | 24 +++++++++-- 2 files changed, 83 insertions(+), 19 deletions(-) diff --git a/src/components/ImageViewer.vue b/src/components/ImageViewer.vue index f821f0d5..a2bf9f60 100644 --- a/src/components/ImageViewer.vue +++ b/src/components/ImageViewer.vue @@ -3,22 +3,38 @@
- - - expanded shared content + +
+ + + + +
+ + +
+
+ expanded shared content +
+
@@ -26,15 +42,45 @@ diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 44023e84..c62d3b43 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -282,7 +282,7 @@ -