mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
console.log deleted
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import React from 'react'
|
||||
|
||||
const AboutThis = () => {
|
||||
|
||||
console.log('ABOUT THIS DEPLOYED')
|
||||
|
||||
return (
|
||||
<div id="about-this">
|
||||
|
||||
@@ -41,7 +41,6 @@ const Account = () => {
|
||||
e.target.reset()
|
||||
|
||||
const data = await makeRequest()
|
||||
console.log(data)
|
||||
|
||||
if (await validateRequest(data)) {
|
||||
|
||||
@@ -83,7 +82,7 @@ const Account = () => {
|
||||
return await data
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +110,7 @@ const Account = () => {
|
||||
}
|
||||
|
||||
catch (error) {
|
||||
console.log(error)
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -128,7 +127,7 @@ const Account = () => {
|
||||
await setLoading(false)
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,7 +151,7 @@ const Account = () => {
|
||||
})
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
||||
}
|
||||
|
||||
setActualState('')
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from 'react'
|
||||
|
||||
const BannerLogin = (props) => {
|
||||
|
||||
console.log('BANNER LOGIN DEPLOYED')
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -26,13 +26,13 @@ const ClockifyTasksDisplay = (props) => {
|
||||
const db = await getFirestore(firebase)
|
||||
|
||||
const reference = await doc(db, 'users', userUID)
|
||||
console.log(reference)
|
||||
|
||||
|
||||
const dataSnap = await getDoc(reference)
|
||||
const result = await dataSnap.data()
|
||||
|
||||
console.log(userUID)
|
||||
console.log(result)
|
||||
|
||||
|
||||
|
||||
if (result.keyClockify) {
|
||||
|
||||
@@ -41,7 +41,7 @@ const ClockifyTasksDisplay = (props) => {
|
||||
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ const ClockifyTasksDisplay = (props) => {
|
||||
return await data
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ const ClockifyTasksDisplay = (props) => {
|
||||
|
||||
const getApiKeyReturn = key
|
||||
|
||||
console.log(props.apiKey)
|
||||
|
||||
|
||||
const data = await makeRequestWorkspaces(key)
|
||||
|
||||
@@ -89,7 +89,7 @@ const ClockifyTasksDisplay = (props) => {
|
||||
setLoading(false)
|
||||
}
|
||||
|
||||
console.log(workspaces)
|
||||
|
||||
}
|
||||
|
||||
React.useEffect( () => {
|
||||
@@ -128,12 +128,12 @@ const ClockifyTasksDisplay = (props) => {
|
||||
const response = await fetch(`https://api.clockify.me/api/v1/workspaces/${e}/projects`, request)
|
||||
const data = await response.json()
|
||||
|
||||
console.log(data)
|
||||
|
||||
|
||||
return await data
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ const ClockifyTasksDisplay = (props) => {
|
||||
|
||||
if (projects) {
|
||||
|
||||
console.log(projects)
|
||||
|
||||
setProjectsDone(true)
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ const GoDownArrow = (props) => {
|
||||
|
||||
const width = window.screen.width
|
||||
|
||||
console.log(width)
|
||||
|
||||
|
||||
if (width <= '991.98') {
|
||||
return (
|
||||
@@ -16,7 +16,7 @@ const GoDownArrow = (props) => {
|
||||
)
|
||||
}
|
||||
|
||||
console.log('GO DOWN ARROW DEPLOYED')
|
||||
|
||||
|
||||
return (
|
||||
<div className="go-down">
|
||||
|
||||
@@ -4,7 +4,7 @@ import GoToAccount from './Header Childrens/GoToAccount'
|
||||
|
||||
const Header = (props) => {
|
||||
|
||||
console.log("HEADER DEPLOYED")
|
||||
|
||||
|
||||
return (
|
||||
<header className="header-main-page">
|
||||
|
||||
@@ -32,17 +32,17 @@ const Identify = (props) => {
|
||||
|
||||
try {
|
||||
const response = await createUserWithEmailAndPassword(auth, email, password)
|
||||
console.log(response)
|
||||
console.log(response.user)
|
||||
|
||||
|
||||
|
||||
const uid = response.user.uid
|
||||
|
||||
addNewUserToFirebase(uid)
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
||||
setMessage(error.message)
|
||||
console.log(message)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,13 +72,13 @@ const Identify = (props) => {
|
||||
|
||||
try {
|
||||
const response = await signInWithEmailAndPassword(auth, email, password)
|
||||
console.log(response)
|
||||
console.log(response.user)
|
||||
|
||||
|
||||
|
||||
props.history.push('/config-account')
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
||||
setErrorMessage('USER OR PASSWORD NOT VALID')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -364,16 +364,16 @@ const MainPomodoroTimer = (props) => {
|
||||
|
||||
if (weAreInBreakTime) {
|
||||
|
||||
console.log(restCounter)
|
||||
|
||||
|
||||
if (restCounter === 4) {
|
||||
console.log('AA3')
|
||||
|
||||
|
||||
setPomodoroCounter('Long Rest')
|
||||
setRestCounter(0)
|
||||
|
||||
} else {
|
||||
console.log('AA2')
|
||||
|
||||
|
||||
setPomodoroCounter('Rest')
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import uploadToClockifyTimer from './Clockify/uploadToClockifyTimer'
|
||||
|
||||
const MainPomodoro = (props) => {
|
||||
|
||||
console.log('MAIN POMODORO DEPLOYED')
|
||||
|
||||
|
||||
const [style, setStyle] = useState('Regular')
|
||||
const [displayHidden, setDisplayHidden] = useState(true)
|
||||
@@ -22,7 +22,7 @@ const MainPomodoro = (props) => {
|
||||
|
||||
|
||||
const showStyles = () => {
|
||||
console.log('Styles Deployed')
|
||||
|
||||
|
||||
setDisplayHidden(!displayHidden)
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@ const randomText = (typeTimer) => {
|
||||
|
||||
const selection = Math.random() * (max - min) + min;
|
||||
|
||||
console.log(workPhrases)
|
||||
console.log(selection)
|
||||
|
||||
|
||||
|
||||
return workPhrases[selection]
|
||||
}
|
||||
@@ -28,8 +28,8 @@ const randomText = (typeTimer) => {
|
||||
|
||||
const selection = Math.random() * (max - min) + min;
|
||||
|
||||
console.log(restPhrases)
|
||||
console.log(selection)
|
||||
|
||||
|
||||
|
||||
return restPhrases[selection]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user