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

Pull Request - Memingo's#19

Open
TangCherry wants to merge 30 commits into
Laboratoria:masterfrom
fasez206:master
Open

Pull Request - Memingo's#19
TangCherry wants to merge 30 commits into
Laboratoria:masterfrom
fasez206:master

Conversation

@TangCherry

Copy link
Copy Markdown

Red social de los memes.

Nallely and others added 28 commits April 13, 2020 20:57
…se comenzo la segunda pantalla de registro con imagen y nombre de usuario
… de firestorage asociada con usuario y se pusieron iconos en la Navbar
Comment thread .vscode/launch.json
Comment on lines +2 to +17
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\src\\index.js"
}
]
} No newline at end of file

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.

Este archivo puede estar dentro de .gitignore

Comment thread database.rules.json
Comment on lines +2 to +5
"rules": {
".read": "auth != null",
".write": "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.

Es muy cómodo tener las rules en este archivo pero también es mejor meterlo al .gitignore y no subirlo a github

Comment thread firestore.rules
Comment on lines +1 to +7
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null;
}
}
} No newline at end of file

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.

Lo mismo, mejor no subirlo

Comment thread package.json
Comment on lines +37 to +39
"bulma": "^0.8.1",
"bulma-helper-spacing": "0.0.3",
"bulma-social": "^1.1.1",

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.

Sabemos cuanto peso se agrego a nuestro proyecto con Bulma?, y si valió la pena en comparación con la cantidad de herramientas usadas (de bulma)

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.

No esta mal, pero es bueno saber cuanto peso agrega

Comment thread src/Readme.md
@@ -0,0 +1,79 @@
# 😆 Memingo's, la red social de los memes. 💩

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.

Me encanta el nombre del app <3 😍

Comment thread src/style.css
Comment on lines +11 to +19
.mainLogo{
size: 12px;
margin:auto;
display: flex;
align-items: baseline;

}

.logoMemingos {

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.

Los nombres de las clases se prefieren logo-memingos en vez de camelCase, dejemos el camel case para JS

Comment thread src/style.css
}

.userInfo {
align-items: center!important;

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.

Prohibido usar !important hahaha.

Comment thread src/style.css
Comment on lines +84 to +94
#textId {
width: 25%;
margin-top: 10px;
height: auto;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: #cccccc;
}
#showNewImg {

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.

Prefiramos clases sobre selectores de #

Comment thread test/example.spec.js
Comment on lines +2 to +16
import * as firebase from 'firebase';
import 'firebase/auth';
import database from '../src/database.js';

describe('example', () => {
it('debería ser una función', () => {
expect(typeof example).toBe('function');
let firebaseConfig = {
apiKey: "AIzaSyD6boxRV32Ld50HrVuWx2Fkl5ZlYQyAabk",
authDomain: "memingos-abeea.firebaseapp.com",
databaseURL: "https://memingos-abeea.firebaseio.com",
projectId: "memingos-abeea",
storageBucket: "memingos-abeea.appspot.com",
messagingSenderId: "299345545979",
appId: "1:299345545979:web:a1d0095b63dc2c48e5be5e",
measurementId: "G-7SHPQ7YX96"
};
firebase.initializeApp(firebaseConfig);

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.

Hermoso el hack para los tests

Comment thread test/example.spec.js
describe('database.signUp', () => {
it('should sign up an account successfully', () => {
firebase.auth().onAuthStateChanged(function(user) {
expect(typeof user).toBe('object');

@HectorBlisS HectorBlisS May 15, 2020

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 los test, pero en vez de toBe objeto, hay matchers que pueden comprobar que un objeto trae una llave especifica, como el uid, o podemos hacer:
expect(Object.keys(user).sort()).toEqual(['uid', 'email'].sort()); <- podemos comprobar todas las llaves o algunas.

@HectorBlisS

Copy link
Copy Markdown
Contributor

Me encanta ver tanto código limpio y en orden, se pudo separar un poquito más entre DOM y Lógica, inténtenlo en el próximo proyecto html5, así como la semántica y los nombres de las clases css, pero felicidades Gran trabajo para tan poco tiempo Memingo's!!

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.

3 participants