🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
fix: Type error
Rene Wang256309a6e444
diff --git a/src/features/PageExplorer/PageExplorerPlaceholder.tsx b/src/features/PageExplorer/PageExplorerPlaceholder.tsxindex 173fb138b89..8b98af6ac23 100644--- a/src/features/PageExplorer/PageExplorerPlaceholder.tsx+++ b/src/features/PageExplorer/PageExplorerPlaceholder.tsx@@ -4,7 +4,7 @@ import { Center, FileTypeIcon, Flexbox, Icon, Text } from '@lobehub/ui';import { Upload } from 'antd';import { createStyles, useTheme } from 'antd-style';import { ArrowUpIcon, PlusIcon } from 'lucide-react';-import { memo, useState } from 'react';+import React, { memo, useState } from 'react';import { useTranslation } from 'react-i18next';import GuideModal from '@/components/GuideModal';diff --git a/src/locales/default/file.ts b/src/locales/default/file.tsindex 1b49ded55ce..e870098a12a 100644--- a/src/locales/default/file.ts+++ b/src/locales/default/file.ts@@ -1,129 +1,140 @@export default {- "addFolder": "Create Folder",- "addLibrary": "Add",- "addPage": "Create Page",- "detail.basic.createdAt": "Creation Time",- "detail.basic.filename": "File Name",- "detail.basic.size": "File Size",- "detail.basic.title": "Basic Information",- "detail.basic.type": "Format",- "detail.basic.updatedAt": "Update Time",- "detail.data.chunkCount": "Chunks",- "detail.data.embedding.default": "Not embedding",- "detail.data.embedding.error": "Failed",- "detail.data.embedding.pending": "Pending start",- "detail.data.embedding.processing": "In progress",- "detail.data.embedding.success": "Completed",- "detail.data.embeddingStatus": "embedding",- "empty": "No files or folders have been uploaded yet.",- "header.actions.builtInBlockList.filtered": "{{ignored}} files filtered (out of {{total}} total)",- "header.actions.connect": "Connect...",- "header.actions.gitignore.apply": "Apply Rules",- "header.actions.gitignore.cancel": "Ignore Rules",- "header.actions.gitignore.content": ".gitignore file detected ({{count}} files in total). Would you like to apply the ignore rules?",- "header.actions.gitignore.filtered": "{{ignored}} files filtered out ({{total}} files in total)",- "header.actions.gitignore.title": ".gitignore Detected",- "header.actions.newFolder": "New Folder",- "header.actions.newPage": "New Page",- "header.actions.notion.error": "Failed to import Notion files",- "header.actions.notion.foundFiles": "found {{count}} files",- "header.actions.notion.importing": "Importing Notion files...",- "header.actions.notion.noMarkdownFiles": "No markdown files found in the ZIP archive",- "header.actions.notion.partial": "Successfully imported {{success}} files, {{failed}} failed",- "header.actions.notion.success": "Successfully imported {{count}} files",- "header.actions.notionGuide.cancel": "Skip Import",- "header.actions.notionGuide.desc": "First, export your content from Notion as a Markdown (ZIP) file. Then click Continue to select the ZIP file and import all pages.",- "header.actions.notionGuide.ok": "Select Notion ZIP",- "header.actions.notionGuide.title": "Import from Notion",- "header.actions.uploadFile": "Upload File",- "header.actions.uploadFolder": "Upload Folder",- "header.newPageButton": "New Page",- "header.uploadButton": "Upload",- "home.getStarted": "Get Started",- "home.greeting": "Get Started",- "home.quickActions": "Quick Actions",- "home.recentFiles": "Recent Files",- "home.recentPages": "Recent Pages",- "home.subtitle": "Welcome to the Resource Center. Start managing your pages and files here.",- "home.uploadEntries.files.title": "Upload Files",- "home.uploadEntries.folder.title": "Upload Folder",- "home.uploadEntries.library.title": "Create New Library",- "home.uploadEntries.newPage.title": "New Page",- "library.list.confirmRemoveLibrary": "You are about to delete this library. The files within it will not be deleted but moved to All Files. This action cannot be undone, so please proceed with caution.",- "library.list.empty": "Click <1>+</1> to create a new library",- "library.new": "New Library",- "library.title": "Library",- "menu.allFiles": "All Files",- "menu.allPages": "All Pages",- "networkError": "Failed to retrieve libraries. Please check your network connection and try again.",- "notSupportGuide.desc": "The current deployment mode does not support file management. Switch to <1>server database deployment mode</1>, or use <3>LobeHub Cloud</3>.",- "notSupportGuide.features.allKind.desc": "Supports mainstream file types, including common page formats like Word, PPT, Excel, PDF, TXT, as well as popular code files like JS and Python.",- "notSupportGuide.features.allKind.title": "Multiple File Type Parsing",- "notSupportGuide.features.embeddings.desc": "Utilizes high-performance vector models to vectorize text chunks, enabling semantic search of file content.",- "notSupportGuide.features.embeddings.title": "Vector Semantics",- "notSupportGuide.features.libraries.desc": "Create Libraries and add files to build your own Library.",- "notSupportGuide.features.libraries.title": "Library",- "notSupportGuide.title": "The current deployment mode does not support file management",- "pageEditor.addIcon": "Add Icon",- "pageEditor.autoSaveMessage": "Your page is saved automatically. No need to save manually.",- "pageEditor.chooseIcon": "Choose Icon",- "pageEditor.deleteConfirm.content": "This page will be deleted and cannot be recovered. Please proceed with caution.",- "pageEditor.deleteConfirm.title": "Delete Page",- "pageEditor.deleteError": "Failed to delete the page",- "pageEditor.deleteSuccess": "Page deleted successfully",- "pageEditor.editedAt": "Last edited on {{time}}",- "pageEditor.editedBy": "Last edited by {{name}}",- "pageEditor.editorPlaceholder": "Start writing your page. Press / to open the command menu",- "pageEditor.empty.createNewDocument": "Create New Page",- "pageEditor.empty.importNotion": "Import from Notion",- "pageEditor.empty.title": "Select a page to get started",- "pageEditor.empty.uploadMarkdown": "Upload Markdown File",- "pageEditor.linkCopied": "Link copied",- "pageEditor.menu.copyLink": "Copy Link",- "pageEditor.menu.exportDocument": "Export Page",- "pageEditor.menu.importDocument": "Import Page",- "pageEditor.menu.pin": "Pin Page",- "pageEditor.saving": "Saving...",- "pageEditor.titlePlaceholder": "Untitled",- "pageEditor.wordCount": "{{wordCount}} words",- "pageList.copyContent": "Copy Full Text",- "pageList.duplicate": "Duplicate",- "pageList.empty": "No pages yet. Click the button above to create your first one.",- "pageList.filter.all": "All",- "pageList.filter.onlyInPages": "In Pages Only",- "pageList.noResults": "No matching pages found",- "pageList.pageCount": "{{count}} pages in total",- "pageList.pageSizeItem": "{{count}} items",- "pageList.selectNote": "Select a page to start editing",- "pageList.title": "Pages",- "pageList.untitled": "Untitled",- "portal.openInPageEditor": "Edit in Page",- "preview.downloadFile": "Download File",- "preview.unsupportedFileAndContact": "This file format is not currently supported for online preview. If you have a request for previewing, feel free to <1>contact us</1>.",- "searchFilePlaceholder": "Search Files",- "searchPagePlaceholder": "Search Pages",- "tab.all": "All",- "tab.audios": "Audio",- "tab.documents": "Pages",- "tab.home": "Home",- "tab.images": "Images",- "tab.moreTypes": "More Types",- "tab.pages": "Pages",- "tab.videos": "Videos",- "tab.websites": "Websites",- "title": "Resources",- "toggleLeftPanel": "Show/Hide Left Panel",- "uploadDock.body.collapse": "Collapse",- "uploadDock.body.item.done": "Uploaded",- "uploadDock.body.item.error": "Upload failed, please try again",- "uploadDock.body.item.pending": "Preparing to upload...",- "uploadDock.body.item.processing": "Processing file...",- "uploadDock.body.item.restTime": "Remaining {{time}}",- "uploadDock.fileQueueInfo": "Uploading the first {{count}} files, {{remaining}} remaining in queue",- "uploadDock.totalCount": "Total {{count}} items",- "uploadDock.uploadStatus.error": "Upload error",- "uploadDock.uploadStatus.pending": "Waiting to upload",- "uploadDock.uploadStatus.processing": "Uploading",- "uploadDock.uploadStatus.success": "Upload completed",- "uploadDock.uploadStatus.uploading": "Uploading"-}+ 'addFolder': 'Create Folder',+ 'addLibrary': 'Add',+ 'addPage': 'Create Page',+ 'detail.basic.createdAt': 'Creation Time',+ 'detail.basic.filename': 'File Name',+ 'detail.basic.size': 'File Size',+ 'detail.basic.title': 'Basic Information',+ 'detail.basic.type': 'Format',+ 'detail.basic.updatedAt': 'Update Time',+ 'detail.data.chunkCount': 'Chunks',+ 'detail.data.embedding.default': 'Not embedding',+ 'detail.data.embedding.error': 'Failed',+ 'detail.data.embedding.pending': 'Pending start',+ 'detail.data.embedding.processing': 'In progress',+ 'detail.data.embedding.success': 'Completed',+ 'detail.data.embeddingStatus': 'embedding',+ 'empty': 'No files or folders have been uploaded yet.',+ 'header.actions.builtInBlockList.filtered': '{{ignored}} files filtered (out of {{total}} total)',+ 'header.actions.connect': 'Connect...',+ 'header.actions.gitignore.apply': 'Apply Rules',+ 'header.actions.gitignore.cancel': 'Ignore Rules',+ 'header.actions.gitignore.content':+ '.gitignore file detected ({{count}} files in total). Would you like to apply the ignore rules?',+ 'header.actions.gitignore.filtered': '{{ignored}} files filtered out ({{total}} files in total)',+ 'header.actions.gitignore.title': '.gitignore Detected',+ 'header.actions.newFolder': 'New Folder',+ 'header.actions.newPage': 'New Page',+ 'header.actions.notion.error': 'Failed to import Notion files',+ 'header.actions.notion.foundFiles': 'found {{count}} files',+ 'header.actions.notion.importing': 'Importing Notion files...',+ 'header.actions.notion.noMarkdownFiles': 'No markdown files found in the ZIP archive',+ 'header.actions.notion.partial': 'Successfully imported {{success}} files, {{failed}} failed',+ 'header.actions.notion.success': 'Successfully imported {{count}} files',+ 'header.actions.notionGuide.cancel': 'Skip Import',+ 'header.actions.notionGuide.desc':+ 'First, export your content from Notion as a Markdown (ZIP) file. Then click Continue to select the ZIP file and import all pages.',+ 'header.actions.notionGuide.ok': 'Select Notion ZIP',+ 'header.actions.notionGuide.title': 'Import from Notion',+ 'header.actions.uploadFile': 'Upload File',+ 'header.actions.uploadFolder': 'Upload Folder',+ 'header.newPageButton': 'New Page',+ 'header.uploadButton': 'Upload',+ 'home.getStarted': 'Get Started',+ 'home.greeting': 'Get Started',+ 'home.quickActions': 'Quick Actions',+ 'home.recentFiles': 'Recent Files',+ 'home.recentPages': 'Recent Pages',+ 'home.subtitle': 'Welcome to the Resource Center. Start managing your pages and files here.',+ 'home.uploadEntries.files.title': 'Upload Files',+ 'home.uploadEntries.folder.title': 'Upload Folder',+ 'home.uploadEntries.library.title': 'Create New Library',+ 'home.uploadEntries.newPage.title': 'New Page',+ 'library.list.confirmRemoveLibrary':+ 'You are about to delete this library. The files within it will not be deleted but moved to All Files. This action cannot be undone, so please proceed with caution.',+ 'library.list.empty': 'Click <1>+</1> to create a new library',+ 'library.new': 'New Library',+ 'library.title': 'Library',+ 'menu.allFiles': 'All Files',+ 'menu.allPages': 'All Pages',+ 'networkError':+ 'Failed to retrieve libraries. Please check your network connection and try again.',+ 'notSupportGuide.desc':+ 'The current deployment mode does not support file management. Switch to <1>server database deployment mode</1>, or use <3>LobeHub Cloud</3>.',+ 'notSupportGuide.features.allKind.desc':+ 'Supports mainstream file types, including common page formats like Word, PPT, Excel, PDF, TXT, as well as popular code files like JS and Python.',+ 'notSupportGuide.features.allKind.title': 'Multiple File Type Parsing',+ 'notSupportGuide.features.embeddings.desc':+ 'Utilizes high-performance vector models to vectorize text chunks, enabling semantic search of file content.',+ 'notSupportGuide.features.embeddings.title': 'Vector Semantics',+ 'notSupportGuide.features.libraries.desc':+ 'Create Libraries and add files to build your own Library.',+ 'notSupportGuide.features.libraries.title': 'Library',+ 'notSupportGuide.title': 'The current deployment mode does not support file management',+ 'pageEditor.addIcon': 'Add Icon',+ 'pageEditor.autoSaveMessage': 'Your page is saved automatically. No need to save manually.',+ 'pageEditor.chooseIcon': 'Choose Icon',+ 'pageEditor.deleteConfirm.content':+ 'This page will be deleted and cannot be recovered. Please proceed with caution.',+ 'pageEditor.deleteConfirm.title': 'Delete Page',+ 'pageEditor.deleteError': 'Failed to delete the page',+ 'pageEditor.deleteSuccess': 'Page deleted successfully',+ 'pageEditor.editedAt': 'Last edited on {{time}}',+ 'pageEditor.editedBy': 'Last edited by {{name}}',+ 'pageEditor.editorPlaceholder': 'Start writing your page. Press / to open the command menu',+ 'pageEditor.empty.createNewDocument': 'Create New Page',+ 'pageEditor.empty.importNotion': 'Import from Notion',+ 'pageEditor.empty.title': 'Select a page to get started',+ 'pageEditor.empty.uploadMarkdown': 'Upload Markdown File',+ 'pageEditor.linkCopied': 'Link copied',+ 'pageEditor.menu.copyLink': 'Copy Link',+ 'pageEditor.menu.exportDocument': 'Export Page',+ 'pageEditor.menu.importDocument': 'Import Page',+ 'pageEditor.menu.pin': 'Pin Page',+ 'pageEditor.saving': 'Saving...',+ 'pageEditor.titlePlaceholder': 'Untitled',+ 'pageEditor.wordCount': '{{wordCount}} words',+ 'pageList.copyContent': 'Copy Full Text',+ 'pageList.duplicate': 'Duplicate',+ 'pageList.empty': 'No pages yet. Click the button above to create your first one.',+ 'pageList.filter.all': 'All',+ 'pageList.filter.onlyInPages': 'In Pages Only',+ 'pageList.noResults': 'No matching pages found',+ 'pageList.pageCount': '{{count}} pages in total',+ 'pageList.pageSizeItem': '{{count}} items',+ 'pageList.selectNote': 'Select a page to start editing',+ 'pageList.title': 'Pages',+ 'pageList.untitled': 'Untitled',+ 'portal.openInPageEditor': 'Edit in Page',+ 'preview.downloadFile': 'Download File',+ 'preview.unsupportedFileAndContact':+ 'This file format is not currently supported for online preview. If you have a request for previewing, feel free to <1>contact us</1>.',+ 'searchFilePlaceholder': 'Search Files',+ 'searchPagePlaceholder': 'Search Pages',+ 'tab.all': 'All',+ 'tab.audios': 'Audio',+ 'tab.documents': 'Pages',+ 'tab.home': 'Home',+ 'tab.images': 'Images',+ 'tab.moreTypes': 'More Types',+ 'tab.pages': 'Pages',+ 'tab.videos': 'Videos',+ 'tab.websites': 'Websites',+ 'title': 'Resources',+ 'toggleLeftPanel': 'Show/Hide Left Panel',+ 'uploadDock.body.collapse': 'Collapse',+ 'uploadDock.body.item.done': 'Uploaded',+ 'uploadDock.body.item.error': 'Upload failed, please try again',+ 'uploadDock.body.item.pending': 'Preparing to upload...',+ 'uploadDock.body.item.processing': 'Processing file...',+ 'uploadDock.body.item.restTime': 'Remaining {{time}}',+ 'uploadDock.fileQueueInfo':+ 'Uploading the first {{count}} files, {{remaining}} remaining in queue',+ 'uploadDock.totalCount': 'Total {{count}} items',+ 'uploadDock.uploadStatus.error': 'Upload error',+ 'uploadDock.uploadStatus.pending': 'Waiting to upload',+ 'uploadDock.uploadStatus.processing': 'Uploading',+ 'uploadDock.uploadStatus.success': 'Upload completed',+ 'uploadDock.uploadStatus.uploading': 'Uploading',+};