file upload develop
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
import ProtectedFilesTable from '@/app/ui/marking-page/protected-files-table';
|
||||
import ProtectionSummary from '@/app/ui/marking-page/protection-summary';
|
||||
import TestSection from '@/app/ui/marking-page/test-section';
|
||||
import PageTitle from '@/app/ui/page-title';
|
||||
import UploadSectionFile from '@/app/components/upload-section-file';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import FilesTable from '@/app/ui/dashboard/files-table';
|
||||
import { FileExtension } from '@/app/actions/definitions';
|
||||
import { getAllowedFilesExtensions } from '@/app/actions/file-upload';
|
||||
|
||||
const ALLOWED_EXTENSIONS: FileExtension[] = ['jpg', 'jpeg', 'png', 'gif', 'bmp'];
|
||||
const FILE_TYPE = "IMAGE"
|
||||
|
||||
export default async function Page() {
|
||||
/* const allowedFilesExtensions = await getAllowedFilesExtensions(FILE_TYPE);
|
||||
console.log(allowedFilesExtensions); */
|
||||
|
||||
export default function Page() {
|
||||
const t = useTranslations('Global');
|
||||
return (
|
||||
<div>
|
||||
<div className="page-title">
|
||||
<h1>
|
||||
{t('image-protection')}
|
||||
</h1>
|
||||
</div>
|
||||
<PageTitle title="image-protection" />
|
||||
<ProtectionSummary />
|
||||
<UploadSectionFile fileType="IMAGE"/>
|
||||
<UploadSectionFile fileType={FILE_TYPE} allowedExtensions={ALLOWED_EXTENSIONS} />
|
||||
{/* <TestSection /> */}
|
||||
<FilesTable />
|
||||
{/* <ProtectedFilesTable /> */}
|
||||
|
||||
Reference in New Issue
Block a user