-
Notifications
You must be signed in to change notification settings - Fork 50
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
Modularizacion RS1 #5
base: main
Are you sure you want to change the base?
Conversation
…work into show-buttons
add a new folder named Components, add import and export welcome func…
add hover to register and login buttons
add first route
Show buttons (login and register)
fixed footer
change logo gym partners
creates footer and div container for main and footer
Show buttons
adds register route and insert all elements to the DOM
add view style create account
Add auth, email and password
Adds edit icon for posts (Feed)
Add function getdoc and event with save icon
edit and save post
add controller folder
Export register function, from controller folder to register- Mvc
exports login with github
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
@@ -0,0 +1,316 @@ | |||
import { getAuth } from 'https://www.gstatic.com/firebasejs/9.9.3/firebase-auth.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¿¿??
// NEW POST | ||
// Div new Post | ||
const postDiv = document.createElement('div'); | ||
postDiv.setAttribute('class', 'post-input'); | ||
// Div input | ||
const inputDiv = document.createElement('div'); | ||
inputDiv.setAttribute('class', 'input-feed'); | ||
// Img input | ||
const inputImg = document.createElement('img'); | ||
inputImg.src = '../img/user-img.png'; | ||
inputImg.setAttribute('class', 'userimg-feed'); | ||
// input | ||
const createPost = document.createElement('textarea'); | ||
createPost.setAttribute('cols', '40'); | ||
createPost.setAttribute('rows', '2'); | ||
createPost.setAttribute('placeholder', 'Ask to your partner...'); | ||
createPost.setAttribute('class', 'newpost-feed'); | ||
createPost.setAttribute('id', 'inputpost-feed'); | ||
// icon | ||
const writeIcon = document.createElement('img'); | ||
writeIcon.src = '../img/write-icon.png'; | ||
writeIcon.setAttribute('class', 'writeicon-feed'); | ||
inputDiv.append(inputImg, createPost, writeIcon); | ||
// Container button | ||
const containerButton = document.createElement('div'); | ||
containerButton.setAttribute('class', 'containerbutton-feed'); | ||
// Msg Error | ||
const msgError = document.createElement('div'); | ||
msgError.setAttribute('class', 'msgerror-feed'); | ||
msgError.textContent = 'Please, write something'; | ||
// Container divs post | ||
const containerDivs = document.createElement('div'); | ||
containerDivs.setAttribute('class', 'container-posts'); | ||
// share button | ||
const shareButton = document.createElement('button'); | ||
shareButton.setAttribute('class', 'sharebutton-feed'); | ||
shareButton.textContent = 'Share'; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
esto podría estar en otro archivo
NewPost.js
const NewPost =()=>{
}
// NEW POST | |
// Div new Post | |
const postDiv = document.createElement('div'); | |
postDiv.setAttribute('class', 'post-input'); | |
// Div input | |
const inputDiv = document.createElement('div'); | |
inputDiv.setAttribute('class', 'input-feed'); | |
// Img input | |
const inputImg = document.createElement('img'); | |
inputImg.src = '../img/user-img.png'; | |
inputImg.setAttribute('class', 'userimg-feed'); | |
// input | |
const createPost = document.createElement('textarea'); | |
createPost.setAttribute('cols', '40'); | |
createPost.setAttribute('rows', '2'); | |
createPost.setAttribute('placeholder', 'Ask to your partner...'); | |
createPost.setAttribute('class', 'newpost-feed'); | |
createPost.setAttribute('id', 'inputpost-feed'); | |
// icon | |
const writeIcon = document.createElement('img'); | |
writeIcon.src = '../img/write-icon.png'; | |
writeIcon.setAttribute('class', 'writeicon-feed'); | |
inputDiv.append(inputImg, createPost, writeIcon); | |
// Container button | |
const containerButton = document.createElement('div'); | |
containerButton.setAttribute('class', 'containerbutton-feed'); | |
// Msg Error | |
const msgError = document.createElement('div'); | |
msgError.setAttribute('class', 'msgerror-feed'); | |
msgError.textContent = 'Please, write something'; | |
// Container divs post | |
const containerDivs = document.createElement('div'); | |
containerDivs.setAttribute('class', 'container-posts'); | |
// share button | |
const shareButton = document.createElement('button'); | |
shareButton.setAttribute('class', 'sharebutton-feed'); | |
shareButton.textContent = 'Share'; | |
const newPost = NewPost() | |
fatherOfAll.apend(newPost) |
shareButton.setAttribute('class', 'sharebutton-feed'); | ||
shareButton.textContent = 'Share'; | ||
|
||
// ALL POSTS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lo mismo con esto
/* eslint-disable no-shadow */ | ||
/* eslint-disable no-undef */ | ||
/* eslint-disable import/no-unresolved */ | ||
/* eslint-disable max-len */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mejor reglas ¿No?
src/lib/Auth.js
Outdated
import { | ||
getAuth, createUserWithEmailAndPassword, signInWithEmailAndPassword, GoogleAuthProvider, signInWithRedirect, | ||
getRedirectResult, GithubAuthProvider, signOut, | ||
} from 'https://www.gstatic.com/firebasejs/9.9.3/firebase-auth.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en imports
src/lib/Auth.js
Outdated
/* // UPDATE INFO | ||
export const updateInfo = (name) => updateProfile(auth.currentUser, { | ||
displayName: name, | ||
}).then(() => { | ||
// Profile updated! | ||
// ... | ||
console.log('name updated'); | ||
}).catch((error) => { | ||
// An error occurred | ||
// ... | ||
console.log('no name'); | ||
}); | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
si no se usa borralo
/* // UPDATE INFO | |
export const updateInfo = (name) => updateProfile(auth.currentUser, { | |
displayName: name, | |
}).then(() => { | |
// Profile updated! | |
// ... | |
console.log('name updated'); | |
}).catch((error) => { | |
// An error occurred | |
// ... | |
console.log('no name'); | |
}); | |
*/ |
src/lib/Config.js
Outdated
@@ -0,0 +1,13 @@ | |||
import { initializeApp } from 'https://www.gstatic.com/firebasejs/9.9.3/firebase-app.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
las voy a hackear
add test of the register function
add test singout
Revert "add test singout"
fixed bugs
No description provided.