-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/#111 change api auth #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,21 @@ | ||
| name: Vercel Preview Deployment | ||
| env: | ||
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
| on: | ||
| push: | ||
| branches-ignore: | ||
| - main | ||
| jobs: | ||
| Deploy-Preview: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Install Vercel CLI | ||
| run: npm install --global vercel@latest | ||
| - name: Pull Vercel Environment Information | ||
| run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
| - name: Build Project Artifacts | ||
| run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
| - name: Deploy Project Artifacts to Vercel | ||
| run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | ||
This file contains hidden or 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,2 +1 @@ | ||
| bun run build | ||
| git pull --rebase origin main | ||
| bun run build |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -10,16 +10,15 @@ import Securityicon from "@repo/icons/security"; | |
| import { Label } from "@repo/ui/components/label"; | ||
| import { useState } from "react"; | ||
| import CardSkeleton from "./card-cart-skeleton"; | ||
| import { useCartStore } from "../store/cart-store"; | ||
| import Typography from "@repo/ui/components/typography"; | ||
| import useCartStore from "../store/cart-store"; | ||
|
|
||
| const Addtocard = () => { | ||
| const { closeAddToCart } = useCartStore(); | ||
| const { isAddToCartOpen, closeAddToCart, addToCart } = useCartStore(); | ||
|
|
||
| const [cards, setCards] = useState([ | ||
| { id: 1, title: "Traveler - Travel Agency", price: "$15" }, | ||
| { id: 2, title: "Explorer - Adventure Company", price: "$20" }, | ||
| { id: 3, title: "Explorer - Adventure Company", price: "$20" }, | ||
| { id: 1, title: "Traveler - Travel Agency", price: "$15" }, | ||
| { id: 4, title: "Explorer - Adventure Company", price: "$20" }, | ||
| { id: 5, title: "Explorer - Adventure Company", price: "$20" }, | ||
| ]); | ||
|
|
@@ -28,7 +27,6 @@ const Addtocard = () => { | |
| { id: 1, title: "temp", price: "t" }, | ||
| { id: 1, title: "temp", price: "t" }, | ||
| { id: 1, title: "temp", price: "t" }, | ||
| { id: 1, title: "temp", price: "t" }, | ||
| ]; | ||
|
|
||
| const activeTemp = temp.splice(cards.length); | ||
|
|
@@ -37,13 +35,15 @@ const Addtocard = () => { | |
| setCards(cards.filter((card) => card.id !== id)); | ||
| }; | ||
|
|
||
| if (!isAddToCartOpen) return null; | ||
|
|
||
| return ( | ||
| <div className="flex w-full bg-background rounded-b-xl overflow-hidden"> | ||
| <div className="flex w-full bg-background rounded-b-xl"> | ||
| <div | ||
| className="flex fixed -z-10 inset-0 w-full h-full" | ||
| onClick={closeAddToCart} | ||
| ></div> | ||
| <div className=" h-full min-w-[472px] overflow-auto p-4 flex flex-col gap-2 scrollbar-hide"> | ||
| <div className=" max-h-[433px] min-w-[472px] overflow-auto p-4 flex flex-col gap-2 scrollbar-hide"> | ||
| {cards.map((card) => ( | ||
| <Card | ||
| title={card.title} | ||
|
|
@@ -59,52 +59,49 @@ const Addtocard = () => { | |
| ))} | ||
| </div> | ||
|
|
||
| <div className=" flex flex-col gap-3 p-4 w-[522px]"> | ||
| <Typography variant="heading/xs" component="p" weight="medium"> | ||
| Checkout | ||
| </Typography> | ||
| <div className=" p-4 w-[522px]"> | ||
| <p className="text-xl font-medium pb-5">Checkout</p> | ||
| <div className="flex justify-center gap-3 items-center bg-card p-2 rounded-lg"> | ||
| <div className="bg-background p-2 rounded-lg flex flex-col items-center justify-center"> | ||
| <div className="flex flex-col items-center justify-center"> | ||
| <Metamaskicon size={33} /> | ||
| <Typography variant="label/sm" component="p" weight="medium"> | ||
| Metamask | ||
| </Typography> | ||
| <p className="text-sm font-medium text-foreground">Metamask</p> | ||
| </div> | ||
| <div className="flex flex-col items-center justify-center grayscale "> | ||
| <Tonconnecticon size={33} /> | ||
| <Typography | ||
| variant="label/sm" | ||
| component="p" | ||
| weight="medium" | ||
| className="text-gray-800" | ||
| > | ||
| Tonconnect | ||
| </Typography> | ||
| <p className="text-sm font-medium text-gray-800">Tonconnect</p> | ||
| </div> | ||
| <div className="flex flex-col items-center justify-center grayscale"> | ||
| <Paypalicon size={33} /> | ||
| <Typography | ||
| variant="label/sm" | ||
| component="p" | ||
| weight="medium" | ||
| className="text-gray-800" | ||
| > | ||
| Paypal | ||
| </Typography> | ||
| <p className="text-sm font-medium text-gray-800">Paypal</p> | ||
| </div> | ||
| </div> | ||
| <div className=" flex flex-col gap-3 pb-16"> | ||
| <div className="relative gap-2 flex items-center"> | ||
| <div className=" pb-16"> | ||
| <Label>Email</Label> | ||
| <div className="relative flex items-center"> | ||
| {/* to do : # label container */} | ||
| <Input | ||
| label="Email" | ||
| placeholder="[email protected]" | ||
| placeholder="[email protected]" | ||
| type="email" | ||
| className="bg-input text-muted-foreground" | ||
| /> | ||
| <span | ||
| className="underline absolute right-2 text-sm text-foreground cursor-pointer" | ||
| onClick={() => { | ||
| // to do : # sign out | ||
| }} | ||
| > | ||
| Sign out | ||
| </span> | ||
| </div> | ||
| <Input label="Full Name" placeholder="Ali Kashef" type="text" /> | ||
| <Input | ||
| label="full name" | ||
| placeholder="Ali Kashef" | ||
| type="text" | ||
| className="bg-input text-muted-foreground" | ||
| /> | ||
| </div> | ||
| <div className="pb-3 w-full"> | ||
| <Button size="md" className="w-full bg-primary text-white"> | ||
| <Button size={"lg"} className="w-full bg-primary text-white"> | ||
| Pay $40 | ||
| </Button> | ||
| </div> | ||
|
|
@@ -117,9 +114,9 @@ const Addtocard = () => { | |
| closeAddToCart(); | ||
| }} | ||
| /> | ||
| <Typography variant="label/sm" component="p" weight="medium"> | ||
| <p className="text-sm font-medium text-foreground"> | ||
| Your payment is secured by MetaMask | ||
| </Typography> | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
6 changes: 0 additions & 6 deletions
6
apps/core/app/(landing)/_components/browseMegaMenu/browse-mega-menu.tsx
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Outdated checkout action version.
Updating from
actions/checkout@v2to@v3helps ensure future compatibility and includes performance improvements.Apply this diff to fix the version:
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
13-13: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)