mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 19:30:15 +01:00
🔍 feat: Show Messages from Search Result (#2699)
* refactor(Nav): delegate Search-specific variables/hooks to SearchContext * fix: safely determine firstTodayConvoId if convo is undefined * chore: remove empty line * feat: initial render of search messages * feat: SearchButtons * update Ko.ts * update localizations with new key phrases * chore: localization comparisons * fix: clear conversation state on searchQuery navigation * style: search messages view styling * refactor(Convo): consolidate logic to navigateWithLastTools from useNavigateToConvo * fix(SearchButtons): styling and correct navigation logic * fix(SearchBar): invalidate all message queries and invoke `clearText` if onChange value is empty * refactor(NewChat): consolidate new chat button logic to NewChatButtonIcon * chore: localizations for Nav date groups * chore: update comparisons * fix: early return from sendRequest to avoid quick searchQuery reset * style: Link Icon * chore: bump tiktoken, use o200k_base for gpt-4o
This commit is contained in:
parent
638ac5bba6
commit
e42709bd1f
36 changed files with 2742 additions and 234 deletions
|
|
@ -417,6 +417,21 @@ export default {
|
|||
com_nav_setting_data: '数据管理',
|
||||
com_nav_setting_account: '账户',
|
||||
/* The following are AI Translated */
|
||||
com_ui_date_today: '今天',
|
||||
com_ui_date_yesterday: '昨天',
|
||||
com_ui_date_previous_7_days: '过去7天',
|
||||
com_ui_date_previous_30_days: '过去30天',
|
||||
com_ui_date_january: '一月',
|
||||
com_ui_date_february: '二月',
|
||||
com_ui_date_march: '三月',
|
||||
com_ui_date_april: '四月',
|
||||
com_ui_date_may: '五月',
|
||||
com_ui_date_june: '六月',
|
||||
com_ui_date_july: '七月',
|
||||
com_ui_date_august: '八月',
|
||||
com_ui_date_september: '九月',
|
||||
com_ui_nothing_found: '未找到任何内容',
|
||||
com_ui_go_to_conversation: '转到对话',
|
||||
com_error_moderation:
|
||||
'很抱歉,您提交的内容被我们的审核系统标记为不符合社区指引。我们无法就此特定主题继续交流。如果您有任何其他问题或想探讨的话题,请编辑您的消息或开启新的对话。',
|
||||
com_error_no_user_key: '没有找到密钥。请提供密钥后重试。',
|
||||
|
|
@ -2096,6 +2111,66 @@ export const comparisons = {
|
|||
english: 'Account',
|
||||
translated: '账户',
|
||||
},
|
||||
com_ui_date_today: {
|
||||
english: 'Today',
|
||||
translated: '今天',
|
||||
},
|
||||
com_ui_date_yesterday: {
|
||||
english: 'Yesterday',
|
||||
translated: '昨天',
|
||||
},
|
||||
com_ui_date_previous_7_days: {
|
||||
english: 'Previous 7 days',
|
||||
translated: '过去7天',
|
||||
},
|
||||
com_ui_date_previous_30_days: {
|
||||
english: 'Previous 30 days',
|
||||
translated: '过去30天',
|
||||
},
|
||||
com_ui_date_january: {
|
||||
english: 'January',
|
||||
translated: '一月',
|
||||
},
|
||||
com_ui_date_february: {
|
||||
english: 'February',
|
||||
translated: '二月',
|
||||
},
|
||||
com_ui_date_march: {
|
||||
english: 'March',
|
||||
translated: '三月',
|
||||
},
|
||||
com_ui_date_april: {
|
||||
english: 'April',
|
||||
translated: '四月',
|
||||
},
|
||||
com_ui_date_may: {
|
||||
english: 'May',
|
||||
translated: '五月',
|
||||
},
|
||||
com_ui_date_june: {
|
||||
english: 'June',
|
||||
translated: '六月',
|
||||
},
|
||||
com_ui_date_july: {
|
||||
english: 'July',
|
||||
translated: '七月',
|
||||
},
|
||||
com_ui_date_august: {
|
||||
english: 'August',
|
||||
translated: '八月',
|
||||
},
|
||||
com_ui_date_september: {
|
||||
english: 'September',
|
||||
translated: '九月',
|
||||
},
|
||||
com_ui_nothing_found: {
|
||||
english: 'Nothing found',
|
||||
translated: '未找到任何内容',
|
||||
},
|
||||
com_ui_go_to_conversation: {
|
||||
english: 'Go to conversation',
|
||||
translated: '转到对话',
|
||||
},
|
||||
com_error_moderation: {
|
||||
english:
|
||||
'It appears that the content submitted has been flagged by our moderation system for not aligning with our community guidelines. We\'re unable to proceed with this specific topic. If you have any other questions or topics you\'d like to explore, please edit your message, or create a new conversation.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue