mirror of
https://github.com/langgenius/dify.git
synced 2026-11-10 21:35:45 +08:00
fix: remove unavailable knowledge upload character count (#45902)
This commit is contained in:
30 files changed
+5
-45
No files matched your search
Generated
-10
@@ -1368,11 +1368,6 @@
|
||||
"count": 4
|
||||
}
|
||||
},
|
||||
"web/app/components/base/markdown-blocks/__tests__/paragraph.spec.tsx": {
|
||||
"jsx-a11y/anchor-is-valid": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/base/markdown-blocks/audio-block.tsx": {
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 5
|
||||
@@ -6275,11 +6270,6 @@
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/features/new-rag/upload/file-list.tsx": {
|
||||
"better-tailwindcss/enforce-logical-properties": {
|
||||
"count": 3
|
||||
}
|
||||
},
|
||||
"web/features/skills/client.ts": {
|
||||
"dify/require-disable-directive-description": {
|
||||
"count": 2
|
||||
|
||||
@@ -3176,8 +3176,8 @@ describe('CreateKnowledgePage', () => {
|
||||
}),
|
||||
).toBeNull()
|
||||
expect(
|
||||
within(policyRow as HTMLElement).getByText('knowledgeCreate.uploadCharactersUnavailable'),
|
||||
).toBeVisible()
|
||||
within(policyRow as HTMLElement).queryByText('knowledgeCreate.uploadingFiles'),
|
||||
).not.toBeInTheDocument()
|
||||
expect(
|
||||
within(policyRow as HTMLElement).getByRole('button', {
|
||||
name: 'knowledgeSpace.preview',
|
||||
|
||||
@@ -146,7 +146,6 @@ export function CreateUploadQueue({
|
||||
className="mt-2"
|
||||
disabled={disabled}
|
||||
fileSizeLimitMb={fileSizeLimitMb}
|
||||
idleStatus={t(($) => $.uploadCharactersUnavailable, { ns: 'knowledgeCreate' })}
|
||||
items={uploads}
|
||||
uploadProgress={uploadPhases}
|
||||
variant="compact"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
'use client'
|
||||
|
||||
import type { ReactNode } from 'react'
|
||||
import type { KnowledgeFsUploadPhase } from './knowledge-fs-upload'
|
||||
import type { DocumentUploadIssue } from './policy'
|
||||
import { Button } from '@langgenius/dify-ui/button'
|
||||
@@ -45,7 +44,6 @@ export function DocumentUploadFileList({
|
||||
className,
|
||||
disabled,
|
||||
fileSizeLimitMb,
|
||||
idleStatus,
|
||||
items,
|
||||
onRemove,
|
||||
uploadProgress = new Map(),
|
||||
@@ -55,7 +53,6 @@ export function DocumentUploadFileList({
|
||||
className?: string
|
||||
disabled: boolean
|
||||
fileSizeLimitMb: number
|
||||
idleStatus?: ReactNode
|
||||
items: DocumentUploadFileItem[]
|
||||
onRemove: (item: DocumentUploadFileItem) => void
|
||||
uploadProgress?: ReadonlyMap<File, KnowledgeFsUploadPhase>
|
||||
@@ -84,7 +81,7 @@ export function DocumentUploadFileList({
|
||||
size: fileSizeLimitMb,
|
||||
})
|
||||
: t(($) => $[`documentUploadExclusion.${issue}`])
|
||||
: idleStatus
|
||||
: undefined
|
||||
return (
|
||||
<li
|
||||
key={item.id}
|
||||
@@ -99,7 +96,7 @@ export function DocumentUploadFileList({
|
||||
<span className="flex shrink-0 items-start p-3">
|
||||
<span aria-hidden className={cn('size-6', fileIconClass(extension))} />
|
||||
</span>
|
||||
<span className="min-w-0 flex-1 py-1 pr-2 text-left">
|
||||
<span className="min-w-0 flex-1 py-1 pe-2 text-start">
|
||||
<span className="block truncate system-xs-medium text-text-primary">
|
||||
{item.file.name}
|
||||
</span>
|
||||
@@ -122,7 +119,7 @@ export function DocumentUploadFileList({
|
||||
)}
|
||||
</span>
|
||||
</span>
|
||||
<span className="flex shrink-0 items-center gap-1 py-2 pr-3">
|
||||
<span className="flex shrink-0 items-center gap-1 py-2 pe-3">
|
||||
{fileUploading ? (
|
||||
<span className="flex size-6 items-center justify-center">
|
||||
<span
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "الملفات المحددة ({{valid}} من {{total}} صالحة)",
|
||||
"startWith": "ابدأ ب",
|
||||
"startWithHelp": "يمكنك إضافة المزيد من المصادر أو المستندات في أي وقت.",
|
||||
"uploadCharactersUnavailable": "الأحرف: —",
|
||||
"uploadCompleted": "تمت الإضافة",
|
||||
"uploadDocuments": "تحميل المستندات",
|
||||
"uploadDropZoneTitle": "اسحب الملفات وأفلتها، أو تصفّح",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Seçilmiş fayllar ({{total}} fayldan {{valid}} etibarlıdır)",
|
||||
"startWith": "Başlanğıc seçimi",
|
||||
"startWithHelp": "İstənilən vaxt daha çox mənbə və ya sənəd əlavə edə bilərsiniz.",
|
||||
"uploadCharactersUnavailable": "Simvol sayı: məlum deyil",
|
||||
"uploadCompleted": "Əlavə edildi",
|
||||
"uploadDocuments": "Sənədləri yüklə",
|
||||
"uploadDropZoneTitle": "Faylları sürükləyib buraxın və ya seçin",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Ausgewählte Dateien ({{valid}} von {{total}} gültig)",
|
||||
"startWith": "Beginnen Sie mit",
|
||||
"startWithHelp": "Sie können jederzeit weitere Quellen oder Dokumente hinzufügen.",
|
||||
"uploadCharactersUnavailable": "Zeichen: —",
|
||||
"uploadCompleted": "Hinzugefügt",
|
||||
"uploadDocuments": "Dokumente hochladen",
|
||||
"uploadDropZoneTitle": "Dateien ziehen und ablegen oder durchsuchen",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Selected files ({{valid}} of {{total}} valid)",
|
||||
"startWith": "Start with",
|
||||
"startWithHelp": "You can add more Sources or Documents anytime.",
|
||||
"uploadCharactersUnavailable": "Characters: —",
|
||||
"uploadCompleted": "Added",
|
||||
"uploadDocuments": "Upload documents",
|
||||
"uploadDropZoneTitle": "Drag and drop files, or browse",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Archivos seleccionados ({{valid}} de {{total}} válidos)",
|
||||
"startWith": "Empezar con",
|
||||
"startWithHelp": "Puedes añadir más fuentes o documentos en cualquier momento.",
|
||||
"uploadCharactersUnavailable": "Caracteres: —",
|
||||
"uploadCompleted": "Añadido",
|
||||
"uploadDocuments": "Subir documentos",
|
||||
"uploadDropZoneTitle": "Arrastra y suelta archivos o selecciónalos en tu equipo",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "فایلهای انتخابشده ({{valid}} از {{total}} معتبر)",
|
||||
"startWith": "شروع کنید با",
|
||||
"startWithHelp": "میتوانید منابع یا اسناد بیشتری را در هر زمان اضافه کنید.",
|
||||
"uploadCharactersUnavailable": "نویسهها: —",
|
||||
"uploadCompleted": "اضافه شد",
|
||||
"uploadDocuments": "اسناد را بارگذاری کنید",
|
||||
"uploadDropZoneTitle": "فایلها را بکشید و رها کنید یا انتخاب کنید",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Fichiers sélectionnés ({{valid}} sur {{total}} valides)",
|
||||
"startWith": "Commencez par",
|
||||
"startWithHelp": "Vous pouvez ajouter plus de sources ou de documents à tout moment.",
|
||||
"uploadCharactersUnavailable": "Caractères : —",
|
||||
"uploadCompleted": "Ajouté",
|
||||
"uploadDocuments": "Télécharger des documents",
|
||||
"uploadDropZoneTitle": "Glissez-déposez des fichiers ou parcourez",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "चुनी गई फ़ाइलें ({{total}} में से {{valid}} मान्य)",
|
||||
"startWith": "से शुरू करें",
|
||||
"startWithHelp": "आप किसी भी समय अधिक स्रोत या दस्तावेज़ जोड़ सकते हैं।",
|
||||
"uploadCharactersUnavailable": "वर्ण: —",
|
||||
"uploadCompleted": "जोड़ा गया",
|
||||
"uploadDocuments": "दस्तावेज़ अपलोड करें",
|
||||
"uploadDropZoneTitle": "फ़ाइलें खींचकर छोड़ें या ब्राउज़ करें",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "File terpilih ({{valid}} dari {{total}} valid)",
|
||||
"startWith": "Mulailah dengan",
|
||||
"startWithHelp": "Anda dapat menambahkan lebih banyak Sumber atau Dokumen kapan saja.",
|
||||
"uploadCharactersUnavailable": "Karakter: —",
|
||||
"uploadCompleted": "Ditambahkan",
|
||||
"uploadDocuments": "Unggah dokumen",
|
||||
"uploadDropZoneTitle": "Seret dan lepas file, atau pilih",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "File selezionati ({{valid}} di {{total}} validi)",
|
||||
"startWith": "Inizia con",
|
||||
"startWithHelp": "Puoi aggiungere più fonti o documenti in qualsiasi momento.",
|
||||
"uploadCharactersUnavailable": "Caratteri: —",
|
||||
"uploadCompleted": "Aggiunto",
|
||||
"uploadDocuments": "Carica documenti",
|
||||
"uploadDropZoneTitle": "Trascina e rilascia i file oppure sfoglia",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "選択したファイル({{total}}件中{{valid}}件が有効)",
|
||||
"startWith": "作成方法",
|
||||
"startWithHelp": "いつでもソースやドキュメントを追加できます。",
|
||||
"uploadCharactersUnavailable": "文字数:—",
|
||||
"uploadCompleted": "追加済み",
|
||||
"uploadDocuments": "ドキュメントのアップロード",
|
||||
"uploadDropZoneTitle": "ファイルをドラッグ&ドロップするか、参照",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "선택한 파일 ({{total}}개 중 {{valid}}개 유효)",
|
||||
"startWith": "다음으로 시작",
|
||||
"startWithHelp": "언제든지 더 많은 소스나 문서를 추가할 수 있습니다.",
|
||||
"uploadCharactersUnavailable": "문자 수: —",
|
||||
"uploadCompleted": "추가됨",
|
||||
"uploadDocuments": "문서 업로드",
|
||||
"uploadDropZoneTitle": "파일을 끌어다 놓거나 찾아보기",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "ໄຟລ໌ທີ່ເລືອກ (ໃຊ້ໄດ້ {{valid}} ຈາກ {{total}})",
|
||||
"startWith": "ເລີ່ມຕົ້ນດ້ວຍ",
|
||||
"startWithHelp": "ທ່ານສາມາດເພີ່ມແຫຼ່ງຂໍ້ມູນ ຫຼື ເອກະສານໄດ້ທຸກເວລາ.",
|
||||
"uploadCharactersUnavailable": "ລັກສະນະ: —",
|
||||
"uploadCompleted": "ເພີ່ມແລ້ວ",
|
||||
"uploadDocuments": "ອັບໂຫລດເອກະສານ",
|
||||
"uploadDropZoneTitle": "ລາກແລະວາງໄຟລ໌ ຫຼື ເລືອກໄຟລ໌",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Geselecteerde bestanden ({{valid}} van {{total}} geldig)",
|
||||
"startWith": "Begin met",
|
||||
"startWithHelp": "U kunt op elk gewenst moment meer bronnen of documenten toevoegen.",
|
||||
"uploadCharactersUnavailable": "Tekens: —",
|
||||
"uploadCompleted": "Toegevoegd",
|
||||
"uploadDocuments": "Documenten uploaden",
|
||||
"uploadDropZoneTitle": "Sleep bestanden hierheen of blader",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Wybrane pliki ({{valid}} z {{total}} prawidłowych)",
|
||||
"startWith": "Zacznij od",
|
||||
"startWithHelp": "W dowolnym momencie możesz dodać więcej źródeł lub dokumentów.",
|
||||
"uploadCharactersUnavailable": "Znaki: —",
|
||||
"uploadCompleted": "Dodano",
|
||||
"uploadDocuments": "Prześlij dokumenty",
|
||||
"uploadDropZoneTitle": "Przeciągnij i upuść pliki lub przeglądaj",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Arquivos selecionados ({{valid}} de {{total}} válidos)",
|
||||
"startWith": "Comece com",
|
||||
"startWithHelp": "Você pode adicionar mais fontes ou documentos a qualquer momento.",
|
||||
"uploadCharactersUnavailable": "Caracteres: —",
|
||||
"uploadCompleted": "Adicionado",
|
||||
"uploadDocuments": "Carregar documentos",
|
||||
"uploadDropZoneTitle": "Arraste e solte arquivos ou procure",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Fișiere selectate ({{valid}} din {{total}} valide)",
|
||||
"startWith": "Începe cu",
|
||||
"startWithHelp": "Puteți adăuga oricând mai multe surse sau documente.",
|
||||
"uploadCharactersUnavailable": "Caractere: —",
|
||||
"uploadCompleted": "Adăugat",
|
||||
"uploadDocuments": "Încărcați documente",
|
||||
"uploadDropZoneTitle": "Trage și plasează fișiere sau răsfoiește",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Выбранные файлы ({{valid}} из {{total}} допустимы)",
|
||||
"startWith": "Начните с",
|
||||
"startWithHelp": "Вы можете добавить больше источников или документов в любое время.",
|
||||
"uploadCharactersUnavailable": "Символы: —",
|
||||
"uploadCompleted": "Добавлено",
|
||||
"uploadDocuments": "Загрузить документы",
|
||||
"uploadDropZoneTitle": "Перетащите файлы или выберите их",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Izbrane datoteke ({{valid}} od {{total}} veljavnih)",
|
||||
"startWith": "Začni z",
|
||||
"startWithHelp": "Kadar koli lahko dodate več virov ali dokumentov.",
|
||||
"uploadCharactersUnavailable": "Znaki: —",
|
||||
"uploadCompleted": "Dodano",
|
||||
"uploadDocuments": "Nalaganje dokumentov",
|
||||
"uploadDropZoneTitle": "Povlecite in spustite datoteke ali prebrskajte",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "ไฟล์ที่เลือก (ใช้ได้ {{valid}} จาก {{total}} ไฟล์)",
|
||||
"startWith": "เริ่มต้นด้วย",
|
||||
"startWithHelp": "คุณสามารถเพิ่มแหล่งที่มาหรือเอกสารเพิ่มเติมได้ตลอดเวลา",
|
||||
"uploadCharactersUnavailable": "อักขระ: —",
|
||||
"uploadCompleted": "เพิ่มแล้ว",
|
||||
"uploadDocuments": "อัพโหลดเอกสาร",
|
||||
"uploadDropZoneTitle": "ลากและวางไฟล์ หรือเรียกดู",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Seçilen dosyalar ({{total}} dosyadan {{valid}} tanesi geçerli)",
|
||||
"startWith": "Şununla başla:",
|
||||
"startWithHelp": "İstediğiniz zaman daha fazla Kaynak veya Belge ekleyebilirsiniz.",
|
||||
"uploadCharactersUnavailable": "Karakterler: —",
|
||||
"uploadCompleted": "Eklendi",
|
||||
"uploadDocuments": "Belgeleri yükleyin",
|
||||
"uploadDropZoneTitle": "Dosyaları sürükleyip bırakın veya göz atın",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Вибрані файли ({{valid}} з {{total}} дійсні)",
|
||||
"startWith": "Почніть з",
|
||||
"startWithHelp": "Ви можете будь-коли додати більше джерел або документів.",
|
||||
"uploadCharactersUnavailable": "Символи: —",
|
||||
"uploadCompleted": "Додано",
|
||||
"uploadDocuments": "Завантажити документи",
|
||||
"uploadDropZoneTitle": "Перетягніть файли або виберіть їх",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "Tệp đã chọn ({{valid}}/{{total}} hợp lệ)",
|
||||
"startWith": "Bắt đầu với",
|
||||
"startWithHelp": "Bạn có thể thêm nhiều Nguồn hoặc Tài liệu hơn bất cứ lúc nào.",
|
||||
"uploadCharactersUnavailable": "Ký tự: —",
|
||||
"uploadCompleted": "Đã thêm",
|
||||
"uploadDocuments": "Tải tài liệu lên",
|
||||
"uploadDropZoneTitle": "Kéo và thả tệp hoặc duyệt",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "已选文件({{total}} 个中 {{valid}} 个有效)",
|
||||
"startWith": "创建方式",
|
||||
"startWithHelp": "你可以随时添加更多数据源或文档。",
|
||||
"uploadCharactersUnavailable": "字符数:—",
|
||||
"uploadCompleted": "已添加",
|
||||
"uploadDocuments": "上传文档",
|
||||
"uploadDropZoneTitle": "拖放文件,或点击选择文件",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"selectedFiles": "已選檔案({{total}} 個中 {{valid}} 個有效)",
|
||||
"startWith": "建立方式",
|
||||
"startWithHelp": "你可以隨時新增更多資料來源或文件。",
|
||||
"uploadCharactersUnavailable": "字元數:—",
|
||||
"uploadCompleted": "已新增",
|
||||
"uploadDocuments": "上傳文件",
|
||||
"uploadDropZoneTitle": "拖放檔案,或點選以選擇檔案",
|
||||
|
||||
Vendored
-1
@@ -3399,7 +3399,6 @@ export default interface Resources {
|
||||
selectedFiles: 'Selected files ({{valid}} of {{total}} valid)'
|
||||
startWith: 'Start with'
|
||||
startWithHelp: 'You can add more Sources or Documents anytime.'
|
||||
uploadCharactersUnavailable: 'Characters: —'
|
||||
uploadCompleted: 'Added'
|
||||
uploadDocuments: 'Upload documents'
|
||||
uploadDropZoneTitle: 'Drag and drop files, or browse'
|
||||
|
||||
Reference in new issue
Block a user