austinkelsay
06780ffaa5
Add error toast for missing naddress in course slugs
2025-04-28 10:27:47 -05:00
Austin Kelsay
4f093b9e2c
Update src/pages/course/[slug]/index.js
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-28 10:27:47 -05:00
Austin Kelsay
9f784f3984
Update src/components/content/courses/DesktopCourseDetails.js
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-28 10:27:47 -05:00
Austin Kelsay
c67706dd3e
Update src/components/content/courses/DesktopCourseDetails.js
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-28 10:27:46 -05:00
austinkelsay
6b30d2cce7
styling fixes, guard against edge cases in course handling, guard against invalid slug in navbar
2025-04-28 10:27:46 -05:00
austinkelsay
42abbabf9d
fix comments on course tab
2025-04-28 10:27:46 -05:00
austinkelsay
2485235572
Clean up unused imports
2025-04-28 10:27:46 -05:00
austinkelsay
ad25f2454d
Fix sidebar visibility state management to maintain single source of truth
2025-04-28 10:27:46 -05:00
austinkelsay
b9d05f35e7
remove uiw-react-markdown-preview, clean up dep errors
2025-04-28 10:27:45 -05:00
austinkelsay
c3175321cb
add keyboard navigation to course tabs
2025-04-28 10:27:45 -05:00
austinkelsay
6a46480300
Remove testing admin pubkey from config
2025-04-28 10:27:45 -05:00
Austin Kelsay
164b17867c
Update src/components/content/courses/MobileCourseDetails.js
...
fix anchor tag
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-28 10:27:45 -05:00
Austin Kelsay
d9e68ea18e
Update src/pages/course/[slug]/index.js
...
Fix tab condition
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-28 10:27:45 -05:00
austinkelsay
dae3ed5ad9
seperate mobile and desktop components for CourseDetails
2025-04-28 10:27:44 -05:00
austinkelsay
b3fae3f557
polishing some final styles
2025-04-28 10:27:44 -05:00
austinkelsay
d3bf9cc045
Replaced all markdown displays with react-markdown and gituhb-markdown-css styles
2025-04-28 10:27:44 -05:00
austinkelsay
0279140011
styling improvements on course header and course tab
2025-04-28 10:27:44 -05:00
austinkelsay
a924cc9436
added course header with back button, integrated into top nav when on course pages, polishing course and lesson pages styles
2025-04-28 10:27:43 -05:00
austinkelsay
b50aa9286a
massive improvements to course and lesson full screen and mobile layouts
2025-04-28 10:27:43 -05:00
austinkelsay
874d903020
Major updates on course and lesson layout with tabs
2025-04-28 10:27:43 -05:00
austinkelsay
a3e8cda6f4
course view tabs for mobile view sidebar for full screen
2025-04-28 10:27:43 -05:00
austinkelsay
54ec3df1d7
Course page now has sidebar for lessons selection, basic tab menu on mobile to go to lessons tab or content tab
2025-04-28 10:27:39 -05:00
Austin Kelsay
e7d8677806
Merge pull request #69 from AustinKelsay/bugfix-search-keyword-matching
...
Bugfix search keyword matching
2025-04-27 14:20:49 -07:00
austinkelsay
dd58859dd1
add naddr support to search results navigation
2025-04-27 14:48:52 -05:00
Austin Kelsay
1e380b8dc0
Update src/components/content/dropdowns/MessageDropdownItem.js
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-27 13:28:24 -05:00
austinkelsay
40d0f42c46
limit to title/content only with improved match highlighting
2025-04-27 12:47:24 -05:00
austinkelsay
4c73fc3725
fixes for search and character matching and the state updates around it in the searchbar
2025-04-27 12:10:08 -05:00
Austin Kelsay
387c93fe0c
Merge pull request #56 from AustinKelsay/bgBlur2AndZapThreadsParent
...
Bg blur2 and zap threads parent
2025-04-24 07:24:26 -07:00
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
austinkelsay
7f0e480788
authorized check on details page
2025-04-20 18:17:25 -05:00
austinkelsay
11367560c0
ready for final review
2025-04-20 18:11:40 -05:00
austinkelsay
bb5356f10b
add back prettierrc
2025-04-20 17:50:08 -05:00
austinkelsay
0d9f42fb07
Remove files from PR tracking while keeping them in the workspace
2025-04-20 17:36:03 -05:00
austinkelsay
38bb4b79cd
clean up unused
2025-04-20 17:31:40 -05:00
austinkelsay
86f010cf62
remove unused changes in courselesson
2025-04-20 17:27:45 -05:00
austinkelsay
ff809813d9
cleanup
2025-04-20 16:53:21 -05:00
austinkelsay
8d0c349bb3
set keys for zapthreads wrapper without risking leak of old key state
2025-04-20 16:33:09 -05:00
austinkelsay
4c291b5771
no comments on whole course for now until course layout update, cleanup a bit
2025-04-20 16:33:09 -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
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
austinkelsay
02caab317c
capture zapRef current fo cleanup in ZapThreadsWrapper
2025-04-20 16:14:51 -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
kiwihodl
34680d244f
feat: add backdrop blur to all main application modals
...
- Add global CSS styles for PrimeReact Dialog component backdrop
- Apply 8px blur effect with semi-transparent black background
- Style dialog components with dark theme matching application design
- Affects all main modals including:
- User badges and profile modals
- Subscription and payment modals
- Course and resource modals
- Info and form modals
2025-04-20 16:14:50 -05:00