cleanup: comments

This commit is contained in:
Saahil dutta 2024-08-02 10:42:17 -04:00
parent 6bb0224812
commit 29897c4900
8 changed files with 4 additions and 34 deletions

View file

@ -5,4 +5,3 @@ const reactOutput = Bun.spawnSync({
})
console.log(reactOutput.stdout.toString())
console.log(`Built react app`)
// fs.cpSync(path.join(__dirname, '../build'), path.join(__dirname, '../dist/php'), {recursive: true})

View file

@ -34,26 +34,19 @@ getDeviceInfo() {
'undefined'
? null
: navigator)
// const conn = nav && nav.connection ? nav.connection : null
return {
url: window.location ? window.location.href : null,
referrer: document ? document.referrer : null,
userAgent: nav ? nav.userAgent : null,
// memory: nav ? nav.deviceMemory : undefined,
cpus: nav ? nav.hardwareConcurrency : undefined,
// connection: conn ? { effectiveType: conn.effectiveType, rtt: conn.rtt, downlink: conn.downlink } : undefined,
}
}
handleWebVitals = () =>(d: any) => {
if(isDev) console.log(d)
let idThing = d.name
// const _this = this
switch(idThing) {
// case "TTFB":
// // console.log(`TTFB: ${entry.responseStart}`, entry.name);
// break;
case "LCP":
d.entries.forEach((e: any) =>{
this.client.action(Actions.LCP, {

View file

@ -10,8 +10,6 @@ import GithubStats from './components/AboutPage/Github'
import Projects from './components/Projects'
import Page404 from './components/static/404'
import ContactPage from './components/ContactPage'
// import logo from './logo.svg';
// import './App.css';
function App ({ analytics }: any) {
return (

View file

@ -18,7 +18,6 @@ export function HashRouter({ children }: any) {
if(process.env.NODE_ENV !== "production") console.log('script', child.props, window.location.hash, child.props.route == hash, (hash.length < 2 && child.props.index))
return child.props.path == hash || (hash.length < 2 && child.props.index) || child.props.path == "*"
})
// console.log('child', child)
if(child) return child.props.component;
return null;
}

View file

@ -38,11 +38,7 @@ export default function Projects() {
// otherwise they will all be concacted with the github.json file
const [githubData, setGithubData] = useState ([])
const [translateY, setTranslateY] = useState(0)
// if(translateY > -50) {
// setTimeout(() => {
// setTranslateY(translateY - 10)
// }, 40)
// }
const fetchData = () => {
return Promise.all([fetch(`https://api.github.com/users/NeonGamerBot-QK/repos?per_page=100`)
.then((response) => response.json()),fetch(`https://api.github.com/users/NeonGamerBot-QK/repos?per_page=100?page=2`)

View file

@ -59,7 +59,6 @@ export default function Footer () {
})
}
}
// return () => signal.abort()
})
return <>
<footer className='footer items-center p-4 bottom-0 overflow-hidden' style={{ zIndex: 9999, overflow: 'hidden', color: 'var(--text)', background: 'var(--mantle)' }}>

View file

@ -4,15 +4,9 @@ import ScrollAnimation from 'react-animate-on-scroll'
import Tilt from 'react-parallax-tilt'
import Typewriter from './type'
import { useEffect, useRef } from 'react'
// import 'animate.css/animate.css'
export default function Main () {
const mainEl = useRef(null)
// useEffect(() => {
// if (document.activeElement !== mainEl.current) {
// // do something
// mainEl.current.className
// }
// })
return (
<div className={'hero min-h-screen'} ref={mainEl}>
<div style={{ animation: 'fadeInDown', animationDuration: '1.5s', zIndex: 5 }} className={'animate__animated animate__fadeIn'} >

View file

@ -1,12 +1,4 @@
// import cssIcon from "../../assets/icons/css.svg"
// import htmlIcon from "../../assets/icons/html.svg"
// import reactjs from "../../assets/icons/reactjs.svg"
// import nodejs from "../../assets/icons/nodejs.svg"
// import typescript from "../../assets/icons/typescript.svg"
// import javascript from "../../assets/icons/javascript.svg"
// import CloudFolder from "../../assets/icons/folder_cloud.svg"
// import CloudFolderOpen from "../../assets/icons/folder_cloud_open.svg"
// import { htmlToJsx } from "html-to-jsx-transform";
import * as Icons from "./icons_list"
const icons:any = {
// pre set names so they dont break