-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mohitparmar1:main' into main
- Loading branch information
Showing
16 changed files
with
412 additions
and
12 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,38 @@ | ||
--- | ||
name: 🪲 Bug Report | ||
about: Create a bug report to help us resolving the bug | ||
title: '🪲[Bug]: ' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,22 @@ | ||
--- | ||
name: 📝 Documentation | ||
about: Propose changes and improvements to ScrapQuest Docs. | ||
title: '📝[Docs]: ' | ||
labels: 'enhancement' | ||
assignees: '' | ||
--- | ||
|
||
**What Docs changes are you proposing?** | ||
Provide a clear description of the changes you're proposing for the documentation. Are you suggesting corrections, clarifications, additions, or updates? | ||
|
||
**Why do the Docs need this improvement? What is the motivation for this change? How will this change benefit the community?** | ||
Explain the motivation behind the proposed changes and how they will benefit the community or users of the documentation. | ||
|
||
**Describe the solution you'd like** | ||
Provide a clear and concise description of the changes you'd like to see implemented in the documentation. | ||
|
||
**Describe alternatives you've considered** | ||
If you've thought about alternative approaches or solutions, briefly describe them here. | ||
|
||
**Additional context** | ||
Add any additional context, examples, or screenshots related to the proposed documentation 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,20 @@ | ||
--- | ||
name: 💡 Feature Request | ||
about: Suggest an interesting feature idea for this project | ||
title: '💡[FEATURE]: ' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,24 @@ | ||
name: 'Greetings' | ||
|
||
on: | ||
fork: | ||
push: | ||
branches: [main] | ||
issues: | ||
types: [opened] | ||
pull_request_target: | ||
types: [opened] | ||
|
||
jobs: | ||
welcome: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: EddieHubCommunity/gh-action-community/src/welcome@main | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-message: | | ||
Congratulations, @${{ github.actor }}! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! | ||
pr-message: | | ||
Great job, @${{ github.actor }}! 🎉 Thank you for submitting your pull request. Your contribution is valuable and we appreciate your efforts to improve our project. | ||
footer: 'We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our [contributing guidelines](https://github.com/mohitparmar1/Shopy/blob/main/README.md)' |
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 |
---|---|---|
|
@@ -27,10 +27,6 @@ cd Shopy | |
npm install | ||
``` | ||
|
||
```bash | ||
npm install vite | ||
``` | ||
|
||
|
||
```bash | ||
npm run dev | ||
|
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
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,109 @@ | ||
|
||
import React from "react" | ||
import {useContext} from "react" | ||
import {SavedContext} from "../Context/SavedContext" | ||
import { ShopContext } from "../Context/ShopContext"; | ||
|
||
|
||
const SavedItems=()=>{ | ||
const {all_products,listItem,AddToList,RemoveFromList,getListQuantity}=useContext(SavedContext) | ||
const {AddToCart}=useContext(ShopContext) | ||
|
||
|
||
return( | ||
<> | ||
|
||
<div className="flex my-50"><p className="font-normal ">Total products Wishlisted: </p><p className="font-bold">{getListQuantity()}</p></div> | ||
|
||
<div className="grid grid-cols-3 "> | ||
{ | ||
all_products.map((item) => { | ||
if (listItem[item.id] > 0) { | ||
return( | ||
<div className="h-220 w-94 bg-white space-x-7" key={item.id}> | ||
<img src={item.image} alt={item.name} className="h-150 w-92"/> | ||
<div className="h-150 w-92"> | ||
<p className="font-semibold font-serif"> | ||
{(item.name.length > 40) ? ( | ||
// Truncate the name to the maximum length | ||
item.name.substring(0, 40) + "..." | ||
): (item.name) | ||
} | ||
</p> | ||
<p className="font-mono font-bold">Category: {item.category}</p> | ||
<div className="grid grid-cols-2"> | ||
<div><p className="font-bold text-green-900">${item.new_price}</p></div> | ||
<div><p className="line-through text-red-600">${item.old_price}</p></div> | ||
|
||
</div> | ||
<div className="flex space-x-20"> | ||
|
||
<div><button onClick={()=>{ | ||
RemoveFromList(item.id) | ||
}} className="bg-blue-950 text-white p-4 font-bold">Remove</button></div> | ||
<div><button className="bg-red-700 text-white p-4 font-extrabold" onClick={()=>{ | ||
AddToCart(item.id) | ||
}}>Add to Cart</button></div> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
) | ||
} | ||
}) | ||
} | ||
|
||
|
||
|
||
</div> | ||
|
||
</> | ||
) | ||
} | ||
|
||
export default SavedItems; | ||
|
||
/*function CardComponent(item){ | ||
return( | ||
<div className="h-220 w-94 bg-white"> | ||
<img src={item.image} alt={item.name} className="h-150 w-92"/> | ||
<p className="font-semibold">{item.name}</p> | ||
<p className="font-normal">#Category:{item.category}</p> | ||
<div className="flex justify-between"> | ||
<p className="font-bold text-green-900">${item.new_price}</p> | ||
<p className="line-through text-red-600">${item.old_price}</p> | ||
</div> | ||
</div> | ||
) | ||
}*/ | ||
|
||
|
||
|
||
/*<div className="flex justify-between bg-pink-300"> | ||
{ | ||
all_products.map((item) => { | ||
if (listItem[item.id] > 0) { | ||
return( | ||
<CardComponent item={item}/> | ||
) | ||
} | ||
}) | ||
} | ||
</div>*/ | ||
|
||
|
||
/*<div className="flex justify-between"> | ||
<button onClick={()=>{ | ||
RemoveFromList(item.id) | ||
}} className="bg-blue-950 text-white">Remove</button> | ||
<button className="bg-red-700 text-white">Add to Cart</button> | ||
</div>*/ |
Oops, something went wrong.