mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
chore: bump lucide-react to v1.8.0 (#13703)
* chore: bump lucide-react from ^0.577.0 to ^1.8.0 Breaking change: Github icon was removed from lucide-react v1.x (brand icons removed). Replaced with Github from @lobehub/icons in 5 affected files. * fix: use GithubIcon from @lobehub/ui/icons instead of @lobehub/icons
This commit is contained in:
parent
9088a074e2
commit
cd49e98936
6 changed files with 15 additions and 14 deletions
|
|
@ -343,7 +343,7 @@
|
|||
"langfuse": "^3.38.6",
|
||||
"langfuse-core": "^3.38.6",
|
||||
"lexical": "0.42.0",
|
||||
"lucide-react": "^0.577.0",
|
||||
"lucide-react": "^1.8.0",
|
||||
"mammoth": "^1.11.0",
|
||||
"marked": "^17.0.1",
|
||||
"mdast-util-to-markdown": "^2.1.2",
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
import { SOCIAL_URL } from '@lobechat/business-const';
|
||||
import { DiscordIcon } from '@lobehub/ui/icons';
|
||||
import { DiscordIcon, GithubIcon } from '@lobehub/ui/icons';
|
||||
import { Command } from 'cmdk';
|
||||
import {
|
||||
Bot,
|
||||
FeatherIcon,
|
||||
FilePen,
|
||||
Github,
|
||||
LibraryBig,
|
||||
MessageSquarePlusIcon,
|
||||
Monitor,
|
||||
|
|
@ -145,7 +144,7 @@ const MainMenu = memo(() => {
|
|||
{t('cmdk.contactUs')}
|
||||
</CommandItem>
|
||||
<CommandItem
|
||||
icon={<Github />}
|
||||
icon={<GithubIcon />}
|
||||
keywords={t('cmdk.keywords.submitIssue').split(' ')}
|
||||
value="submit-issue"
|
||||
onSelect={() => handleExternalLink(FEEDBACK)}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { Button, DropdownMenu, Flexbox, Icon, Text } from '@lobehub/ui';
|
||||
import { ChevronDown, FileArchive, Github, Grid2x2Plus, Link, PenLine } from 'lucide-react';
|
||||
import { GithubIcon } from '@lobehub/ui/icons';
|
||||
import { ChevronDown, FileArchive, Grid2x2Plus, Link, PenLine } from 'lucide-react';
|
||||
import { type ReactNode, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
|
@ -62,7 +63,7 @@ const AddSkillButton = () => {
|
|||
onClick: () => setUrlModal(true),
|
||||
},
|
||||
{
|
||||
icon: <Icon icon={Github} />,
|
||||
icon: <Icon icon={GithubIcon} />,
|
||||
key: 'importGithub',
|
||||
label: (
|
||||
<MenuLabel desc={t('tab.importFromGithub.desc')} title={t('tab.importFromGithub')} />
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
'use client';
|
||||
|
||||
import { Alert, Flexbox, Icon, Input } from '@lobehub/ui';
|
||||
import { GithubIcon } from '@lobehub/ui/icons';
|
||||
import { App, Button, Modal, Typography } from 'antd';
|
||||
import { ArrowLeftRight, Github, Sparkles } from 'lucide-react';
|
||||
import { ArrowLeftRight, Sparkles } from 'lucide-react';
|
||||
import { memo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
|
@ -49,7 +50,7 @@ const ImportFromGithubModal = memo<ImportFromGithubModalProps>(({ open, onOpenCh
|
|||
<Modal destroyOnClose footer={null} open={open} title={null} width={480} onCancel={handleClose}>
|
||||
<Flexbox align="center" gap={16} padding={'16px 0'}>
|
||||
<Flexbox horizontal align="center" gap={8}>
|
||||
<Icon icon={Github} size={28} />
|
||||
<Icon icon={GithubIcon} size={28} />
|
||||
<Icon
|
||||
icon={ArrowLeftRight}
|
||||
size={16}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import { Button, Icon, Tag, Typography } from '@lobehub/ui';
|
||||
import { GithubIcon } from '@lobehub/ui/icons';
|
||||
import { Divider } from 'antd';
|
||||
import { Github, Settings, Share2 } from 'lucide-react';
|
||||
import { Settings, Share2 } from 'lucide-react';
|
||||
import { memo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
|
@ -41,7 +42,7 @@ const Inner = memo(() => {
|
|||
<p>{t('createGuide.func2.desc')}</p>
|
||||
<br />
|
||||
<Button
|
||||
icon={Github}
|
||||
icon={GithubIcon}
|
||||
type={'primary'}
|
||||
onClick={() => window.open(AGENTS_INDEX_GITHUB, '__blank')}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -4,14 +4,13 @@ import { SOCIAL_URL } from '@lobechat/business-const';
|
|||
import { useAnalytics } from '@lobehub/analytics/react';
|
||||
import { type MenuProps } from '@lobehub/ui';
|
||||
import { ActionIcon, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
|
||||
import { DiscordIcon } from '@lobehub/ui/icons';
|
||||
import { DiscordIcon, GithubIcon } from '@lobehub/ui/icons';
|
||||
import {
|
||||
Book,
|
||||
CircleHelp,
|
||||
Feather,
|
||||
FileClockIcon,
|
||||
FlaskConical,
|
||||
Github,
|
||||
Rocket,
|
||||
Settings,
|
||||
Settings2,
|
||||
|
|
@ -173,7 +172,7 @@ const Footer = memo(() => {
|
|||
...(footer.layout === 'compact' && !footer.hideGitHub
|
||||
? [
|
||||
{
|
||||
icon: <Icon icon={Github} />,
|
||||
icon: <Icon icon={GithubIcon} />,
|
||||
key: 'github',
|
||||
label: (
|
||||
<a href={GITHUB} rel="noopener noreferrer" target="_blank">
|
||||
|
|
@ -226,7 +225,7 @@ const Footer = memo(() => {
|
|||
</DropdownMenu>
|
||||
{!footer.hideGitHub && (
|
||||
<a aria-label={'GitHub'} href={GITHUB} rel="noopener noreferrer" target={'_blank'}>
|
||||
<ActionIcon icon={Github} size={16} title={'GitHub'} />
|
||||
<ActionIcon icon={GithubIcon} size={16} title={'GitHub'} />
|
||||
</a>
|
||||
)}
|
||||
<Link to="/eval">
|
||||
|
|
|
|||
Loading…
Reference in a new issue