add document marking page
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
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/UploadSectionFile';
|
||||
import { getAllowedFilesExtensions } from '@/app/actions/fileUpload';
|
||||
import { StackedBarChart } from '@/app/components/StackedBarChart';
|
||||
import PageTitleColorFrame from '@/app/ui/page-title-color-frame';
|
||||
import ProtectionStatistic from '@/app/ui/marking-page/new/protection-statistic';
|
||||
|
||||
const data = [
|
||||
{
|
||||
name: 'File A',
|
||||
checks: 4,
|
||||
violations: 2
|
||||
},
|
||||
{
|
||||
name: 'File B',
|
||||
checks: 8,
|
||||
violations: 4
|
||||
},
|
||||
{
|
||||
name: 'File C',
|
||||
checks: 2,
|
||||
violations: 1
|
||||
},
|
||||
{
|
||||
name: 'File D',
|
||||
checks: 7,
|
||||
violations: 1
|
||||
},
|
||||
{
|
||||
name: 'File E',
|
||||
checks: 5,
|
||||
violations: 4
|
||||
},
|
||||
{
|
||||
name: 'File F',
|
||||
checks: 5,
|
||||
violations: 3
|
||||
}
|
||||
];
|
||||
|
||||
export default async function Page() {
|
||||
const FILE_TYPE = "document";
|
||||
const { file_extension, max_file_size } = await getAllowedFilesExtensions(FILE_TYPE);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<PageTitleColorFrame
|
||||
title="audio-protection"
|
||||
description="multi-layered-protection-for-your-audios"
|
||||
/>
|
||||
<ProtectionStatistic fileType={FILE_TYPE} />
|
||||
{/* <div className="split-blocks">
|
||||
<ProtectionSummary fileType={FILE_TYPE} />
|
||||
<div className="protection-overview">
|
||||
<StackedBarChart data={data} />
|
||||
</div>
|
||||
</div> */}
|
||||
<UploadSectionFile fileType={FILE_TYPE} allowedExtensions={file_extension} maxFileSize={max_file_size} />
|
||||
<FilesTable fileType={FILE_TYPE} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -214,6 +214,7 @@ export async function registration(
|
||||
phone: phone,
|
||||
password,
|
||||
accountType,
|
||||
/* referralLink: referralCode, */
|
||||
...(accountType === 'b2b' && { companyName: companyName })
|
||||
}
|
||||
}),
|
||||
@@ -223,6 +224,16 @@ export async function registration(
|
||||
}
|
||||
});
|
||||
|
||||
console.log({
|
||||
fullName: fullName,
|
||||
email,
|
||||
phone: phone,
|
||||
password,
|
||||
accountType,
|
||||
/* referralLink: referralCode, */
|
||||
...(accountType === 'b2b' && { companyName: companyName })
|
||||
})
|
||||
|
||||
if (response.ok) {
|
||||
let parsed = await response.json() as {
|
||||
message_desc: string,
|
||||
@@ -230,6 +241,8 @@ export async function registration(
|
||||
message_code: number
|
||||
};
|
||||
|
||||
console.log(parsed);
|
||||
|
||||
if (parsed.message_code === 0) {
|
||||
console.log(`registration - ${accountType}`);
|
||||
console.log({
|
||||
@@ -238,6 +251,7 @@ export async function registration(
|
||||
phone: phone,
|
||||
password,
|
||||
accountType,
|
||||
referralLink: 'fds324',
|
||||
...(accountType === 'b2b' && { companyName: companyName })
|
||||
});
|
||||
await createSession(parsed.message_body.token, email as string);
|
||||
|
||||
@@ -350,7 +350,7 @@
|
||||
}
|
||||
|
||||
.sub-link {
|
||||
padding: 12px 50px;
|
||||
padding: 12px 12px 12px 32px;
|
||||
font-size: 14px;
|
||||
border-radius: 0;
|
||||
margin-right: 0;
|
||||
|
||||
@@ -27,6 +27,10 @@ export default function DropDownList() {
|
||||
{
|
||||
name: t('audio-marking'),
|
||||
href: '/pages/marking-audio'
|
||||
},
|
||||
{
|
||||
name: t('document-marking'),
|
||||
href: '/pages/marking-document'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user