From 3455eb701f145cdb9de0a54c3e3e0fa6ae2eb51e Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:18:59 +0700 Subject: [PATCH] rename some files and add nip 94 widget --- src/app/space/components/widgets/article.tsx | 2 +- src/app/space/components/widgets/feed.tsx | 2 +- src/app/space/components/widgets/file.tsx | 90 +++++++++++++++++++ src/app/space/components/widgets/hashtag.tsx | 2 +- src/app/space/components/widgets/thread.tsx | 2 +- .../components/widgets/trendingNotes.tsx | 2 +- .../components/widgets/trendingProfile.tsx | 2 +- src/app/space/index.tsx | 3 + src/shared/composer/modal.tsx | 4 +- src/shared/notes/kinds/file.tsx | 56 +++++++----- src/shared/notes/preview/link.tsx | 1 - src/stores/{composer.tsx => composer.ts} | 0 src/stores/{constants.tsx => constants.ts} | 0 src/stores/{onboarding.tsx => onboarding.ts} | 0 src/stores/{stronghold.tsx => stronghold.ts} | 0 src/stores/{widgets.tsx => widgets.ts} | 0 ...ctiveAccount.tsx => checkActiveAccount.ts} | 0 ...BlobFromFile.tsx => createBlobFromFile.ts} | 0 src/utils/{createdAt.tsx => createdAt.ts} | 0 src/utils/{date.tsx => date.ts} | 0 src/utils/hooks/{useEvent.tsx => useEvent.ts} | 0 ...eNetworkStatus.tsx => useNetworkStatus.ts} | 0 src/utils/hooks/{useNostr.tsx => useNostr.ts} | 0 .../{useOpenGraph.tsx => useOpenGraph.ts} | 0 .../hooks/{useProfile.tsx => useProfile.ts} | 0 .../hooks/{useSocial.tsx => useSocial.ts} | 0 .../hooks/{useUploader.tsx => useUploader.ts} | 0 src/utils/isImage.tsx | 3 - src/utils/nip94.ts | 11 +++ .../{notification.tsx => notification.ts} | 0 src/utils/{number.tsx => number.ts} | 0 src/utils/{parser.tsx => parser.ts} | 0 src/utils/{shortenKey.tsx => shortenKey.ts} | 0 src/utils/{transform.tsx => transform.ts} | 0 34 files changed, 145 insertions(+), 35 deletions(-) create mode 100644 src/app/space/components/widgets/file.tsx rename src/stores/{composer.tsx => composer.ts} (100%) rename src/stores/{constants.tsx => constants.ts} (100%) rename src/stores/{onboarding.tsx => onboarding.ts} (100%) rename src/stores/{stronghold.tsx => stronghold.ts} (100%) rename src/stores/{widgets.tsx => widgets.ts} (100%) rename src/utils/{checkActiveAccount.tsx => checkActiveAccount.ts} (100%) rename src/utils/{createBlobFromFile.tsx => createBlobFromFile.ts} (100%) rename src/utils/{createdAt.tsx => createdAt.ts} (100%) rename src/utils/{date.tsx => date.ts} (100%) rename src/utils/hooks/{useEvent.tsx => useEvent.ts} (100%) rename src/utils/hooks/{useNetworkStatus.tsx => useNetworkStatus.ts} (100%) rename src/utils/hooks/{useNostr.tsx => useNostr.ts} (100%) rename src/utils/hooks/{useOpenGraph.tsx => useOpenGraph.ts} (100%) rename src/utils/hooks/{useProfile.tsx => useProfile.ts} (100%) rename src/utils/hooks/{useSocial.tsx => useSocial.ts} (100%) rename src/utils/hooks/{useUploader.tsx => useUploader.ts} (100%) delete mode 100644 src/utils/isImage.tsx create mode 100644 src/utils/nip94.ts rename src/utils/{notification.tsx => notification.ts} (100%) rename src/utils/{number.tsx => number.ts} (100%) rename src/utils/{parser.tsx => parser.ts} (100%) rename src/utils/{shortenKey.tsx => shortenKey.ts} (100%) rename src/utils/{transform.tsx => transform.ts} (100%) diff --git a/src/app/space/components/widgets/article.tsx b/src/app/space/components/widgets/article.tsx index 808047bf..81bda09c 100644 --- a/src/app/space/components/widgets/article.tsx +++ b/src/app/space/components/widgets/article.tsx @@ -47,7 +47,7 @@ export function ArticleWidget({ params }: { params: Widget }) { ); return ( -
+ There have been no new files in the last 24 hours. +
+{url}