Skip to content

Commit

Permalink
✨ feat: 优化按钮标识,添加助手按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed May 1, 2024
1 parent 8f44409 commit 6683c98
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
9 changes: 0 additions & 9 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ const nextConfig = {
optimizePackageImports: ['@lobehub/ui', '@lobehub/icons', 'chroma-js', 'shiki'],
webVitalsAttribution: ['CLS', 'LCP'],
},
redirects: async () => {
return [
{
source: '/my',
destination: '/my/agent',
permanent: true,
}
]
},
reactStrictMode: true,
webpack(config) {
config.experiments = {
Expand Down
1 change: 1 addition & 0 deletions src/features/Actions/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default () => {
return (
<ActionIcon
icon={viewerMode ? VideoOff : Video}
title={'视频通话'}
onClick={() => {
if (viewerMode) {
setViewerMode(false);
Expand Down
6 changes: 3 additions & 3 deletions src/features/Actions/Voice.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ActionIcon } from '@lobehub/ui';
import { createStyles } from 'antd-style';
import classNames from 'classnames';
import { Volume2 } from 'lucide-react';
import { Volume2, VolumeXIcon } from 'lucide-react';

import { toogleVoice } from '@/services/chat';
import { useSessionStore } from '@/store/session';
Expand All @@ -23,9 +23,9 @@ const VoiceSwitch = () => {
return (
<ActionIcon
className={classNames(styles.voice, voiceOn && styles.voiceOn)}
icon={Volume2}
icon={voiceOn ? Volume2 : VolumeXIcon}
onClick={toogleVoice}
title={voiceOn ? '关闭语音合成' : '开启语音合成'}
title={'语音合成'}
/>
);
};
Expand Down
10 changes: 9 additions & 1 deletion src/layout/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { ActionIcon, Header as LobeHeader, Logo, TabsNav } from '@lobehub/ui';
import { GithubIcon } from 'lucide-react';
import { GithubIcon, UserRoundPlusIcon } from 'lucide-react';
import { useRouter } from 'next/navigation';
import { memo } from 'react';

Expand All @@ -18,9 +18,17 @@ const Header = (props: Props) => {
return (
<LobeHeader
actions={[
<ActionIcon
icon={UserRoundPlusIcon}
key="user-plus"
title={'提交助手'}
onClick={() => window.open('https://github.com/lobehub/lobe-vidol-market', '_blank')}
size="large"
/>,
<ActionIcon
icon={GithubIcon}
key="github"
title={'✨ GitHub'}
onClick={() => window.open('https://github.com/lobehub/lobe-vidol', '_blank')}
size="large"
/>,
Expand Down

0 comments on commit 6683c98

Please sign in to comment.