Compare commits

..

No commits in common. "575d9f7c22ef6374651ee8448b0968770c1a1b15" and "b5624ebb0416e0c81f21ba3fcf96ff64e399e714" have entirely different histories.

12 changed files with 63 additions and 41 deletions

View File

@ -1,11 +0,0 @@
# Security Policy
## Supported Versions
| Version | Supported |
| ------- | ------------------ |
| MVP.1.x | :white_check_mark: |
## Reporting a Vulnerability
Report any issues with the "Issues" section here in the GitHub repository, and be sure to mark it with a "Security" label in addition to any other labels that may help categorieze (bug, enhancement etc.)

File diff suppressed because one or more lines are too long

View File

@ -14,7 +14,7 @@ export const localStorageStyleKey = 'style';
export const containerMaxW = 'xl:max-w-full xl:mx-auto 2xl:mx-20'; export const containerMaxW = 'xl:max-w-full xl:mx-auto 2xl:mx-20';
export const appTitle = ''; export const appTitle = 'created by Flatlogic generator!';
export const getPageTitle = (currentPageTitle: string) => export const getPageTitle = (currentPageTitle: string) =>
`${currentPageTitle}${appTitle}`; `${currentPageTitle}${appTitle}`;

View File

@ -32,7 +32,7 @@ const menuAside: MenuAsideItem[] = [
}, },
{ {
href: '/scanned_documents/scanned_documents-list', href: '/scanned_documents/scanned_documents-list',
label: 'Claims', label: 'Scanned documents',
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore
icon: icon:

View File

@ -288,7 +288,7 @@ const Dashboard = () => {
<div className='flex justify-between align-center'> <div className='flex justify-between align-center'>
<div> <div>
<div className='text-lg leading-tight text-gray-500 dark:text-gray-400'> <div className='text-lg leading-tight text-gray-500 dark:text-gray-400'>
Claims Scanned documents
</div> </div>
<div className='text-3xl leading-tight font-semibold'> <div className='text-3xl leading-tight font-semibold'>
{scanned_documents} {scanned_documents}

View File

@ -26,7 +26,7 @@ export default function Starter() {
const [contentPosition, setContentPosition] = useState('right'); const [contentPosition, setContentPosition] = useState('right');
const textColor = useAppSelector((state) => state.style.linkColor); const textColor = useAppSelector((state) => state.style.linkColor);
const title = 'PaperClaims.ai'; const title = 'PaperClaimsai';
// Fetch Pexels image/video // Fetch Pexels image/video
useEffect(() => { useEffect(() => {
@ -129,20 +129,27 @@ export default function Starter() {
: null} : null}
<div className='flex items-center justify-center flex-col space-y-4 w-full lg:w-full'> <div className='flex items-center justify-center flex-col space-y-4 w-full lg:w-full'>
<CardBox className='w-full md:w-3/5 lg:w-2/3'> <CardBox className='w-full md:w-3/5 lg:w-2/3'>
<CardBoxComponentTitle title='PaperClaims.ai | Turn paper into payments' /> <CardBoxComponentTitle title='Welcome to your PaperClaimsai app!' />
<div className='space-y-3'> <div className='space-y-3'>
<p className='text-center text-gray-500'> <p className='text-center text-gray-500'>
This is a temporary landing page for the main app portal. This is a React.js/Node.js app generated by the{' '}
</p>
<p className='text-center text-gray-500'>
Use the Login button below to access the portal, or visit the {' '}
<a <a
className={`${textColor}`} className={`${textColor}`}
href='https://www.paperclaims.ai' href='https://flatlogic.com/generator'
> >
PaperClaims.ai public website Flatlogic Web App Generator
</a>. </a>
</p>
<p className='text-center text-gray-500'>
For guides and documentation please check your local README.md
and the{' '}
<a
className={`${textColor}`}
href='https://flatlogic.com/documentation'
>
Flatlogic documentation
</a>
</p> </p>
</div> </div>
@ -154,7 +161,6 @@ export default function Starter() {
className='w-full' className='w-full'
/> />
</BaseButtons> </BaseButtons>
{/*
<div className='grid grid-cols-1 gap-2 lg:grid-cols-4 mt-2'> <div className='grid grid-cols-1 gap-2 lg:grid-cols-4 mt-2'>
<div className='text-center'> <div className='text-center'>
<a className={`${textColor}`} href='https://react.dev/'> <a className={`${textColor}`} href='https://react.dev/'>
@ -181,14 +187,13 @@ export default function Starter() {
</a> </a>
</div> </div>
</div> </div>
*/}
</CardBox> </CardBox>
</div> </div>
</div> </div>
</SectionFullScreen> </SectionFullScreen>
<div className='bg-black text-white flex flex-col text-center justify-center md:flex-row'> <div className='bg-black text-white flex flex-col text-center justify-center md:flex-row'>
<p className='py-6 text-sm'> <p className='py-6 text-sm'>
© 2025 <span>{title}</span>. All rights reserved © 2024 <span>{title}</span>. All rights reserved
</p> </p>
<Link className='py-6 ml-4 text-sm' href='/privacy-policy/'> <Link className='py-6 ml-4 text-sm' href='/privacy-policy/'>
Privacy Policy Privacy Policy

View File

@ -52,7 +52,7 @@ export default function Login() {
remember: true, remember: true,
}); });
const title = 'PaperClaims.ai | Login'; const title = 'PaperClaimsai';
// Fetch Pexels image/video // Fetch Pexels image/video
useEffect(() => { useEffect(() => {
@ -204,7 +204,32 @@ export default function Login() {
<div className='flex flex-row text-gray-500 justify-between'> <div className='flex flex-row text-gray-500 justify-between'>
<div> <div>
<p className='mb-2'> <p className='mb-2'>
Login below to access your account. Use{' '}
<code
className={`cursor-pointer ${textColor} `}
data-password='c8f96137'
onClick={(e) => setLogin(e.target)}
>
admin@flatlogic.com
</code>
{' / '}
<code className={`${textColor}`}>c8f96137</code>
{' / '}
to login as Admin
</p>
<p>
Use{' '}
<code
className={`cursor-pointer ${textColor} `}
data-password='57fd86e330a1'
onClick={(e) => setLogin(e.target)}
>
client@hello.com
</code>
{' / '}
<code className={`${textColor}`}>57fd86e330a1</code>
{' / '}
to login as User
</p> </p>
</div> </div>
<div> <div>

View File

@ -83,12 +83,12 @@ const EditScanned_documentsPage = () => {
return ( return (
<> <>
<Head> <Head>
<title>{getPageTitle('Edit Claim')}</title> <title>{getPageTitle('Edit scanned_documents')}</title>
</Head> </Head>
<SectionMain> <SectionMain>
<SectionTitleLineWithButton <SectionTitleLineWithButton
icon={mdiChartTimelineVariant} icon={mdiChartTimelineVariant}
title='Edit Claim' title={'Edit scanned_documents'}
main main
> >
{''} {''}

View File

@ -86,12 +86,12 @@ const Scanned_documentsTablesPage = () => {
return ( return (
<> <>
<Head> <Head>
<title>{getPageTitle('Claims')}</title> <title>{getPageTitle('Scanned_documents')}</title>
</Head> </Head>
<SectionMain> <SectionMain>
<SectionTitleLineWithButton <SectionTitleLineWithButton
icon={mdiChartTimelineVariant} icon={mdiChartTimelineVariant}
title='Claims' title='Scanned_documents'
main main
> >
{''} {''}

View File

@ -53,12 +53,12 @@ const Scanned_documentsNew = () => {
return ( return (
<> <>
<Head> <Head>
<title>{getPageTitle('New Claim')}</title> <title>{getPageTitle('New Item')}</title>
</Head> </Head>
<SectionMain> <SectionMain>
<SectionTitleLineWithButton <SectionTitleLineWithButton
icon={mdiChartTimelineVariant} icon={mdiChartTimelineVariant}
title='New Claim' title='New Item'
main main
> >
{''} {''}

View File

@ -86,12 +86,12 @@ const Scanned_documentsTablesPage = () => {
return ( return (
<> <>
<Head> <Head>
<title>{getPageTitle('Claims')}</title> <title>{getPageTitle('Scanned_documents')}</title>
</Head> </Head>
<SectionMain> <SectionMain>
<SectionTitleLineWithButton <SectionTitleLineWithButton
icon={mdiChartTimelineVariant} icon={mdiChartTimelineVariant}
title='Claims' title='Scanned_documents'
main main
> >
{''} {''}
@ -102,7 +102,7 @@ const Scanned_documentsTablesPage = () => {
className={'mr-3'} className={'mr-3'}
href={'/scanned_documents/scanned_documents-new'} href={'/scanned_documents/scanned_documents-new'}
color='info' color='info'
label='New Claim' label='New Item'
/> />
)} )}

View File

@ -29,6 +29,10 @@ const Scanned_documentsView = () => {
const { id } = router.query; const { id } = router.query;
function removeLastCharacter(str) {
console.log(str, `str`);
return str.slice(0, -1);
}
useEffect(() => { useEffect(() => {
dispatch(fetch({ id })); dispatch(fetch({ id }));
@ -37,7 +41,7 @@ const Scanned_documentsView = () => {
return ( return (
<> <>
<Head> <Head>
<title>{getPageTitle('Claim Details')}</title> <title>{getPageTitle('View scanned_documents')}</title>
</Head> </Head>
<SectionMain> <SectionMain>
<SectionTitleLineWithButton <SectionTitleLineWithButton
@ -46,7 +50,7 @@ const Scanned_documentsView = () => {
main main
> >
<BaseButton <BaseButton
title='Claim Details' color='info'
label='Edit' label='Edit'
href={`/scanned_documents/scanned_documents-edit/?id=${id}`} href={`/scanned_documents/scanned_documents-edit/?id=${id}`}
/> />