1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 04:25:22 -04:00

remove unused deps

This commit is contained in:
Jake Jarvis 2022-01-27 18:16:57 -05:00
parent 283eb62446
commit 766f39a15a
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
5 changed files with 69 additions and 61 deletions

View File

@ -6,7 +6,4 @@ HCAPTCHA_SECRET_KEY=
NEXT_PUBLIC_HCAPTCHA_SITE_KEY=
SENTRY_AUTH_TOKEN=
NEXT_PUBLIC_SENTRY_DSN=
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
SPOTIFY_REFRESH_TOKEN=
WEBMENTIONS_TOKEN=

View File

@ -3,7 +3,6 @@ import { useTheme } from "next-themes";
import classNames from "classnames/bind";
import { Formik, Form, Field } from "formik";
import HCaptcha from "@hcaptcha/react-hcaptcha";
import isEmailLike from "is-email-like";
import { SendIcon, CheckOcticon, XOcticon } from "../Icons";
import type { FormikHelpers } from "formik";
@ -85,7 +84,7 @@ const ContactForm = ({ className }: Props) => {
const errors: { name?: boolean; email?: boolean; message?: boolean; "h-captcha-response"?: boolean } = {};
errors.name = !values.name;
errors.email = !values.email || !isEmailLike(values.email); // also loosely validate email with regex (not foolproof)
errors.email = !values.email; // also loosely validated that it's email-like via browser (not foolproof)
errors.message = !values.message;
errors["h-captcha-response"] = !values["h-captcha-response"];

View File

@ -23,9 +23,9 @@
"lint:prettier": "prettier --check ."
},
"dependencies": {
"@fontsource/comic-neue": "4.5.1",
"@fontsource/inter": "4.5.1",
"@fontsource/roboto-mono": "4.5.0",
"@fontsource/comic-neue": "4.5.2",
"@fontsource/inter": "4.5.2",
"@fontsource/roboto-mono": "4.5.1",
"@giscus/react": "^1.0.1",
"@hcaptcha/react-hcaptcha": "^1.1.0",
"@next/bundle-analyzer": "^12.0.9",
@ -42,11 +42,9 @@
"feed": "^4.2.2",
"formik": "^2.2.9",
"gray-matter": "^4.0.3",
"is-absolute-url": "^4.0.1",
"is-email-like": "^2.0.0",
"markdown-to-jsx": "^7.1.6",
"modern-normalize": "github:sindresorhus/modern-normalize#1fc6b5a86676b7ac8abc62d04d6080f92debc70f",
"next": "12.0.9",
"modern-normalize": "^1.1.0",
"next": "^12.0.9",
"next-compose-plugins": "^2.2.1",
"next-mdx-remote": "4.0.0-rc.1",
"next-seo": "^4.29.0",
@ -78,7 +76,7 @@
"devDependencies": {
"@jakejarvis/eslint-config": "github:jakejarvis/eslint-config#main",
"@svgr/webpack": "^6.2.0",
"@types/node": "^17.0.12",
"@types/node": "*",
"@types/prop-types": "^15.7.4",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",

View File

@ -32,9 +32,12 @@ const License = () => (
</a>{" "}
is re-printed below.
</p>
<HorizontalRule />
<H2>Creative Commons Attribution 4.0 International Public License</H2>
<p style={{ textAlign: "center" }}>
<p style={{ textAlign: "center", lineHeight: 0 }}>
<a
className="no-underline"
href="https://creativecommons.org/licenses/by/4.0/"
@ -63,6 +66,7 @@ const License = () => (
</svg>
</a>
</p>
<Blockquote>
<p>
<em>
@ -75,7 +79,9 @@ const License = () => (
</em>
</p>
</Blockquote>
<H3>Using Creative Commons Public Licenses</H3>
<p>
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights
holders may use to share original works of authorship and other material subject to copyright and certain other
@ -123,7 +129,9 @@ const License = () => (
</p>
</li>
</ul>
<H3>Licensed Rights</H3>
<p>
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions
of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this
@ -131,7 +139,9 @@ const License = () => (
acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits
the Licensor receives from making the Licensed Material available under these terms and conditions.
</p>
<H3>Section 1 Definitions.</H3>
<p>
a. <strong>Adapted Material</strong> means material subject to Copyright and Similar Rights that is derived from
or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged,
@ -186,7 +196,9 @@ const License = () => (
k. <strong>You</strong> means the individual or entity exercising the Licensed Rights under this Public License.{" "}
<strong>Your</strong> has a corresponding meaning.
</p>
<H3>Section 2 Scope.</H3>
<p>
a.{" "}
<em>
@ -277,7 +289,9 @@ const License = () => (
</p>
</li>
</ol>
<H3>Section 3 License Conditions.</H3>
<p>Your exercise of the Licensed Rights is expressly made subject to the following conditions.</p>
<p>
a.{" "}
@ -326,7 +340,9 @@ const License = () => (
</p>
</li>
</ol>
<H3>Section 4 Sui Generis Database Rights.</H3>
<p>
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
</p>
@ -347,7 +363,9 @@ const License = () => (
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public
License where the Licensed Rights include other Copyright and Similar Rights.
</p>
<H3>Section 5 Disclaimer of Warranties and Limitation of Liability.</H3>
<p>
a.{" "}
<strong>
@ -374,7 +392,9 @@ const License = () => (
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner
that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
</p>
<H3>Section 6 Term and Termination.</H3>
<p>
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You
fail to comply with this Public License, then Your rights under this Public License terminate automatically.
@ -401,7 +421,9 @@ const License = () => (
Public License.
</p>
<p>d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.</p>
<H3>Section 7 Other Terms and Conditions.</H3>
<p>
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless
expressly agreed.
@ -410,7 +432,9 @@ const License = () => (
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are
separate from and independent of the terms and conditions of this Public License.
</p>
<H3>Section 8 Interpretation.</H3>
<p>
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit,
restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without
@ -431,6 +455,7 @@ const License = () => (
privileges and immunities that apply to the Licensor or You, including from the legal processes of any
jurisdiction or authority.
</p>
<Blockquote>
<p>
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply

View File

@ -1038,20 +1038,20 @@
minimatch "^3.0.4"
strip-json-comments "^3.1.1"
"@fontsource/comic-neue@4.5.1":
version "4.5.1"
resolved "https://registry.yarnpkg.com/@fontsource/comic-neue/-/comic-neue-4.5.1.tgz#a29a7d8a01cecf088ac3b54d6ac5acef7b14da15"
integrity sha512-ZkG+vtFx2VzzXGdNMAky/AlNo0s3a6ilcLcoP/cJMI2jLEk12O/no+qkTljJe3XiMHOkRUALZeo15Y+Lp85Aog==
"@fontsource/comic-neue@4.5.2":
version "4.5.2"
resolved "https://registry.yarnpkg.com/@fontsource/comic-neue/-/comic-neue-4.5.2.tgz#8a3f8061fbb2a6890e0e9729855886642f137aa1"
integrity sha512-65ivrkCixQTMyVMGfS55aR2eBwyrify8yvhZtDKdH2kZdMguVHjPgxwVHkK416c6sQlDDcl3TaAb3P/Skh5rmg==
"@fontsource/inter@4.5.1":
version "4.5.1"
resolved "https://registry.yarnpkg.com/@fontsource/inter/-/inter-4.5.1.tgz#058d8a02354f3c78e369d452c15d33557ec1b705"
integrity sha512-mvtOvXNNVLlF1p/UbLgLrmz2RCOl6Ow+TqyiK10SosoLKX7edsXYiHFHb7XIZdjII6F2sJVPPsJXWhBnbXT2DQ==
"@fontsource/inter@4.5.2":
version "4.5.2"
resolved "https://registry.yarnpkg.com/@fontsource/inter/-/inter-4.5.2.tgz#f21a1b39e9fc40fd7f315f37687ad6f6f040528a"
integrity sha512-4LLfZYr5dRsobtC9JNkATL5OwOqrxs2tF29eNljjogxWXm4tlHxRo4dgOFTlWxQOxcj5Zv7dM8IMiSoOqMGy3g==
"@fontsource/roboto-mono@4.5.0":
version "4.5.0"
resolved "https://registry.yarnpkg.com/@fontsource/roboto-mono/-/roboto-mono-4.5.0.tgz#27e44fbb1d86a9ef14501493a37eef1d73e60d02"
integrity sha512-/6Gm6fJjBHZiFNyvzIKGJkVuyifoc1aoTel+pkzdhxNh7yNhFyokCoChdbbqZEpGKpqs5uld74G5TJthUVFyjw==
"@fontsource/roboto-mono@4.5.1":
version "4.5.1"
resolved "https://registry.yarnpkg.com/@fontsource/roboto-mono/-/roboto-mono-4.5.1.tgz#8b1b38ad7d2c202968ffd87bee3e471152b437e9"
integrity sha512-uP/GMF9N2XaxrB9flM1LiZUdcrG/3YdYpGJddY2d7rvsqqitZ8fWBckbdW717WMty4V96N+k1EArilYwQOvN3A==
"@giscus/react@^1.0.1":
version "1.0.1"
@ -1066,9 +1066,9 @@
integrity sha512-+0JYxSFkZaHMOJ91YD9PUNiCUZhG5d9BzVAIye4vAWMyXzfD4b8Dx7EwAVUf1qfbf8KVCa33QwoTRt6EKfDDSA==
"@humanwhocodes/config-array@^0.9.2":
version "0.9.2"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.2.tgz#68be55c737023009dfc5fe245d51181bb6476914"
integrity sha512-UXOuFCGcwciWckOpmfKDq/GyhlTf9pN/BzG//x8p8zTOFEcGuA68ANXheFS0AGvy3qgZqLBUkMs7hqzqCKOVwA==
version "0.9.3"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.3.tgz#f2564c744b387775b436418491f15fce6601f63e"
integrity sha512-3xSMlXHh03hCcCmFc0rbKp3Ivt2PFEJnQUJDDMTJQ2wkECZWdq4GePs2ctc5H8zV+cHPaq8k2vU8mrQjA6iHdQ==
dependencies:
"@humanwhocodes/object-schema" "^1.2.1"
debug "^4.1.1"
@ -1539,10 +1539,10 @@
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197"
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==
"@types/node@^17.0.12":
version "17.0.12"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.12.tgz#f7aa331b27f08244888c47b7df126184bc2339c5"
integrity sha512-4YpbAsnJXWYK/fpTVFlMIcUIho2AYCi4wg5aNPrG1ng7fn/1/RZfCIpRCiBX+12RVa34RluilnvCqD+g3KiSiA==
"@types/node@*":
version "17.0.13"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.13.tgz#5ed7ed7c662948335fcad6c412bb42d99ea754e3"
integrity sha512-Y86MAxASe25hNzlDbsviXl8jQHb0RDvKt4c40ZJQ1Don0AAL0STLZSs4N+6gLEO55pedy7r2cLwS+ZDxPm/2Bw==
"@types/normalize-package-data@^2.4.0":
version "2.4.1"
@ -1560,9 +1560,9 @@
integrity sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==
"@types/prismjs@^1.0.0":
version "1.16.8"
resolved "https://registry.yarnpkg.com/@types/prismjs/-/prismjs-1.16.8.tgz#ce1b3a673d282937c3d4183d2ff88b9ccedd6d3b"
integrity sha512-I8v3yZIvhIwB55MhV+9+FhK5OMokviuQQP4vGmffW18iQGw5cyB6CaBGWFhcIJk+0cyi/PNhNPedlUYTAHoc2Q==
version "1.26.0"
resolved "https://registry.yarnpkg.com/@types/prismjs/-/prismjs-1.26.0.tgz#a1c3809b0ad61c62cac6d4e0c56d610c910b7654"
integrity sha512-ZTaqn/qSqUuAq1YwvOFQfVW1AR/oQJlLSZVustdjwI+GZ8kr0MSHBj0tsXPW1EqHubx50gtBEjbPGsdZwQwCjQ==
"@types/prop-types@*", "@types/prop-types@^15.7.4":
version "15.7.4"
@ -2039,9 +2039,9 @@ camelcase@^6.2.0:
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
caniuse-lite@^1.0.30001283, caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001297, caniuse-lite@^1.0.30001299:
version "1.0.30001302"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001302.tgz#da57ce61c51177ef3661eeed7faef392d3790aaa"
integrity sha512-YYTMO+tfwvgUN+1ZnRViE53Ma1S/oETg+J2lISsqi/ZTNThj3ZYBOKP2rHwJc37oCsPqAzJ3w2puZHn0xlLPPw==
version "1.0.30001303"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001303.tgz#9b168e4f43ccfc372b86f4bc5a551d9b909c95c9"
integrity sha512-/Mqc1oESndUNszJP0kx0UaQU9kEv9nNtJ7Kn8AdA0mNnH8eR1cj0kG+NbNuC1Wq/b21eA8prhKRA3bbkjONegQ==
ccount@^1.0.0:
version "1.1.0"
@ -2536,14 +2536,9 @@ eastasianwidth@^0.2.0:
integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
electron-to-chromium@^1.4.17:
version "1.4.53"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.53.tgz#5d80a91c399b44952ef485857fb5b9d4387d2e60"
integrity sha512-rFveSKQczlcav+H3zkKqykU6ANseFwXwkl855jOIap5/0gnEcuIhv2ecz6aoTrXavF6I/CEBeRnBnkB51k06ew==
email-regex@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/email-regex/-/email-regex-5.0.0.tgz#c8b1f4c7f251929b53586a7a3891da09c8dea26d"
integrity sha512-he76Cm8JFxb6OGQHabLBPdsiStgPmJeAEhctmw0uhonUh1pCBsHpI6/rB62s2GNzjBb0YlhIcF/1l9Lp5AfH0Q==
version "1.4.55"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.55.tgz#a7fa3b49b2c4cb0ae68505cf304a9666fdd8fd9f"
integrity sha512-AoCDEVElLY8mwe4TuDDkr1jxvSh/Ih5PFlEXCpmwFkq9JOXn4K58CScgBl+R1ghFW9cPJ7VeWo30nAHSRCe6rw==
emoji-regex@^8.0.0:
version "8.0.0"
@ -2684,9 +2679,9 @@ eslint-mdx@^1.16.0:
unified "^9.2.2"
eslint-module-utils@^2.7.2:
version "2.7.2"
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.2.tgz#1d0aa455dcf41052339b63cada8ab5fd57577129"
integrity sha512-zquepFnWCY2ISMFwD/DqzaM++H+7PDzOpUvotJWm/y1BAFt5R4oeULgdrTejKqLkz7MA/tgstsUMNYc7wNdTrg==
version "2.7.3"
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.3.tgz#ad7e3a10552fdd0642e1e55292781bd6e34876ee"
integrity sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==
dependencies:
debug "^3.2.7"
find-up "^2.1.0"
@ -3538,7 +3533,7 @@ internal-slot@^1.0.3:
has "^1.0.3"
side-channel "^1.0.4"
is-absolute-url@^4.0.0, is-absolute-url@^4.0.1:
is-absolute-url@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-4.0.1.tgz#16e4d487d4fded05cfe0685e53ec86804a5e94dc"
integrity sha512-/51/TKE88Lmm7Gc4/8btclNXWS+g50wXhYJq8HWIBAGUBnoAdRu1aXeh364t/O7wXDAcTJDP8PNuNKWUDWie+A==
@ -3628,13 +3623,6 @@ is-decimal@^2.0.0:
resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-2.0.1.tgz#9469d2dc190d0214fd87d78b78caecc0cc14eef7"
integrity sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==
is-email-like@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/is-email-like/-/is-email-like-2.0.0.tgz#8277f1bcd919bb8e9f77ed97077b9c56eac3d0f0"
integrity sha512-F5uCGvUAEoGjVBpftCwro4En3eImPvCMG22LTHZNn4GxPX2xsBec69AxI6ryzqNJXbwUvXaiUu6dcpSoylMasA==
dependencies:
email-regex "^5.0.0"
is-extendable@^0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
@ -4733,9 +4721,10 @@ minimist@^1.2.0, minimist@^1.2.5:
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
"modern-normalize@github:sindresorhus/modern-normalize#1fc6b5a86676b7ac8abc62d04d6080f92debc70f":
modern-normalize@^1.1.0:
version "1.1.0"
resolved "https://codeload.github.com/sindresorhus/modern-normalize/tar.gz/1fc6b5a86676b7ac8abc62d04d6080f92debc70f"
resolved "https://registry.yarnpkg.com/modern-normalize/-/modern-normalize-1.1.0.tgz#da8e80140d9221426bd4f725c6e11283d34f90b7"
integrity sha512-2lMlY1Yc1+CUy0gw4H95uNN7vjbpoED7NNRSBHE25nWfLBdmMzFCsPshlzbxHz+gYMcBEUN8V4pU16prcdPSgA==
mri@^1.1.0:
version "1.2.0"
@ -4797,7 +4786,7 @@ next-themes@^0.0.15:
resolved "https://registry.yarnpkg.com/next-themes/-/next-themes-0.0.15.tgz#ab0cee69cd763b77d41211f631e108beab39bf7d"
integrity sha512-LTmtqYi03c4gMTJmWwVK9XkHL7h0/+XrtR970Ujvtu3s0kZNeJN24aJsi4rkZOI8i19+qq6f8j+8Duwy5jqcrQ==
next@12.0.9:
next@^12.0.9:
version "12.0.9"
resolved "https://registry.yarnpkg.com/next/-/next-12.0.9.tgz#4eb3006b63bb866f5c2918ca0003e98f4259e063"
integrity sha512-omfYqoR/DvbdOIJ6SS1unKJ4mGIxUPs0RPa7wr/Mft22OCKgJhuG+aI9KFYi5ZJBwoFQk1vqaMKpWz5qr+dN0Q==