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

fix: 优化与修复触摸模式体验效果 #141

Merged
merged 15 commits into from
Sep 21, 2024
Merged
1 change: 1 addition & 0 deletions locales/bg-BG/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Глава",
"leg": "Крак"
},
"customEnable": "Активиране на персонализиран допир",
"editAction": "Редактиране на отговорно действие",
"expression": {
"angry": "Ядосан",
Expand Down
9 changes: 7 additions & 2 deletions locales/bg-BG/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Здравейте, аз съм {{name}}, с какво мога да ви помогна?",
"loadingTitle": "Приложението се инициализира, моля изчакайте...",
"waiting": "Подготвям целия си свят за теб"
"loading": {
"model": "Зареждане на модела...",
"motions": "Предварително зареждане на файловете с движения...",
"voices": "Генериране на файловете с глас...",
"waiting": "Подготвям целия си свят за теб..."
},
"loadingTitle": "Приложението се инициализира, моля изчакайте..."
}
1 change: 1 addition & 0 deletions locales/de-DE/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Kopf",
"leg": "Bein"
},
"customEnable": "Benutzerdefiniertes Touch aktivieren",
"editAction": "Bearbeiten der Reaktionsaktion",
"expression": {
"angry": "Wütend",
Expand Down
9 changes: 7 additions & 2 deletions locales/de-DE/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Hallo, ich bin {{name}}. Wie kann ich Ihnen helfen?",
"loadingTitle": "Anwendung wird initialisiert, bitte warten...",
"waiting": "Ich bereite gerade meine ganze Welt für dich vor"
"loading": {
"model": "Modell wird geladen...",
"motions": "Lade die Bewegungsdateien vor...",
"voices": "Sprachdateien werden generiert...",
"waiting": "Ich bereite gerade meine ganze Welt für dich vor..."
},
"loadingTitle": "Anwendung wird initialisiert, bitte warten..."
}
1 change: 1 addition & 0 deletions locales/en-US/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Head",
"leg": "Leg"
},
"customEnable": "Enable Custom Touch",
"editAction": "Edit Response Action",
"expression": {
"angry": "Angry",
Expand Down
9 changes: 7 additions & 2 deletions locales/en-US/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Hello, I am {{name}}. How can I assist you today?",
"loadingTitle": "Initializing application, please wait...",
"waiting": "I am preparing my whole world for you"
"loading": {
"model": "Loading model...",
"motions": "Preloading motion files...",
"voices": "Generating voice files...",
"waiting": "Preparing my entire world for you..."
},
"loadingTitle": "Initializing application, please wait..."
}
1 change: 1 addition & 0 deletions locales/es-ES/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Cabeza",
"leg": "Pierna"
},
"customEnable": "Habilitar toque personalizado",
"editAction": "Editar acción de respuesta",
"expression": {
"angry": "Enojado",
Expand Down
9 changes: 7 additions & 2 deletions locales/es-ES/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Hola, soy {{name}}, ¿en qué puedo ayudarte?",
"loadingTitle": "Inicializando la aplicación, por favor espere...",
"waiting": "Estoy preparando todo mi mundo para ti"
"loading": {
"model": "Cargando el modelo...",
"motions": "Cargando archivos de animación...",
"voices": "Generando archivos de voz...",
"waiting": "Preparando todo mi mundo para ti..."
},
"loadingTitle": "Inicializando la aplicación, por favor espere..."
}
1 change: 1 addition & 0 deletions locales/fr-FR/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Tête",
"leg": "Jambe"
},
"customEnable": "Activer le toucher personnalisé",
"editAction": "Modifier l'action de réponse",
"expression": {
"angry": "En colère",
Expand Down
9 changes: 7 additions & 2 deletions locales/fr-FR/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Bonjour, je suis {{name}}, comment puis-je vous aider ?",
"loadingTitle": "Initialisation de l'application, veuillez patienter...",
"waiting": "Je prépare tout mon monde pour toi"
"loading": {
"model": "Chargement du modèle...",
"motions": "Préchargement des fichiers d'animation...",
"voices": "Génération des fichiers audio...",
"waiting": "Préparation de mon monde entier pour vous..."
},
"loadingTitle": "Initialisation de l'application, veuillez patienter..."
}
1 change: 1 addition & 0 deletions locales/it-IT/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Testa",
"leg": "Gamba"
},
"customEnable": "Abilita tocco personalizzato",
"editAction": "Modifica azione di risposta",
"expression": {
"angry": "Arrabbiato",
Expand Down
9 changes: 7 additions & 2 deletions locales/it-IT/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Ciao, sono {{name}}, come posso aiutarti?",
"loadingTitle": "Inizializzazione dell'applicazione, attendere prego...",
"waiting": "Sto preparando il mio intero mondo per te"
"loading": {
"model": "Caricamento del modello in corso...",
"motions": "Caricamento dei file di animazione...",
"voices": "Generazione dei file audio in corso...",
"waiting": "Stiamo preparando il mio intero mondo per te..."
},
"loadingTitle": "Inizializzazione dell'applicazione, attendere prego..."
}
1 change: 1 addition & 0 deletions locales/ja-JP/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "頭部",
"leg": "脚"
},
"customEnable": "カスタムタッチを有効にする",
"editAction": "応答アクションを編集",
"expression": {
"angry": "怒っている",
Expand Down
9 changes: 7 additions & 2 deletions locales/ja-JP/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "こんにちは、私は{{name}}です。何かお手伝いできることはありますか?",
"loadingTitle": "アプリケーションの初期化中です。しばらくお待ちください...",
"waiting": "私の全世界をあなたのために準備しています"
"loading": {
"model": "モデルを読み込んでいます...",
"motions": "モーションファイルをプリロードしています...",
"voices": "音声ファイルを生成しています...",
"waiting": "私の全世界を準備しています..."
},
"loadingTitle": "アプリケーションの初期化中です。しばらくお待ちください..."
}
1 change: 1 addition & 0 deletions locales/ko-KR/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "머리",
"leg": "다리"
},
"customEnable": "사용자 정의 터치 활성화",
"editAction": "응답 동작 편집",
"expression": {
"angry": "화남",
Expand Down
9 changes: 7 additions & 2 deletions locales/ko-KR/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "안녕하세요, 저는 {{name}}입니다. 무엇을 도와드릴까요?",
"loadingTitle": "애플리케이션 초기화 중입니다. 잠시만 기다려 주세요...",
"waiting": "내 모든 세상을 당신을 위해 준비하고 있습니다"
"loading": {
"model": "모델을 로드하는 중...",
"motions": "모션 파일을 미리 로드하는 중...",
"voices": "음성 파일을 생성하는 중...",
"waiting": "내 세상을 준비하고 있습니다..."
},
"loadingTitle": "애플리케이션 초기화 중입니다. 잠시만 기다려 주세요..."
}
1 change: 1 addition & 0 deletions locales/nl-NL/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Hoofd",
"leg": "Been"
},
"customEnable": "Schakel aangepaste aanraking in",
"editAction": "Bewerk responsactie",
"expression": {
"angry": "Boos",
Expand Down
9 changes: 7 additions & 2 deletions locales/nl-NL/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Hallo, ik ben {{name}}, hoe kan ik je helpen?",
"loadingTitle": "Applicatie wordt geïnitialiseerd, even geduld...",
"waiting": "Ik ben mijn hele wereld voor je aan het voorbereiden"
"loading": {
"model": "Model aan het laden...",
"motions": "Actiebestanden aan het voorladen...",
"voices": "Stembestanden aan het genereren...",
"waiting": "We zijn bezig met het voorbereiden van mijn hele wereld..."
},
"loadingTitle": "Applicatie wordt geïnitialiseerd, even geduld..."
}
1 change: 1 addition & 0 deletions locales/pl-PL/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Głowa",
"leg": "Noga"
},
"customEnable": "Włącz niestandardowy dotyk",
"editAction": "Edytuj akcję odpowiedzi",
"expression": {
"angry": "Zły",
Expand Down
9 changes: 7 additions & 2 deletions locales/pl-PL/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Cześć, jestem {{name}}, w czym mogę Ci pomóc?",
"loadingTitle": "Aplikacja jest w trakcie inicjalizacji, proszę czekać...",
"waiting": "Przygotowuję dla Ciebie cały mój świat"
"loading": {
"model": "Ładowanie modelu...",
"motions": "Wstępne ładowanie plików z ruchami...",
"voices": "Generowanie plików dźwiękowych...",
"waiting": "Przygotowuję dla Ciebie cały mój świat..."
},
"loadingTitle": "Aplikacja jest w trakcie inicjalizacji, proszę czekać..."
}
1 change: 1 addition & 0 deletions locales/pt-BR/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Cabeça",
"leg": "Perna"
},
"customEnable": "Ativar toque personalizado",
"editAction": "Editar ação de resposta",
"expression": {
"angry": "Bravo",
Expand Down
9 changes: 7 additions & 2 deletions locales/pt-BR/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Olá, eu sou {{name}}, como posso ajudá-lo?",
"loadingTitle": "Aplicação em inicialização, por favor aguarde...",
"waiting": "Estou preparando todo o meu mundo para você"
"loading": {
"model": "Carregando o modelo...",
"motions": "Pré-carregando arquivos de animação...",
"voices": "Gerando arquivos de voz...",
"waiting": "Preparando todo o meu mundo para você..."
},
"loadingTitle": "Aplicação em inicialização, por favor aguarde..."
}
1 change: 1 addition & 0 deletions locales/ru-RU/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Голова",
"leg": "Нога"
},
"customEnable": "Включить пользовательский сенсорный ввод",
"editAction": "Редактировать действие ответа",
"expression": {
"angry": "Сердитый",
Expand Down
9 changes: 7 additions & 2 deletions locales/ru-RU/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Здравствуйте, я {{name}}. Чем могу вам помочь?",
"loadingTitle": "Инициализация приложения, пожалуйста, подождите...",
"waiting": "Я готовлю для тебя весь свой мир"
"loading": {
"model": "Загрузка модели...",
"motions": "Предварительная загрузка файлов анимации...",
"voices": "Генерация файлов звука...",
"waiting": "Мы готовим для вас весь мой мир..."
},
"loadingTitle": "Инициализация приложения, пожалуйста, подождите..."
}
1 change: 1 addition & 0 deletions locales/tr-TR/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Baş",
"leg": "Bacak"
},
"customEnable": "Özel dokunmayı etkinleştir",
"editAction": "Yanıt eylemini düzenle",
"expression": {
"angry": "Kızgın",
Expand Down
9 changes: 7 additions & 2 deletions locales/tr-TR/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Merhaba, ben {{name}}. Size nasıl yardımcı olabilirim?",
"loadingTitle": "Uygulama başlatılıyor, lütfen bekleyin...",
"waiting": "Senin için bütün dünyamı hazırlıyorum"
"loading": {
"model": "Model yükleniyor...",
"motions": "Hareket dosyaları önceden yükleniyor...",
"voices": "Ses dosyaları oluşturuluyor...",
"waiting": "Dünyamı senin için hazırlıyorum..."
},
"loadingTitle": "Uygulama başlatılıyor, lütfen bekleyin..."
}
1 change: 1 addition & 0 deletions locales/vi-VN/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "Đầu",
"leg": "Chân"
},
"customEnable": "Bật tùy chỉnh chạm",
"editAction": "Chỉnh sửa hành động phản hồi",
"expression": {
"angry": "Giận dữ",
Expand Down
9 changes: 7 additions & 2 deletions locales/vi-VN/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Xin chào, tôi là {{name}}, có gì tôi có thể giúp bạn không?",
"loadingTitle": "Đang khởi tạo ứng dụng, vui lòng chờ...",
"waiting": "Đang chuẩn bị cả thế giới của tôi cho bạn"
"loading": {
"model": "Đang tải mô hình...",
"motions": "Đang tải các tệp hành động...",
"voices": "Đang tạo tệp âm thanh...",
"waiting": "Đang chuẩn bị toàn bộ thế giới của tôi cho bạn..."
},
"loadingTitle": "Đang khởi tạo ứng dụng, vui lòng chờ..."
}
2 changes: 1 addition & 1 deletion locales/zh-CN/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"screenShot": "拍照",
"grid": "网格",
"axes": "坐标轴",
"downloading": "模型下载中,请稍后..."
"downloading": "正在为你准备我的整个世界..."
},
"tts": {
"record": "语音识别(需科学上网)",
Expand Down
3 changes: 2 additions & 1 deletion locales/zh-CN/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"temperatureLabel": "随机性",
"temperatureDescription": "值越大,回复越随机",
"topPLabel": "核采样",
"topPDescription": "与随机性类型,但不要和随机性一起更改",
"topPDescription": "与随机性类似,但不要和随机性一起更改",
"presencePenaltyLabel": "话题新鲜度",
"presencePenaltyDescription": "值越大,越有可能拓展到新话题",
"frequencyPenaltyLabel": "频率惩罚度",
Expand Down Expand Up @@ -115,6 +115,7 @@
"touchActionList": "触摸{{touchArea}}时的反应列表",
"touchArea": "触摸区域",
"noTouchActions": "暂无自定义响应动作,您可以通过点击 '+' 按钮添加",
"customEnable": "启用自定义触摸",
"area": {
"head": "头部",
"arm": "手臂",
Expand Down
9 changes: 7 additions & 2 deletions locales/zh-CN/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "你好,我是{{name}},有什么可以帮助你的吗?",
"loadingTitle": "应用初始化中,请稍后...",
"waiting": "正在为你准备我的整个世界"
"loading": {
"waiting": "正在为你准备我的整个世界...",
"motions": "预加载动作文件...",
"model": "加载模型中...",
"voices": "生成语音文件中..."
},
"loadingTitle": "应用初始化中,请稍后..."
}
1 change: 1 addition & 0 deletions locales/zh-TW/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"head": "頭部",
"leg": "腿部"
},
"customEnable": "啟用自訂觸控",
"editAction": "編輯回應動作",
"expression": {
"angry": "生氣",
Expand Down
9 changes: 7 additions & 2 deletions locales/zh-TW/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "你好,我是{{name}},有什麼可以幫助你的嗎?",
"loadingTitle": "應用程式初始化中,請稍候...",
"waiting": "正在為你準備我的整個世界"
"loading": {
"model": "加載模型中...",
"motions": "預加載動作檔案...",
"voices": "生成語音檔案中...",
"waiting": "正在為你準備我的整個世界..."
},
"loadingTitle": "應用程式初始化中,請稍候..."
}
4 changes: 1 addition & 3 deletions src/app/role/RoleEdit/Touch/ActionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ const AreaList = (props: AreaListProps) => {
const { currentTouchArea, style, className, areaOptions = [] } = props;
const [currentAgentTouch] = useAgentStore((s) => [agentSelectors.currentAgentTouch(s)]);
const { t } = useTranslation('role');
const items = currentAgentTouch
const items = get(currentAgentTouch, currentTouchArea)
? (get(currentAgentTouch, currentTouchArea) as TouchAction[])
: [];

console.log('items', items);

const touchArea = areaOptions.find((item) => item.value === currentTouchArea)?.label;

return (
Expand Down
Loading
Loading