From 74fd12d199e990cb218eeab0f97b5c4d72534d48 Mon Sep 17 00:00:00 2001 From: nin0dev Date: Fri, 14 Mar 2025 23:27:04 -0400 Subject: [PATCH] formatting --- .prettierrc.json | 8 +++ info/contacts/email.md | 2 +- info/contacts/telegram.md | 2 +- src/components/Contacts.astro | 4 +- src/css/style.css | 18 +++---- src/js/drag.js | 91 +++++++++++++++-------------------- 6 files changed, 60 insertions(+), 65 deletions(-) create mode 100644 .prettierrc.json diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..dfa5c38 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "tabWidth": 4, + "useTabs": true, + "singleQuote": false, + "jsxSingleQuote": false, + "semi": true, + "arrowParens": "avoid" +} diff --git a/info/contacts/email.md b/info/contacts/email.md index f9bc68f..efdc734 100644 --- a/info/contacts/email.md +++ b/info/contacts/email.md @@ -3,4 +3,4 @@ platform: "Email" name: "support@nin0.dev" url: "mailto:support@nin0.dev" note: "Replies may be slow" ---- \ No newline at end of file +--- diff --git a/info/contacts/telegram.md b/info/contacts/telegram.md index 0793138..a0d8944 100644 --- a/info/contacts/telegram.md +++ b/info/contacts/telegram.md @@ -3,4 +3,4 @@ platform: "Telegram" url: "https://nin0dev.t.me" name: "@nin0dev" note: "Use for quick replies" ---- \ No newline at end of file +--- diff --git a/src/components/Contacts.astro b/src/components/Contacts.astro index e57998f..1387625 100644 --- a/src/components/Contacts.astro +++ b/src/components/Contacts.astro @@ -1,7 +1,9 @@ --- import Social from "./Social.astro" -const contacts = await Astro.glob("../../info/contacts/*.md") +const contacts: any = Object.values(import.meta.glob("../../info/contacts/*.md", { + eager: true +})); ---