-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
629fc88
commit 78dc6e0
Showing
34 changed files
with
610 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use server"; | ||
|
||
import { API } from "@services"; | ||
|
||
import type { CreateBagParams, AddDiscToBagParams, RemoveDiscFromBagParams, DeleteBagParams } from "@types"; | ||
|
||
export const createBag = async ({ userId, bagName }: CreateBagParams) => API.createBag({ userId, bagName }); | ||
|
||
export const addDiscToBag = async ({ bagId, discId }: AddDiscToBagParams) => API.addDiscToBag({ bagId, discId }); | ||
|
||
export const removeDiscFromBag = async ({ bagId, discId }: RemoveDiscFromBagParams) => | ||
API.removeDiscFromBag({ bagId, discId }); | ||
|
||
export const deleteBag = async ({ bagId }: DeleteBagParams) => API.deleteBag({ bagId }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./bag"; |
6 changes: 3 additions & 3 deletions
6
src/app/@modal/(.)[name_slug]/page.tsx → ...p/@discModal/(.)disc/[name_slug]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { DiscDetail, DiscModal } from "@components"; | ||
import { DiscDetail, Modal } from "@components"; | ||
|
||
export default function DiscDetailModal({ params: { name_slug } }: { params: { name_slug: string } }) { | ||
return ( | ||
<DiscModal> | ||
<Modal> | ||
<DiscDetail name_slug={name_slug} hideNavButtons /> | ||
</DiscModal> | ||
</Modal> | ||
); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Modal, NewBag } from "@components"; | ||
|
||
export default function NewBagModal() { | ||
return ( | ||
<Modal> | ||
<NewBag backOnSubmit /> | ||
</Modal> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { DiscNotFound } from "@components"; | ||
|
||
export default function Default() { | ||
return <DiscNotFound />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Modal, SignIn } from "@components"; | ||
|
||
export default function SignInModal() { | ||
return ( | ||
<Modal> | ||
<SignIn /> | ||
</Modal> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Default() { | ||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { NewBag, UserButton } from "@components"; | ||
|
||
export default function NewBagPage() { | ||
return ( | ||
<> | ||
<UserButton /> | ||
<div className="absolute-centered"> | ||
<NewBag /> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function BagPage() { | ||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
"use client"; | ||
|
||
import { ClerkProvider } from "@clerk/nextjs"; | ||
import { DiscCount, DiscGrid, Filters, Header, ScrollToTop } from "@components"; | ||
import { config } from "@services"; | ||
import { Controls, DiscGrid, Filters, Header, ScrollToTop } from "@components"; | ||
|
||
export default function HomePage() { | ||
return ( | ||
<ClerkProvider publishableKey={config.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}> | ||
<main className="flex-column-center"> | ||
<Header /> | ||
<Filters /> | ||
<DiscCount /> | ||
<DiscGrid /> | ||
<ScrollToTop /> | ||
</main> | ||
</ClerkProvider> | ||
<div className="flex-column-center"> | ||
<Header /> | ||
<Filters /> | ||
<Controls /> | ||
<DiscGrid /> | ||
<ScrollToTop /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { SignIn } from "@components"; | ||
|
||
export default function SignInPage() { | ||
return ( | ||
<div className="absolute-centered"> | ||
<SignIn /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.