Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f8d3632
prueba codigo
Patricia-Hernanandez Aug 17, 2022
6951367
Merge pull request #1 from Patricia-Hernanandez/main
Danielasanchez13 Aug 17, 2022
93e4aea
primeros cambios
Patricia-Hernanandez Aug 22, 2022
66808e4
Merge pull request #2 from Patricia-Hernanandez/main
Danielasanchez13 Aug 22, 2022
3f467bd
cambios paginal menu
Patricia-Hernanandez Aug 22, 2022
707a575
Merge pull request #3 from Patricia-Hernanandez/main
Danielasanchez13 Aug 22, 2022
566c100
actualizacion cartas info personajes
Patricia-Hernanandez Aug 26, 2022
0ba56ba
ordenamiento arbol del DOM, codigo comentado e inicio de filtros
Patricia-Hernanandez Aug 30, 2022
c34a4fd
Merge pull request #4 from Patricia-Hernanandez/main
Danielasanchez13 Aug 30, 2022
793eaac
primera prueba test y ordenado alfabeticamente
Patricia-Hernanandez Sep 2, 2022
e5bc5d8
se realizaron filtros y pruebas test completas
Patricia-Hernanandez Sep 6, 2022
604856d
ADD images
Patricia-Hernanandez Sep 7, 2022
a7e0792
Update README.md
Patricia-Hernanandez Sep 7, 2022
0a6c37d
actualizacion final de proyecto
Patricia-Hernanandez Sep 7, 2022
7c9555a
Merge pull request #1 from Danielasanchez13/main
Patricia-Hernanandez Sep 7, 2022
80d8f3d
readme y cambios finales
Patricia-Hernanandez Sep 7, 2022
bc98347
actualizacion readme
Patricia-Hernanandez Sep 7, 2022
d008ed8
entregable final
Patricia-Hernanandez Sep 7, 2022
bb560f5
Update README.md
Patricia-Hernanandez Sep 7, 2022
b2fc80b
Update README.md
Patricia-Hernanandez Sep 7, 2022
4a0dd17
Merge pull request #5 from Patricia-Hernanandez/main
Danielasanchez13 Sep 9, 2022
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
625 changes: 98 additions & 527 deletions README.md

Large diffs are not rendered by default.

12,090 changes: 12,090 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

45 changes: 38 additions & 7 deletions src/data.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
// estas funciones son de ejemplo
export function orderNameAZ(prop){
if(!prop){
throw new Error()
}
return function(a,b){
if(a[prop] >b [prop]){
return 1;
}
else if(a[prop] <b[prop]){
return -1;
}
return 0;
}
}
export function orderNameZA(prop){
if(!prop){
throw new Error()
}
return function (a,b){
if(a[prop] <b[prop]){
return 1;
}
else if(a[prop] >b[prop]){
return -1;
}
return 0;
}
}

export const example = () => {
return 'example';
};
export const housesFilter = (characters, option) => {
const dataFiltrada = characters.filter(element => element.house === option)
return dataFiltrada;
}

export const anotherExample = () => {
return 'OMG';
};


export const genderFilter = (characters, option) => {
const dataFiltrada2 = characters.filter(element => element.gender === option)
return dataFiltrada2;
}
28 changes: 0 additions & 28 deletions src/data/athletes/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions src/data/athletes/README.pt-BR.md

This file was deleted.

Loading