From 388eb855151ffb29de2cc5d8e72ccf6fbf7a0929 Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Fri, 15 Dec 2023 20:27:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20Update=20readme=20plugi?= =?UTF-8?q?n=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/readmeWorkflow/syncPluginIndex.ts | 20 +++++++++---------- .../ChatInput/ActionBar/Tools/index.tsx | 4 ++-- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/scripts/readmeWorkflow/syncPluginIndex.ts b/scripts/readmeWorkflow/syncPluginIndex.ts index db2c1fcf54a9..0b5064ef2404 100644 --- a/scripts/readmeWorkflow/syncPluginIndex.ts +++ b/scripts/readmeWorkflow/syncPluginIndex.ts @@ -6,18 +6,16 @@ import { fetchPluginIndex, genLink, genTags, readReadme, updateReadme, writeRead const genPluginTable = (data: DataItem[], lang: string) => { const isCN = lang === 'zh-CN'; - const content = data - .filter((item) => item.author === 'LobeHub') - .map((item) => [ - [ - genLink(item.meta.title, PLGUIN_URL), - `By **${item.author}** on **${item.createAt}**`, - ].join('
'), - genLink(item.homepage.split('github.com/')[1], item.homepage), - [item.meta.description, genTags(item.meta.tags)].join('
'), - ]); + const content = data.map((item) => [ + [ + genLink(item.meta.title, PLGUIN_URL), + `By **${item.author}** on **${item.createAt}**`, + ].join('
'), + genLink(item.homepage.split('github.com/')[1], item.homepage), + [item.meta.description, genTags(item.meta.tags)].join('
'), + ]); return markdownTable([ - isCN ? ['官方插件', '仓库', '插件描述'] : ['Official Plugin', 'Repository', 'Description'], + isCN ? ['最近新增', '仓库', '插件描述'] : ['Recent Submits', 'Repository', 'Description'], ...content, ]); }; diff --git a/src/app/chat/features/ChatInput/ActionBar/Tools/index.tsx b/src/app/chat/features/ChatInput/ActionBar/Tools/index.tsx index 2d3fdd7d5250..a3b0fb42d7fe 100644 --- a/src/app/chat/features/ChatInput/ActionBar/Tools/index.tsx +++ b/src/app/chat/features/ChatInput/ActionBar/Tools/index.tsx @@ -2,7 +2,7 @@ import { ActionIcon, Avatar, Icon } from '@lobehub/ui'; import { Dropdown } from 'antd'; import { createStyles } from 'antd-style'; import isEqual from 'fast-deep-equal'; -import { ArrowRight, PencilRuler, Store, ToyBrick } from 'lucide-react'; +import { ArrowRight, Blocks, Store, ToyBrick } from 'lucide-react'; import { memo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Flexbox } from 'react-layout-kit'; @@ -106,7 +106,7 @@ const Tools = memo(() => { placement={'top'} trigger={['click']} > - +