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:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user