From 14a83a17d1120ccc9f51a1176e9840cabec28c9a Mon Sep 17 00:00:00 2001 From: Geovane <87013843+GeovaneDev@users.noreply.github.com> Date: Fri, 29 Mar 2024 13:29:18 +0000 Subject: [PATCH] =?UTF-8?q?Pequenas=20melhorias=20e=20atualiza=C3=A7=C3=B5?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE | 42 +- README.md | 78 +- app/globals.css | 14 +- app/layout.tsx | 50 +- app/not-found.js | 152 +- app/page.js | 294 +- components/DocsMenu.js | 66 +- components/Footer.js | 42 +- components/Navbar.js | 74 +- next-env.d.ts | 12 +- next.config.js | 8 +- package-lock.json | 9580 +++++++++-------- package.json | 68 +- pages/api/all/[ticket].js | 211 +- pages/api/cdb.js | 136 +- pages/api/crypto/all.js | 46 +- pages/api/crypto/all/[coin].js | 56 +- pages/api/crypto/all/coins.js | 54 +- pages/api/crypto/global.js | 30 +- pages/api/crypto/history/[history].js | 50 +- pages/api/crypto/latestblock.js | 32 +- pages/api/crypto/transaction/[transaction].js | 44 +- pages/api/crypto/trending.js | 30 +- pages/api/crypto/unconfirmed-transactions.js | 32 +- pages/api/crypto/wallet/[wallet].js | 44 +- pages/api/fundamentus/[ticket].js | 212 +- pages/api/fundamentus/available.js | 118 +- pages/api/fundamentus/dividend.js | 116 +- pages/api/fundamentus/search.js | 106 +- pages/api/quote/available.js | 58 +- pages/api/quote/quotations.js | 174 +- pages/api/quote/result.js | 38 +- pages/api/quote/search.js | 100 +- pages/api/quote/taxes.js | 118 +- pages/docs.js | 224 +- pages/docs/endpoints.js | 510 +- pages/docs/introduction.js | 214 +- pages/terms.js | 220 +- public/sitemap.xml | 80 +- tsconfig.json | 54 +- vercel.json | 28 +- 41 files changed, 6869 insertions(+), 6746 deletions(-) diff --git a/LICENSE b/LICENSE index 40ba18b..435e63d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2024 Geovane - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2024 Geovane + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 43570d1..f4f0c65 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,40 @@ -# BrInvestAPI - -![BrInvestidor](https://github.com/GeovaneDev/BrInvestAPI/assets/87013843/dbcde03e-298f-4e78-831f-2b9fa3e8c6c3) - -[https://www.brinvestapi.me/](https://www.brinvestapi.me/) - Sua fonte para dados em tempo real do mercado de ações brasileiro. - -## Sobre - -A BrInvestAPI foi concebida para proporcionar aos desenvolvedores acesso fácil e rápido a dados abrangentes e atualizados do mercado de ações brasileiro. Esta API gratuita é projetada para integrar informações financeiras diretamente em suas aplicações. - -## Funcionalidades - -- Acesse uma ampla gama de dados do mercado de ações, incluindo métricas e índices financeiros. -- Mantenha-se informado com dados do mercado de ações em tempo real e atualizados. -- Integração simples e fácil em suas aplicações com nossa API amigável para desenvolvedores. - -## Como Começar - -1. **Clone este repositório:** -``` -git clone https://github.com/GeovaneDev/BrInvestAPI.git -``` -2. **Instale as dependências:** -``` -cd BrInvestAPI -npm install -``` -3. **Inicie o servidor de desenvolvimento:** -``` -npm run dev -``` -4. **Acesse http://localhost:3000 em seu navegador.** - -## Contribuindo - -Fique à vontade para contribuir para o desenvolvimento da BrInvestAPI. Sua colaboração é bem-vinda! Você pode colaborar com código enviando um [Pull Request](https://github.com/GeovaneDev/BrInvestAPI/pulls) ou uma sugestão com os [Issues](https://github.com/GeovaneDev/BrInvestAPI/issues) - -## Licença - +# BrInvestAPI + +![BrInvestidor](https://github.com/GeovaneDev/BrInvestAPI/assets/87013843/dbcde03e-298f-4e78-831f-2b9fa3e8c6c3) + +[https://www.brinvestapi.me/](https://www.brinvestapi.me/) - Sua fonte para dados em tempo real do mercado de ações brasileiro. + +## Sobre + +A BrInvestAPI foi concebida para proporcionar aos desenvolvedores acesso fácil e rápido a dados abrangentes e atualizados do mercado de ações brasileiro. Esta API gratuita é projetada para integrar informações financeiras diretamente em suas aplicações. + +## Funcionalidades + +- Acesse uma ampla gama de dados do mercado de ações, incluindo métricas e índices financeiros. +- Mantenha-se informado com dados do mercado de ações em tempo real e atualizados. +- Integração simples e fácil em suas aplicações com nossa API amigável para desenvolvedores. + +## Como Começar + +1. **Clone este repositório:** +``` +git clone https://github.com/GeovaneDev/BrInvestAPI.git +``` +2. **Instale as dependências:** +``` +cd BrInvestAPI +npm install +``` +3. **Inicie o servidor de desenvolvimento:** +``` +npm run dev +``` +4. **Acesse http://localhost:3000 em seu navegador.** + +## Contribuindo + +Fique à vontade para contribuir para o desenvolvimento da BrInvestAPI. Sua colaboração é bem-vinda! Você pode colaborar com código enviando um [Pull Request](https://github.com/GeovaneDev/BrInvestAPI/pulls) ou uma sugestão com os [Issues](https://github.com/GeovaneDev/BrInvestAPI/issues) + +## Licença + Este projeto está licenciado sob a [Licença MIT](https://github.com/GeovaneDev/BrInvestAPI/blob/main/LICENSE). \ No newline at end of file diff --git a/app/globals.css b/app/globals.css index 7222bc4..110a8d9 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1,8 +1,8 @@ -.dark-mode { - background-color: #1a1a1a; - color: #fff; -} - -.dark-mode a { - color: #fff; +.dark-mode { + background-color: #1a1a1a; + color: #fff; +} + +.dark-mode a { + color: #fff; } \ No newline at end of file diff --git a/app/layout.tsx b/app/layout.tsx index ff242e0..a9babc2 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,25 +1,25 @@ -import type { Metadata } from 'next' -import 'bootstrap/dist/css/bootstrap.min.css'; -import { Inter } from 'next/font/google' -import './globals.css' - -const inter = Inter({ subsets: ['latin'] }) - -export const metadata: Metadata = { - title: 'BrInvestAPI - Dados Financeiros Brasileiros | API B3', - description: 'Descubra a melhor API B3, BrInvestAPI. Fornece dados confiáveis e em tempo real sobre ações, cotações, índices e informações essenciais para o mercado financeiro do Brasil. Experimente agora!' -} - -export default function RootLayout({ - children, -}: { - children: React.ReactNode -}) { - return ( - <> - - {children} - - - ) -} +import type { Metadata } from 'next' +import 'bootstrap/dist/css/bootstrap.min.css'; +import { Inter } from 'next/font/google' +import './globals.css' + +const inter = Inter({ subsets: ['latin'] }) + +export const metadata: Metadata = { + title: 'BrInvestAPI - Dados Financeiros Brasileiros | API B3', + description: 'Descubra a melhor API B3, BrInvestAPI. Fornece dados confiáveis e em tempo real sobre ações, cotações, índices e informações essenciais para o mercado financeiro do Brasil. Experimente agora!' +} + +export default function RootLayout({ + children, +}: { + children: React.ReactNode +}) { + return ( + <> + + {children} + + + ) +} diff --git a/app/not-found.js b/app/not-found.js index 625878f..ea309ae 100644 --- a/app/not-found.js +++ b/app/not-found.js @@ -1,76 +1,76 @@ -"use client" -import Link from 'next/link'; -import Image from 'next/image'; -import { DefaultSeo } from 'next-seo'; -import Navbar from '../components/Navbar'; -import Footer from '../components/Footer'; -import 'bootstrap/dist/css/bootstrap.min.css'; - -const NotFoundPage = () => { - return ( -
- - - -
-
-
- 404 Not Found -

Página não encontrada

-

- A página que você está procurando pode ter sido removida ou não está mais disponível. -

- Voltar para a página inicial -
-
-
- -
- ); -}; - -export default NotFoundPage; +"use client" +import Link from 'next/link'; +import Image from 'next/image'; +import { DefaultSeo } from 'next-seo'; +import Navbar from '../components/Navbar'; +import Footer from '../components/Footer'; +import 'bootstrap/dist/css/bootstrap.min.css'; + +const NotFoundPage = () => { + return ( +
+ + + +
+
+
+ 404 Not Found +

Página não encontrada

+

+ A página que você está procurando pode ter sido removida ou não está mais disponível. +

+ Voltar para a página inicial +
+
+
+ +
+ ); +}; + +export default NotFoundPage; diff --git a/app/page.js b/app/page.js index 7ac336f..8875fbd 100644 --- a/app/page.js +++ b/app/page.js @@ -1,125 +1,169 @@ -"use client"; -import React from 'react'; -import { DefaultSeo } from 'next-seo'; -import Link from 'next/link'; -import Image from 'next/image'; -import Navbar from '../components/Navbar'; -import Footer from '../components/Footer'; -import "./globals.css" - -const Home = () => { - return ( - <> - - -
-
-
-
-
- BrInvestAPI Logo -

Bem-vindo à BrInvestAPI

-

Sua fonte confiável de dados em tempo real sobre ações, cotações e índices do mercado financeiro brasileiro.

- Comece Agora -
-
-
-
-
-
-
-

Por que Escolher a BrInvestAPI?

-
-
-
-

Dados Abrangentes

-

Acesse uma ampla gama de dados do mercado de ações, incluindo métricas e índices financeiros.

-
-
-
-
-

Atualizações em Tempo Real

-

Mantenha-se informado com dados atualizados do mercado de ações.

-
-
-
-
-

Integração Fácil

-

Integração simples e fácil em suas aplicações com nossa API amigável para desenvolvedores.

-
-
-
-
-
- -