From 00da2d56b7c7144e47b60cef69ca1fc4a595dc31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=9C=E6=AA=B8Cirtron?= <45784494+lcandy2@users.noreply.github.com> Date: Tue, 23 Jul 2024 20:02:30 +0800 Subject: [PATCH] feat: add new branding --- entrypoints/content/components/tweet-card.tsx | 1 + entrypoints/popup/App.tsx | 29 +++++++++++++++--- package.json | 4 +-- public/icon/128.png | Bin 8149 -> 7187 bytes public/icon/16.png | Bin 549 -> 669 bytes public/icon/32.png | Bin 1245 -> 1634 bytes public/icon/48.png | Bin 2152 -> 2559 bytes public/icon/96.png | Bin 5721 -> 4886 bytes public/icon/github-light.svg | 11 +++++++ public/icon/twitter.svg | 1 + wxt.config.ts | 2 +- 11 files changed, 40 insertions(+), 8 deletions(-) mode change 100644 => 100755 public/icon/128.png mode change 100644 => 100755 public/icon/16.png mode change 100644 => 100755 public/icon/32.png mode change 100644 => 100755 public/icon/48.png mode change 100644 => 100755 public/icon/96.png create mode 100644 public/icon/github-light.svg create mode 100644 public/icon/twitter.svg diff --git a/entrypoints/content/components/tweet-card.tsx b/entrypoints/content/components/tweet-card.tsx index a19dbce..f7ec3be 100644 --- a/entrypoints/content/components/tweet-card.tsx +++ b/entrypoints/content/components/tweet-card.tsx @@ -119,6 +119,7 @@ export function TweetCard({ element }: TweetCardProps) { /> ))} +

presented by AI Tweet

) : (
diff --git a/entrypoints/popup/App.tsx b/entrypoints/popup/App.tsx index 41390fc..ec92906 100644 --- a/entrypoints/popup/App.tsx +++ b/entrypoints/popup/App.tsx @@ -53,13 +53,16 @@ function App() { if (res && JSON.stringify(res).includes("reply")) { setRepliedMessage(res.results); setIsFinished(true); + setIsFetching(false); } else { setIsFinished(true); + setIsFetching(false); setNoReplies(true); } } catch (e) { console.error(e); setIsFinished(true); + setIsFetching(false); setNoReplies(true); } }; @@ -70,20 +73,34 @@ function App() { return ( <> - + - Tweet Talk + +
+ + AI Tweet +
+
+ @AITweet_app + +
+
输入内容,获得知名人士的锐评。
-