mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
🔧 chore: Update readme plugin workflow
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
};
|
||||
|
||||
@@ -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']}
|
||||
>
|
||||
<ActionIcon icon={PencilRuler} placement={'bottom'} title={t('tools.title')} />
|
||||
<ActionIcon icon={Blocks} placement={'bottom'} title={t('tools.title')} />
|
||||
</Dropdown>
|
||||
<PluginStore open={open} setOpen={setOpen} />
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user