41 Commits

Author SHA1 Message Date
austinkelsay
833ebf3475
remove duplicate zap threads components, consolidate it all into the parent details index page 2025-04-24 09:17:45 -05:00
kiwihodl
6ed7dda3ad
linted and removed duplicate import in VideoDetails 2025-04-22 13:29:41 -05:00
kiwihodl
3f000914d2
pull, add stashed changes to video details, update and commit, all that changed was a buffer import 2025-04-22 13:26:14 -05:00
Austin Kelsay
29e0445964
Update src/components/content/videos/VideoDetails.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-20 16:30:48 -05:00
austinkelsay
d979c8a5a8
fix dupe import 2025-04-20 16:17:37 -05:00
kiwi_
70e31bfe91
Update src/components/content/videos/VideoDetails.js
Adding the buffer import.

useEffect(() => {
  if (session?.user?.privkey) {
    const privkeyBuffer = Buffer.from(session.user.privkey, 'hex');
    setNsec(nip19.nsecEncode(privkeyBuffer));
  } else if (session?.user?.pubkey) {
    setNpub(nip19.npubEncode(session.user.pubkey));
  }
}, [session]);

The line const privkeyBuffer = Buffer.from(session.user.privkey, 'hex'); is using the global Buffer object. In Node.js environments, Buffer is available globally, but in the browser (where Next.js client components run), it isn't.
As the code rabbit mentioned, Webpack 5 (which Next.js uses) no longer automatically polyfills Node.js globals like Buffer. So when this code runs in the browser, it will throw a ReferenceError because Buffer is undefined.

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-20 16:14:51 -05:00
kiwihodl
ad218d8803
linted before rebase 2025-04-20 16:14:50 -05:00
kiwihodl
07e94fbb40
feat: implement ZapThreads comments for all content types (video, document, combined) and course pages 2025-04-20 16:14:50 -05:00
austinkelsay
a090898fad
lint everything lmao 2025-04-02 17:47:30 -05:00
austinkelsay
ed41f9a170
Standardize details layout on contet, consolidate options into new generic moreOptionsMenu component 2025-03-30 17:31:53 -05:00
austinkelsay
4cc94de801
Remove console logs 2024-11-14 16:12:25 -06:00
austinkelsay
db6abcdb9a
Styling fixes 2024-11-06 15:54:11 -06:00
austinkelsay
036b0767b4
Payment message for lesson in course when course has been purchased 2024-11-06 11:15:28 -06:00
austinkelsay
d4dfad856c
Fix button size 2024-11-05 16:01:12 -06:00
austinkelsay
31af64e36a
fix for unlocking all lessons in course when the course has been purchased 2024-11-05 15:56:12 -06:00
austinkelsay
0306d9b464
Fix links 2024-11-03 12:59:44 -06:00
austinkelsay
4f0ca4efdc
Link out to habla news for documents and videos 2024-11-03 12:56:03 -06:00
austinkelsay
41ae0d6112
Fix feeds rendering, fixed some mobile styles 2024-10-23 14:48:11 -05:00
austinkelsay
44f5af5061
Add author view buttons back into video details, mobile style fixes for course and resource payment buttons 2024-10-18 14:14:17 -05:00
austinkelsay
0a39f4f1c3 Break line on added links 2024-10-16 19:46:59 -05:00
austinkelsay
97fa99aa3b Fix video details layout 2024-10-16 17:10:42 -05:00
austinkelsay
708ef4a3ac Add author back into video details 2024-10-16 16:58:22 -05:00
austinkelsay
ca872dd511 Additional links 2024-10-16 16:54:12 -05:00
austinkelsay
73e5ac55d2 Add additional links to video and document details pages, fix link to edit 2024-10-16 16:50:50 -05:00
austinkelsay
00a6ae5f81 Remove looping log 2024-10-15 20:02:27 -05:00
austinkelsay
e18a1568a6 Mobile stlye fixes on content details pages 2024-10-15 14:52:13 -05:00
austinkelsay
30bfe46501 Revert style 2024-10-14 20:11:41 -05:00
austinkelsay
ec35193472 Fix topics on mobile view on video details 2024-10-14 20:09:24 -05:00
austinkelsay
e46a85151a Fix topics on mobile view for video details 2024-10-14 20:07:10 -05:00
austinkelsay
3ab9ef6c6b lesson tag at the end 2024-10-14 19:15:29 -05:00
austinkelsay
86912b0b57 Detect lessons in carousels and templates, fix lesson tracking 2024-10-14 17:57:47 -05:00
austinkelsay
a794755df4 Add lud16 to kind0Fields, add kind0 as nested object on user in session, keep it from conflicting with lightningAddress 2024-10-05 16:13:01 -05:00
austinkelsay
04ab5a2428 Hard code lnAdresses for now 2024-10-04 17:26:28 -05:00
austinkelsay
17ca8fcf59 Styling fixes, add video to promotional carousel 2024-09-30 12:59:19 -05:00
austinkelsay
8f2935a7dc Small styling fixes, also tested auth with new appConfig with multiple author pubkeys, also added i tag to videos 2024-09-17 18:06:03 -05:00
austinkelsay
365b54c498 Mobile style fixes 2024-09-16 16:10:28 -05:00
austinkelsay
5bb89c4c35 Good stuff 2024-09-15 15:53:27 -05:00
austinkelsay
aa13faaf44 Rename from workshops to videos 2024-09-15 13:27:37 -05:00
austinkelsay
38244a8da7 Add re;ays to every naddr encode, fix layout fo details pages, fix text overflow for nostr comments 2024-09-14 17:39:01 -05:00
austinkelsay
8b782ffc60 naddress slugs for all published details pages, also view nostr note buttons on all content 2024-09-14 17:05:05 -05:00
austinkelsay
cf1f1d73c3 New content templates and content details components 2024-09-12 17:39:47 -05:00