From cee682ae529f762118fb2128e7fb7aef497f8b7b Mon Sep 17 00:00:00 2001 From: plebeius Date: Sat, 27 Dec 2025 16:35:51 +0100 Subject: [PATCH 01/23] run prettier --- src/hooks/use-is-subplebbit-offline.ts | 4 ++-- src/hooks/use-publish-post.ts | 11 +++++++---- src/hooks/use-publish-reply.ts | 11 +++++++---- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/hooks/use-is-subplebbit-offline.ts b/src/hooks/use-is-subplebbit-offline.ts index aca27d4c..32474c15 100644 --- a/src/hooks/use-is-subplebbit-offline.ts +++ b/src/hooks/use-is-subplebbit-offline.ts @@ -36,8 +36,8 @@ const useIsSubplebbitOffline = (subplebbit: Subplebbit) => { const offlineTitle = isLoading ? 'downloading board...' : updatedAt - ? isOffline && t('posts_last_synced_info', { time: getFormattedTimeAgo(updatedAt), interpolation: { escapeValue: false } }) - : t('subplebbit_offline_info'); + ? isOffline && t('posts_last_synced_info', { time: getFormattedTimeAgo(updatedAt), interpolation: { escapeValue: false } }) + : t('subplebbit_offline_info'); return { isOffline: !isOnline && isOffline, isOnlineStatusLoading: !isOnline && isLoading, offlineIconClass, offlineTitle }; }; diff --git a/src/hooks/use-publish-post.ts b/src/hooks/use-publish-post.ts index 8e07517c..a496e0df 100644 --- a/src/hooks/use-publish-post.ts +++ b/src/hooks/use-publish-post.ts @@ -37,10 +37,13 @@ const usePublishPost = ({ subplebbitAddress }: { subplebbitAddress?: string }) = const setPublishPostOptions = useCallback( (options: Partial) => { const baseOptions = createBaseOptions(); - const sanitizedOptions = Object.entries(options).reduce((acc, [key, value]) => { - acc[key] = value === '' ? undefined : value; - return acc; - }, {} as Partial); + const sanitizedOptions = Object.entries(options).reduce( + (acc, [key, value]) => { + acc[key] = value === '' ? undefined : value; + return acc; + }, + {} as Partial, + ); const newOptions = { ...baseOptions, ...sanitizedOptions }; setPublishPostStore(newOptions); diff --git a/src/hooks/use-publish-reply.ts b/src/hooks/use-publish-reply.ts index 93b72c2d..1715ed83 100644 --- a/src/hooks/use-publish-reply.ts +++ b/src/hooks/use-publish-reply.ts @@ -38,10 +38,13 @@ const usePublishReply = ({ cid, subplebbitAddress, postCid }: { cid: string; sub const setPublishReplyOptions = useCallback( (options: Partial) => { const baseOptions = createBaseOptions(); - const sanitizedOptions = Object.entries(options).reduce((acc, [key, value]) => { - acc[key] = value === '' ? undefined : value; - return acc; - }, {} as Partial); + const sanitizedOptions = Object.entries(options).reduce( + (acc, [key, value]) => { + acc[key] = value === '' ? undefined : value; + return acc; + }, + {} as Partial, + ); const newOptions = { ...baseOptions, ...sanitizedOptions }; setPublishReplyStore(newOptions); From 391e49a62e4b9241cc085f876ece8a13bbc36259 Mon Sep 17 00:00:00 2001 From: plebeius Date: Sat, 27 Dec 2025 17:41:19 +0100 Subject: [PATCH 02/23] chore(deps): install react-grab --- index.html | 6 ++++++ package.json | 1 + yarn.lock | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/index.html b/index.html index 0bd23ea5..ad079d8e 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,12 @@ 5chan + +