Skip to content

Commit

Permalink
💄 style : Add an "Assistant and Conversation" icon (lobehub#2410)
Browse files Browse the repository at this point in the history
* style:Add an "Assistant and Conversation" icon

* 💄 style : Add an "Assistant and Conversation" icon

* 💄 style: Add an "Assistant and Conversation" icon

* 💄 style : Add an `Assistant and Conversation` icon

* 💄 style : Add an `Assistant and Conversation` icon
  • Loading branch information
RubuJam committed May 12, 2024
1 parent ba69a41 commit 4ba23ea
Show file tree
Hide file tree
Showing 19 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions locales/ar/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "مرحبًا، أنا **{{name}}**، يمكنك البدء في الدردشة معي على الفور، أو يمكنك الانتقال إلى [إعدادات المساعد](/chat/settings#session={{id}}) لتحسين معلوماتي.",
"agentDefaultMessageWithSystemRole": "مرحبًا، أنا **{{name}}**، {{systemRole}}، دعنا نبدأ الدردشة!",
"agentsAndConversations": "الوكلاء والمحادثات",
"backToBottom": "العودة إلى الأسفل",
"clearCurrentMessages": "مسح رسائل الجلسة الحالية",
"confirmClearCurrentMessages": "سيتم مسح رسائل الجلسة الحالية قريبًا، وبمجرد المسح لن يمكن استعادتها، يرجى تأكيد الإجراء الخاص بك",
Expand Down
1 change: 1 addition & 0 deletions locales/bg-BG/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Здравей, аз съм **{{name}}**. Можеш да започнеш да чатиш с мен веднага, или да отидеш в [Настройки на агента](/chat/settings#session={{id}}) за да попълниш информацията ми.",
"agentDefaultMessageWithSystemRole": "Здравей, аз съм **{{name}}**, {{systemRole}}. Нека започнем да чатим!",
"agentsAndConversations": "агенти и разговори",
"backToBottom": "Върни се в началото",
"clearCurrentMessages": "Изчисти съобщенията от текущата сесия",
"confirmClearCurrentMessages": "На път си да изчистиш съобщенията от текущата сесия. След като бъдат изчистени, те не могат да бъдат възстановени. Моля, потвърди действието си.",
Expand Down
1 change: 1 addition & 0 deletions locales/de-DE/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Hallo, ich bin **{{name}}**. Du kannst sofort mit mir chatten oder gehe zu [Assistenteneinstellungen](/chat/settings#session={{id}}), um meine Informationen zu vervollständigen.",
"agentDefaultMessageWithSystemRole": "Hallo, ich bin **{{name}}**, {{systemRole}}. Lass uns chatten!",
"agentsAndConversations": "Agenten und Unterhaltungen",
"backToBottom": "Zurück zum Ende",
"clearCurrentMessages": "Aktuelle Nachrichten löschen",
"confirmClearCurrentMessages": "Möchtest du wirklich die aktuellen Nachrichten löschen? Diese Aktion kann nicht rückgängig gemacht werden.",
Expand Down
1 change: 1 addition & 0 deletions locales/en-US/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Hello, I'm **{{name}}**. You can start chatting with me right away, or go to [Agent Settings](/chat/settings#session={{id}}) to complete my information.",
"agentDefaultMessageWithSystemRole": "Hello, I'm **{{name}}**, {{systemRole}}. Let's start chatting!",
"agentsAndConversations": "Agents and Conversations",
"backToBottom": "Back to bottom",
"clearCurrentMessages": "Clear current session messages",
"confirmClearCurrentMessages": "You are about to clear the current session messages. Once cleared, they cannot be retrieved. Please confirm your action.",
Expand Down
1 change: 1 addition & 0 deletions locales/es-ES/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Hola, soy **{{name}}**, puedes comenzar a chatear conmigo de inmediato o ir a [Configuración del asistente](/chat/settings#session={{id}}) para completar mi información.",
"agentDefaultMessageWithSystemRole": "Hola, soy **{{name}}**, {{systemRole}}, ¡comencemos a chatear!",
"agentsAndConversations": "agentesYConversaciones",
"backToBottom": "Volver al fondo",
"clearCurrentMessages": "Borrar mensajes actuales",
"confirmClearCurrentMessages": "Estás a punto de borrar los mensajes de esta sesión. Una vez borrados, no se podrán recuperar. Por favor, confirma tu acción.",
Expand Down
1 change: 1 addition & 0 deletions locales/fr-FR/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Bonjour, je suis **{{name}}**. Vous pouvez commencer à discuter avec moi dès maintenant ou aller dans [Paramètres de l'agent](/chat/settings#session={{id}}) pour compléter mes informations.",
"agentDefaultMessageWithSystemRole": "Bonjour, je suis **{{name}}**, {{systemRole}}. Commençons la conversation !",
"agentsAndConversations": "Agents et conversations",
"backToBottom": "Retour en bas",
"clearCurrentMessages": "Effacer les messages actuels",
"confirmClearCurrentMessages": "Vous êtes sur le point d'effacer les messages de cette session. Cette action est irréversible. Veuillez confirmer.",
Expand Down
1 change: 1 addition & 0 deletions locales/it-IT/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Ciao, sono **{{name}}**, puoi iniziare a chattare con me subito o andare a [impostazioni assistente](/chat/settings#session={{id}}) per completare le mie informazioni.",
"agentDefaultMessageWithSystemRole": "Ciao, sono **{{name}}**, {{systemRole}}, iniziamo a chattare!",
"agentsAndConversations": "Assistenti e Conversazioni",
"backToBottom": "Torna in fondo",
"clearCurrentMessages": "Cancella messaggi attuali",
"confirmClearCurrentMessages": "Stai per cancellare i messaggi attuali, questa operazione non potrà essere annullata. Confermi?",
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "こんにちは、私は **{{name}}** です。すぐにチャットを開始するか、[エージェント設定](/chat/settings#session={{id}}) に移動して私の情報を完全にすることができます。",
"agentDefaultMessageWithSystemRole": "こんにちは、私は **{{name}}** です、{{systemRole}}、さあ、チャットを始めましょう!",
"agentsAndConversations": "エージェントと会話",
"backToBottom": "現在に戻る",
"clearCurrentMessages": "現在の会話をクリア",
"confirmClearCurrentMessages": "現在の会話をクリアします。クリアした後は元に戻すことはできません。操作を確認してください。",
Expand Down
1 change: 1 addition & 0 deletions locales/ko-KR/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "안녕하세요, 저는 **{{name}}**입니다. 지금 즉시 대화를 시작하거나 [도우미 설정](/chat/settings#session={{id}})으로 이동하여 내 정보를 완성할 수 있습니다.",
"agentDefaultMessageWithSystemRole": "안녕하세요, 저는 **{{name}}**입니다. {{systemRole}}입니다. 대화를 시작해 봅시다!",
"agentsAndConversations": "에이전트 및 대화",
"backToBottom": "하단으로 이동",
"clearCurrentMessages": "현재 대화 지우기",
"confirmClearCurrentMessages": "현재 대화를 지우시면 되돌릴 수 없습니다. 작업을 확인하시겠습니까?",
Expand Down
1 change: 1 addition & 0 deletions locales/nl-NL/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Hallo, ik ben **{{name}}**. Je kunt meteen met me praten of naar [Assistentinstellingen](/chat/settings#session={{id}}) gaan om mijn informatie aan te vullen.",
"agentDefaultMessageWithSystemRole": "Hallo, ik ben **{{name}}**, {{systemRole}}, laten we beginnen met praten!",
"agentsAndConversations": "agenten en gesprekken",
"backToBottom": "Terug naar onderen",
"clearCurrentMessages": "Huidige berichten wissen",
"confirmClearCurrentMessages": "Huidige berichten worden gewist en kunnen niet worden hersteld. Bevestig je actie.",
Expand Down
1 change: 1 addition & 0 deletions locales/pl-PL/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Cześć, jestem **{{name}}**, możesz od razu zacząć ze mną rozmawiać, lub udoskonalić moje informacje, przechodząc do [Ustawień asystenta](/chat/settings#session={{id}}).",
"agentDefaultMessageWithSystemRole": "Cześć, jestem **{{name}}**, {{systemRole}}, zacznijmy rozmowę!",
"agentsAndConversations": "Agenci i rozmowy",
"backToBottom": "Przewiń na dół",
"clearCurrentMessages": "Wyczyść bieżącą rozmowę",
"confirmClearCurrentMessages": "Czy na pewno chcesz wyczyścić bieżącą rozmowę? Tej operacji nie można cofnąć.",
Expand Down
1 change: 1 addition & 0 deletions locales/pt-BR/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Olá, eu sou **{{name}}**, você pode começar a conversar comigo agora ou ir para [Configurações do Assistente](/chat/settings#session={{id}}) para completar minhas informações.",
"agentDefaultMessageWithSystemRole": "Olá, eu sou **{{name}}**, {{systemRole}}, vamos conversar!",
"agentsAndConversations": "Agentes e Conversas",
"backToBottom": "Voltar para o início",
"clearCurrentMessages": "Limpar mensagens atuais",
"confirmClearCurrentMessages": "Você está prestes a limpar as mensagens desta sessão. Depois de limpar, não será possível recuperá-las. Por favor, confirme sua ação.",
Expand Down
1 change: 1 addition & 0 deletions locales/ru-RU/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Привет, я **{{name}}**. Ты можешь начать общение со мной прямо сейчас или перейти к [настройкам помощника](/chat/settings#session={{id}}), чтобы улучшить мою информацию.",
"agentDefaultMessageWithSystemRole": "Привет, я **{{name}}**, {{systemRole}}. Давай начнем разговор!",
"agentsAndConversations": "Агенты и беседы",
"backToBottom": "Вернуться вниз",
"clearCurrentMessages": "Очистить текущий разговор",
"confirmClearCurrentMessages": "Вы уверены, что хотите очистить текущий разговор? После этого его нельзя будет восстановить.",
Expand Down
1 change: 1 addition & 0 deletions locales/tr-TR/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Merhaba, Ben **{{name}}**. Hemen benimle sohbet etmeye başlayabilirsiniz veya [Asistan Ayarları](/chat/settings#session={{id}}) sayfasına giderek bilgilerimi tamamlayabilirsiniz.",
"agentDefaultMessageWithSystemRole": "Merhaba, Ben **{{name}}**, {{systemRole}}. Hemen sohbet etmeye başlayalım!",
"agentsAndConversations": "Ajanlar ve Konuşmalar",
"backToBottom": "En alta git",
"clearCurrentMessages": "Mevcut oturum mesajlarını temizle",
"confirmClearCurrentMessages": "Mevcut oturum mesajlarını temizlemek üzeresiniz. Temizlendikten sonra geri alınamazlar. Lütfen eyleminizi onaylayın.",
Expand Down
1 change: 1 addition & 0 deletions locales/vi-VN/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "Xin chào, tôi là **{{name}}**, bạn có thể bắt đầu trò chuyện với tôi ngay lập tức, hoặc đến [Cài đặt trợ lý](/chat/settings#session={{id}}) để hoàn thiện thông tin của tôi.",
"agentDefaultMessageWithSystemRole": "Xin chào, tôi là **{{name}}**, {{systemRole}}. Hãy bắt đầu trò chuyện ngay!",
"agentsAndConversations": "Người hỗ trợ và cuộc trò chuyện",
"backToBottom": "Quay về dưới cùng",
"clearCurrentMessages": "Xóa tin nhắn hiện tại",
"confirmClearCurrentMessages": "Bạn sắp xóa tin nhắn hiện tại. Hành động này không thể hoàn tác, vui lòng xác nhận.",
Expand Down
1 change: 1 addition & 0 deletions locales/zh-CN/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "你好,我是 **{{name}}**,你可以立即与我开始对话,也可以前往 [助手设置](/chat/settings#session={{id}}) 完善我的信息。",
"agentDefaultMessageWithSystemRole": "你好,我是 **{{name}}**,{{systemRole}},让我们开始对话吧!",
"agentsAndConversations": "助手与会话",
"backToBottom": "跳转至当前",
"clearCurrentMessages": "清空当前会话消息",
"confirmClearCurrentMessages": "即将清空当前会话消息,清空后将无法找回,请确认你的操作",
Expand Down
1 change: 1 addition & 0 deletions locales/zh-TW/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"agentDefaultMessage": "你好,我是 **{{name}}**,你可以立即與我開始對話,也可以前往 [助手設置](/chat/settings#session={{id}}) 完善我的信息。",
"agentDefaultMessageWithSystemRole": "你好,我是 **{{name}}**,{{systemRole}},讓我們開始對話吧!",
"agentsAndConversations": "助理與對話",
"backToBottom": "返回底部",
"clearCurrentMessages": "清空當前對話",
"confirmClearCurrentMessages": "即將清空當前對話,清空後將無法找回,請確認你的操作",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
'use client';

import { Avatar, ChatHeaderTitle } from '@lobehub/ui';
import { ActionIcon, Avatar, ChatHeaderTitle } from '@lobehub/ui';
import { Skeleton } from 'antd';
import { PanelLeftClose, PanelLeftOpen } from 'lucide-react';
import Link from 'next/link';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Flexbox } from 'react-layout-kit';

import { useOpenChatSettings } from '@/hooks/useInterceptingRoutes';
import { useGlobalStore } from '@/store/global';
import { useSessionStore } from '@/store/session';
import { sessionMetaSelectors, sessionSelectors } from '@/store/session/selectors';

Expand All @@ -28,6 +31,7 @@ const Main = memo(() => {

const displayTitle = isInbox ? t('inbox.title') : title;
const displayDesc = isInbox ? t('inbox.desc') : description;
const showSessionPanel = useGlobalStore((s) => s.preference.showSessionPanel);

return !init ? (
<Flexbox horizontal>
Expand All @@ -40,6 +44,22 @@ const Main = memo(() => {
</Flexbox>
) : (
<Flexbox align={'flex-start'} gap={12} horizontal>
{
<Link aria-label={t('agentsAndConversations')} href={'/chat'}>
<ActionIcon
icon={showSessionPanel ? PanelLeftClose : PanelLeftOpen}
onClick={() => {
const currentShowSessionPanel = useGlobalStore.getState().preference.showSessionPanel;
useGlobalStore.getState().updatePreference({
sessionsWidth: currentShowSessionPanel ? 0 : 320,
showSessionPanel: !currentShowSessionPanel,
});
}}
size="large"
title={t('agentsAndConversations')}
/>
</Link>
}
<Avatar
avatar={avatar}
background={backgroundColor}
Expand Down
1 change: 1 addition & 0 deletions src/locales/default/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default {
agentDefaultMessage:
'你好,我是 **{{name}}**,你可以立即与我开始对话,也可以前往 [助手设置](/chat/settings#session={{id}}) 完善我的信息。',
agentDefaultMessageWithSystemRole: '你好,我是 **{{name}}**,{{systemRole}},让我们开始对话吧!',
agentsAndConversations: '助手与会话',
backToBottom: '跳转至当前',
clearCurrentMessages: '清空当前会话消息',
confirmClearCurrentMessages: '即将清空当前会话消息,清空后将无法找回,请确认你的操作',
Expand Down

0 comments on commit 4ba23ea

Please sign in to comment.