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
Austin Kelsay
751216595d
Update src/components/content/combined/CombinedDetails.js
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-20 16:30:17 -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
da0a877e9b
Linted
2025-04-20 16:14:50 -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
kiwihodl
62441e01a0
feat: Implement ZapThreads with access control for paid content - Add to CourseDetails, CourseTemplate, CourseLesson - Block comments for unpaid users - Allow comments for free content and authorized paid users
2025-04-20 16:14:50 -05:00
austinkelsay
a090898fad
lint everything lmao
2025-04-02 17:47:30 -05:00
austinkelsay
5c6bf72a99
Add checks for user logged in, paid course and or subscriber for user being able to mark lesson as completed
2025-03-31 10:22:25 -05:00
austinkelsay
79b8cf1ff8
fix course payment button, remove test account from admins
2025-03-31 10:02:58 -05:00
Austin Kelsay
080ab4a4b5
Update src/components/content/courses/CourseLesson.js
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-03-31 09:41:05 -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
b94e90fc03
Fix element alignent
2025-03-30 12:34:42 -05:00
austinkelsay
3efc82bd06
more options button in place and works, fully tested, probably still need to align with timestamp
2025-03-30 11:46:56 -05:00
austinkelsay
bbbb14b80b
layout fixes for search results
2025-03-29 12:38:14 -05:00
austinkelsay
ffa57f9455
Cleanup
2025-03-28 11:00:22 -05:00
austinkelsay
c8e5e13840
Combine about and subscribe pages, add fourth button to bottom bar on mobile, fix styles, test
2025-03-28 11:00:22 -05:00
austinkelsay
ccaca7b23e
Fixed search experience for desktop and mobile, replaced hamburber with search icon on mobile
2025-03-28 11:00:22 -05:00
austinkelsay
d3092f56af
Consistent widths accross pages aligning with navbar
2025-03-28 11:00:22 -05:00
austinkelsay
d353e948f7
Fixes for menus, sizing fixes general css finagling, added cool hamburger buttons
2025-03-28 11:00:21 -05:00
austinkelsay
79a0559995
Updated carousels layout with menutab of tags on home page
2025-03-28 11:00:21 -05:00
austinkelsay
247b66f04e
Ensure unique keys for resource templates
2025-03-18 16:18:51 -05:00
austinkelsay
4fb258211d
Grid based layout for resource cards using tailwind instead of using primereat carousel component, this fixed the bug
2025-03-18 13:41:20 -05:00
austinkelsay
0bfe0aa109
Add icons back to content templates
2025-03-01 17:35:00 -06:00
austinkelsay
0c5ac0d942
Fix spacing on markdown documents
2025-02-22 17:25:29 -06:00
austinkelsay
bde5e117cf
Consolidate user fields, differentiate platform lightning address and nip05, fix millisats on lightning address, small user management and signup ux fixes
2025-02-17 12:50:32 -06:00
austinkelsay
75b3406d33
Fix sn query, cleanup
2025-02-03 17:07:54 -06:00
austinkelsay
e740b8e4ef
Created reusable more info component that takes place of info tooltips / modals on profile for right now
2025-01-12 16:55:18 -06:00
austinkelsay
cace835c84
Add webm source to about carousel
2025-01-08 16:20:55 -06:00
austinkelsay
103286d8a9
Clean up console logs
2025-01-03 12:05:16 -06:00
austinkelsay
9e4390de1f
Welcome modal for learn how to code cta, also creates anon account
2025-01-03 11:59:30 -06:00
austinkelsay
32a9cd7cdc
fixed signup / login flow for github, added lessons and courses starting and completing in progress table
2025-01-03 11:59:24 -06:00
austinkelsay
91cfd7a3cb
Fix syntax bug
2024-12-23 16:28:30 -06:00
austinkelsay
ef3acf03df
Redeploy
2024-12-23 16:24:49 -06:00
austinkelsay
67ea5f523e
Allow simple edits of published courses, add cascade delete to userlessons to make this course update cleaner
2024-12-03 12:48:17 -06:00
austinkelsay
dd09351fb2
Account for name and title for course parsing
2024-12-02 13:15:34 -06:00
austinkelsay
6fad6c9b75
Fix property
2024-11-27 10:30:58 -06:00
austinkelsay
499e5a5983
manual temp fix for missing course name
2024-11-27 10:23:39 -06:00
austinkelsay
9e8e355ae8
Start on discount code impl, keep it single and hardcoded and simple at first
2024-11-26 15:32:25 -06:00
austinkelsay
7af1dd9ef9
Another styling fix combined lesson
2024-11-26 11:50:32 -06:00
austinkelsay
49e222035a
Fix padding on combined lesson
2024-11-26 11:49:36 -06:00
austinkelsay
f546ca71cf
Fix combined template
2024-11-21 20:26:57 -06:00
austinkelsay
93bd37161e
Fix content rendering in combined details, imporve decryption process in details page reduced extra api calls
2024-11-21 17:58:54 -06:00
austinkelsay
2ba4615885
Combined view works with courses / lessons
2024-11-21 17:58:54 -06:00
austinkelsay
293d6d2eeb
start implementing combined resource form, details, draft, template, and carousel implementation, need to do lesson impl next
2024-11-21 17:58:54 -06:00
austinkelsay
789356a5d6
Improved templates
2024-11-20 18:49:31 -06:00
austinkelsay
65692026b6
Fixes to naddr encoding
2024-11-16 12:33:30 -06:00
austinkelsay
aaeb5de1fe
Take invoice out of track for now since it is too long of string
2024-11-15 18:43:06 -06:00
austinkelsay
33da6d34f1
Fix carousel filtering condition for documents and videos
2024-11-15 11:56:26 -06:00