From eeef5ac9f9caf97efaf75e7ad2e552072caf884a Mon Sep 17 00:00:00 2001 From: smanylov Date: Fri, 26 Dec 2025 11:02:35 +0700 Subject: [PATCH] rename file-upload --- src/app/[locale]/pages/marking-audio/page.tsx | 2 +- src/app/[locale]/pages/marking-photo/page.tsx | 2 +- src/app/[locale]/pages/marking-video/page.tsx | 2 +- src/app/actions/file-entity.ts | 0 src/app/actions/{file-upload.ts => fileUpload.ts} | 0 src/app/components/upload-section-file.tsx | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 src/app/actions/file-entity.ts rename src/app/actions/{file-upload.ts => fileUpload.ts} (100%) diff --git a/src/app/[locale]/pages/marking-audio/page.tsx b/src/app/[locale]/pages/marking-audio/page.tsx index f6b07a7..099ef7b 100644 --- a/src/app/[locale]/pages/marking-audio/page.tsx +++ b/src/app/[locale]/pages/marking-audio/page.tsx @@ -2,7 +2,7 @@ import ProtectionSummary from '@/app/ui/marking-page/protection-summary'; import FilesTable from '@/app/ui/dashboard/files-table'; import PageTitle from '@/app/ui/page-title'; import UploadSectionFile from '@/app/components/upload-section-file'; -import { getAllowedFilesExtensions } from '@/app/actions/file-upload'; +import { getAllowedFilesExtensions } from '@/app/actions/fileUpload'; export default async function Page() { const FILE_TYPE = "audio"; diff --git a/src/app/[locale]/pages/marking-photo/page.tsx b/src/app/[locale]/pages/marking-photo/page.tsx index 565df92..8cfe0e9 100644 --- a/src/app/[locale]/pages/marking-photo/page.tsx +++ b/src/app/[locale]/pages/marking-photo/page.tsx @@ -2,7 +2,7 @@ import ProtectionSummary from '@/app/ui/marking-page/protection-summary'; import FilesTable from '@/app/ui/dashboard/files-table'; import PageTitle from '@/app/ui/page-title'; import UploadSectionFile from '@/app/components/upload-section-file'; -import { getAllowedFilesExtensions } from '@/app/actions/file-upload'; +import { getAllowedFilesExtensions } from '@/app/actions/fileUpload'; export default async function Page() { const FILE_TYPE = "image"; diff --git a/src/app/[locale]/pages/marking-video/page.tsx b/src/app/[locale]/pages/marking-video/page.tsx index 48bb4fd..7ea681b 100644 --- a/src/app/[locale]/pages/marking-video/page.tsx +++ b/src/app/[locale]/pages/marking-video/page.tsx @@ -2,7 +2,7 @@ import ProtectionSummary from '@/app/ui/marking-page/protection-summary'; import FilesTable from '@/app/ui/dashboard/files-table'; import PageTitle from '@/app/ui/page-title'; import UploadSectionFile from '@/app/components/upload-section-file'; -import { getAllowedFilesExtensions } from '@/app/actions/file-upload'; +import { getAllowedFilesExtensions } from '@/app/actions/fileUpload'; export default async function Page() { const FILE_TYPE = "video"; diff --git a/src/app/actions/file-entity.ts b/src/app/actions/file-entity.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/app/actions/file-upload.ts b/src/app/actions/fileUpload.ts similarity index 100% rename from src/app/actions/file-upload.ts rename to src/app/actions/fileUpload.ts diff --git a/src/app/components/upload-section-file.tsx b/src/app/components/upload-section-file.tsx index 1276e11..36c4ea2 100644 --- a/src/app/components/upload-section-file.tsx +++ b/src/app/components/upload-section-file.tsx @@ -2,7 +2,7 @@ import { useRef, useState, useCallback, ChangeEvent, DragEvent, useEffect } from 'react'; import { IconShieldAdd } from '@/app/ui/icons/icons'; -import { fileUpload, cancelUpload, chunkUpload, checkChunkStatus } from '@/app/actions/file-upload'; +import { fileUpload, cancelUpload, chunkUpload, checkChunkStatus } from '@/app/actions/fileUpload'; import { useTranslations } from 'next-intl'; import { useNavigationBlocker } from '@/app/hooks/useNavigationBlocker'; interface SelectedFile {