Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 优化舞蹈播放 #124

Merged
merged 2 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions src/app/my/Redirect.tsx

This file was deleted.

47 changes: 0 additions & 47 deletions src/app/my/SideBar/MyList/Item.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions src/app/my/SideBar/MyList/index.tsx

This file was deleted.

42 changes: 0 additions & 42 deletions src/app/my/SideBar/index.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/app/my/SideBar/type.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/app/my/agent/layout.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/app/my/agent/page.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/app/my/dance/layout.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/app/my/dance/page.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions src/app/my/layout.desktop.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/app/my/page.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/app/my/style.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/features/Actions/Discord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default () => {
icon={SiDiscord}
key="discord"
title={t('support')}
onClick={() => window.open('https://discord.gg/8Gq83ZCK9u', '_blank')}
onClick={() => window.open('https://discord.gg/AYFPHvv2jT', '_blank')}
style={{ border: `1px solid ${theme.colorFillSecondary}` }}
/>
);
Expand Down
62 changes: 0 additions & 62 deletions src/features/Actions/PlayControl.tsx

This file was deleted.

14 changes: 12 additions & 2 deletions src/features/AgentViewer/ToolBar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ActionIconGroup } from '@lobehub/ui';
import dayjs from 'dayjs';
import { Aperture, Axis3D, Grid3x3, Orbit, RotateCw, SwitchCamera } from 'lucide-react';
import { Aperture, Axis3D, Grid3x3, Orbit, Power, SwitchCamera } from 'lucide-react';
import React from 'react';
import { useTranslation } from 'react-i18next';

Expand Down Expand Up @@ -41,7 +41,12 @@ const ToolBar = (props: ToolBarProps) => {
dropdownMenu={dropdownMenu}
items={[
{
icon: RotateCw,
icon: Power,
key: 'power',
label: t('toolBar.resetToIdle'),
},
{
icon: SwitchCamera,
key: 'resetCamera',
label: t('toolBar.resetCamera'),
},
Expand All @@ -63,6 +68,10 @@ const ToolBar = (props: ToolBarProps) => {

break;
}
case 'power': {
viewer.model?.resetToIdle();
break;
}
case 'screenShot': {
const canvas = document.querySelector('#canvas') as HTMLCanvasElement;
const imageType = 'png';
Expand Down Expand Up @@ -103,6 +112,7 @@ const ToolBar = (props: ToolBarProps) => {
}}
style={style}
type={'block'}
size={'normal'}
/>
);
};
Expand Down
33 changes: 0 additions & 33 deletions src/features/AudioPlayer/Control/index.tsx

This file was deleted.

Loading
Loading