Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement/layout changes #35

Merged
merged 39 commits into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
0d8d3bc
refactor: change image color
igords-goncalves Jun 19, 2023
74dcd4c
refactor: change layout of header and insert a nav area
igords-goncalves Jun 19, 2023
e3b48f1
style: apply new style on hader area
igords-goncalves Jun 19, 2023
fb862d5
feat: import flag svg image
igords-goncalves Jun 26, 2023
09aebb6
feat: create card element
igords-goncalves Jun 26, 2023
ef230b4
style: apply style on card component
igords-goncalves Jun 26, 2023
08398eb
feat: create component card
igords-goncalves Jun 26, 2023
b18580b
style: apply style on component
igords-goncalves Jun 26, 2023
ef9d5a3
refactor: rename component to dashboard
igords-goncalves Jun 26, 2023
0a3b10b
feat: create navigation bar component
igords-goncalves Jun 26, 2023
a8ee32f
feat: create acordion layout space
igords-goncalves Jun 26, 2023
0febccd
feat: reference elements and child components on home page
igords-goncalves Jun 26, 2023
cdb9a83
style: create saas league file
igords-goncalves Jun 26, 2023
f5abefa
style: create navbar styles
igords-goncalves Jun 26, 2023
2c8c191
style: create home page styles
igords-goncalves Jun 26, 2023
b8be874
style: improvements on login card style
igords-goncalves Jun 26, 2023
a6fbb07
refactor: rename files
igords-goncalves Jun 26, 2023
4c6a609
feat: create a request for countries
igords-goncalves Jun 26, 2023
8fef2a1
fix: remove unnecessary requesr to get images
igords-goncalves Jun 26, 2023
8c88f5c
feat: create pull request template document
igords-goncalves Mar 31, 2024
13dfdb8
fix: general commit
igords-goncalves Mar 31, 2024
91b84b7
build: cria o arquivo .env.sample
igords-goncalves Jun 15, 2024
dd6c27e
build: renomeia o arquivo .env file e remove do respositório remoto
igords-goncalves Jun 15, 2024
746a4f5
build: configura o husky e commitlinter para verificação de pre-commi…
igords-goncalves Jun 15, 2024
8e090e2
chore: configura arquivos gerais, instala novos pacotes e melhora os …
igords-goncalves Jun 15, 2024
997089b
chore: adiciona o arquivo de configuração para commitzen
igords-goncalves Jun 15, 2024
e52a674
test: configura o cypress
igords-goncalves Jun 15, 2024
758d643
docs: documenta as collections para requisição e configura o editor d…
igords-goncalves Jun 15, 2024
1a0befd
ci: cria e configura script para CI workflow do github actions
igords-goncalves Jun 15, 2024
814b919
refactor: renomeia pastas, componentes e separa componentes de compon…
igords-goncalves Jun 15, 2024
ecb8c4b
refactor: torna componente de rotas composable
igords-goncalves Jun 15, 2024
2c8d9f9
refactor: troca titulo da página
igords-goncalves Jun 15, 2024
31f0bcf
fix: configura script para rodar teste unitário com cypress
igords-goncalves Jun 15, 2024
d91df90
refactor: renomeia variável
igords-goncalves Jun 15, 2024
b7e0d37
refactor: corrige importações e refatora componentes
igords-goncalves Jun 15, 2024
02ff834
style: adiciona áreas nomeadas ao layout
igords-goncalves Jun 15, 2024
0585272
refactor: corrige importações e refatora estrutura semântica do compo…
igords-goncalves Jun 15, 2024
8344692
build: remove chamada para testes unitário do cypress
igords-goncalves Jun 15, 2024
149455b
fix: resolve conflitos
igords-goncalves Jun 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "cz-conventional-changelog"
}
18 changes: 9 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 0 additions & 2 deletions .env

This file was deleted.

2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# REACT_APP_API_BASEURL=
# REACT_APP_API_IMAGES=
83 changes: 39 additions & 44 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,39 @@
{
"env": {
"browser": true,
"es2020": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"react-refresh",
"@typescript-eslint",
"prettier"
],
"rules": {
"prettier/prettier": "error",
"react-refresh/only-export-components": "off",
"prefer-arrow-callback": "error",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
{
"env": {
"browser": true,
"es2020": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "react-refresh", "@typescript-eslint", "prettier"],
"rules": {
"prettier/prettier": "error",
"react-refresh/only-export-components": "off",
"prefer-arrow-callback": "warn", // require using arrow functions for callbacks
"react/prop-types": "off", // requires that all React components have their props described in a PropTypes declaration
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-explicit-any": "off" // disallow usage of the any type, change it to warn later
}
}
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# https://docs.github.com/en/actions/quickstart
name: Continuous integration
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [pull_request]
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm

- name: Install dependencies
run: npm ci

- name: Build and test
run: npm run build

- name: Run tests
run: npm test
47 changes: 24 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
.env

# Editor directories and files
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn commitlint --edit \
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn run lint
6 changes: 6 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# && yarn cy:run-unit

git diff HEAD --quiet && yarn run build
30 changes: 17 additions & 13 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"material-icon-theme.folders.associations": {
"redux": "redux-store",
"state": "constant",
"initialState": "redux-selector",
"BackTopBtn": "react-components",
"Card": "react-components",
}
}
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"material-icon-theme.folders.associations": {
"redux": "redux-store",
"state": "constant",
"initialState": "redux-selector",
"BackTopBtn": "react-components",
"Card": "react-components"
},
"material-icon-theme.files.associations": {
".czrc": "git"
},
"window.zoomLevel": 0
}
Loading
Loading