diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index afaa98fe..684ecaa2 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -59,8 +59,8 @@ representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported to the community leaders responsible for enforcement at
-.
+reported to the community leaders responsible for enforcement at jasondsouza212@gmail.com .
+
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e054854d..26eb3701 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -84,6 +84,6 @@ eg: chore: added tool #issuenumber
2. The tags which can be used for url submission are as follows:
fix: , feat: , docs: , test: , chore: , ci: , perf: , refactor: , revert: , style: , data:
3. Put an x between the braces to select the keypoint and leave a space if you don't want to select it.
-eg: [x] I foolow the contribution guidelines.
+eg: [x] I follow the contribution guidelines.
8. Wait for your PR review and merge approval!
9. **Star this repository** if you had fun contributing!
diff --git a/README.md b/README.md
index 7d389e1f..1b78e338 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,14 @@
-Welcome 👋
+
+
Welcome
-Free-Hit is an web application that is used to search for free tools that are both free and helpful for our needs. It is built by the amazing open-source community. Here you will find a list of free tools that can help you in your day-to-day life. You can also contribute to this project by adding more tools to our database.
+Free-Hit is a website where you can search for free tools that are useful for your daily needs. This application is created by the incredible open-source community. On Free-Hit, you can discover a collection of free tools that can assist you in various aspects of your life. Moreover, you have the opportunity to contribute to this project by adding more tools to the database.
> You can check out the live project https://free-hit.vercel.app
-> ![free-hit](https://github.com/JasonDsouza212/free-hit/assets/88102392/3bd18ef6-fc72-4882-85c3-9591c7d94067)
+> ![free-hit](https://github.com/JasonDsouza212/free-hit/assets/88102392/3bd18ef6-fc72-4882-85c3-9591c7d94067)
-## 💻 Tech Stack
+## Tech Stack
- [Reactjs](https://react.dev) - Reactjs is a JavaScript library for building user interfaces.
- [Vite](https://vitejs.dev) - Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects.
- [PNPM](https://pnpm.io) - PNPM is a fast, disk space efficient package manager that helps to fetch packages from the registry.
@@ -32,7 +33,10 @@ Contributions are welcome! If you have any ideas, suggestions, or bug fixes, ple
+## License
+[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
+Terms and conditions for use, reproduction and distribution are under the [MIT License](https://opensource.org/license/mit/).
## ✨ Authors(only for GSSoC'23)
diff --git a/extenstion/DB/product.json b/extenstion/DB/product.json
index 441bed07..94bb8a0c 100644
--- a/extenstion/DB/product.json
+++ b/extenstion/DB/product.json
@@ -1061,7 +1061,7 @@
"productName": "Moviesmod",
"category": "movies",
"image": "https://bit.ly/3ZMrGen",
- "link": "https://moviesmod.net.in/",
+ "link": "https://moviesmod.one/",
"description": "Download HD quality movies and series"
},
{
@@ -2573,6 +2573,13 @@
"link": "https://app.haikei.app/",
"description": "Generate Blob, Wave, Blurry Gradients, Circle Scatter, Blob Scene, Layered Waves, etc."
},
+{
+ "productName": "sflix",
+ "category": "movies",
+ "image": "https://sflix.video/",
+ "link": "https://sflix.video/",
+ "description": "sflix have old bollywood and hollywood movie which is completely free"
+},
{
"productName": "Gitter",
"category": "tools",
diff --git a/src/App.jsx b/src/App.jsx
index c044271f..d14ac885 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -6,7 +6,7 @@ import BookMarks from './pages/Bookmarks'
import NotFound from './pages/NotFound'
import Community from './pages/Community'
import Layout from './components/Layout'
-import {Analytics} from '@vercel/analytics/react'
+import { Analytics } from '@vercel/analytics/react'
const ToolContext = createContext()
const LOCAL_STORAGE_KEY = 'freehit.bookmarks'
@@ -18,7 +18,10 @@ function App() {
const [bookmarks, setBookmarks] = useState([])
// dark mode
- const [darkMode, setDarkMode] = useState(localStorage.getItem("darkMode") || false);
+ const [darkMode, setDarkMode] = useState(
+ localStorage.getItem('darkMode') ||
+ window.matchMedia('(prefers-color-scheme: dark)').matches
+ )
// initial Storage
useEffect(() => {
@@ -33,18 +36,15 @@ function App() {
//dark-mode
useEffect(() => {
- const darkmodejson = localStorage.getItem("darkMode")
+ const darkmodejson = localStorage.getItem('darkMode')
if (darkmodejson != null) setDarkMode(JSON.parse(darkmodejson))
// else setDarkMode([])
}, [])
-
+
useEffect(() => {
- localStorage.setItem("darkMode", JSON.stringify(darkMode))
+ localStorage.setItem('darkMode', JSON.stringify(darkMode))
}, [darkMode])
-
-
-
// Add bookmark
function handelBookmarkAdd(bookmark) {
const newBookmark = {
@@ -57,8 +57,6 @@ function App() {
setBookmarks([...bookmarks, newBookmark])
}
-
-
// Remove Bookmark
function deleteres(product) {
setBookmarks(
@@ -66,6 +64,16 @@ function App() {
)
}
+ //search box debouncing
+ const debounce = (fn, delay) => {
+ let timerId = null;
+ return (...args) => {
+ if(time)
+ clearTimeout(timerId);
+ timerId = setTimeout(() => fn(...args), delay);
+ };
+}
+
// values to pass to context hook s
const toolContextValue = {
handelBookmarkAdd,
@@ -74,7 +82,8 @@ function App() {
gridView,
setGridView,
darkMode,
- setDarkMode
+ setDarkMode,
+ debounce
}
return (
@@ -82,19 +91,19 @@ function App() {