Skip to content

Commit

Permalink
🔧 chore: Update readme plugin workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored and arvinxx committed Dec 15, 2023
1 parent 292a3e1 commit 388eb85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
20 changes: 9 additions & 11 deletions scripts/readmeWorkflow/syncPluginIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
`<sup>By **${item.author}** on **${item.createAt}**</sup>`,
].join('<br/>'),
genLink(item.homepage.split('github.com/')[1], item.homepage),
[item.meta.description, genTags(item.meta.tags)].join('<br/>'),
]);
const content = data.map((item) => [
[
genLink(item.meta.title, PLGUIN_URL),
`<sup>By **${item.author}** on **${item.createAt}**</sup>`,
].join('<br/>'),
genLink(item.homepage.split('github.com/')[1], item.homepage),
[item.meta.description, genTags(item.meta.tags)].join('<br/>'),
]);
return markdownTable([
isCN ? ['官方插件', '仓库', '插件描述'] : ['Official Plugin', 'Repository', 'Description'],
isCN ? ['最近新增', '仓库', '插件描述'] : ['Recent Submits', 'Repository', 'Description'],
...content,
]);
};
Expand Down
4 changes: 2 additions & 2 deletions src/app/chat/features/ChatInput/ActionBar/Tools/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -106,7 +106,7 @@ const Tools = memo(() => {
placement={'top'}
trigger={['click']}
>
<ActionIcon icon={PencilRuler} placement={'bottom'} title={t('tools.title')} />
<ActionIcon icon={Blocks} placement={'bottom'} title={t('tools.title')} />
</Dropdown>
<PluginStore open={open} setOpen={setOpen} />
</>
Expand Down

0 comments on commit 388eb85

Please sign in to comment.