feat(ui): add AttachmentList component for lesson file attachments (#822)
* feat(ui): add AttachmentList component for lesson file attachments Introduce a reusable AttachmentList molecule with view and edit modes. View mode shows a header with file count and view/download actions; edit mode supports drag-to-reorder, view, and delete. Includes Storybook stories and package exports. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(ui): address AttachmentList PR review feedback - Sync edit-mode file state using full metadata signature, not IDs only - Clamp formatFileSize unit index and guard non-finite inputs - Recognize common MIME types for file-type icon styling - Scope role=list to row container; use dragHandleZone for reordering - Add reorder label for drag handle accessibility Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(ui): guard AttachmentList against undefined files prop Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(ui): render AttachmentList stories and guard missing props Use Storybook template snippets and default args so stories mount correctly. Default mode and labels in the component for autodocs, and align dragHandleZone items with rendered rows. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * feat(dashboard): use AttachmentList on lesson documents tab Replace the horizontal DocumentCard grid with AttachmentList in view and edit modes, including drag-to-reorder in edit. Tighten the list header to p-2 with xs text, add document mapping helpers, and translate new labels. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(dashboard): reset document upload modal state on close Clear selected file, success message, and upload progress when the add document modal closes so reopening starts fresh. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(dashboard): raise PDF viewer above sidebar and AI chat Use z-modal (200) instead of z-100 so the full-screen PDF overlay stacks above z-app-bar-elevated (150) course sidebar and z-app-bar (100) AI panel. Add the missing z-modal utility to dashboard app.css to mirror the UI scale. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * chore: minor changes * feat(dashboard): show spinner and snackbar on document download AttachmentList download button now shows the Button loading spinner immediately while the async download runs. On success, a snackbar confirms the download; on failure, an error snackbar is shown instead of opening a new tab. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(ui): address PR review feedback on AttachmentList - Reject negative byte counts in formatFileSize instead of using Math.abs - Make AttachmentList mode/files/labels props optional; disable cross-list drops - Include file name in drag-handle aria-label for screen readers - Prevent upload modal from closing while an upload is in progress - Use ICU plural rules for attachment file_count across all locales Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com>
This commit is contained in:
co-authored by
Rotimi Best
Cursor Agent
parent
06c3a7feba
commit
0482790126
@@ -26,6 +26,10 @@
|
||||
z-index: 150;
|
||||
}
|
||||
|
||||
@utility z-modal {
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
@utility z-menu-elevated {
|
||||
z-index: 250;
|
||||
}
|
||||
|
||||
+53
-11
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { lessonDocUpload, resetDocumentUploadStore } from '../store';
|
||||
import { lessonDocUpload } from '../store';
|
||||
import { snackbar } from '$features/ui/snackbar/store';
|
||||
import { t } from '$lib/utils/functions/translations';
|
||||
import { Button } from '@cio/ui/base/button';
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
let selectedFile: File | null = $state(null);
|
||||
let errorTimeout: NodeJS.Timeout | null = $state(null);
|
||||
let successResetTimeout: ReturnType<typeof setTimeout> | null = $state(null);
|
||||
let isDisabled = $derived($lessonDocUpload.isUploading || $isFreePlan);
|
||||
|
||||
let uploadedDocument: NonNullable<Lesson['documents']>[number] | null = $state(null);
|
||||
@@ -69,6 +70,45 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
function resetModalState() {
|
||||
selectedFile = null;
|
||||
uploadedDocument = null;
|
||||
|
||||
if (successResetTimeout) {
|
||||
clearTimeout(successResetTimeout);
|
||||
successResetTimeout = null;
|
||||
}
|
||||
|
||||
if (errorTimeout) {
|
||||
clearTimeout(errorTimeout);
|
||||
errorTimeout = null;
|
||||
}
|
||||
|
||||
lessonDocUpload.update((state) => ({
|
||||
...state,
|
||||
error: null,
|
||||
isUploading: false,
|
||||
uploadProgress: 0,
|
||||
isCancelled: false
|
||||
}));
|
||||
}
|
||||
|
||||
function handleOpenChange(isOpen: boolean) {
|
||||
if (isOpen) {
|
||||
$lessonDocUpload.isModalOpen = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if ($lessonDocUpload.isUploading) {
|
||||
$lessonDocUpload.isModalOpen = true;
|
||||
return;
|
||||
}
|
||||
|
||||
$lessonDocUpload.isModalOpen = false;
|
||||
resetModalState();
|
||||
onClose();
|
||||
}
|
||||
|
||||
function selectFile(file: File) {
|
||||
const error = validateFile(file);
|
||||
if (error) {
|
||||
@@ -174,10 +214,16 @@
|
||||
|
||||
snackbar.success($t('course.navItem.lessons.materials.tabs.document.upload_success'));
|
||||
|
||||
// Reset after a short delay
|
||||
setTimeout(() => {
|
||||
resetDocumentUploadStore();
|
||||
if (successResetTimeout) clearTimeout(successResetTimeout);
|
||||
|
||||
successResetTimeout = setTimeout(() => {
|
||||
selectedFile = null;
|
||||
uploadedDocument = null;
|
||||
lessonDocUpload.update((state) => ({
|
||||
...state,
|
||||
uploadProgress: 0
|
||||
}));
|
||||
successResetTimeout = null;
|
||||
}, 1500);
|
||||
} catch (error) {
|
||||
console.error('Upload error:', error);
|
||||
@@ -224,18 +270,14 @@
|
||||
autoClearError($lessonDocUpload.error);
|
||||
});
|
||||
|
||||
// Clear error timeout when component is destroyed
|
||||
// Clear timeouts when component is destroyed
|
||||
onDestroy(() => {
|
||||
if (errorTimeout) clearTimeout(errorTimeout);
|
||||
if (successResetTimeout) clearTimeout(successResetTimeout);
|
||||
});
|
||||
</script>
|
||||
|
||||
<Dialog.Root
|
||||
bind:open={$lessonDocUpload.isModalOpen}
|
||||
onOpenChange={(isOpen) => {
|
||||
if (!isOpen) onClose();
|
||||
}}
|
||||
>
|
||||
<Dialog.Root open={$lessonDocUpload.isModalOpen} onOpenChange={handleOpenChange}>
|
||||
<Dialog.Content class="w-[90%] max-w-4/5">
|
||||
<Dialog.Header>
|
||||
<Dialog.Title>{$t('course.navItem.lessons.materials.tabs.document.upload_title')}</Dialog.Title>
|
||||
|
||||
-28
@@ -1,28 +0,0 @@
|
||||
<script lang="ts">
|
||||
import * as DropdownMenu from '@cio/ui/base/dropdown-menu';
|
||||
import EllipsisVerticalIcon from '@lucide/svelte/icons/ellipsis-vertical';
|
||||
import { IconButton } from '@cio/ui/custom/icon-button';
|
||||
import { t } from '$lib/utils/functions/translations';
|
||||
|
||||
interface Props {
|
||||
onRemove: () => void;
|
||||
}
|
||||
|
||||
let { onRemove }: Props = $props();
|
||||
</script>
|
||||
|
||||
<DropdownMenu.Root>
|
||||
<DropdownMenu.Trigger
|
||||
class="ui:data-[state=open]:opacity-100 absolute top-2 right-2 z-40 flex items-center justify-center opacity-0 transition-all delay-150 duration-200 ease-in-out group-hover:opacity-100"
|
||||
onclick={(e) => e.stopPropagation()}
|
||||
>
|
||||
<IconButton variant="outline">
|
||||
<EllipsisVerticalIcon size={16} />
|
||||
</IconButton>
|
||||
</DropdownMenu.Trigger>
|
||||
<DropdownMenu.Content align="end">
|
||||
<DropdownMenu.Item class="ui:text-red-600" onclick={onRemove}>
|
||||
{$t('course.navItem.lessons.materials.tabs.document.remove_document')}
|
||||
</DropdownMenu.Item>
|
||||
</DropdownMenu.Content>
|
||||
</DropdownMenu.Root>
|
||||
-72
@@ -1,72 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { DocumentCard } from '@cio/ui';
|
||||
import EyeIcon from '@lucide/svelte/icons/eye';
|
||||
import DownloadIcon from '@lucide/svelte/icons/download';
|
||||
import { Button } from '@cio/ui/base/button';
|
||||
import { t } from '$lib/utils/functions/translations';
|
||||
import DocumentCardDropdown from './document-card-dropdown.svelte';
|
||||
import type { LessonDocument } from '$features/course/utils/types';
|
||||
|
||||
interface Props {
|
||||
document: LessonDocument;
|
||||
index: number;
|
||||
isEditMode: boolean;
|
||||
isDownloading: boolean;
|
||||
formatFileSize: (bytes: number) => string;
|
||||
onRemove: () => void;
|
||||
onViewPDF: (doc: LessonDocument) => void;
|
||||
onDownload: (doc: LessonDocument) => Promise<void>;
|
||||
}
|
||||
|
||||
let {
|
||||
document: doc,
|
||||
index: _index,
|
||||
isEditMode,
|
||||
isDownloading,
|
||||
formatFileSize,
|
||||
onRemove,
|
||||
onViewPDF,
|
||||
onDownload
|
||||
}: Props = $props();
|
||||
|
||||
const subtitle = $derived(
|
||||
[doc.type.toUpperCase(), doc.size != null ? formatFileSize(doc.size) : null].filter(Boolean).join(' · ') || '–'
|
||||
);
|
||||
</script>
|
||||
|
||||
<DocumentCard title={doc.name} {subtitle} class="group relative">
|
||||
{#snippet header()}
|
||||
{#if isEditMode}
|
||||
<DocumentCardDropdown {onRemove} />
|
||||
{/if}
|
||||
{/snippet}
|
||||
{#snippet actions()}
|
||||
{#if doc.type === 'pdf'}
|
||||
<Button variant="outline" size="sm" onclick={() => onViewPDF(doc)} class="gap-1.5">
|
||||
<EyeIcon size={14} />
|
||||
{$t('course.navItem.lessons.materials.tabs.document.view_pdf')}
|
||||
</Button>
|
||||
{:else}
|
||||
<a
|
||||
href={doc.link}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="ui:border-input ui:bg-background ui:text-foreground hover:ui:bg-accent hover:ui:text-accent-foreground ui:shrink inline-flex items-center gap-1.5 rounded-md border px-3 py-1.5 text-sm font-medium"
|
||||
>
|
||||
{$t('course.navItem.lessons.materials.tabs.document.view_document')}
|
||||
</a>
|
||||
{/if}
|
||||
<Button
|
||||
variant="outline"
|
||||
size="sm"
|
||||
onclick={() => onDownload(doc)}
|
||||
disabled={isDownloading}
|
||||
class="ui:shrink! gap-1.5"
|
||||
>
|
||||
<DownloadIcon size={14} />
|
||||
{isDownloading
|
||||
? $t('course.navItem.lessons.materials.tabs.document.downloading')
|
||||
: $t('course.navItem.lessons.materials.tabs.document.download')}
|
||||
</Button>
|
||||
{/snippet}
|
||||
</DocumentCard>
|
||||
+62
-22
@@ -1,35 +1,80 @@
|
||||
<script lang="ts">
|
||||
import { AttachmentList } from '@cio/ui';
|
||||
import { Button } from '@cio/ui/base/button';
|
||||
import { Empty } from '@cio/ui/custom/empty';
|
||||
import { t } from '$lib/utils/functions/translations';
|
||||
import MODES from '$lib/utils/constants/mode';
|
||||
import isEmpty from 'lodash/isEmpty';
|
||||
import FileTextIcon from '@lucide/svelte/icons/file-text';
|
||||
import * as Item from '@cio/ui/base/item';
|
||||
import DocumentCard from './document-card.svelte';
|
||||
import type { LessonDocument } from '$features/course/utils/types';
|
||||
import { getDocumentIndexByAttachmentId, mapAttachmentsToDocuments, toAttachmentFiles } from './document-utils';
|
||||
|
||||
interface Props {
|
||||
mode?: (typeof MODES)[keyof typeof MODES];
|
||||
displayDocuments?: LessonDocument[];
|
||||
downloadingDocuments: Set<string>;
|
||||
formatFileSize: (bytes: number) => string;
|
||||
openDocumentUploadModal: () => void;
|
||||
requestRemoveDocument: (index: number) => void;
|
||||
onViewPDF: (doc: LessonDocument) => void;
|
||||
onViewDocument: (doc: LessonDocument) => void;
|
||||
downloadDocument: (doc: LessonDocument) => Promise<void>;
|
||||
reorderDocuments: (documents: LessonDocument[]) => void;
|
||||
}
|
||||
|
||||
let {
|
||||
mode = MODES.view,
|
||||
displayDocuments = [],
|
||||
downloadingDocuments,
|
||||
formatFileSize,
|
||||
openDocumentUploadModal,
|
||||
requestRemoveDocument,
|
||||
onViewPDF,
|
||||
downloadDocument
|
||||
onViewDocument,
|
||||
downloadDocument,
|
||||
reorderDocuments
|
||||
}: Props = $props();
|
||||
|
||||
const attachmentMode = $derived(mode === MODES.edit ? 'edit' : 'view');
|
||||
const attachmentFiles = $derived(toAttachmentFiles(displayDocuments));
|
||||
|
||||
const attachmentLabels = $derived({
|
||||
title: t.get('course.navItem.lessons.materials.tabs.document.attachments_heading'),
|
||||
fileCount: t.get('course.navItem.lessons.materials.tabs.document.file_count', {
|
||||
count: displayDocuments.length
|
||||
}),
|
||||
view: t.get('course.navItem.lessons.materials.tabs.document.view_file'),
|
||||
download: t.get('course.navItem.lessons.materials.tabs.document.download'),
|
||||
delete: t.get('course.navItem.lessons.materials.tabs.document.delete'),
|
||||
reorder: t.get('course.navItem.lessons.materials.tabs.document.reorder_file')
|
||||
});
|
||||
|
||||
function handleView(file: (typeof attachmentFiles)[number]) {
|
||||
const index = getDocumentIndexByAttachmentId(displayDocuments, file.id);
|
||||
const document = displayDocuments[index];
|
||||
|
||||
if (!document) return;
|
||||
|
||||
onViewDocument(document);
|
||||
}
|
||||
|
||||
function handleDownload(file: (typeof attachmentFiles)[number]) {
|
||||
const index = getDocumentIndexByAttachmentId(displayDocuments, file.id);
|
||||
const document = displayDocuments[index];
|
||||
|
||||
if (!document) return;
|
||||
|
||||
void downloadDocument(document);
|
||||
}
|
||||
|
||||
function handleDelete(file: (typeof attachmentFiles)[number]) {
|
||||
const index = getDocumentIndexByAttachmentId(displayDocuments, file.id);
|
||||
|
||||
if (index === -1) return;
|
||||
|
||||
requestRemoveDocument(index);
|
||||
}
|
||||
|
||||
function handleReorder(files: (typeof attachmentFiles)[number][]) {
|
||||
const reorderedDocuments = mapAttachmentsToDocuments(displayDocuments, files);
|
||||
reorderDocuments(reorderedDocuments);
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if mode === MODES.edit}
|
||||
@@ -41,21 +86,16 @@
|
||||
{/if}
|
||||
|
||||
{#if !isEmpty(displayDocuments)}
|
||||
{@const isEditMode = mode === MODES.edit}
|
||||
<Item.Group class="flex w-full gap-4">
|
||||
{#each displayDocuments as document, index}
|
||||
<DocumentCard
|
||||
{document}
|
||||
{index}
|
||||
{isEditMode}
|
||||
isDownloading={downloadingDocuments.has(document.name)}
|
||||
{formatFileSize}
|
||||
onRemove={() => (isEditMode ? requestRemoveDocument(index) : undefined)}
|
||||
{onViewPDF}
|
||||
onDownload={downloadDocument}
|
||||
/>
|
||||
{/each}
|
||||
</Item.Group>
|
||||
<AttachmentList
|
||||
mode={attachmentMode}
|
||||
files={attachmentFiles}
|
||||
labels={attachmentLabels}
|
||||
formatSize={formatFileSize}
|
||||
onView={handleView}
|
||||
onDownload={attachmentMode === 'view' ? handleDownload : undefined}
|
||||
onDelete={attachmentMode === 'edit' ? handleDelete : undefined}
|
||||
onReorder={attachmentMode === 'edit' ? handleReorder : undefined}
|
||||
/>
|
||||
{:else if mode === MODES.edit}
|
||||
<Empty
|
||||
title={$t('course.navItem.lessons.materials.tabs.document.empty_title')}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
import type { AttachmentListFile } from '@cio/ui';
|
||||
import type { LessonDocument } from '$features/course/utils/types';
|
||||
|
||||
export function getDocumentAttachmentId(document: LessonDocument, index: number): string {
|
||||
return document.key || `document-${index}`;
|
||||
}
|
||||
|
||||
export function toAttachmentFiles(documents: LessonDocument[]): AttachmentListFile[] {
|
||||
return documents.map((document, index) => ({
|
||||
id: getDocumentAttachmentId(document, index),
|
||||
name: document.name,
|
||||
size: document.size,
|
||||
type: document.type
|
||||
}));
|
||||
}
|
||||
|
||||
export function getDocumentIndexByAttachmentId(documents: LessonDocument[], attachmentId: string): number {
|
||||
return documents.findIndex((document, index) => getDocumentAttachmentId(document, index) === attachmentId);
|
||||
}
|
||||
|
||||
export function mapAttachmentsToDocuments(
|
||||
documents: LessonDocument[],
|
||||
attachments: AttachmentListFile[]
|
||||
): LessonDocument[] {
|
||||
return attachments
|
||||
.map((attachment) => {
|
||||
const index = getDocumentIndexByAttachmentId(documents, attachment.id);
|
||||
|
||||
if (index === -1) return null;
|
||||
|
||||
return documents[index];
|
||||
})
|
||||
.filter((document): document is LessonDocument => document != null);
|
||||
}
|
||||
@@ -20,7 +20,6 @@
|
||||
|
||||
let { mode = MODES.view }: Props = $props();
|
||||
|
||||
let downloadingDocuments = $state(new Set<string>());
|
||||
let openDeleteDocumentModal = $state(false);
|
||||
let documentIndexToDelete = $state<number | null>(null);
|
||||
let viewingPDF: any = $state(null);
|
||||
@@ -83,9 +82,6 @@
|
||||
}
|
||||
|
||||
async function downloadDocument(doc: LessonDocument) {
|
||||
downloadingDocuments.add(doc.name);
|
||||
downloadingDocuments = downloadingDocuments;
|
||||
|
||||
if (!doc.key) {
|
||||
snackbar.error('Document not loaded correctly');
|
||||
return;
|
||||
@@ -105,12 +101,10 @@
|
||||
a.click();
|
||||
document.body.removeChild(a);
|
||||
window.URL.revokeObjectURL(url);
|
||||
snackbar.success($t('course.navItem.lessons.materials.tabs.document.download_success'));
|
||||
} catch (error) {
|
||||
console.error('Error downloading document:', error);
|
||||
window.open(doc.link, '_blank');
|
||||
} finally {
|
||||
downloadingDocuments.delete(doc.name);
|
||||
downloadingDocuments = downloadingDocuments;
|
||||
snackbar.error($t('course.navItem.lessons.materials.tabs.document.download_error'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -255,6 +249,19 @@
|
||||
viewPDF(doc);
|
||||
}
|
||||
|
||||
function handleViewDocument(doc: LessonDocument) {
|
||||
if (doc.type === 'pdf') {
|
||||
handleViewPDF(doc);
|
||||
return;
|
||||
}
|
||||
|
||||
window.open(doc.link, '_blank', 'noopener,noreferrer');
|
||||
}
|
||||
|
||||
function reorderDocuments(documents: LessonDocument[]) {
|
||||
lessonApi.updateLessonState('documents', documents);
|
||||
}
|
||||
|
||||
function closePDFViewer() {
|
||||
// Cancel any ongoing render task
|
||||
if (currentRenderTask) {
|
||||
@@ -320,19 +327,19 @@
|
||||
<DocumentList
|
||||
{mode}
|
||||
{displayDocuments}
|
||||
{downloadingDocuments}
|
||||
{formatFileSize}
|
||||
{openDocumentUploadModal}
|
||||
{requestRemoveDocument}
|
||||
onViewPDF={handleViewPDF}
|
||||
onViewDocument={handleViewDocument}
|
||||
{downloadDocument}
|
||||
{reorderDocuments}
|
||||
/>
|
||||
|
||||
<DeleteModal bind:open={openDeleteDocumentModal} onDelete={confirmRemoveDocument} />
|
||||
|
||||
<!-- PDF Viewer Modal -->
|
||||
{#if pdfViewerOpen}
|
||||
<div class="fixed inset-0 z-100 flex flex-col bg-white dark:bg-neutral-800">
|
||||
<div class="z-modal fixed inset-0 flex flex-col bg-white dark:bg-neutral-800">
|
||||
<!-- Header -->
|
||||
<div class="flex items-center justify-between border-b border-gray-200 bg-white px-4 py-3 dark:bg-neutral-800">
|
||||
<div class="flex items-center space-x-4">
|
||||
|
||||
@@ -15,6 +15,6 @@ export const NAV_IDS = {
|
||||
};
|
||||
|
||||
export const COURSE_SIDEBAR_DEFAULT_WIDTH = 320;
|
||||
export const COURSE_SIDEBAR_MIN_WIDTH = 220;
|
||||
export const COURSE_SIDEBAR_MIN_WIDTH = 280;
|
||||
export const COURSE_SIDEBAR_MAX_WIDTH = 420;
|
||||
export const COURSE_SIDEBAR_STORAGE_KEY = 'classroomio-course-sidebar-width';
|
||||
|
||||
@@ -2007,6 +2007,8 @@
|
||||
"cancel_upload": "Annuller upload",
|
||||
"upload_cancelled": "Upload annulleret af brugeren",
|
||||
"downloading": "Downloader...",
|
||||
"download_success": "Dokument downloadet",
|
||||
"download_error": "Kunne ikke downloade dokumentet",
|
||||
"view_pdf": "Se PDF",
|
||||
"remove_document": "Fjern dokumentet",
|
||||
"delete": "Slet",
|
||||
@@ -2016,7 +2018,11 @@
|
||||
"failed_to_render_pdf": "Kunne ikke gengive PDF-siden",
|
||||
"use_arrow_keys": "Brug piletasterne til at navigere, +/- for at zoome, eller klik på kontrollerne ovenfor. Højreklik er deaktiveret.",
|
||||
"empty_title": "Ingen dokumenter endnu",
|
||||
"empty_description": "Upload dokumenter for at dele med dine elever"
|
||||
"empty_description": "Upload dokumenter for at dele med dine elever",
|
||||
"attachments_heading": "Vedhæftede filer",
|
||||
"file_count": "{count, plural, one {# fil} other {# filer}}",
|
||||
"view_file": "Vis fil",
|
||||
"reorder_file": "Omarranger fil"
|
||||
},
|
||||
"video": {
|
||||
"title": "Video",
|
||||
|
||||
@@ -2007,6 +2007,8 @@
|
||||
"cancel_upload": "Hochladen abbrechen",
|
||||
"upload_cancelled": "Der Upload wurde vom Benutzer abgebrochen",
|
||||
"downloading": "Herunterladen...",
|
||||
"download_success": "Dokument erfolgreich heruntergeladen",
|
||||
"download_error": "Dokument konnte nicht heruntergeladen werden",
|
||||
"view_pdf": "PDF ansehen",
|
||||
"remove_document": "Dokument entfernen",
|
||||
"delete": "Löschen",
|
||||
@@ -2016,7 +2018,11 @@
|
||||
"failed_to_render_pdf": "PDF-Seite konnte nicht gerendert werden",
|
||||
"use_arrow_keys": "Verwenden Sie die Pfeiltasten zum Navigieren, +/- zum Zoomen oder klicken Sie auf die Steuerelemente oben. Der Rechtsklick ist deaktiviert.",
|
||||
"empty_title": "Noch keine Dokumente",
|
||||
"empty_description": "Laden Sie Dokumente hoch, um sie mit Ihren Schülern zu teilen"
|
||||
"empty_description": "Laden Sie Dokumente hoch, um sie mit Ihren Schülern zu teilen",
|
||||
"attachments_heading": "Anhänge",
|
||||
"file_count": "{count, plural, one {# Datei} other {# Dateien}}",
|
||||
"view_file": "Datei anzeigen",
|
||||
"reorder_file": "Datei neu anordnen"
|
||||
},
|
||||
"video": {
|
||||
"title": "Video",
|
||||
|
||||
@@ -2448,6 +2448,8 @@
|
||||
"cancel_upload": "Cancel Upload",
|
||||
"upload_cancelled": "Upload cancelled by user",
|
||||
"downloading": "Downloading...",
|
||||
"download_success": "Document downloaded successfully",
|
||||
"download_error": "Failed to download document",
|
||||
"view_pdf": "View PDF",
|
||||
"remove_document": "Remove document",
|
||||
"delete": "Delete",
|
||||
@@ -2457,7 +2459,11 @@
|
||||
"failed_to_render_pdf": "Failed to render PDF page",
|
||||
"use_arrow_keys": "Use arrow keys to navigate, +/- to zoom, or click the controls above. Right-click is disabled.",
|
||||
"empty_title": "No documents yet",
|
||||
"empty_description": "Upload documents to share with your students"
|
||||
"empty_description": "Upload documents to share with your students",
|
||||
"attachments_heading": "Attachments",
|
||||
"file_count": "{count, plural, one {# file} other {# files}}",
|
||||
"view_file": "View file",
|
||||
"reorder_file": "Reorder file"
|
||||
}
|
||||
},
|
||||
"button_done": "Done"
|
||||
|
||||
@@ -2007,6 +2007,8 @@
|
||||
"cancel_upload": "Cancelar carga",
|
||||
"upload_cancelled": "Subida cancelada por el usuario",
|
||||
"downloading": "Descargando...",
|
||||
"download_success": "Documento descargado correctamente",
|
||||
"download_error": "No se pudo descargar el documento",
|
||||
"view_pdf": "Ver PDF",
|
||||
"remove_document": "Quitar documento",
|
||||
"delete": "Eliminar",
|
||||
@@ -2016,7 +2018,11 @@
|
||||
"failed_to_render_pdf": "No se pudo renderizar la página PDF",
|
||||
"use_arrow_keys": "Utilice las teclas de flecha para navegar, +/- para hacer zoom o haga clic en los controles de arriba. El clic derecho está deshabilitado.",
|
||||
"empty_title": "Aún no hay documentos",
|
||||
"empty_description": "Cargue documentos para compartir con sus estudiantes"
|
||||
"empty_description": "Cargue documentos para compartir con sus estudiantes",
|
||||
"attachments_heading": "Adjuntos",
|
||||
"file_count": "{count, plural, one {# archivo} other {# archivos}}",
|
||||
"view_file": "Ver archivo",
|
||||
"reorder_file": "Reordenar archivo"
|
||||
},
|
||||
"video": {
|
||||
"title": "Video",
|
||||
|
||||
@@ -2007,6 +2007,8 @@
|
||||
"cancel_upload": "Annuler le téléchargement",
|
||||
"upload_cancelled": "Téléchargement annulé par l'utilisateur",
|
||||
"downloading": "Téléchargement...",
|
||||
"download_success": "Document téléchargé avec succès",
|
||||
"download_error": "Échec du téléchargement du document",
|
||||
"view_pdf": "Afficher le PDF",
|
||||
"remove_document": "Supprimer le document",
|
||||
"delete": "Supprimer",
|
||||
@@ -2016,7 +2018,11 @@
|
||||
"failed_to_render_pdf": "Échec du rendu de la page PDF",
|
||||
"use_arrow_keys": "Utilisez les touches fléchées pour naviguer, +/- pour zoomer ou cliquez sur les commandes ci-dessus. Le clic droit est désactivé.",
|
||||
"empty_title": "Aucun document pour l'instant",
|
||||
"empty_description": "Téléchargez des documents à partager avec vos étudiants"
|
||||
"empty_description": "Téléchargez des documents à partager avec vos étudiants",
|
||||
"attachments_heading": "Pièces jointes",
|
||||
"file_count": "{count, plural, one {# fichier} other {# fichiers}}",
|
||||
"view_file": "Voir le fichier",
|
||||
"reorder_file": "Réordonner le fichier"
|
||||
},
|
||||
"video": {
|
||||
"title": "Vidéo",
|
||||
|
||||
@@ -2007,6 +2007,8 @@
|
||||
"cancel_upload": "अपलोड रद्द करें",
|
||||
"upload_cancelled": "उपयोगकर्ता द्वारा अपलोड रद्द कर दिया गया",
|
||||
"downloading": "डाउनलोड हो रहा है...",
|
||||
"download_success": "दस्तावेज़ सफलतापूर्वक डाउनलोड हुआ",
|
||||
"download_error": "दस्तावेज़ डाउनलोड करने में विफल",
|
||||
"view_pdf": "पीडीएफ देखें",
|
||||
"remove_document": "दस्तावेज़ हटाएँ",
|
||||
"delete": "हटाएँ",
|
||||
@@ -2016,7 +2018,11 @@
|
||||
"failed_to_render_pdf": "पीडीएफ पेज प्रस्तुत करने में विफल",
|
||||
"use_arrow_keys": "नेविगेट करने के लिए तीर कुंजियों का उपयोग करें, ज़ूम करने के लिए +/- का उपयोग करें, या ऊपर दिए गए नियंत्रणों पर क्लिक करें। राइट-क्लिक अक्षम है.",
|
||||
"empty_title": "अभी तक कोई दस्तावेज़ नहीं",
|
||||
"empty_description": "अपने छात्रों के साथ साझा करने के लिए दस्तावेज़ अपलोड करें"
|
||||
"empty_description": "अपने छात्रों के साथ साझा करने के लिए दस्तावेज़ अपलोड करें",
|
||||
"attachments_heading": "अटैचमेंट",
|
||||
"file_count": "{count, plural, one {# फ़ाइल} other {# फ़ाइलें}}",
|
||||
"view_file": "फ़ाइल देखें",
|
||||
"reorder_file": "फ़ाइल को पुनः क्रमित करें"
|
||||
},
|
||||
"video": {
|
||||
"title": "वीडियो",
|
||||
|
||||
@@ -2007,6 +2007,8 @@
|
||||
"cancel_upload": "Anuluj przesyłanie",
|
||||
"upload_cancelled": "Przesyłanie anulowane przez użytkownika",
|
||||
"downloading": "Pobieram...",
|
||||
"download_success": "Dokument pobrano pomyślnie",
|
||||
"download_error": "Nie udało się pobrać dokumentu",
|
||||
"view_pdf": "Zobacz PDF",
|
||||
"remove_document": "Usuń dokument",
|
||||
"delete": "Usuń",
|
||||
@@ -2016,7 +2018,11 @@
|
||||
"failed_to_render_pdf": "Nie udało się wyrenderować strony PDF",
|
||||
"use_arrow_keys": "Użyj klawiszy strzałek do nawigacji, +/-, aby powiększyć, lub kliknij elementy sterujące powyżej. Kliknięcie prawym przyciskiem myszy jest wyłączone.",
|
||||
"empty_title": "Nie ma jeszcze dokumentów",
|
||||
"empty_description": "Prześlij dokumenty, aby udostępnić je swoim uczniom"
|
||||
"empty_description": "Prześlij dokumenty, aby udostępnić je swoim uczniom",
|
||||
"attachments_heading": "Załączniki",
|
||||
"file_count": "{count, plural, one {# plik} few {# pliki} many {# plików} other {# plika}}",
|
||||
"view_file": "Wyświetl plik",
|
||||
"reorder_file": "Zmień kolejność pliku"
|
||||
},
|
||||
"video": {
|
||||
"title": "Wideo",
|
||||
|
||||
@@ -2007,6 +2007,8 @@
|
||||
"cancel_upload": "Cancelar upload",
|
||||
"upload_cancelled": "Upload cancelado pelo usuário",
|
||||
"downloading": "Baixando...",
|
||||
"download_success": "Documento baixado com sucesso",
|
||||
"download_error": "Falha ao baixar o documento",
|
||||
"view_pdf": "Ver PDF",
|
||||
"remove_document": "Remover documento",
|
||||
"delete": "Excluir",
|
||||
@@ -2016,7 +2018,11 @@
|
||||
"failed_to_render_pdf": "Falha ao renderizar a página PDF",
|
||||
"use_arrow_keys": "Use as teclas de seta para navegar, +/- para ampliar ou clique nos controles acima. O clique com o botão direito está desativado.",
|
||||
"empty_title": "Ainda não há documentos",
|
||||
"empty_description": "Faça upload de documentos para compartilhar com seus alunos"
|
||||
"empty_description": "Faça upload de documentos para compartilhar com seus alunos",
|
||||
"attachments_heading": "Anexos",
|
||||
"file_count": "{count, plural, one {# arquivo} other {# arquivos}}",
|
||||
"view_file": "Ver arquivo",
|
||||
"reorder_file": "Reordenar arquivo"
|
||||
},
|
||||
"video": {
|
||||
"title": "Vídeo",
|
||||
|
||||
@@ -2007,6 +2007,8 @@
|
||||
"cancel_upload": "Отменить загрузку",
|
||||
"upload_cancelled": "Загрузка отменена пользователем",
|
||||
"downloading": "Загрузка...",
|
||||
"download_success": "Документ успешно загружен",
|
||||
"download_error": "Не удалось загрузить документ",
|
||||
"view_pdf": "Посмотреть PDF",
|
||||
"remove_document": "Удалить документ",
|
||||
"delete": "Удалить",
|
||||
@@ -2016,7 +2018,11 @@
|
||||
"failed_to_render_pdf": "Не удалось отобразить страницу PDF.",
|
||||
"use_arrow_keys": "Используйте клавиши со стрелками для навигации, +/- для масштабирования или нажимайте элементы управления выше. Щелчок правой кнопкой мыши отключен.",
|
||||
"empty_title": "Документов пока нет",
|
||||
"empty_description": "Загрузите документы, чтобы поделиться ими со своими учениками"
|
||||
"empty_description": "Загрузите документы, чтобы поделиться ими со своими учениками",
|
||||
"attachments_heading": "Вложения",
|
||||
"file_count": "{count, plural, one {# файл} few {# файла} many {# файлов} other {# файла}}",
|
||||
"view_file": "Просмотреть файл",
|
||||
"reorder_file": "Изменить порядок файла"
|
||||
},
|
||||
"video": {
|
||||
"title": "Видео",
|
||||
|
||||
@@ -2007,6 +2007,8 @@
|
||||
"cancel_upload": "Hủy tải lên",
|
||||
"upload_cancelled": "Tải lên bị người dùng hủy",
|
||||
"downloading": "Đang tải xuống...",
|
||||
"download_success": "Tài liệu đã được tải xuống thành công",
|
||||
"download_error": "Không thể tải xuống tài liệu",
|
||||
"view_pdf": "Xem PDF",
|
||||
"remove_document": "Xóa tài liệu",
|
||||
"delete": "Xóa",
|
||||
@@ -2016,7 +2018,11 @@
|
||||
"failed_to_render_pdf": "Không thể hiển thị trang PDF",
|
||||
"use_arrow_keys": "Sử dụng các phím mũi tên để điều hướng, +/- để thu phóng hoặc nhấp vào các điều khiển ở trên. Nhấp chuột phải bị vô hiệu hóa.",
|
||||
"empty_title": "Chưa có tài liệu nào",
|
||||
"empty_description": "Tải lên tài liệu để chia sẻ với sinh viên của bạn"
|
||||
"empty_description": "Tải lên tài liệu để chia sẻ với sinh viên của bạn",
|
||||
"attachments_heading": "Tệp đính kèm",
|
||||
"file_count": "{count, plural, one {# tệp} other {# tệp}}",
|
||||
"view_file": "Xem tệp",
|
||||
"reorder_file": "Sắp xếp lại tệp"
|
||||
},
|
||||
"video": {
|
||||
"title": "Video",
|
||||
|
||||
Reference in New Issue
Block a user