-
Notifications
You must be signed in to change notification settings - Fork 62
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
Pokémon Guide #42
base: master
Are you sure you want to change the base?
Pokémon Guide #42
Conversation
Tengo la sensación de que faltan muchos cambios? y me hace mucho ruido que solo 1 de ustedes tenga nombre y foto (cuenta) revisen eso porque si no todo el trabajo es anónimo. ;) |
import data from './data/pokemon/pokemon.js'; | ||
|
||
//funcion para mostrar todos los pokemones | ||
export function showPokemons (pokemon) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recuerda ser más semantica, la función recibe 1 pokemon y devuelve un array de pokemones? tal vez recibe un ID?, sé más descriptiva ;)
@@ -15,13 +15,14 @@ | |||
"@babel/core": "^7.6.2", | |||
"@babel/plugin-transform-modules-commonjs": "^7.6.0", | |||
"babel-jest": "^24.9.0", | |||
"express": "^4.17.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
porqué está express instalado? XD
//funcion para mostrar todos los pokemones | ||
export function showPokemons (pokemon) { | ||
let allPokemons = data.pokemon | ||
for (let i = 0; i <= allPokemons.length; i++){ | ||
} | ||
return allPokemons; | ||
} | ||
|
||
|
||
|
||
//funcion para filtrar por tipo | ||
export function filterByType(type){ | ||
let filter = data.pokemon.filter(poke=>poke.type.includes(type)) | ||
return filter; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Este código ya vivía en otro archivo
@@ -37,6 +37,7 @@ for(let i=0; i< pokemonType.length; i++){ //va a contar la longitud de cada | |||
let weight = document.createElement ("p"); | |||
let candyCount = document.createElement ("p"); | |||
let egg = document.createElement ("p"); | |||
let weakness = document.createElement("p"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muy bien el orden de los nodos
@@ -14,4 +14,5 @@ export function showPokemons (pokemon) { | |||
export function filterByType(type){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
código que ya existe
src/style.css
Outdated
|
||
.item-flex:hover { | ||
color:red; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sean más consistentes con los espacios
@@ -1,7 +1,7 @@ | |||
// import data from './data/injuries/injuries.js'; | |||
// import data from './data/lol/lol.js'; | |||
// import data from './data/patient/patient.js'; | |||
// import data from './data/pokemon/pokemon.js'; | |||
import data from './data/pokemon/pokemon.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Los comentarios de los commits no son descriptivos, mejorarlos.
No description provided.