From ab10ae857d1de809272bc79b4a7a14ccacca72ee Mon Sep 17 00:00:00 2001
From: florian <>
Date: Sun, 19 May 2024 11:11:43 +0200
Subject: [PATCH] chore: formatting
---
src/components/FileEventEditor/FileEventEditor.tsx | 1 -
src/components/Layout/Layout.css | 1 -
src/components/Layout/Layout.tsx | 13 +++++--------
src/utils/useBlossomServerEvents.ts | 4 ++--
src/utils/useServerInfo.ts | 2 +-
src/utils/useUserServers.ts | 2 +-
6 files changed, 9 insertions(+), 14 deletions(-)
diff --git a/src/components/FileEventEditor/FileEventEditor.tsx b/src/components/FileEventEditor/FileEventEditor.tsx
index 4eaade9..7fa8048 100644
--- a/src/components/FileEventEditor/FileEventEditor.tsx
+++ b/src/components/FileEventEditor/FileEventEditor.tsx
@@ -67,7 +67,6 @@ const FileEventEditor = ({ data }: { data: FileEventData }) => {
}, [thumbnailSubscription.events]);
const publishFileEvent = async (data: FileEventData) => {
-
// TODO REupload selected video thumbnail from DVM
const e: NostrEvent = {
diff --git a/src/components/Layout/Layout.css b/src/components/Layout/Layout.css
index d2434c4..a9bb4d0 100644
--- a/src/components/Layout/Layout.css
+++ b/src/components/Layout/Layout.css
@@ -6,7 +6,6 @@
@apply flex flex-col self-center md:w-10/12 w-full min-h-[80vh] px-4 md:px-0;
}
-
.footer {
@apply justify-center gap-1 text-base-content pt-12 pb-12;
}
diff --git a/src/components/Layout/Layout.tsx b/src/components/Layout/Layout.tsx
index 0704210..30df028 100644
--- a/src/components/Layout/Layout.tsx
+++ b/src/components/Layout/Layout.tsx
@@ -40,12 +40,7 @@ export const Layout = () => {
viewBox="0 0 24 24"
className="inline-block w-5 h-5 stroke-current"
>
-
+
{' '}
@@ -73,8 +68,10 @@ export const Layout = () => {
{}
-
made with 💜 by{' '}
- florian
+
+ made with 💜 by{' '}
+ florian
+
);
diff --git a/src/utils/useBlossomServerEvents.ts b/src/utils/useBlossomServerEvents.ts
index 8ee38e2..82a0342 100644
--- a/src/utils/useBlossomServerEvents.ts
+++ b/src/utils/useBlossomServerEvents.ts
@@ -11,8 +11,8 @@ const useBlossomServerEvents = () => {
const blossomServerEvents = useEvents(blossomServerListFilter);
const blossomServers = useMemo(() => {
- const allRTags = blossomServerEvents.events.flatMap(ev =>
- ev.tags.filter(t => t[0] == 'r' || t[0] == 'server').flatMap(t => ({ name: t[1] })) // TODO 'r' is deprecated
+ const allRTags = blossomServerEvents.events.flatMap(
+ ev => ev.tags.filter(t => t[0] == 'r' || t[0] == 'server').flatMap(t => ({ name: t[1] })) // TODO 'r' is deprecated
);
const cnt = countBy(
allRTags.filter(s => !s.name.match(/https?:\/\/localhost/)),
diff --git a/src/utils/useServerInfo.ts b/src/utils/useServerInfo.ts
index d15f1d4..b995990 100644
--- a/src/utils/useServerInfo.ts
+++ b/src/utils/useServerInfo.ts
@@ -35,7 +35,7 @@ export const useServerInfo = () => {
const blobs = await BlossomClient.listBlobs(server.url, pubkey!, undefined, listAuthEvent);
// fallback to deprecated created attibute for servers that are not using 'uploaded' yet
- return blobs.map(b => ({ ...b, uploaded: b.uploaded || b.created || dayjs().unix()}));
+ return blobs.map(b => ({ ...b, uploaded: b.uploaded || b.created || dayjs().unix() }));
},
enabled: !!pubkey && servers.length > 0,
staleTime: 1000 * 60 * 5,
diff --git a/src/utils/useUserServers.ts b/src/utils/useUserServers.ts
index 67f943b..c711bf9 100644
--- a/src/utils/useUserServers.ts
+++ b/src/utils/useUserServers.ts
@@ -22,7 +22,7 @@ export const useUserServers = (): Server[] => {
const servers = useMemo(() => {
const serverUrls = uniqAndSort(
[
- ...(serverListEvent?.getMatchingTags('r').map(t => t[1]) || []), // TODO 'r' is deprecated
+ ...(serverListEvent?.getMatchingTags('r').map(t => t[1]) || []), // TODO 'r' is deprecated
...(serverListEvent?.getMatchingTags('server').map(t => t[1]) || []),
...additionalServers,
].map(s => s.toLocaleLowerCase().replace(/\/$/, ''))