Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

Ania#31

Open
AniaCuapio wants to merge 18 commits into
Laboratoria:masterfrom
Paotm:Ania
Open

Ania#31
AniaCuapio wants to merge 18 commits into
Laboratoria:masterfrom
Paotm:Ania

Conversation

@AniaCuapio

Copy link
Copy Markdown

No description provided.

@HectorBlisS HectorBlisS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Su app es muy consistente, me gusto mucho, lamentablemente no se nota el trabajo de más de 2 personas y es lamentable no solo por el trabajo no visible si no porque como equipo también refleja la falta de organización, el código puede ser más semántico, y definitivamente más modularizado, entendiendo modularización como la separación de responsabilidades, no la creación de muchos archivos, pueden ser 2 pero con responsabilidades separadas.

Comment thread src/index.js
@@ -6,13 +6,6 @@ import { renderPostView } from "./views/post.js"
import { renderProfileView } from "./views/profile.js"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Muy bueno que tengas separadas las funciones de Firebase de las funciones que tocan el DOM, sería mejor si el archivo tuviera un nombre semantico, firebase.js y dejar el nombre index.js para la mezcla de todos los archivo incluso sin poner código, meramente importaciones.

Comment thread src/main.js
import { showPosts } from "./views/home.js"
import { renderProfileView } from "./views/profile.js"
import { showPosts } from "./views/home.js"
import { userObserverProfile } from "./views/profile.js"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tienes varias importaciones que vienen del mismo archivo, todas estas pueden quedar en 1 sola linea import { renderProfileView, userObserverProfile } from "./views/profile.js"

Comment thread src/main.js
@@ -24,122 +25,114 @@ const exitButton = document.querySelector('#exit');
// listeners

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Muy bien agrupando los listeners

Comment thread src/main.js
//Boton para mostrar iniciar sesión
const btnshow = document.querySelector('#showLogin')
btnshow.addEventListener('click', principalView)
window.onload = principalView();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cual es la razón de usar onload, el uso de este depende de la posición del archivo dentro del html, se vuelve innecesario cuando colocas los scripts en la parte inferior del html

Comment thread src/main.js
root.innerHTML = principal()
export function principalView() {
root.innerHTML = principal();
let goLogin = document.querySelector('#goLogin')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Semantica en tus nombres, goLogin se espera que lleve a algun lado, si es una vista sería mejor tener el nombre view implicito

Comment thread src/index.js
})

.then(function () {
console.log('Los datos se guardaron');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Al final, debemos quitar los console.log

Comment thread src/index.js Outdated
console.log('Datos correctos, bienvenido!')
})
.catch(function (error) {
alert('Upsi, datos incorrectos');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Evitemos el uso de alerts para notificar, usemoslas para advertir.

Comment thread src/index.js Outdated
const btnexit = document.querySelector('#salir')
btnexit.addEventListener('click', signoutUser)

function signoutUser() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

camelCase

Comment thread src/styles.css Outdated
.imagePop{
font-size: 100px;
}
.acceptDelete{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

las clases css no son camelCase .accept-delete

Comment thread storage.rules
Comment on lines +1 to +7
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if request.auth!=null;
}
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Esto definitivamente no debe ir en el repo, agregar en el gitIgnore

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants