From 49e72ea9ee83ea08d6ac8888a2f2f412251ff746 Mon Sep 17 00:00:00 2001 From: fzk <458813868@qq.com> Date: Thu, 6 Feb 2025 09:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B0=81=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- README_EN.md | 2 +- component/options/weixin.tsx | 17 +++++++++++++++++ contents/weixin.tsx | 6 ++++++ contents/zhihu.tsx | 2 +- locales/en/messages.json | 3 +++ locales/zh_CN/messages.json | 3 +++ package.json | 2 +- public/en/1400x560.jpg | Bin 0 -> 55465 bytes public/en/440x280.jpg | Bin 0 -> 7987 bytes public/index.html | 10 ++++++++-- public/{ => zh}/1400x560.png | Bin public/{ => zh}/440x280.png | Bin 13 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 public/en/1400x560.jpg create mode 100644 public/en/440x280.jpg rename public/{ => zh}/1400x560.png (100%) rename public/{ => zh}/440x280.png (100%) diff --git a/README.md b/README.md index a71eb63..7ce1772 100644 --- a/README.md +++ b/README.md @@ -183,4 +183,4 @@ https://www.code-box.fun/  - + diff --git a/README_EN.md b/README_EN.md index a8c50ed..10a3a2f 100644 --- a/README_EN.md +++ b/README_EN.md @@ -181,4 +181,4 @@ Directly download and install:  - \ No newline at end of file + \ No newline at end of file diff --git a/component/options/weixin.tsx b/component/options/weixin.tsx index 2258001..d16e28b 100644 --- a/component/options/weixin.tsx +++ b/component/options/weixin.tsx @@ -1,3 +1,7 @@ +import { DownloadOutlined, StarTwoTone } from "@ant-design/icons" + +import { sendToContentScript } from "@plasmohq/messaging" + import CssCode from "~component/items/cssCode" import DownloadHtml from "~component/items/downloadHtml" import DownloadImages from "~component/items/downloadImages" @@ -8,6 +12,12 @@ import ShowTag from "~component/items/showTag" import { i18n } from "~tools" export default function Weixin() { + async function getThumbMedia() { + sendToContentScript({ + name: `weixin-getThumbMedia` + }) + } + return (
) } diff --git a/contents/weixin.tsx b/contents/weixin.tsx index 9a4b9f3..1320a7a 100644 --- a/contents/weixin.tsx +++ b/contents/weixin.tsx @@ -64,6 +64,12 @@ const PlasmoOverlay: FC