Files
no-copy-frontend/src/app/[locale]/pages/marking-photo/page.tsx
T

53 lines
1.2 KiB
TypeScript
Raw Normal View History

2025-12-05 16:19:13 +07:00
import ProtectionSummary from '@/app/ui/marking-page/protection-summary';
2025-12-25 15:31:24 +07:00
import FilesTable from '@/app/ui/dashboard/files-table';
2025-12-24 15:41:06 +07:00
import PageTitle from '@/app/ui/page-title';
2025-12-23 18:56:48 +07:00
import UploadSectionFile from '@/app/components/upload-section-file';
2025-12-26 11:02:35 +07:00
import { getAllowedFilesExtensions } from '@/app/actions/fileUpload';
import {StackedBarChart} from '@/app/components/StackedBarChart';
const data = [
{
name: 'File A',
2026-01-05 15:07:10 +07:00
checks: 4,
violations: 2
},
{
name: 'File B',
2026-01-05 15:07:10 +07:00
checks: 8,
violations: 4
},
{
name: 'File C',
2026-01-05 15:07:10 +07:00
checks: 2,
violations: 1
},
{
name: 'File D',
2026-01-05 15:07:10 +07:00
checks: 7,
violations: 1
},
{
name: 'File E',
2026-01-05 15:07:10 +07:00
checks: 5,
violations: 4
},
];
2025-12-24 15:41:06 +07:00
export default async function Page() {
2025-12-25 15:31:24 +07:00
const FILE_TYPE = "image";
const { file_extension, max_file_size } = await getAllowedFilesExtensions(FILE_TYPE);
2025-12-05 16:19:13 +07:00
return (
<div>
2025-12-24 15:41:06 +07:00
<PageTitle title="image-protection" />
2026-01-05 15:07:10 +07:00
<div className="split-blocks">
<ProtectionSummary />
2026-01-05 15:07:10 +07:00
<div className="protection-overview">
<StackedBarChart data={data} />
</div>
</div>
2025-12-25 15:31:24 +07:00
<UploadSectionFile fileType={FILE_TYPE} allowedExtensions={file_extension} maxFileSize={max_file_size} />
2025-12-29 16:08:38 +07:00
<FilesTable fileType={FILE_TYPE} />
2025-12-05 16:19:13 +07:00
</div>
)
}