diff --git a/assets/js/src/counter.js b/assets/js/src/counter.js index c4c17233..14d82907 100644 --- a/assets/js/src/counter.js +++ b/assets/js/src/counter.js @@ -27,11 +27,15 @@ if (wrapper && canonical) { // finally inject the hits... const counter = document.getElementById("hit-counter"); - if (counter) counter.appendChild(document.createTextNode(hitsComma)); + if (counter) { + counter.appendChild(document.createTextNode(hitsComma)); + } // ...and hide the loading spinner const spinner = document.getElementById("hit-spinner"); - if (spinner) spinner.style.display = "none"; + if (spinner) { + spinner.style.display = "none"; + } } else { // something went horribly wrong, initiate coverup wrapper.style.display = "none"; diff --git a/assets/js/src/projects.js b/assets/js/src/projects.js index 797f60ff..0aa0cd67 100644 --- a/assets/js/src/projects.js +++ b/assets/js/src/projects.js @@ -14,7 +14,9 @@ if (wrapper) { ${repo.name} ${(() => { - if (repo.description) return html`
${repo.description}
`; + if (repo.description) { + return html`${repo.description}
`; + } })()} ${(() => { if (repo.language) { @@ -75,7 +77,9 @@ if (wrapper) { }); // we're done, hide the loading spinner - if (spinner) spinner.style.display = "none"; + if (spinner) { + spinner.style.display = "none"; + } // the repo descriptions were added after the first twemoji parsing twemoji.parse(wrapper, { diff --git a/assets/sass/vendor/_reset.scss b/assets/sass/vendor/_reset.css similarity index 100% rename from assets/sass/vendor/_reset.scss rename to assets/sass/vendor/_reset.css diff --git a/package.json b/package.json index eeaba97c..a2cfd2d4 100644 --- a/package.json +++ b/package.json @@ -33,15 +33,15 @@ "@fontsource/inter": "4.5.0", "@fontsource/roboto-mono": "4.5.0", "@jakejarvis/dark-mode": "^0.7.1", - "@octokit/graphql": "^4.6.4", + "@octokit/graphql": "^4.7.0", "@octokit/graphql-schema": "^10.67.0", "@sentry/node": "^6.11.0", "clipboard": "^2.0.8", "cross-fetch": "^3.1.4", "date-fns": "^2.23.0", "fast-xml-parser": "^3.19.0", - "faunadb": "^4.3.0", - "graphql": "^15.5.1", + "faunadb": "^4.4.0", + "graphql": "^15.5.2", "graphql-request": "^3.5.0", "graphql-tag": "^2.12.5", "html-entities": "^2.3.2", @@ -60,14 +60,14 @@ "@babel/core": "^7.15.0", "@babel/eslint-parser": "^7.15.0", "@babel/preset-env": "^7.15.0", - "@jakejarvis/eslint-config": "^1.0.0", + "@jakejarvis/eslint-config": "^1.0.1", "@percy/cli": "^1.0.0-beta.67", "@types/node-fetch": "^2.5.12", "@types/numeral": "^2.0.1", "@types/twemoji": "^12.1.2", "@types/url-parse": "^1.4.4", - "@typescript-eslint/eslint-plugin": "^4.29.3", - "@typescript-eslint/parser": "^4.29.3", + "@typescript-eslint/eslint-plugin": "^4.30.0", + "@typescript-eslint/parser": "^4.30.0", "@vercel/node": "^1.12.1", "autoprefixer": "^10.3.3", "babel-loader": "^8.2.2", @@ -109,7 +109,7 @@ "postcss-svgo": "^5.0.2", "prettier": "^2.3.2", "pretty-quick": "^3.1.1", - "sass": "^1.38.1", + "sass": "^1.38.2", "sass-loader": "^12.1.0", "simple-git-hooks": "^2.6.1", "stylelint": "~13.13.1", diff --git a/yarn.lock b/yarn.lock index 73fbb5c6..b4216ac0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -954,10 +954,10 @@ resolved "https://registry.yarnpkg.com/@jakejarvis/dark-mode/-/dark-mode-0.7.1.tgz#df85955905925379565c163712e44a99df3b500a" integrity sha512-T9pUWd3dp2lcJabGGkQClNPbPUsBeoR2APnKkgjtxiTrnbl4cRjaXYlQvyyvRRASAe07agYnJobdDqA+IbvnXg== -"@jakejarvis/eslint-config@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@jakejarvis/eslint-config/-/eslint-config-1.0.0.tgz#9b08f2ea68cfc771a308b0c47a13201b3d3ae738" - integrity sha512-kmKheOEa/hkxG3wfcKklCq1LHkzdRkQT/890vLpGDb2P7anlfVM3UXT6VpvjVL3VokKnFVz488JX1TUB8Y7PTw== +"@jakejarvis/eslint-config@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@jakejarvis/eslint-config/-/eslint-config-1.0.1.tgz#10a149fa8fdbe730a7d65f7808b9acc149564df8" + integrity sha512-+UM5F7BQRBses5DpaWj6hcvxE5Qqb8xJRYSxp7ucqk6eEnm92xLgN0frGe2/zXtVgRWGt5Fvx/5EwkGM6tfNCg== "@jest/types@^27.0.6": version "27.0.6" @@ -1096,10 +1096,10 @@ graphql "^15.0.0" graphql-tag "^2.10.3" -"@octokit/graphql@^4.6.4": - version "4.6.4" - resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.6.4.tgz#0c3f5bed440822182e972317122acb65d311a5ed" - integrity sha512-SWTdXsVheRmlotWNjKzPOb6Js6tjSqA2a8z9+glDJng0Aqjzti8MEWOtuT8ZSu6wHnci7LZNuarE87+WJBG4vg== +"@octokit/graphql@^4.7.0": + version "4.7.0" + resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.7.0.tgz#cbe12edc2bc61e9eaa5f9e5d092644c92b6fcb74" + integrity sha512-diY0qMPyQjfu4rDu3kDhJ9qIZadIm4IISO3RJSv9ajYUWJUCO0AykbgzLcg1xclxtXgzY583u3gAv66M6zz5SA== dependencies: "@octokit/request" "^5.6.0" "@octokit/types" "^6.0.3" @@ -1545,73 +1545,73 @@ dependencies: "@types/node" "*" -"@typescript-eslint/eslint-plugin@^4.29.3": - version "4.29.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.29.3.tgz#95cb8029a8bd8bd9c7f4ab95074a7cb2115adefa" - integrity sha512-tBgfA3K/3TsZY46ROGvoRxQr1wBkclbVqRQep97MjVHJzcRBURRY3sNFqLk0/Xr//BY5hM9H2p/kp+6qim85SA== +"@typescript-eslint/eslint-plugin@^4.30.0": + version "4.30.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.30.0.tgz#4a0c1ae96b953f4e67435e20248d812bfa55e4fb" + integrity sha512-NgAnqk55RQ/SD+tZFD9aPwNSeHmDHHe5rtUyhIq0ZeCWZEvo4DK9rYz7v9HDuQZFvn320Ot+AikaCKMFKLlD0g== dependencies: - "@typescript-eslint/experimental-utils" "4.29.3" - "@typescript-eslint/scope-manager" "4.29.3" + "@typescript-eslint/experimental-utils" "4.30.0" + "@typescript-eslint/scope-manager" "4.30.0" debug "^4.3.1" functional-red-black-tree "^1.0.1" regexpp "^3.1.0" semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@4.29.3": - version "4.29.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.29.3.tgz#52e437a689ccdef73e83c5106b34240a706f15e1" - integrity sha512-ffIvbytTVWz+3keg+Sy94FG1QeOvmV9dP2YSdLFHw/ieLXWCa3U1TYu8IRCOpMv2/SPS8XqhM1+ou1YHsdzKrg== +"@typescript-eslint/experimental-utils@4.30.0": + version "4.30.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.30.0.tgz#9e49704fef568432ae16fc0d6685c13d67db0fd5" + integrity sha512-K8RNIX9GnBsv5v4TjtwkKtqMSzYpjqAQg/oSphtxf3xxdt6T0owqnpojztjjTcatSteH3hLj3t/kklKx87NPqw== dependencies: "@types/json-schema" "^7.0.7" - "@typescript-eslint/scope-manager" "4.29.3" - "@typescript-eslint/types" "4.29.3" - "@typescript-eslint/typescript-estree" "4.29.3" + "@typescript-eslint/scope-manager" "4.30.0" + "@typescript-eslint/types" "4.30.0" + "@typescript-eslint/typescript-estree" "4.30.0" eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/parser@^4.29.3": - version "4.29.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.29.3.tgz#2ac25535f34c0e98f50c0e6b28c679c2357d45f2" - integrity sha512-jrHOV5g2u8ROghmspKoW7pN8T/qUzk0+DITun0MELptvngtMrwUJ1tv5zMI04CYVEUsSrN4jV7AKSv+I0y0EfQ== +"@typescript-eslint/parser@^4.30.0": + version "4.30.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.30.0.tgz#6abd720f66bd790f3e0e80c3be77180c8fcb192d" + integrity sha512-HJ0XuluSZSxeboLU7Q2VQ6eLlCwXPBOGnA7CqgBnz2Db3JRQYyBDJgQnop6TZ+rsbSx5gEdWhw4rE4mDa1FnZg== dependencies: - "@typescript-eslint/scope-manager" "4.29.3" - "@typescript-eslint/types" "4.29.3" - "@typescript-eslint/typescript-estree" "4.29.3" + "@typescript-eslint/scope-manager" "4.30.0" + "@typescript-eslint/types" "4.30.0" + "@typescript-eslint/typescript-estree" "4.30.0" debug "^4.3.1" -"@typescript-eslint/scope-manager@4.29.3": - version "4.29.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.29.3.tgz#497dec66f3a22e459f6e306cf14021e40ec86e19" - integrity sha512-x+w8BLXO7iWPkG5mEy9bA1iFRnk36p/goVlYobVWHyDw69YmaH9q6eA+Fgl7kYHmFvWlebUTUfhtIg4zbbl8PA== +"@typescript-eslint/scope-manager@4.30.0": + version "4.30.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.30.0.tgz#1a3ffbb385b1a06be85cd5165a22324f069a85ee" + integrity sha512-VJ/jAXovxNh7rIXCQbYhkyV2Y3Ac/0cVHP/FruTJSAUUm4Oacmn/nkN5zfWmWFEanN4ggP0vJSHOeajtHq3f8A== dependencies: - "@typescript-eslint/types" "4.29.3" - "@typescript-eslint/visitor-keys" "4.29.3" + "@typescript-eslint/types" "4.30.0" + "@typescript-eslint/visitor-keys" "4.30.0" -"@typescript-eslint/types@4.29.3": - version "4.29.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.29.3.tgz#d7980c49aef643d0af8954c9f14f656b7fd16017" - integrity sha512-s1eV1lKNgoIYLAl1JUba8NhULmf+jOmmeFO1G5MN/RBCyyzg4TIOfIOICVNC06lor+Xmy4FypIIhFiJXOknhIg== +"@typescript-eslint/types@4.30.0": + version "4.30.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.30.0.tgz#fb9d9b0358426f18687fba82eb0b0f869780204f" + integrity sha512-YKldqbNU9K4WpTNwBqtAerQKLLW/X2A/j4yw92e3ZJYLx+BpKLeheyzoPfzIXHfM8BXfoleTdiYwpsvVPvHrDw== -"@typescript-eslint/typescript-estree@4.29.3": - version "4.29.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.29.3.tgz#1bafad610015c4ded35c85a70b6222faad598b40" - integrity sha512-45oQJA0bxna4O5TMwz55/TpgjX1YrAPOI/rb6kPgmdnemRZx/dB0rsx+Ku8jpDvqTxcE1C/qEbVHbS3h0hflag== +"@typescript-eslint/typescript-estree@4.30.0": + version "4.30.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.30.0.tgz#ae57833da72a753f4846cd3053758c771670c2ac" + integrity sha512-6WN7UFYvykr/U0Qgy4kz48iGPWILvYL34xXJxvDQeiRE018B7POspNRVtAZscWntEPZpFCx4hcz/XBT+erenfg== dependencies: - "@typescript-eslint/types" "4.29.3" - "@typescript-eslint/visitor-keys" "4.29.3" + "@typescript-eslint/types" "4.30.0" + "@typescript-eslint/visitor-keys" "4.30.0" debug "^4.3.1" globby "^11.0.3" is-glob "^4.0.1" semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/visitor-keys@4.29.3": - version "4.29.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.29.3.tgz#c691760a00bd86bf8320d2a90a93d86d322f1abf" - integrity sha512-MGGfJvXT4asUTeVs0Q2m+sY63UsfnA+C/FDgBKV3itLBmM9H0u+URcneePtkd0at1YELmZK6HSolCqM4Fzs6yA== +"@typescript-eslint/visitor-keys@4.30.0": + version "4.30.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.30.0.tgz#a47c6272fc71b0c627d1691f68eaecf4ad71445e" + integrity sha512-pNaaxDt/Ol/+JZwzP7MqWc8PJQTUhZwoee/PVlQ+iYoYhagccvoHnC9e4l+C/krQYYkENxznhVSDwClIbZVxRw== dependencies: - "@typescript-eslint/types" "4.29.3" + "@typescript-eslint/types" "4.30.0" eslint-visitor-keys "^2.0.0" "@vercel/node@^1.12.1": @@ -4551,10 +4551,10 @@ fastq@^1.6.0: dependencies: reusify "^1.0.4" -faunadb@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/faunadb/-/faunadb-4.3.0.tgz#7c272b108c4be46eb8e58f9dfa37366adc9e9602" - integrity sha512-H5ZnInUNLAvrjqDHYXmYX+S55HP8Ib85QbF/UK1fV/bz125unl7J7LbjqKvMGcREYqOvIrpQCaniK1LwAkXHTw== +faunadb@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/faunadb/-/faunadb-4.4.0.tgz#d6bf03a7d97ecdd9ade21964dc7c910198779c5e" + integrity sha512-M0Ppnf0MBsn1ioxUXCxtTLvn2IF+IVBCm3xIJi70u33v/NbiNTpb+Gghnm3jmtDI+MNAHDGMpTM1cXVhnwqbkA== dependencies: abort-controller "^3.0.0" base64-js "^1.2.0" @@ -5288,11 +5288,16 @@ graphql-tag@^2.10.3, graphql-tag@^2.12.5: dependencies: tslib "^2.1.0" -graphql@^15.0.0, graphql@^15.5.1: +graphql@^15.0.0: version "15.5.1" resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.5.1.tgz#f2f84415d8985e7b84731e7f3536f8bb9d383aad" integrity sha512-FeTRX67T3LoE3LWAxxOlW2K3Bz+rMYAC18rRguK4wgXaTZMiJwSUwDmPFo3UadAKbzirKIg5Qy+sNJXbpPRnQw== +graphql@^15.5.2: + version "15.5.2" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.5.2.tgz#efa19f8f2bf1a48eb7d5c85bf17e144ba8bb0480" + integrity sha512-dZjLPWNQqYv0dqV2RNbiFed0LtSp6yd4jchsDGnuhDKa9OQHJYCfovaOEvY91w9gqbYO7Se9LKDTl3xxYva/3w== + gulp-cli@^2.2.0, gulp-cli@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/gulp-cli/-/gulp-cli-2.3.0.tgz#ec0d380e29e52aa45e47977f0d32e18fd161122f" @@ -9264,10 +9269,10 @@ sass-loader@^12.1.0: klona "^2.0.4" neo-async "^2.6.2" -sass@^1.38.1: - version "1.38.1" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.38.1.tgz#54dfb17fb168846b5850324b82fc62dc68f51bad" - integrity sha512-Lj8nPaSYOuRhgqdyShV50fY5jKnvaRmikUNalMPmbH+tKMGgEKVkltI/lP30PEfO2T1t6R9yc2QIBLgOc3uaFw== +sass@^1.38.2: + version "1.38.2" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.38.2.tgz#970045d9966180002a8c8f3820fc114cddb42822" + integrity sha512-Bz1fG6qiyF0FX6m/I+VxtdVKz1Dfmg/e9kfDy2PhWOkq3T384q2KxwIfP0fXpeI+EyyETdOauH+cRHQDFASllA== dependencies: chokidar ">=3.0.0 <4.0.0"