mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2024-11-21 20:33:40 +00:00
cleanup: comments
This commit is contained in:
parent
6bb0224812
commit
29897c4900
8 changed files with 4 additions and 34 deletions
|
@ -5,4 +5,3 @@ const reactOutput = Bun.spawnSync({
|
||||||
})
|
})
|
||||||
console.log(reactOutput.stdout.toString())
|
console.log(reactOutput.stdout.toString())
|
||||||
console.log(`Built react app`)
|
console.log(`Built react app`)
|
||||||
// fs.cpSync(path.join(__dirname, '../build'), path.join(__dirname, '../dist/php'), {recursive: true})
|
|
|
@ -34,26 +34,19 @@ getDeviceInfo() {
|
||||||
'undefined'
|
'undefined'
|
||||||
? null
|
? null
|
||||||
: navigator)
|
: navigator)
|
||||||
// const conn = nav && nav.connection ? nav.connection : null
|
|
||||||
return {
|
return {
|
||||||
url: window.location ? window.location.href : null,
|
url: window.location ? window.location.href : null,
|
||||||
referrer: document ? document.referrer : null,
|
referrer: document ? document.referrer : null,
|
||||||
userAgent: nav ? nav.userAgent : null,
|
userAgent: nav ? nav.userAgent : null,
|
||||||
// memory: nav ? nav.deviceMemory : undefined,
|
|
||||||
cpus: nav ? nav.hardwareConcurrency : undefined,
|
cpus: nav ? nav.hardwareConcurrency : undefined,
|
||||||
// connection: conn ? { effectiveType: conn.effectiveType, rtt: conn.rtt, downlink: conn.downlink } : undefined,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleWebVitals = () =>(d: any) => {
|
handleWebVitals = () =>(d: any) => {
|
||||||
if(isDev) console.log(d)
|
if(isDev) console.log(d)
|
||||||
let idThing = d.name
|
let idThing = d.name
|
||||||
// const _this = this
|
|
||||||
switch(idThing) {
|
switch(idThing) {
|
||||||
// case "TTFB":
|
|
||||||
// // console.log(`TTFB: ${entry.responseStart}`, entry.name);
|
|
||||||
|
|
||||||
// break;
|
|
||||||
case "LCP":
|
case "LCP":
|
||||||
d.entries.forEach((e: any) =>{
|
d.entries.forEach((e: any) =>{
|
||||||
this.client.action(Actions.LCP, {
|
this.client.action(Actions.LCP, {
|
||||||
|
|
|
@ -10,8 +10,6 @@ import GithubStats from './components/AboutPage/Github'
|
||||||
import Projects from './components/Projects'
|
import Projects from './components/Projects'
|
||||||
import Page404 from './components/static/404'
|
import Page404 from './components/static/404'
|
||||||
import ContactPage from './components/ContactPage'
|
import ContactPage from './components/ContactPage'
|
||||||
// import logo from './logo.svg';
|
|
||||||
// import './App.css';
|
|
||||||
|
|
||||||
function App ({ analytics }: any) {
|
function App ({ analytics }: any) {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -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))
|
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 == "*"
|
return child.props.path == hash || (hash.length < 2 && child.props.index) || child.props.path == "*"
|
||||||
})
|
})
|
||||||
// console.log('child', child)
|
|
||||||
if(child) return child.props.component;
|
if(child) return child.props.component;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,11 +38,7 @@ export default function Projects() {
|
||||||
// otherwise they will all be concacted with the github.json file
|
// otherwise they will all be concacted with the github.json file
|
||||||
const [githubData, setGithubData] = useState ([])
|
const [githubData, setGithubData] = useState ([])
|
||||||
const [translateY, setTranslateY] = useState(0)
|
const [translateY, setTranslateY] = useState(0)
|
||||||
// if(translateY > -50) {
|
|
||||||
// setTimeout(() => {
|
|
||||||
// setTranslateY(translateY - 10)
|
|
||||||
// }, 40)
|
|
||||||
// }
|
|
||||||
const fetchData = () => {
|
const fetchData = () => {
|
||||||
return Promise.all([fetch(`https://api.github.com/users/NeonGamerBot-QK/repos?per_page=100`)
|
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`)
|
.then((response) => response.json()),fetch(`https://api.github.com/users/NeonGamerBot-QK/repos?per_page=100?page=2`)
|
||||||
|
|
|
@ -59,7 +59,6 @@ export default function Footer () {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// return () => signal.abort()
|
|
||||||
})
|
})
|
||||||
return <>
|
return <>
|
||||||
<footer className='footer items-center p-4 bottom-0 overflow-hidden' style={{ zIndex: 9999, overflow: 'hidden', color: 'var(--text)', background: 'var(--mantle)' }}>
|
<footer className='footer items-center p-4 bottom-0 overflow-hidden' style={{ zIndex: 9999, overflow: 'hidden', color: 'var(--text)', background: 'var(--mantle)' }}>
|
||||||
|
|
|
@ -4,15 +4,9 @@ import ScrollAnimation from 'react-animate-on-scroll'
|
||||||
import Tilt from 'react-parallax-tilt'
|
import Tilt from 'react-parallax-tilt'
|
||||||
import Typewriter from './type'
|
import Typewriter from './type'
|
||||||
import { useEffect, useRef } from 'react'
|
import { useEffect, useRef } from 'react'
|
||||||
// import 'animate.css/animate.css'
|
|
||||||
export default function Main () {
|
export default function Main () {
|
||||||
const mainEl = useRef(null)
|
const mainEl = useRef(null)
|
||||||
// useEffect(() => {
|
|
||||||
// if (document.activeElement !== mainEl.current) {
|
|
||||||
// // do something
|
|
||||||
// mainEl.current.className
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
return (
|
return (
|
||||||
<div className={'hero min-h-screen'} ref={mainEl}>
|
<div className={'hero min-h-screen'} ref={mainEl}>
|
||||||
<div style={{ animation: 'fadeInDown', animationDuration: '1.5s', zIndex: 5 }} className={'animate__animated animate__fadeIn'} >
|
<div style={{ animation: 'fadeInDown', animationDuration: '1.5s', zIndex: 5 }} className={'animate__animated animate__fadeIn'} >
|
||||||
|
|
|
@ -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"
|
import * as Icons from "./icons_list"
|
||||||
const icons:any = {
|
const icons:any = {
|
||||||
// pre set names so they dont break
|
// pre set names so they dont break
|
||||||
|
|
Loading…
Reference in a new issue