Skip to content

Commit

Permalink
Merge pull request #139 from lobehub/chore/remove-panel
Browse files Browse the repository at this point in the history
feat: 角色触摸功能
  • Loading branch information
rdmclin2 authored Sep 18, 2024
2 parents 86c8fc7 + 8e07780 commit b6da47d
Show file tree
Hide file tree
Showing 94 changed files with 1,387 additions and 617 deletions.
2 changes: 1 addition & 1 deletion locales/bg-BG/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Крак"
},
"editAction": "Редактиране на отговорно действие",
"emotion": {
"expression": {
"angry": "Ядосан",
"blink": "Мигам",
"blinkLeft": "Мигам с лявото око",
Expand Down
2 changes: 1 addition & 1 deletion locales/de-DE/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Bein"
},
"editAction": "Bearbeiten der Reaktionsaktion",
"emotion": {
"expression": {
"angry": "Wütend",
"blink": "Blinzeln",
"blinkLeft": "Linkes Auge blinzeln",
Expand Down
4 changes: 2 additions & 2 deletions locales/en-US/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"coverLabel": "Cover",
"descDescription": "A brief introduction to the character.",
"descLabel": "Description",
"emotionDescription": "Select the emotion for responses, which will affect the character's facial expressions.",
"emotionDescription": "Select the expression for responses, which will affect the character's facial expressions.",
"emotionLabel": "Emotions and Feelings",
"genderDescription": "The character's gender, which affects touch responses.",
"genderLabel": "Gender",
Expand Down Expand Up @@ -115,7 +115,7 @@
"leg": "Leg"
},
"editAction": "Edit Response Action",
"emotion": {
"expression": {
"angry": "Angry",
"blink": "Blink",
"blinkLeft": "Blink Left",
Expand Down
2 changes: 1 addition & 1 deletion locales/es-ES/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Pierna"
},
"editAction": "Editar acción de respuesta",
"emotion": {
"expression": {
"angry": "Enojado",
"blink": "Parpadear",
"blinkLeft": "Parpadear con el ojo izquierdo",
Expand Down
2 changes: 1 addition & 1 deletion locales/fr-FR/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Jambe"
},
"editAction": "Modifier l'action de réponse",
"emotion": {
"expression": {
"angry": "En colère",
"blink": "Cligner",
"blinkLeft": "Cligner de l'œil gauche",
Expand Down
2 changes: 1 addition & 1 deletion locales/it-IT/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Gamba"
},
"editAction": "Modifica azione di risposta",
"emotion": {
"expression": {
"angry": "Arrabbiato",
"blink": "Batti le palpebre",
"blinkLeft": "Batti la palpebra sinistra",
Expand Down
2 changes: 1 addition & 1 deletion locales/ja-JP/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": ""
},
"editAction": "応答アクションを編集",
"emotion": {
"expression": {
"angry": "怒っている",
"blink": "まばたき",
"blinkLeft": "左目をまばたき",
Expand Down
2 changes: 1 addition & 1 deletion locales/ko-KR/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "다리"
},
"editAction": "응답 동작 편집",
"emotion": {
"expression": {
"angry": "화남",
"blink": "눈 깜빡임",
"blinkLeft": "왼쪽 눈 깜빡임",
Expand Down
2 changes: 1 addition & 1 deletion locales/nl-NL/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Been"
},
"editAction": "Bewerk responsactie",
"emotion": {
"expression": {
"angry": "Boos",
"blink": "Knipperen",
"blinkLeft": "Linker oog knipperen",
Expand Down
2 changes: 1 addition & 1 deletion locales/pl-PL/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Noga"
},
"editAction": "Edytuj akcję odpowiedzi",
"emotion": {
"expression": {
"angry": "Zły",
"blink": "Mrugnięcie",
"blinkLeft": "Mrugnięcie lewym okiem",
Expand Down
2 changes: 1 addition & 1 deletion locales/pt-BR/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Perna"
},
"editAction": "Editar ação de resposta",
"emotion": {
"expression": {
"angry": "Bravo",
"blink": "Pestanejar",
"blinkLeft": "Pestanejar com o olho esquerdo",
Expand Down
2 changes: 1 addition & 1 deletion locales/ru-RU/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Нога"
},
"editAction": "Редактировать действие ответа",
"emotion": {
"expression": {
"angry": "Сердитый",
"blink": "Моргнуть",
"blinkLeft": "Моргнуть левым глазом",
Expand Down
2 changes: 1 addition & 1 deletion locales/tr-TR/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Bacak"
},
"editAction": "Yanıt eylemini düzenle",
"emotion": {
"expression": {
"angry": "Kızgın",
"blink": "Göz kırp",
"blinkLeft": "Sol gözü kırp",
Expand Down
2 changes: 1 addition & 1 deletion locales/vi-VN/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "Chân"
},
"editAction": "Chỉnh sửa hành động phản hồi",
"emotion": {
"expression": {
"angry": "Giận dữ",
"blink": "Chớp mắt",
"blinkLeft": "Chớp mắt trái",
Expand Down
2 changes: 1 addition & 1 deletion locales/zh-CN/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"chest": "胸部",
"belly": "腹部"
},
"emotion": {
"expression": {
"natural": "自然",
"happy": "开心",
"angry": "生气",
Expand Down
2 changes: 1 addition & 1 deletion locales/zh-TW/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"leg": "腿部"
},
"editAction": "編輯回應動作",
"emotion": {
"expression": {
"angry": "生氣",
"blink": "眨眼",
"blinkLeft": "眨左眼",
Expand Down
28 changes: 28 additions & 0 deletions scripts/mixamo/Motion/Female/Greeting/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[
{
"id": "c9c7996a-b96c-11e4-a802-0aaa78deedf9",
"type": "Motion",
"description": "Greeting While Standing",
"category": "",
"character_type": "human",
"name": "Standing Greeting",
"thumbnail": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/113350901/static.png",
"thumbnail_animated": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/113350901/animated.gif",
"motion_id": "c9c7996a-b96c-11e4-a802-0aaa78deedf9",
"motions": null,
"source": "system"
},
{
"id": "c9c9f343-b96c-11e4-a802-0aaa78deedf9",
"type": "Motion",
"description": "2 People Shaking Hands Part 1 - Female",
"category": "",
"character_type": "human",
"name": "Shaking Hands 1",
"thumbnail": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119070901/static.png",
"thumbnail_animated": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119070901/animated.gif",
"motion_id": "c9c9f343-b96c-11e4-a802-0aaa78deedf9",
"motions": null,
"source": "system"
}
]
54 changes: 54 additions & 0 deletions scripts/mixamo/Motion/Male/Greeting/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[
{
"id": "c9c9f403-b96c-11e4-a802-0aaa78deedf9",
"type": "Motion",
"description": "2 People Shaking Hands Part 2 - Male",
"category": "",
"character_type": "human",
"name": "Shaking Hands 2",
"thumbnail": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119070902/static.png",
"thumbnail_animated": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119070902/animated.gif",
"motion_id": "c9c9f403-b96c-11e4-a802-0aaa78deedf9",
"motions": null,
"source": "system"
},
{
"id": "c9c9f4bc-b96c-11e4-a802-0aaa78deedf9",
"type": "Motion",
"description": "Quick Formal Bow",
"category": "",
"character_type": "human",
"name": "Quick Formal Bow",
"thumbnail": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119110901/static.png",
"thumbnail_animated": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119110901/animated.gif",
"motion_id": "c9c9f4bc-b96c-11e4-a802-0aaa78deedf9",
"motions": null,
"source": "system"
},
{
"id": "c9cb0ab6-b96c-11e4-a802-0aaa78deedf9",
"type": "Motion",
"description": "Formal Military Salute",
"category": "",
"character_type": "human",
"name": "Salute",
"thumbnail": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/120580901/static.png",
"thumbnail_animated": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/120580901/animated.gif",
"motion_id": "c9cb0ab6-b96c-11e4-a802-0aaa78deedf9",
"motions": null,
"source": "system"
},
{
"id": "c9c9f57a-b96c-11e4-a802-0aaa78deedf9",
"type": "Motion",
"description": "Quick Informal Bow",
"category": "",
"character_type": "human",
"name": "Quick Informal Bow",
"thumbnail": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119110902/static.png",
"thumbnail_animated": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119110902/animated.gif",
"motion_id": "c9c9f57a-b96c-11e4-a802-0aaa78deedf9",
"motions": null,
"source": "system"
}
]
2 changes: 1 addition & 1 deletion scripts/mixamo/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* https://www.mixamo.com/
* Mixamo Animations 脚本处理
* Mixamo Animations 脚本处理, `bun index.ts`
* @author rdmclin2
*/
import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from 'node:fs';
Expand Down
60 changes: 60 additions & 0 deletions src/animations/Motion/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,46 @@
"url": "https://r2.vidol.chat/animations/c9c7438e-b96c-11e4-a802-0aaa78deedf9.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/108840901/animated.gif"
},
{
"id": "c9c9f403-b96c-11e4-a802-0aaa78deedf9",
"name": "Shaking Hands 2",
"type": "Motion",
"gender": "Male",
"category": "Greeting",
"description": "2 People Shaking Hands Part 2 - Male",
"url": "https://r2.vidol.chat/animations/c9c9f403-b96c-11e4-a802-0aaa78deedf9.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119070902/animated.gif"
},
{
"id": "c9c9f4bc-b96c-11e4-a802-0aaa78deedf9",
"name": "Quick Formal Bow",
"type": "Motion",
"gender": "Male",
"category": "Greeting",
"description": "Quick Formal Bow",
"url": "https://r2.vidol.chat/animations/c9c9f4bc-b96c-11e4-a802-0aaa78deedf9.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119110901/animated.gif"
},
{
"id": "c9cb0ab6-b96c-11e4-a802-0aaa78deedf9",
"name": "Salute",
"type": "Motion",
"gender": "Male",
"category": "Greeting",
"description": "Formal Military Salute",
"url": "https://r2.vidol.chat/animations/c9cb0ab6-b96c-11e4-a802-0aaa78deedf9.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/120580901/animated.gif"
},
{
"id": "c9c9f57a-b96c-11e4-a802-0aaa78deedf9",
"name": "Quick Informal Bow",
"type": "Motion",
"gender": "Male",
"category": "Greeting",
"description": "Quick Informal Bow",
"url": "https://r2.vidol.chat/animations/c9c9f57a-b96c-11e4-a802-0aaa78deedf9.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119110902/animated.gif"
},
{
"id": "c9c609a9-b96c-11e4-a802-0aaa78deedf9",
"name": "Walking",
Expand Down Expand Up @@ -1019,6 +1059,26 @@
"url": "https://r2.vidol.chat/animations/c9c6e172-b96c-11e4-a802-0aaa78deedf9.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/108660901/animated.gif"
},
{
"id": "c9c7996a-b96c-11e4-a802-0aaa78deedf9",
"name": "Standing Greeting",
"type": "Motion",
"gender": "Female",
"category": "Greeting",
"description": "Greeting While Standing",
"url": "https://r2.vidol.chat/animations/c9c7996a-b96c-11e4-a802-0aaa78deedf9.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/113350901/animated.gif"
},
{
"id": "c9c9f343-b96c-11e4-a802-0aaa78deedf9",
"name": "Shaking Hands 1",
"type": "Motion",
"gender": "Female",
"category": "Greeting",
"description": "2 People Shaking Hands Part 1 - Female",
"url": "https://r2.vidol.chat/animations/c9c9f343-b96c-11e4-a802-0aaa78deedf9.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/119070901/animated.gif"
},
{
"id": "c9c98a38-b96c-11e4-a802-0aaa78deedf9",
"name": "Happy",
Expand Down
20 changes: 10 additions & 10 deletions src/animations/Posture/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,16 @@
"url": "https://r2.vidol.chat/animations/27fe7228-487a-4951-af65-30cef1a9183d.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/140000905/animated.gif"
},
{
"id": "8c95cac8-2068-410f-9564-d0a2a04ea0a5",
"name": "Female Action Pose",
"type": "Posture",
"gender": "Female",
"category": "Action",
"description": "Sliding",
"url": "https://r2.vidol.chat/animations/8c95cac8-2068-410f-9564-d0a2a04ea0a5.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/140000902/animated.gif"
},
{
"id": "eaf51ff4-0fb7-4759-aadf-edb8fd3ae6a0",
"name": "Female Action Pose",
Expand Down Expand Up @@ -719,16 +729,6 @@
"url": "https://r2.vidol.chat/animations/e3543986-d43d-4ec1-bac8-5cf7f5ec003b.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/140100902/animated.gif"
},
{
"id": "8c95cac8-2068-410f-9564-d0a2a04ea0a5",
"name": "Female Action Pose",
"type": "Posture",
"gender": "Female",
"category": "Crouch",
"description": "Sliding",
"url": "https://r2.vidol.chat/animations/8c95cac8-2068-410f-9564-d0a2a04ea0a5.fbx",
"avatar": "https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/140000902/animated.gif"
},
{
"id": "31dca3e7-dba8-4536-a70e-34d7d5976fa9",
"name": "Female Dance Pose",
Expand Down
17 changes: 8 additions & 9 deletions src/app/chat/ChatInfo/DanceList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ const DanceList = memo((props: PlayListProps) => {
/>
}
/>

<Virtuoso
computeItemKey={(_, item) => item.danceId}
data={danceList}
followOutput={false}
itemContent={(index, item) => <DanceItem danceItem={item} key={item.danceId} />}
/>

{danceList.length === 0 ? (
<Empty description={t('noDanceList')} image={Empty.PRESENTED_IMAGE_SIMPLE}>
<GradientButton
Expand All @@ -85,7 +77,14 @@ const DanceList = memo((props: PlayListProps) => {
{t('danceMarket')}
</GradientButton>
</Empty>
) : null}
) : (
<Virtuoso
computeItemKey={(_, item) => item.danceId}
data={danceList}
followOutput={false}
itemContent={(index, item) => <DanceItem danceItem={item} key={item.danceId} />}
/>
)}
</Flexbox>
</Flexbox>
);
Expand Down
Loading

0 comments on commit b6da47d

Please sign in to comment.