From 275b14cc22e8893dd83fcf1e911b7965e5ef96c9 Mon Sep 17 00:00:00 2001 From: ahaapple Date: Sun, 10 Nov 2024 21:11:26 +0800 Subject: [PATCH] Add StorySnap --- README.md | 7 ++++--- frontend/components/search/search-bar.tsx | 2 +- frontend/lib/shared-utils.ts | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3b9447a4..e4ef8e0c 100644 --- a/README.md +++ b/README.md @@ -209,7 +209,7 @@ Here's how you can contribute: ## Roadmap -- [MemFree Roadmap](https://feedback.memfree.me/roadmap) +- AI Coding Assistant ## License @@ -217,8 +217,9 @@ MemFree is backed by [MemFree](https://www.memfree.me/) and licensed under [MIT] ## Powered By MemFree -- [PageGen AI Page Generator](https://pagegen.ai/) -- [MemFree Hybrid AI Search](https://www.memfree.me) +- [PageGen - AI Page Generator](https://pagegen.ai) +- [MemFree - Hybrid AI Search](https://www.memfree.me) +- [StorySnap - Turn Images Into Stories](https://www.snapstoryai.com) - [React + Shadcn UI Preview](https://reactshadcn.com) ## Star History diff --git a/frontend/components/search/search-bar.tsx b/frontend/components/search/search-bar.tsx index 32e35f9b..15f385ae 100644 --- a/frontend/components/search/search-bar.tsx +++ b/frontend/components/search/search-bar.tsx @@ -312,7 +312,7 @@ const SearchBar: React.FC = ({ type="button" aria-label={t('search-tip')} disabled={(content.trim() === '' && files.length === 0) || isUploading} - className="text-gray-500 hover:text-primary disabled:cursor-not-allowed disabled:opacity-50" + className="text-gray-500 hover:text-primary disabled:cursor-not-allowed disabled:opacity-50 p-2" onClick={handleClick} > {t('search-tip')} diff --git a/frontend/lib/shared-utils.ts b/frontend/lib/shared-utils.ts index a33096c1..66f46a0a 100644 --- a/frontend/lib/shared-utils.ts +++ b/frontend/lib/shared-utils.ts @@ -3,7 +3,6 @@ export function isValidUrl(input: string): boolean { // return early if the url cannot be parsed if ('canParse' in URL && !URL.canParse(input)) return false; - try { const url = new URL(input); if (url.protocol !== 'http:' && url.protocol !== 'https:') {