diff --git a/scripts/build.ts b/scripts/build.ts index c515cf54..f136ea63 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -4,5 +4,4 @@ const reactOutput = Bun.spawnSync({ cmd: ['bun', 'build:react'] }) console.log(reactOutput.stdout.toString()) -console.log(`Built react app`) -// fs.cpSync(path.join(__dirname, '../build'), path.join(__dirname, '../dist/php'), {recursive: true}) \ No newline at end of file +console.log(`Built react app`) \ No newline at end of file diff --git a/src/Ackee.ts b/src/Ackee.ts index 539bd14c..3cfd4c10 100644 --- a/src/Ackee.ts +++ b/src/Ackee.ts @@ -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, { diff --git a/src/App.tsx b/src/App.tsx index e7197136..6a52a10d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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 ( diff --git a/src/components/HashRouter/index.tsx b/src/components/HashRouter/index.tsx index 25122dd6..43e2a40a 100644 --- a/src/components/HashRouter/index.tsx +++ b/src/components/HashRouter/index.tsx @@ -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; } diff --git a/src/components/Projects/index.tsx b/src/components/Projects/index.tsx index 51a87b09..4bfa1695 100644 --- a/src/components/Projects/index.tsx +++ b/src/components/Projects/index.tsx @@ -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`) diff --git a/src/components/footer/index.tsx b/src/components/footer/index.tsx index f966b406..6287cb5b 100644 --- a/src/components/footer/index.tsx +++ b/src/components/footer/index.tsx @@ -59,7 +59,6 @@ export default function Footer () { }) } } - // return () => signal.abort() }) return <>