From e5ce98db07198d11e1e70f6d7c46d15bb4836ad9 Mon Sep 17 00:00:00 2001
From: Keep Creating Online <53631862+PR0M3TH3AN@users.noreply.github.com>
Date: Mon, 10 Feb 2025 08:01:01 -0500
Subject: [PATCH] updated gear icon on profile page and removed "make private"
option until i can get it working correctly
---
components/upload-modal.html | 4 +-
content/roadmap.md | 23 +++++++++
js/app.js | 94 ++++++++++++++++++++----------------
js/channelProfile.js | 9 ++--
4 files changed, 82 insertions(+), 48 deletions(-)
diff --git a/components/upload-modal.html b/components/upload-modal.html
index 368a420..fa01051 100644
--- a/components/upload-modal.html
+++ b/components/upload-modal.html
@@ -105,7 +105,7 @@
class="mt-1 block w-full rounded-md border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
>
-
+
`;
return;
}
-
+
// 2) Sort newest first
videos.sort((a, b) => b.created_at - a.created_at);
-
+
const fullAllEventsArray = Array.from(nostrClient.allEvents.values());
const fragment = document.createDocumentFragment();
const authorSet = new Set();
-
+
// 3) Build each card
videos.forEach((video, index) => {
if (!video.id || !video.title) {
console.error("Video missing ID/title:", video);
return;
}
-
+
authorSet.add(video.pubkey);
-
+
const nevent = window.NostrTools.nip19.neventEncode({ id: video.id });
- const shareUrl = `${window.location.pathname}?v=${encodeURIComponent(nevent)}`;
+ const shareUrl = `${window.location.pathname}?v=${encodeURIComponent(
+ nevent
+ )}`;
const canEdit = video.pubkey === this.pubkey;
const highlightClass =
video.isPrivate && canEdit
? "border-2 border-yellow-500"
: "border-none";
const timeAgo = this.formatTimeAgo(video.created_at);
-
+
// Check if there's an older version
let hasOlder = false;
if (canEdit && video.videoRootId) {
hasOlder = this.hasOlderVersion(video, fullAllEventsArray);
}
-
+
const revertButton = hasOlder
? `