mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-13 22:18:51 +01:00
🔗 feat: Enhance Share Functionality, Optimize DataTable & Fix Critical Bugs (#5220)
* 🔄 refactor: frontend and backend share link logic; feat: qrcode for share link; feat: refresh link * 🐛 fix: Conditionally render shared link and refactor share link creation logic * 🐛 fix: Correct conditional check for shareId in ShareButton component * 🔄 refactor: Update shared links API and data handling; improve query parameters and response structure * 🔄 refactor: Update shared links pagination and response structure; replace pageNumber with cursor for improved data fetching * 🔄 refactor: DataTable performance optimization * fix: delete shared link cache update * 🔄 refactor: Enhance shared links functionality; add conversationId to shared link model and update related components * 🔄 refactor: Add delete functionality to SharedLinkButton; integrate delete mutation and confirmation dialog * 🔄 feat: Add AnimatedSearchInput component with gradient animations and search functionality; update search handling in API and localization * 🔄 refactor: Improve SharedLinks component; enhance delete functionality and loading states, optimize AnimatedSearchInput, and refine DataTable scrolling behavior * fix: mutation type issues with deleted shared link mutation * fix: MutationOptions types * fix: Ensure only public shared links are retrieved in getSharedLink function * fix: `qrcode.react` install location * fix: ensure non-public shared links are not fetched when checking for existing shared links, and remove deprecated .exec() method for queries * fix: types and import order * refactor: cleanup share button UI logic, make more intuitive --------- Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
parent
460cde0c0b
commit
fa9e778399
55 changed files with 1779 additions and 1975 deletions
|
|
@ -52,7 +52,6 @@ export default {
|
|||
com_ui_chats: 'الدردشات',
|
||||
com_ui_share: 'مشاركة',
|
||||
com_ui_copy_link: 'نسخ الرابط',
|
||||
com_ui_update_link: 'رابط التحديث',
|
||||
com_ui_create_link: 'إنشاء رابط',
|
||||
com_ui_share_link_to_chat: 'شارك الرابط في الدردشة',
|
||||
com_ui_share_error: 'حدث خطأ أثناء مشاركة رابط الدردشة',
|
||||
|
|
|
|||
|
|
@ -293,7 +293,6 @@ export default {
|
|||
com_ui_share_var: 'Compartilhar {0}',
|
||||
com_ui_enter_var: 'Inserir {0}',
|
||||
com_ui_copy_link: 'Copiar link',
|
||||
com_ui_update_link: 'Atualizar link',
|
||||
com_ui_create_link: 'Criar link',
|
||||
com_ui_share_to_all_users: 'Compartilhar com todos os usuários',
|
||||
com_ui_my_prompts: 'Meus Prompts',
|
||||
|
|
|
|||
|
|
@ -260,7 +260,6 @@ export default {
|
|||
com_ui_share: 'Teilen',
|
||||
com_ui_share_var: '{0} teilen',
|
||||
com_ui_copy_link: 'Link kopieren',
|
||||
com_ui_update_link: 'Link aktualisieren',
|
||||
com_ui_create_link: 'Link erstellen',
|
||||
com_ui_share_to_all_users: 'Mit allen Benutzern teilen',
|
||||
com_ui_my_prompts: 'Meine Prompts',
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export default {
|
|||
com_download_expired: '(download expired)',
|
||||
com_download_expires: '(click here to download - expires {0})',
|
||||
com_click_to_download: '(click here to download)',
|
||||
com_files_number_selected: '{0} of {1} file(s) selected',
|
||||
com_files_number_selected: '{0} of {1} items(s) selected',
|
||||
com_sidepanel_select_assistant: 'Select an Assistant',
|
||||
com_sidepanel_parameters: 'Parameters',
|
||||
com_sidepanel_assistant_builder: 'Assistant Builder',
|
||||
|
|
@ -354,7 +354,6 @@ export default {
|
|||
com_ui_share_var: 'Share {0}',
|
||||
com_ui_enter_var: 'Enter {0}',
|
||||
com_ui_copy_link: 'Copy link',
|
||||
com_ui_update_link: 'Update link',
|
||||
com_ui_create_link: 'Create link',
|
||||
com_ui_share_to_all_users: 'Share to all users',
|
||||
com_ui_my_prompts: 'My Prompts',
|
||||
|
|
@ -379,6 +378,8 @@ export default {
|
|||
com_ui_share_error: 'There was an error sharing the chat link',
|
||||
com_ui_share_retrieve_error: 'There was an error retrieving the shared links',
|
||||
com_ui_share_delete_error: 'There was an error deleting the shared link',
|
||||
com_ui_bulk_delete_error: 'Failed to delete shared links',
|
||||
com_ui_bulk_delete_partial_error: 'Failed to delete {0} shared links',
|
||||
com_ui_share_create_message: 'Your name and any messages you add after sharing stay private.',
|
||||
com_ui_share_created_message:
|
||||
'A shared link to your chat has been created. Manage previously shared chats at any time via Settings.',
|
||||
|
|
@ -442,6 +443,14 @@ export default {
|
|||
com_ui_add_multi_conversation: 'Add multi-conversation',
|
||||
com_ui_duplicate_agent_confirm: 'Are you sure you want to duplicate this agent?',
|
||||
com_ui_page: 'Page',
|
||||
com_ui_refresh_link: 'Refresh link',
|
||||
com_ui_show_qr: 'Show QR Code',
|
||||
com_ui_hide_qr: 'Hide QR Code',
|
||||
com_ui_title: 'Title',
|
||||
com_ui_view_source: 'View source chat',
|
||||
com_ui_shared_link_delete_success: 'Successfully deleted shared link',
|
||||
com_ui_shared_link_bulk_delete_success: 'Successfully deleted shared links',
|
||||
com_ui_search: 'Search',
|
||||
com_auth_error_login:
|
||||
'Unable to login with the information provided. Please check your credentials and try again.',
|
||||
com_auth_error_login_rl:
|
||||
|
|
|
|||
|
|
@ -142,7 +142,6 @@ export default {
|
|||
com_ui_create: 'Crear',
|
||||
com_ui_share: 'Compartir',
|
||||
com_ui_copy_link: 'Copiar enlace',
|
||||
com_ui_update_link: 'Actualizar enlace',
|
||||
com_ui_create_link: 'Crear enlace',
|
||||
com_ui_share_link_to_chat: 'Compartir enlace en el chat',
|
||||
com_ui_share_error: 'Hubo un error al compartir el enlace del chat',
|
||||
|
|
|
|||
|
|
@ -243,7 +243,6 @@ export default {
|
|||
com_ui_share: 'Jaa',
|
||||
com_ui_share_var: 'Jaa {0}',
|
||||
com_ui_copy_link: 'Kopioi linkki',
|
||||
com_ui_update_link: 'Päivitä linkki',
|
||||
com_ui_create_link: 'Luo linkki',
|
||||
com_ui_share_to_all_users: 'Jaa kaikille käyttäjille',
|
||||
com_ui_my_prompts: 'Omat syötteet',
|
||||
|
|
|
|||
|
|
@ -401,7 +401,6 @@ export default {
|
|||
com_ui_copied: 'Copié !',
|
||||
com_ui_copy_code: 'Copier le code',
|
||||
com_ui_copy_link: 'Copier le lien',
|
||||
com_ui_update_link: 'Mettre à jour le lien',
|
||||
com_ui_create_link: 'Créer un lien',
|
||||
com_nav_source_chat: 'Afficher la conversation source',
|
||||
com_ui_date_today: 'Aujourd\'hui',
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ export default {
|
|||
com_ui_create: 'צור',
|
||||
com_ui_share: 'שתף',
|
||||
com_ui_copy_link: 'העתק קישור',
|
||||
com_ui_update_link: 'עדכן קישור',
|
||||
com_ui_create_link: 'צור קישור',
|
||||
com_ui_share_link_to_chat: 'שתף קישור בצ\'אט',
|
||||
com_ui_share_error: 'אירעה שגיאה בעת שיתוף קישור הצ\'אט',
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ export default {
|
|||
com_ui_chats: 'chat',
|
||||
com_ui_share: 'Bagikan',
|
||||
com_ui_copy_link: 'Salin tautan',
|
||||
com_ui_update_link: 'Perbarui tautan',
|
||||
com_ui_create_link: 'Buat tautan',
|
||||
com_ui_share_link_to_chat: 'Bagikan tautan ke chat',
|
||||
com_ui_share_error: 'Terjadi kesalahan saat membagikan tautan chat',
|
||||
|
|
|
|||
|
|
@ -192,7 +192,6 @@ export default {
|
|||
com_ui_create: 'Crea',
|
||||
com_ui_share: 'Condividi',
|
||||
com_ui_copy_link: 'Copia link',
|
||||
com_ui_update_link: 'Aggiorna link',
|
||||
com_ui_create_link: 'Crea link',
|
||||
com_ui_share_link_to_chat: 'Condividi link a chat',
|
||||
com_ui_share_error: 'Si è verificato un errore durante la condivisione del link della chat',
|
||||
|
|
|
|||
|
|
@ -291,7 +291,6 @@ export default {
|
|||
com_ui_share_var: '{0} を共有',
|
||||
com_ui_enter_var: '{0} を入力',
|
||||
com_ui_copy_link: 'リンクをコピー',
|
||||
com_ui_update_link: 'リンクを更新する',
|
||||
com_ui_create_link: 'リンクを作成する',
|
||||
com_ui_share_to_all_users: '全ユーザーと共有',
|
||||
com_ui_my_prompts: 'マイ プロンプト',
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ export default {
|
|||
com_ui_chats: '채팅',
|
||||
com_ui_share: '공유하기',
|
||||
com_ui_copy_link: '링크 복사',
|
||||
com_ui_update_link: '링크 업데이트',
|
||||
com_ui_create_link: '링크 만들기',
|
||||
com_ui_share_link_to_chat: '채팅으로 링크 공유하기',
|
||||
com_ui_share_error: '채팅 링크를 공유하는 동안 오류가 발생했습니다',
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ export default {
|
|||
com_ui_chats: 'chats',
|
||||
com_ui_share: 'Delen',
|
||||
com_ui_copy_link: 'Link kopiëren',
|
||||
com_ui_update_link: 'Link bijwerken',
|
||||
com_ui_create_link: 'Link aanmaken',
|
||||
com_ui_share_link_to_chat: 'Deel link naar chat',
|
||||
com_ui_share_error: 'Er is een fout opgetreden bij het delen van de chatlink',
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ export default {
|
|||
'Wszystkie rozmowy z AI w jednym miejscu. Płatność za połączenie, a nie za miesiąc',
|
||||
com_ui_share: 'Udostępnij',
|
||||
com_ui_copy_link: 'Skopiuj link',
|
||||
com_ui_update_link: 'Zaktualizuj link',
|
||||
com_ui_create_link: 'Utwórz link',
|
||||
com_ui_share_link_to_chat: 'Udostępnij link w czacie',
|
||||
com_ui_share_error: 'Wystąpił błąd podczas udostępniania linku do czatu',
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ export default {
|
|||
com_ui_connect: 'Подключить',
|
||||
com_ui_share: 'Поделиться',
|
||||
com_ui_copy_link: 'Скопировать ссылку',
|
||||
com_ui_update_link: 'Обновить ссылку',
|
||||
com_ui_create_link: 'Создать ссылку',
|
||||
com_ui_share_link_to_chat: 'Поделиться ссылкой в чате',
|
||||
com_ui_share_error: 'Произошла ошибка при попытке поделиться ссылкой на чат',
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ export default {
|
|||
com_ui_chats: 'chattar',
|
||||
com_ui_share: 'Dela',
|
||||
com_ui_copy_link: 'Kopiera länk',
|
||||
com_ui_update_link: 'Uppdatera länk',
|
||||
com_ui_create_link: 'Skapa länk',
|
||||
com_ui_share_link_to_chat: 'Dela länk till chatt',
|
||||
com_ui_share_error: 'Ett fel uppstod vid delning av chattlänken',
|
||||
|
|
|
|||
|
|
@ -221,7 +221,6 @@ export default {
|
|||
com_ui_create: 'Oluştur',
|
||||
com_ui_share: 'Paylaş',
|
||||
com_ui_copy_link: 'Bağlantıyı kopyala',
|
||||
com_ui_update_link: 'Bağlantıyı güncelle',
|
||||
com_ui_create_link: 'Bağlantı oluştur',
|
||||
com_ui_share_link_to_chat: 'Sohbete bağlantı paylaş',
|
||||
com_ui_share_error: 'Sohbet bağlantısını paylaşırken bir hata oluştu',
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ export default {
|
|||
com_ui_chats: 'cuộc trò chuyện',
|
||||
com_ui_share: 'Chia sẻ',
|
||||
com_ui_copy_link: 'Sao chép liên kết',
|
||||
com_ui_update_link: 'Cập nhật liên kết',
|
||||
com_ui_create_link: 'Tạo liên kết',
|
||||
com_ui_share_link_to_chat: 'Chia sẻ liên kết đến cuộc trò chuyện',
|
||||
com_ui_share_error: 'Có lỗi xảy ra khi chia sẻ liên kết trò chuyện',
|
||||
|
|
|
|||
|
|
@ -278,7 +278,6 @@ export default {
|
|||
com_ui_share_var: '共享 {0}',
|
||||
com_ui_enter_var: '输入 {0}',
|
||||
com_ui_copy_link: '复制链接',
|
||||
com_ui_update_link: '更新链接',
|
||||
com_ui_create_link: '创建链接',
|
||||
com_ui_share_to_all_users: '共享给所有用户',
|
||||
com_ui_my_prompts: '我的提示词',
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ export default {
|
|||
com_ui_chats: '對話',
|
||||
com_ui_share: '分享',
|
||||
com_ui_copy_link: '複製連結',
|
||||
com_ui_update_link: '更新連結',
|
||||
com_ui_create_link: '建立連結',
|
||||
com_ui_share_link_to_chat: '分享連結到聊天',
|
||||
com_ui_share_error: '分享聊天連結時發生錯誤',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue