1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-29 23:45:58 -04:00

run prettier over every file

This commit is contained in:
2021-10-31 16:51:19 -04:00
parent f4ebeeb1b8
commit c7fdda36af
16 changed files with 34 additions and 79 deletions
+3 -4
View File
@@ -29,10 +29,9 @@ if (contactForm) {
// https://simonplend.com/how-to-use-fetch-to-post-form-data-as-json-to-your-api/
const formData = Object.fromEntries(new FormData(event.currentTarget).entries());
// some client-side validation, these are all also checked on the server
// to be safe but we can save some unnecessary requests here.
// we throw identical error messages to the server's so they're caught in
// the same way below.
// some client-side validation. these are all also checked on the server to be safe but we can save some
// unnecessary requests here.
// we throw identical error messages to the server's so they're caught in the same way below.
if (!formData.name || !formData.email || !formData.message) {
throw new Error("USER_MISSING_DATA");
}
+1 -2
View File
@@ -17,8 +17,7 @@ initDarkMode({
// make toggle visible now that we know JS is enabled
t.style.display = "block";
// HACK: re-enable theme transitions after a very short delay, otherwise
// there's a weird race condition (2/2)
// HACK: re-enable theme transitions after a very short delay, otherwise there's a weird race condition (2/2)
setTimeout(() => {
document.head.removeChild(disableTransitionCSSHack);
}, 500);
+1 -4
View File
@@ -28,10 +28,7 @@ if (wrapper) {
<div class="repo-meta">
${repo.language
? html`<div class="repo-meta-item">
<span
class="repo-language-color"
style="background-color: ${ifDefined(repo.language.color)}"
></span>
<span class="repo-language-color" style="background-color: ${ifDefined(repo.language.color)}"></span>
<span>${repo.language.name}</span>
</div>`
: null}