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

Pokémon Guide #42

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open

Pokémon Guide #42

wants to merge 40 commits into from

Conversation

TangCherry
Copy link

No description provided.

@HectorBlisS
Copy link
Contributor

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) {
Copy link
Contributor

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",
Copy link
Contributor

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

Comment on lines +3 to +17
//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;
}
Copy link
Contributor

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");
Copy link
Contributor

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){
Copy link
Contributor

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;
Copy link
Contributor

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';
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants