kiwi_
2a16f1b30b
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-17 14:45:16 -05:00
kiwihodl
d6a9252125
Linted
2025-04-17 13:40:42 -05:00
kiwihodl
bd135dbe78
linted before rebase
2025-04-17 13:38:17 -05:00
kiwihodl
c5eb64de32
feat: implement ZapThreads comments for all content types (video, document, combined) and course pages
2025-04-17 13:33:45 -05:00
kiwihodl
2b3ee81729
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-17 13:27:41 -05:00
kiwihodl
42ca5bd5ea
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-17 13:14:56 -05:00
Austin Kelsay
24e8a51877
Merge pull request #57 from AustinKelsay/feature/linter
...
Feature/linter
2025-04-03 09:47:18 -07:00
Austin Kelsay
115de222fc
Update src/components/forms/course/embedded/EmbeddedVideoForm.js
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-04-03 11:17:56 -05:00
austinkelsay
7bff3eaf58
update actions checkout and setup-node from v3 to v4
2025-04-03 11:08:00 -05:00
austinkelsay
2eed15e714
fix lint workflow, add setup script for lint, update readme with lint instructions
2025-04-03 10:55:08 -05:00
austinkelsay
a090898fad
lint everything lmao
2025-04-02 17:47:30 -05:00
austinkelsay
3ab276ea40
fix command, info in readme
2025-04-02 17:46:58 -05:00
austinkelsay
2745382283
linting script and workflow
2025-04-02 17:46:04 -05:00
Austin Kelsay
f8878486b6
Merge pull request #53 from AustinKelsay/feature/manual-lesson-completion-option
...
Feature - MoreOptions on content details components
2025-03-31 08:27:07 -07: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
227166af57
Remove test admin pubkey from config
2025-03-29 21:09:38 -05:00
Austin Kelsay
bb19dc1cc4
Merge pull request #51 from AustinKelsay/bugfix/fix-mobile-layout
...
Bugfix/fix mobile layout
2025-03-29 10:45:29 -07:00
austinkelsay
0fc9c97a5e
Update with circle icon for favicon
2025-03-29 12:41:25 -05:00
austinkelsay
bbbb14b80b
layout fixes for search results
2025-03-29 12:38:14 -05:00
austinkelsay
ef91584a21
spacing fixes on pages
2025-03-29 12:37:55 -05:00
austinkelsay
b998a79f95
Fix tabmenu style on mboile
2025-03-29 12:21:39 -05:00
austinkelsay
12c2711622
Update favicon
2025-03-29 12:12:13 -05:00
Austin Kelsay
5e58518ad7
Merge pull request #48 from AustinKelsay/refactor/layout-and-sidebar
...
Refactor/layout and sidebar
2025-03-29 09:56:09 -07:00
austinkelsay
436e724c89
Remove hard coded top content logic
2025-03-28 12:14:03 -05:00
austinkelsay
7c566dc9dc
Update with prod content ids for top content ids
2025-03-28 12:05:08 -05:00
austinkelsay
3a59114683
Consolidate profile and settings tabs, fix some styles
2025-03-28 11:00:23 -05:00
austinkelsay
ffa57f9455
Cleanup
2025-03-28 11:00:22 -05:00
austinkelsay
4c76cd0a3c
Fix subscription amount
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
3d8ba067e7
Remove sidebar, start centering pages and content
2025-03-28 11:00:21 -05:00
austinkelsay
5a86c449b7
Starting brand icon update
2025-03-28 11:00:21 -05:00
Austin Kelsay
6a4c37f57a
Merge pull request #49 from AustinKelsay/bugfix/bitcoin-connect-initialized-err
...
Handle fallback for component already initialized
2025-03-28 08:59:06 -07:00
austinkelsay
7d176decfc
Handle fallback for component already initialized
2025-03-28 10:34:59 -05:00
Austin Kelsay
c9ae2ac436
Merge pull request #47 from AustinKelsay/feature/improved-meta-tags
...
improved meta tags
2025-03-22 15:45:17 -05:00
austinkelsay
5bfeaabcd8
imporved meta tags
2025-03-22 14:37:47 -05:00
Austin Kelsay
ac56bccc5a
Merge pull request #45 from AustinKelsay/bugfix/upgrade-already-created-user-to-admin
...
Add condition to allow an existing account to get admin role if they are added after the fact
2025-03-19 15:37:58 -05:00
austinkelsay
00e17ca6f8
Add condition to allow an existing account to get admin role if they are added after the fact
2025-03-19 14:23:53 -05:00
Austin Kelsay
e72da87b01
Merge pull request #42 from AustinKelsay/bugfix/carousel-cards-disappear-when-clicking-zap
...
Grid based layout for resource cards using tailwind instead of using primereact carousel component, this fixed the bug
2025-03-18 16:24:30 -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
080d616630
Extra dot in default in case it causes error for local dev
2025-03-18 10:40:42 -05:00