diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..8f0de65c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..00b6110e --- /dev/null +++ b/.env.example @@ -0,0 +1,58 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index bffb357a..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..7dbbf41a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +* text=auto + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/.gitignore b/.gitignore index c87c9b39..f0d10af6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,36 +1,18 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies /node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts +/public/build +/public/hot +/public/storage +/storage/*.key +/vendor +.env +.env.backup +.env.production +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +/.fleet +/.idea +/.vscode diff --git a/README.md b/README.md index 93d44b2d..3ed385a7 100644 --- a/README.md +++ b/README.md @@ -1,52 +1,66 @@ -# **TESTE DE FRONTEND** +
-Neste teste, você será livre para criar uma aplicação consumindo a API que você quiser e com o tema que desejar. -Contudo, o seu projeto deverá seguir os requisitos mínimos de conteúdo. + -SUGESTÕES DE APIS: -https://github.com/public-apis/public-apis +## About Laravel ---------------------------------------------------------------------- -## REQUISITOS: +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: -- SEJA ORIGINAL, PROJETOS SUSPEITOS DE SEREM COPIADOS SERÃO DESCARTADOS! -- QUEREMOS VER O SEU CÓDIGO, E NÃO O DE OUTROS. +- [Simple, fast routing engine](https://laravel.com/docs/routing). +- [Powerful dependency injection container](https://laravel.com/docs/container). +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). +- [Robust background job processing](https://laravel.com/docs/queues). +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). -## GIT -- Faça um fork deste repositório. -- Criar uma branch para codar as suas features. -- Criar um pull-request quando o teste for finalizado e submetido. +Laravel is accessible, powerful, and provides tools required for large, robust applications. -##### **NOTA: Será avaliado também se o nome da branch, títulos de commit, push e comentários possuem boa legibilidade.** +## Learning Laravel ------------------------------------------------------ +Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. -## FRAMEWORK +You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. -- Utilizar as ferramentas presentes no framework do projeto (NEXT.JS). +If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. ------------------------------------------------------ +## Laravel Sponsors -## ESTILOS +We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell). -- Os estilos deste teste devem ser feitos em styled-components (evite utilizar bootstrap, mas se necessário, use). -- O projeto deverá conter tema claro/escuro e forma do usuário alterar entre os dois. -- Deve ser totalmente responsivo. +### Premium Partners ------------------------------------------------------ +- **[Vehikl](https://vehikl.com/)** +- **[Tighten Co.](https://tighten.co)** +- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** +- **[64 Robots](https://64robots.com)** +- **[Cubet Techno Labs](https://cubettech.com)** +- **[Cyber-Duck](https://cyber-duck.co.uk)** +- **[Many](https://www.many.co.uk)** +- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)** +- **[DevSquad](https://devsquad.com)** +- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** +- **[OP.GG](https://op.gg)** +- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)** +- **[Lendio](https://lendio.com)** -## PROJETO +## Contributing -- Deve utilizar useContext, useState e useEffect. -- Ter ao menos 3 paginas navegáveis com router (ex: um navbar para facilitar a navegação). -- Deve consumir uma API de sua escolha, desde que os dados sejam filtraveis e paginados. No mínimo 15 itens por requisição. +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). -------------------------------------------------------- +## Code of Conduct -## REQUISITOS DIFERENCIAIS: +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). -- Código tentando seguir SOLID. -- Código performático. -- Utilizar inglês no projeto todo. -- Utilizar Injeção de Dependências. -- Fazer deploy do mesmo (heroku, netlify, aws, vercel, github pages ou outro da preferência). +## Security Vulnerabilities + +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. + +## License + +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php new file mode 100644 index 00000000..d8bc1d29 --- /dev/null +++ b/app/Console/Kernel.php @@ -0,0 +1,32 @@ +command('inspire')->hourly(); + } + + /** + * Register the commands for the application. + * + * @return void + */ + protected function commands() + { + $this->load(__DIR__.'/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php new file mode 100644 index 00000000..82a37e40 --- /dev/null +++ b/app/Exceptions/Handler.php @@ -0,0 +1,50 @@ +, \Psr\Log\LogLevel::*> + */ + protected $levels = [ + // + ]; + + /** + * A list of the exception types that are not reported. + * + * @var arrayLet's continue searching for anime?
+
+ Want to discover some new anime? Here is the right place!
+
+ + Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, eaque nostrum + dolore esse ea saepe sequi vel! Minima totam quos sit architecto perspiciatis + tenetur dignissimos aliquid libero vero ex doloremque, ab quo iure, quod hic + cupiditate delectus laborum? Repellat mollitia magnam similique id tenetur + voluptas aliquid natus animi sunt quae. +
++ Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, eaque nostrum + dolore esse ea saepe sequi vel! Minima totam quos sit architecto perspiciatis + tenetur dignissimos aliquid libero vero ex doloremque, ab quo iure, quod hic + cupiditate delectus laborum? Repellat mollitia magnam similique id tenetur + voluptas aliquid natus animi sunt quae. +
+
+
+ Gol D. Roger was known as the "Pirate King," the strongest and most infamous being to have sailed the Grand Line... See more
+
+ Moments prior to Naruto Uzumaki's birth, a huge demon known as the Kyuubi, the Nine-Tailed Fox... See more
+
+ Ichigo Kurosaki is an ordinary high schooler—until his family is attacked by a Hollow, a corrupt spirit that seeks to devour human souls... See more
+
+ Corrupt politicians, frenzied nationalists, and other warmongering forces constantly jeopardize the thin veneer... See more
+
+ Ever since the death of his father, the burden of supporting the family has fallen upon Tanjirou Kamado's shoulders... See more
+
+ Hunters devote themselves to accomplishing hazardous tasks, all from traversing the world's uncharted... See more
+
+ Hitohito Tadano is an ordinary boy who heads into his first day of high school with a clear plan: to avoid trouble... See more
+
+ When tragedy is about to strike, Satoru Fujinuma finds himself sent back several minutes before the accident... See more
+
+ One autumn evening at a mysterious ramen stand behind the Shimogamo Shrine, a lonely third-year college... See more
+
+ After five years of harboring unspoken feelings, high-schooler Taiju Ooki is finally ready to confess his love... See more
+Young Thorfinn grew up listening to the stories of old sailors that had traveled the ocean and reached ... See more
+
+ Centuries ago, mankind was slaughtered to near extinction by monstrous humanoid creatures called Titans... See more
+Eccentric scientist Rintarou Okabe has a never-ending thirst for scientific exploration. Together with his ditzy... See more
+
+ In Tokyo's downtown district of Ikebukuro, amidst many strange rumors and warnings of anonymous gangs... See more
+
+ The year is 1868; English nobleman George Joestar and his son Jonathan become indebted to Dario Brando... See more
+