Skip to content

Commit

Permalink
update: add ESLint and Prettier configuration files, enhance README, …
Browse files Browse the repository at this point in the history
…and implement Code of Conduct
  • Loading branch information
lucasm committed Dec 2, 2024
1 parent 30f60f9 commit 7250702
Show file tree
Hide file tree
Showing 11 changed files with 356 additions and 513 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
.next/
out/
dist/
public/
8 changes: 6 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"rules": {
"no-unused-vars": [
"error",
{ "vars": "all", "args": "none", "ignoreRestSiblings": true }
]
],
"prettier/prettier": "error"
}
}
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
.next/
out/
dist/
public/
9 changes: 5 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"trailingComma": "all",
"tabWidth": 2,
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"bracketSameLine": true,
"printWidth": 80
}
"printWidth": 80,
"tabWidth": 2,
"endOfLine": "auto"
}
5 changes: 5 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Code of Conduct

Findto is made by individuals like you. Join us and get involved!

All members of Findto community agree to be kind to each other, following our [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/) for common good.
28 changes: 17 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@

Findto is an open source assistant for decentralized search.

Our key principles:
Our principles:

- Research and develop a better search experience on Web, AI, and more.
- Researching and developing a better search experience on Web, AI, and more digital spaces.

- People in control of search algorithms.
- People in control of the search algorithms.

- Free, open source and responsible.

Findto is putting the power of internet back into people's hands.
Findto is putting the power of internet into people's hands.

Quickly search the same term on diverse Web, AI, and more sources. See the estimated privacy level and carbon footprint of selected source. Discover trends and stories. Find anything. More productive and accessible searches - as never before.

A new search experience, where the people choices matter, for a healthier internet. As the always should be.

[Try it now on Findto.app](https://findto.app/?utm_source=findto_repo)
[Try it now](https://findto.app/?utm_source=findto_repo)

## 🟢 Features

Expand All @@ -57,31 +57,37 @@ A new search experience, where the people choices matter, for a healthier intern

## 🔵 Criteria

All the external search sources, contents and services available on Findto are selected based on the criteria of: 1) Service popularity; 2) Open access; 3) Accessibility, privacy and copyright policies;
All the search sources, external contents and services available on Findto are selected based on the criteria of: 1) Service popularity; 2) Open access; 3) Accessibility, privacy and copyright policies;

## 🟡 Donations

If you like Findtoget benefits ✨ making a donation. Help us make Findto better!
If you like Findto, get benefits ✨ making a donation. Your support helps to keep the project running and improving.

- [Support on Patreon](https://patreon.com/findto)
- [One-time donation via Ko-Fi](https://ko-fi.com/findto)
- [GitHub Sponsors](https://github.com/sponsors/lucasm)

## 🟠 Supporters

Donate and get your name or banner listed here.

## 🔴 Contributions

FIndto is 100% open source and we welcome contributions. You can help by:
We welcome contributions. You can help by:

- Bug fixes. View opened [Issues](https://github.com/lucasm/findto/issues) before send pull requests.
- Bugfixes. View opened [Issues](https://github.com/lucasm/findto/issues) before send pull requests.

- New ideas. For backlog, check [Projects](https://github.com/lucasm/findto/projects) board.
- Ideas. Have a new idea? Open a [Issue](https://github.com/lucasm/findto/issues) or [Discussion](https://github.com/lucasm/findto/discussions).

- Translations. Do you want to translate Findto to your language? Check [Docs](https://github.com/lucasm/findto/wiki).

- For backlog, check [Projects](https://github.com/lucasm/findto/projects) board.

## 🟣 Legal

Findto is built with privacy in mind and don't store searches.

Findto displays content from external services without review and include materials protected by intellectual property, solely for user convenience. We respect the rights of third parties and ask that you do the same.
Findto displays content from external services without review and materials protected by intellectual property.

[Privacy Policy](https://findto.app/privacy) | [Terms of Service](https://findto.app/terms)

Expand Down
3 changes: 3 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Reporting Security Issues

Please do not report security vulnerabilities through public GitHub issues.
2 changes: 1 addition & 1 deletion components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function Search({ selectedCategory }: Readonly<Props>) {
}
const handleSelectedSource = (id: string) => {
const source = selectedCategory.data?.find(
(item) => normalizeId(item.name) === id,
(item) => normalizeId(item.name) === id
)
setSearchSource(source)

Expand Down
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ module.exports = withNextIntl({
{
source: '/search/home',
destination: '/',
permanent: false, // Use `true` se quiser que o redirecionamento seja permanente (código 308)
permanent: true, // Use `true` se quiser que o redirecionamento seja permanente (código 308)
},
]
},

swcMinify: true,
productionBrowserSourceMaps: true,
})
Loading

0 comments on commit 7250702

Please sign in to comment.