From 48b279f6871557f93f65c9e61f5182287f6ae954 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 09:20:56 +0000 Subject: [PATCH 01/14] Update index --- index.html | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 8131bc5..2d618b1 100644 --- a/index.html +++ b/index.html @@ -1,31 +1,39 @@ - - + - 2KAbhishek's Projects - + Tylerguy's Projects + - + - + - +
-

All Of My Projects

- Some useful, some stupid, all fun! -
- -
+

All Of My Projects

+ A variety of projects showcasing all of my skills +
+ +
-
- -
    -
    -

    Made with ❤ by 2KAbhishek X OSS

    +
    + +
      +
      +

      + Made with ❤ by + 2KAbhishek X OSS +

      - - + From ad262a7ede3efd0157085c96729eb6a0ae4f2b9e Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 09:52:42 +0000 Subject: [PATCH 02/14] update username --- script.js | 269 +++++++++++++++++++++++++++--------------------------- 1 file changed, 136 insertions(+), 133 deletions(-) diff --git a/script.js b/script.js index 785110a..727f570 100644 --- a/script.js +++ b/script.js @@ -1,30 +1,30 @@ -const username = '2KAbhishek'; +const username = "tylerguy"; const maxPages = 2; const hideForks = true; -const repoList = document.querySelector('.repo-list'); -const reposSection = document.querySelector('.repos'); -const filterInput = document.querySelector('.filter-repos'); +const repoList = document.querySelector(".repo-list"); +const reposSection = document.querySelector(".repos"); +const filterInput = document.querySelector(".filter-repos"); // get information from github profile const getProfile = async () => { - const res = await fetch( - `https://api.github.com/users/${username}` - // { - // headers: { - // Accept: 'application/vnd.github+json', - // Authorization: 'token your-personal-access-token-here' - // } - // } - ); - const profile = await res.json(); - displayProfile(profile); + const res = await fetch( + `https://api.github.com/users/${username}` + // { + // headers: { + // Accept: 'application/vnd.github+json', + // Authorization: 'token your-personal-access-token-here' + // } + // } + ); + const profile = await res.json(); + displayProfile(profile); }; getProfile(); // display infomation from github profile const displayProfile = (profile) => { - const userInfo = document.querySelector('.user-info'); - userInfo.innerHTML = ` + const userInfo = document.querySelector(".user-info"); + userInfo.innerHTML = `
      user avatar
      @@ -45,145 +45,148 @@ const displayProfile = (profile) => { // get list of user's public repos const getRepos = async () => { - let repos = []; - let res; - for (let i = 1; i <= maxPages; i++) { - res = await fetch( - `https://api.github.com/users/${username}/repos?&sort=pushed&per_page=100&page=${i}` - // { - // headers: { - // Accept: 'application/vnd.github+json', - // Authorization: - // 'token your-personal-access-token-here' - // } - // } - ); - let data = await res.json(); - repos = repos.concat(data); - } - repos.sort((a, b) => b.forks_count - a.forks_count); - repos.sort((a, b) => b.stargazers_count - a.stargazers_count); - displayRepos(repos); + let repos = []; + let res; + for (let i = 1; i <= maxPages; i++) { + res = await fetch( + `https://api.github.com/users/${username}/repos?&sort=pushed&per_page=100&page=${i}` + // { + // headers: { + // Accept: 'application/vnd.github+json', + // Authorization: + // 'token your-personal-access-token-here' + // } + // } + ); + let data = await res.json(); + repos = repos.concat(data); + } + repos.sort((a, b) => b.forks_count - a.forks_count); + repos.sort((a, b) => b.stargazers_count - a.stargazers_count); + displayRepos(repos); }; getRepos(); // display list of all user's public repos const displayRepos = (repos) => { - const userHome = `https://github.com/${username}` - filterInput.classList.remove('hide'); - for (const repo of repos) { - if (repo.fork && hideForks) { - continue; - } + const userHome = `https://github.com/${username}`; + filterInput.classList.remove("hide"); + for (const repo of repos) { + if (repo.fork && hideForks) { + continue; + } - const langUrl = `${userHome}?tab=repositories&q=&language=${repo.language}` - const starsUrl = `${userHome}/${repo.name}/stargazers` - const forksUrl = `${userHome}/${repo.name}/network/members` + const langUrl = `${userHome}?tab=repositories&q=&language=${repo.language}`; + const starsUrl = `${userHome}/${repo.name}/stargazers`; + const forksUrl = `${userHome}/${repo.name}/network/members`; - let listItem = document.createElement('li'); - listItem.classList.add('repo'); - listItem.innerHTML = ` + let listItem = document.createElement("li"); + listItem.classList.add("repo"); + listItem.innerHTML = `

      ${repo.name}

      - ${repo.description}

      ` + ${repo.description}

      `; - if (repo.stargazers_count > 0) { - listItem.innerHTML += ` - ⭐ ${repo.stargazers_count}` - } + if (repo.stargazers_count > 0) { + listItem.innerHTML += ` + ⭐ ${repo.stargazers_count}`; + } - if (repo.language) { - listItem.innerHTML += ` - ${devicons[repo.language]}` - } + if (repo.language) { + listItem.innerHTML += ` + ${devicons[repo.language]}`; + } - if (repo.forks_count > 0) { - listItem.innerHTML += ` - ${devicons["Git"]} ${repo.forks_count}` - } + if (repo.forks_count > 0) { + listItem.innerHTML += ` + ${devicons["Git"]} ${repo.forks_count}`; + } - if (repo.homepage && repo.homepage !== "") { - listItem.innerHTML += `

      + if (repo.homepage && repo.homepage !== "") { + listItem.innerHTML += `

      Code ${devicons["Github"]} Live ${devicons["Chrome"]}
      `; - } else { - listItem.innerHTML += `

      + } else { + listItem.innerHTML += `

      View Project ${devicons["Github"]}
      `; - } - - repoList.append(listItem); } + + repoList.append(listItem); + } }; // dynamic search -filterInput.addEventListener('input', (e) => { - const search = e.target.value; - const repos = document.querySelectorAll('.repo'); - const searchLowerText = search.toLowerCase(); +filterInput.addEventListener("input", (e) => { + const search = e.target.value; + const repos = document.querySelectorAll(".repo"); + const searchLowerText = search.toLowerCase(); - for (const repo of repos) { - const lowerText = repo.innerText.toLowerCase(); - if (lowerText.includes(searchLowerText)) { - repo.classList.remove('hide'); - } else { - repo.classList.add('hide'); - } + for (const repo of repos) { + const lowerText = repo.innerText.toLowerCase(); + if (lowerText.includes(searchLowerText)) { + repo.classList.remove("hide"); + } else { + repo.classList.add("hide"); } + } }); // for programming language icons const devicons = { - Git: '', - Github: '', - Chrome: '', - Assembly: ' Assembly', - 'C#': ' C#', - 'C++': ' C++', - C: ' C', - Clojure: ' C', - CoffeeScript: - ' CoffeeScript', - Crystal: ' Crystal', - CSS: ' CSS', - Dart: ' Dart', - Dockerfile: ' Docker', - Elixir: ' Elixir', - Elm: ' Elm', - Erlang: ' Erlang', - 'F#': ' F#', - Go: ' Go', - Groovy: ' Groovy', - HTML: ' HTML', - Haskell: ' Haskell', - Java: ' Java', - JavaScript: ' JavaScript', - Julia: ' Julia', - 'Jupyter Notebook': ' Jupyter', - Kotlin: ' Kotlin', - Latex: ' Latex', - Lua: ' Lua', - Matlab: ' Matlab', - Nim: ' Nim', - Nix: ' Nix', - ObjectiveC: ' ObjectiveC', - OCaml: ' OCaml', - Perl: ' Perl', - PHP: ' PHP', - PLSQL: ' PLSQL', - Processing: - ' Processing', - Python: ' Python', - R: ' R', - Ruby: ' Ruby', - Rust: ' Rust', - Sass: ' Sass', - Scala: ' Scala', - Shell: ' Shell', - Solidity: ' Solidity', - Stylus: ' Stylus', - Svelte: ' Svelte', - Swift: ' Swift', - Terraform: ' Terraform', - TypeScript: ' TypeScript', - 'Vim Script': ' Vim Script', - Vue: ' Vue', + Git: '', + Github: '', + Chrome: '', + Assembly: ' Assembly', + "C#": ' C#', + "C++": ' C++', + C: ' C', + Clojure: ' C', + CoffeeScript: + ' CoffeeScript', + Crystal: ' Crystal', + CSS: ' CSS', + Dart: ' Dart', + Dockerfile: ' Docker', + Elixir: ' Elixir', + Elm: ' Elm', + Erlang: ' Erlang', + "F#": ' F#', + Go: ' Go', + Groovy: ' Groovy', + HTML: ' HTML', + Haskell: ' Haskell', + Java: ' Java', + JavaScript: ' JavaScript', + Julia: ' Julia', + "Jupyter Notebook": ' Jupyter', + Kotlin: + ' Kotlin', + Latex: ' Latex', + Lua: ' Lua', + Matlab: ' Matlab', + Nim: ' Nim', + Nix: ' Nix', + ObjectiveC: ' ObjectiveC', + OCaml: ' OCaml', + Perl: ' Perl', + PHP: ' PHP', + PLSQL: ' PLSQL', + Processing: + ' Processing', + Python: + ' Python', + R: ' R', + Ruby: ' Ruby', + Rust: ' Rust', + Sass: ' Sass', + Scala: ' Scala', + Shell: + ' Shell', + Solidity: ' Solidity', + Stylus: ' Stylus', + Svelte: ' Svelte', + Swift: ' Swift', + Terraform: ' Terraform', + TypeScript: ' TypeScript', + "Vim Script": ' Vim Script', + Vue: ' Vue', }; From 99589960f67cfa9df42066a37643231df07c291a Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 12:03:06 +0000 Subject: [PATCH 03/14] Add shadergraph as a badge icon --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 727f570..3dd3eb2 100644 --- a/script.js +++ b/script.js @@ -179,6 +179,7 @@ const devicons = { Rust: ' Rust', Sass: ' Sass', Scala: ' Scala', + ShaderGraph: ' ShaderGraph', Shell: ' Shell', Solidity: ' Solidity', From de2e8f441f00cb7a02aa510ce7586ee68b36a893 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 12:05:06 +0000 Subject: [PATCH 04/14] change shadergraph to shaderlab --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 3dd3eb2..097687b 100644 --- a/script.js +++ b/script.js @@ -179,7 +179,7 @@ const devicons = { Rust: ' Rust', Sass: ' Sass', Scala: ' Scala', - ShaderGraph: ' ShaderGraph', + ShaderLab: ' ShaderLab', Shell: ' Shell', Solidity: ' Solidity', From 372fbb5ef7af150945c6138871b4800a3a2a5d2c Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 12:07:57 +0000 Subject: [PATCH 05/14] update devicon name for shaderlab --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 097687b..e1040ae 100644 --- a/script.js +++ b/script.js @@ -179,7 +179,7 @@ const devicons = { Rust: ' Rust', Sass: ' Sass', Scala: ' Scala', - ShaderLab: ' ShaderLab', + ShaderLab: ' ShaderLab', Shell: ' Shell', Solidity: ' Solidity', From be58af53361bb74faca32395e02ec3201f276851 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 12:09:44 +0000 Subject: [PATCH 06/14] make icon non-colored for shaderlab --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index e1040ae..83f0ef0 100644 --- a/script.js +++ b/script.js @@ -179,7 +179,7 @@ const devicons = { Rust: ' Rust', Sass: ' Sass', Scala: ' Scala', - ShaderLab: ' ShaderLab', + ShaderLab: ' ShaderLab', Shell: ' Shell', Solidity: ' Solidity', From 0b5d1c5f7ab9ecb73b19ad6d6632a94bd5861050 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 12:44:26 +0000 Subject: [PATCH 07/14] remove search box --- index.html | 5 ----- script.js | 16 ---------------- 2 files changed, 21 deletions(-) diff --git a/index.html b/index.html index 2d618b1..4371d17 100644 --- a/index.html +++ b/index.html @@ -23,11 +23,6 @@

      All Of My Projects

      -

        diff --git a/script.js b/script.js index 83f0ef0..42ae7dc 100644 --- a/script.js +++ b/script.js @@ -114,22 +114,6 @@ const displayRepos = (repos) => { } }; -// dynamic search -filterInput.addEventListener("input", (e) => { - const search = e.target.value; - const repos = document.querySelectorAll(".repo"); - const searchLowerText = search.toLowerCase(); - - for (const repo of repos) { - const lowerText = repo.innerText.toLowerCase(); - if (lowerText.includes(searchLowerText)) { - repo.classList.remove("hide"); - } else { - repo.classList.add("hide"); - } - } -}); - // for programming language icons const devicons = { Git: '', From 2dd605b6c675f9f7180015354c257505752b30f6 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 13:20:46 +0000 Subject: [PATCH 08/14] Update shaderlab name --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 42ae7dc..90e767b 100644 --- a/script.js +++ b/script.js @@ -163,7 +163,7 @@ const devicons = { Rust: ' Rust', Sass: ' Sass', Scala: ' Scala', - ShaderLab: ' ShaderLab', + ShaderLab: ' Unity/ShaderLab', Shell: ' Shell', Solidity: ' Solidity', From f56331be5aa9acff44b99d749ccbddff61bb2347 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 13:30:03 +0000 Subject: [PATCH 09/14] Revert "remove search box" This reverts commit 0b5d1c5f7ab9ecb73b19ad6d6632a94bd5861050. --- index.html | 5 +++++ script.js | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/index.html b/index.html index 4371d17..2d618b1 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,11 @@

        All Of My Projects

        +

          diff --git a/script.js b/script.js index 90e767b..421cf67 100644 --- a/script.js +++ b/script.js @@ -114,6 +114,22 @@ const displayRepos = (repos) => { } }; +// dynamic search +filterInput.addEventListener("input", (e) => { + const search = e.target.value; + const repos = document.querySelectorAll(".repo"); + const searchLowerText = search.toLowerCase(); + + for (const repo of repos) { + const lowerText = repo.innerText.toLowerCase(); + if (lowerText.includes(searchLowerText)) { + repo.classList.remove("hide"); + } else { + repo.classList.add("hide"); + } + } +}); + // for programming language icons const devicons = { Git: '', From 46398117c963035da7b5bacf1409ca89dd847602 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 13:32:31 +0000 Subject: [PATCH 10/14] remove search bar test #2 --- index.html | 7 ------- script.js | 17 ----------------- 2 files changed, 24 deletions(-) diff --git a/index.html b/index.html index 2d618b1..476491f 100644 --- a/index.html +++ b/index.html @@ -21,13 +21,6 @@

          All Of My Projects

          - -
          -

            diff --git a/script.js b/script.js index 421cf67..73a8c57 100644 --- a/script.js +++ b/script.js @@ -70,7 +70,6 @@ getRepos(); // display list of all user's public repos const displayRepos = (repos) => { const userHome = `https://github.com/${username}`; - filterInput.classList.remove("hide"); for (const repo of repos) { if (repo.fork && hideForks) { continue; @@ -114,22 +113,6 @@ const displayRepos = (repos) => { } }; -// dynamic search -filterInput.addEventListener("input", (e) => { - const search = e.target.value; - const repos = document.querySelectorAll(".repo"); - const searchLowerText = search.toLowerCase(); - - for (const repo of repos) { - const lowerText = repo.innerText.toLowerCase(); - if (lowerText.includes(searchLowerText)) { - repo.classList.remove("hide"); - } else { - repo.classList.add("hide"); - } - } -}); - // for programming language icons const devicons = { Git: '', From c00dbe72e72bd3386cb8d9f17a6567435893c836 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 13:33:25 +0000 Subject: [PATCH 11/14] remove search bar test test 2 --- index.html | 7 ------- script.js | 17 ----------------- 2 files changed, 24 deletions(-) diff --git a/index.html b/index.html index 2d618b1..476491f 100644 --- a/index.html +++ b/index.html @@ -21,13 +21,6 @@

            All Of My Projects

            - -
            -

              diff --git a/script.js b/script.js index 421cf67..73a8c57 100644 --- a/script.js +++ b/script.js @@ -70,7 +70,6 @@ getRepos(); // display list of all user's public repos const displayRepos = (repos) => { const userHome = `https://github.com/${username}`; - filterInput.classList.remove("hide"); for (const repo of repos) { if (repo.fork && hideForks) { continue; @@ -114,22 +113,6 @@ const displayRepos = (repos) => { } }; -// dynamic search -filterInput.addEventListener("input", (e) => { - const search = e.target.value; - const repos = document.querySelectorAll(".repo"); - const searchLowerText = search.toLowerCase(); - - for (const repo of repos) { - const lowerText = repo.innerText.toLowerCase(); - if (lowerText.includes(searchLowerText)) { - repo.classList.remove("hide"); - } else { - repo.classList.add("hide"); - } - } -}); - // for programming language icons const devicons = { Git: '', From 67bef2b9a931a032039fb3287f3e90acddbe345d Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 13:51:03 +0000 Subject: [PATCH 12/14] add border radius to bottom corners --- style.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/style.css b/style.css index fdd7ec0..aecda64 100644 --- a/style.css +++ b/style.css @@ -101,8 +101,7 @@ ul { color: var(--text); font-size: 18px; padding: 2em; - border-top-left-radius: 20px; - border-top-right-radius: 20px; + border-radius: 20px; } .user-info figure { From c75d94e6a996e661323df5f664a3cdea6c860092 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 13:53:35 +0000 Subject: [PATCH 13/14] remove location from header --- script.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/script.js b/script.js index 73a8c57..95e337b 100644 --- a/script.js +++ b/script.js @@ -31,9 +31,6 @@ const displayProfile = (profile) => {

              ${profile.name}

              ${profile.bio}

              -

              - Location: ${profile.location} -

              @${profile.login} Repos: ${profile.public_repos} From 0ea7f3d6caaf3f9daa5c64e7054bd0eb9c7b1620 Mon Sep 17 00:00:00 2001 From: tylerguy Date: Tue, 21 Mar 2023 13:55:30 +0000 Subject: [PATCH 14/14] update c icons --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 95e337b..0efeb75 100644 --- a/script.js +++ b/script.js @@ -116,8 +116,8 @@ const devicons = { Github: '', Chrome: '', Assembly: ' Assembly', - "C#": ' C#', - "C++": ' C++', + "C#": ' C#', + "C++": ' C++', C: ' C', Clojure: ' C', CoffeeScript: