mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 11:50:14 +01:00
🔖 feat: Conversation Bookmarks (#3344)
* feat: add tags property in Conversation model * feat: add ConversationTag model * feat: add the tags parameter to getConvosByPage * feat: add API route to ConversationTag * feat: add types of ConversationTag * feat: add data access functions for conversation tags * feat: add Bookmark table component * feat: Add an action to bookmark * feat: add Bookmark nav component * fix: failed test * refactor: made 'Saved' tag a constant * feat: add new bookmark to current conversation * chore: Add comment * fix: delete tag from conversations when it's deleted * fix: Update the query cache when the tag title is changed. * chore: fix typo * refactor: add description of rebuilding bookmarks * chore: remove unused variables * fix: position when adding a new bookmark * refactor: add comment, rename a function * refactor: add a unique constraint in ConversationTag * chore: add localizations
This commit is contained in:
parent
d4d56281e3
commit
e565e0faab
65 changed files with 3751 additions and 36 deletions
|
|
@ -11,6 +11,7 @@ export default {
|
|||
com_sidepanel_hide_panel: '隐藏侧边栏',
|
||||
com_sidepanel_attach_files: '附加文件',
|
||||
com_sidepanel_manage_files: '管理文件',
|
||||
com_sidepanel_conversation_tags: '书签',
|
||||
com_assistants_capabilities: '功能',
|
||||
com_assistants_knowledge: '知识',
|
||||
com_assistants_knowledge_info: '如果您在“知识”中上传文件,与助手的对话可能包括文件内容。',
|
||||
|
|
@ -159,6 +160,20 @@ export default {
|
|||
com_ui_upload_delay: '上传 "{0}" 时比预期花了更长时间。 文件正在进行检索索引,请稍候。',
|
||||
com_ui_privacy_policy: '隐私政策',
|
||||
com_ui_terms_of_service: '服务政策',
|
||||
com_ui_bookmarks: '书签',
|
||||
com_ui_bookmarks_rebuild: '重建',
|
||||
com_ui_bookmarks_new: '新书签',
|
||||
com_ui_bookmark_delete_confirm: '你确定要删除这个书签吗?',
|
||||
com_ui_bookmarks_title: '标题',
|
||||
com_ui_bookmarks_count: '计数',
|
||||
com_ui_bookmarks_description: '描述',
|
||||
com_ui_bookmarks_create_success: '书签创建成功',
|
||||
com_ui_bookmarks_update_success: '书签更新成功',
|
||||
com_ui_bookmarks_delete_success: '书签删除成功',
|
||||
com_ui_bookmarks_create_error: '创建书签时出错',
|
||||
com_ui_bookmarks_update_error: '更新书签时出错',
|
||||
com_ui_bookmarks_delete_error: '删除书签时出错',
|
||||
com_ui_bookmarks_add_to_conversation: '添加到当前对话',
|
||||
com_auth_error_login: '无法登录,请确认提供的账户密码正确,并重新尝试。',
|
||||
com_auth_error_login_rl: '尝试登录次数过多,请稍后再试。',
|
||||
com_auth_error_login_ban: '根据我们的服务规则,您的帐号被暂时禁用。',
|
||||
|
|
@ -431,6 +446,8 @@ export default {
|
|||
com_nav_help_faq: '帮助',
|
||||
com_nav_settings: '设置',
|
||||
com_nav_search_placeholder: '搜索对话及对话内容',
|
||||
com_nav_info_bookmarks_rebuild:
|
||||
'如果书签计数不正确,请重新构建书签信息。书签计数将被重新计算,数据将恢复到其正确状态。',
|
||||
com_nav_setting_general: '通用',
|
||||
com_nav_setting_beta: '实验特性',
|
||||
com_nav_setting_data: '数据管理',
|
||||
|
|
@ -572,6 +589,10 @@ export const comparisons = {
|
|||
english: 'Manage Files',
|
||||
translated: '管理文件',
|
||||
},
|
||||
com_sidepanel_conversation_tags: {
|
||||
english: 'Bookmarks',
|
||||
translated: '书签',
|
||||
},
|
||||
com_assistants_capabilities: {
|
||||
english: 'Capabilities',
|
||||
translated: '功能',
|
||||
|
|
@ -1169,6 +1190,62 @@ export const comparisons = {
|
|||
english: 'Terms of service',
|
||||
translated: '服务政策',
|
||||
},
|
||||
com_ui_bookmarks: {
|
||||
english: 'Bookmarks',
|
||||
translated: '书签',
|
||||
},
|
||||
com_ui_bookmarks_rebuild: {
|
||||
english: 'Rebuild',
|
||||
translated: '重建',
|
||||
},
|
||||
com_ui_bookmarks_new: {
|
||||
english: 'New Bookmark',
|
||||
translated: '新书签',
|
||||
},
|
||||
com_ui_bookmark_delete_confirm: {
|
||||
english: 'Are you sure you want to delete this bookmark?',
|
||||
translated: '你确定要删除这个书签吗?',
|
||||
},
|
||||
com_ui_bookmarks_title: {
|
||||
english: 'Title',
|
||||
translated: '标题',
|
||||
},
|
||||
com_ui_bookmarks_count: {
|
||||
english: 'Count',
|
||||
translated: '计数',
|
||||
},
|
||||
com_ui_bookmarks_description: {
|
||||
english: 'Description',
|
||||
translated: '描述',
|
||||
},
|
||||
com_ui_bookmarks_create_success: {
|
||||
english: 'Bookmark created successfully',
|
||||
translated: '书签创建成功',
|
||||
},
|
||||
com_ui_bookmarks_update_success: {
|
||||
english: 'Bookmark updated successfully',
|
||||
translated: '书签更新成功',
|
||||
},
|
||||
com_ui_bookmarks_delete_success: {
|
||||
english: 'Bookmark deleted successfully',
|
||||
translated: '书签删除成功',
|
||||
},
|
||||
com_ui_bookmarks_create_error: {
|
||||
english: 'There was an error creating the bookmark',
|
||||
translated: '创建书签时出错',
|
||||
},
|
||||
com_ui_bookmarks_update_error: {
|
||||
english: 'There was an error updating the bookmark',
|
||||
translated: '更新书签时出错',
|
||||
},
|
||||
com_ui_bookmarks_delete_error: {
|
||||
english: 'There was an error deleting the bookmark',
|
||||
translated: '删除书签时出错',
|
||||
},
|
||||
com_ui_bookmarks_add_to_conversation: {
|
||||
english: 'Add to current conversation',
|
||||
translated: '添加到当前对话',
|
||||
},
|
||||
com_auth_error_login: {
|
||||
english:
|
||||
'Unable to login with the information provided. Please check your credentials and try again.',
|
||||
|
|
@ -2209,6 +2286,12 @@ export const comparisons = {
|
|||
english: 'Search messages',
|
||||
translated: '搜索对话及对话内容',
|
||||
},
|
||||
com_nav_info_bookmarks_rebuild: {
|
||||
english:
|
||||
'If the bookmark count is incorrect, please rebuild the bookmark information. The bookmark count will be recalculated and the data will be restored to its correct state.',
|
||||
translated:
|
||||
'如果书签计数不正确,请重新构建书签信息。书签计数将被重新计算,数据将恢复到其正确状态。',
|
||||
},
|
||||
com_nav_setting_general: {
|
||||
english: 'General',
|
||||
translated: '通用',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue