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

Social Network equipo 14#33

Open
fabi-pharoxysme wants to merge 25 commits into
Laboratoria:masterfrom
Sheiki1:master
Open

Social Network equipo 14#33
fabi-pharoxysme wants to merge 25 commits into
Laboratoria:masterfrom
Sheiki1:master

Conversation

@fabi-pharoxysme

Copy link
Copy Markdown

Pull request de proyecto Social-Network
Equpo 14 :
Shei Miceli
Astrid Gutierrez
Fabiola Ruiz

Sheiki1 and others added 25 commits April 15, 2020 09:23
…n un poco de interaccion, permite pasar de una pagina a otra por medio de los botones de registrarse e iniciar sesion
Se agregan imagenes de las pantallas en la aplicación
Intro Bake Recipes Book
Se agregan imagenes de la versión final
Cambios en Readme
Cambios al readme
Cambios al Readme
Cambios al Readme
add button delete function in profile

@reloadercf reloadercf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hay mucho que mejorar pero siguiendo las recomendaciones y documentándose sera posible una mejora continua, creo que elegir un framework al inicio y probarlo puede que sea la mejor forma para decidir si se queda o se desinstala, mantener 2 frameworks definitivamente esta mal, algo que me hubiera gustado ver seria testing, es importante empezarlo paralelamente el testing, lo que más me gusto de su proyecto es la estructura y ver que en su mayoria implementaron buenas practicas.

Comment on lines +3 to +6
export const db = firebase.firestore();
// Authentication
const usersRef = db.collection('users');
const auth = firebase.auth();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Me agrada que tengan la buena practica de nombran const a las variables que no cambian ;)

Comment on lines +17 to +18
}
export const login = (email, password) => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
}
export const login = (email, password) => {
}
export const login = (email, password) => {

Sugerencia

export const signup = (email, password) => {
auth.createUserWithEmailAndPassword(email, password)
.then((snap => {
console.log(snap);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

En una versión de construcción esta bien tener los console.log( ) pero en una versión de producción (y más para revisión) se deben de quitar.

Suggested change
console.log(snap);

console.log(snap);
saveUser(snap.user);
let mail = snap.user.email;
alert(`${mail} registro exitoso!`);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No se recomienda el uso de alerts porque suele ser confuso para el usuario.

.catch((error => {
let errorCode = error.code;
let errorMessage = error.message;
alert(`lo sentimos: ${errorCode} ${errorMessage}`)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

otro alert

Suggested change
alert(`lo sentimos: ${errorCode} ${errorMessage}`)

Comment thread src/style.css
border: 0px;
}

.imgSignUp{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
.imgSignUp{
.img-sign-up{

Comment thread src/style.css
border-radius: 92px;
}

.logoSignUp{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
.logoSignUp{
.logo-sign-up{

Comment on lines +9 to +19
root.innerHTML = `<div id="navBar">
<img class="is-rounded" src="https://uxrecipe.github.io/img/uxrecipe-logo.png" id="logo">
<div class="dropdown">
<button class="dropbtn"><i class="fas fa-bars" aria-hidden="true"></i></button>
<div class="dropdown-content">
<a href="#"><i class="fas fa-bell" aria-hidden="true"></i> Notificaciones</a>
<a href="#"><i class="fas fa-bookmark" aria-hidden="true"></i> Guardado</a>
<a href="#"><i class="fas fa-wrench" aria-hidden="true"></i> Configuracion</a>
</div>
</div>
</div>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

identación

Suggested change
root.innerHTML = `<div id="navBar">
<img class="is-rounded" src="https://uxrecipe.github.io/img/uxrecipe-logo.png" id="logo">
<div class="dropdown">
<button class="dropbtn"><i class="fas fa-bars" aria-hidden="true"></i></button>
<div class="dropdown-content">
<a href="#"><i class="fas fa-bell" aria-hidden="true"></i> Notificaciones</a>
<a href="#"><i class="fas fa-bookmark" aria-hidden="true"></i> Guardado</a>
<a href="#"><i class="fas fa-wrench" aria-hidden="true"></i> Configuracion</a>
</div>
</div>
</div>
root.innerHTML =
`<div id="navBar">
<img class="is-rounded" src="https://uxrecipe.github.io/img/uxrecipe-logo.png" id="logo">
<div class="dropdown">
<button class="dropbtn">
<i class="fas fa-bars" aria-hidden="true"></i>
</button>
<div class="dropdown-content">
<a href="#"><i class="fas fa-bell" aria-hidden="true"></i> Notificaciones</a>
<a href="#"><i class="fas fa-bookmark" aria-hidden="true"></i> Guardado</a>
<a href="#"><i class="fas fa-wrench" aria-hidden="true"></i> Configuracion</a>
</div>
</div>
</div>

</div>
</div>
</div>
<br>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Cada vez que se usa br muere un gatito :´´( no usen br mejor usen salto de párrafo

Suggested change
<br>
<p/>

Comment on lines +27 to +29
const profile = document.querySelector("#profile");
profile.onclick = postPage;
const newPost = document.querySelector('#newPost');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Si la variable cambia el valor es mejor usar let

Suggested change
const profile = document.querySelector("#profile");
profile.onclick = postPage;
const newPost = document.querySelector('#newPost');
let profile = document.querySelector("#profile");
profile.onclick = postPage;
let newPost = document.querySelector('#newPost');

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