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

CodeReview #26

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

CodeReview #26

wants to merge 66 commits into from

Conversation

EtnaSI
Copy link

@EtnaSI EtnaSI commented Mar 14, 2020

Falta depurar código y hacer pruebas.

Copy link
Contributor

@HectorBlisS HectorBlisS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muy bien las descripciones en los commits, lastima que están en español, evítenlo en el siguiente proyecto. Se nota el trabajo progresivo y duro y también el trabajo en equipo, felicidades por el producto final, muy completo.

@@ -128,7 +128,7 @@ escribe('data.orderNumber', () => {
});

it('should return Bulbasur first and Ivysaur after', () => {
expect(pokemon).toHaveProperty('weaknesses', 'Ice');
expect(pokemon.id).toBe('1' , '2');
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 por los tests

@@ -1,16 +1,16 @@
import pokemon from './data/pokemon/pokemon.js';
//console.log(pokemon);
// console.log(pokemon);

const data = {
saveNumber: (searchNumber) => {
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 los nombres de las funciones en ingles

@@ -1,16 +1,16 @@
import pokemon from './data/pokemon/pokemon.js';
//console.log(pokemon);
// console.log(pokemon);

const data = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No es necesario crear un objeto, se pueden exportar las funciones e forma independiente

src/data.js Outdated
Comment on lines 42 to 45
orderFilter = pokemon.sort((a, b) => {
if (a.name > b.name) {
return 1;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se entiende porque se hace esto evitando el ordenado default unicode?

@@ -1,5 +1,5 @@
// importamos la función `example`
import { data } from "../src/data";
import { data } from '../src/data';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XD

@@ -0,0 +1,234 @@
@import url('https://fonts.googleapis.com/css?family=Saira+Condensed&display=swap');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bien por el uso de fuentes externas

src/main.js Outdated
Comment on lines 133 to 134
let overlay = document.querySelector('#profileContainer');
let popup = document.getElementsByClassName('profileCard');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preferible usar querySelector, ya que getElementsByClassName devuelve un tagList (lista extraña que no es un array)

src/main.js Outdated
let newPopup = popup[popup.length-1];
//console.log(newPopup);
let btnClosePopup = document.getElementsByClassName('btn-cerrar-popup')
let btnClosePopup = document.getElementsByClassName('btn-cerrar-popup');
let newBtnClose = btnClosePopup[btnClosePopup.length-1];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si buscamos un lemeno en especifico es mejor darle un id

src/main.js Outdated
Comment on lines 292 to 293
overlay.classList.remove('active')
newPopup.classList.remove('active')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bien el uso de classList

src/main.js Outdated
Comment on lines 480 to 483
const profileContainer = document.createElement("div");
profileContainer.className = "profileContainer";
profileContainer.id = "profileContainer";
document.body.appendChild(profileContainer);
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

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.

3 participants