Compare commits
4 Commits
b5624ebb04
...
575d9f7c22
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
575d9f7c22 | ||
|
|
7cbaa6cecc | ||
|
|
da09409759 | ||
|
|
c95f792b9c |
11
SECURITY.md
Normal file
11
SECURITY.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# 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
@ -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 = 'created by Flatlogic generator!';
|
export const appTitle = '';
|
||||||
|
|
||||||
export const getPageTitle = (currentPageTitle: string) =>
|
export const getPageTitle = (currentPageTitle: string) =>
|
||||||
`${currentPageTitle} — ${appTitle}`;
|
`${currentPageTitle} — ${appTitle}`;
|
||||||
|
|||||||
@ -32,7 +32,7 @@ const menuAside: MenuAsideItem[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
href: '/scanned_documents/scanned_documents-list',
|
href: '/scanned_documents/scanned_documents-list',
|
||||||
label: 'Scanned documents',
|
label: 'Claims',
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
icon:
|
icon:
|
||||||
|
|||||||
@ -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'>
|
||||||
Scanned documents
|
Claims
|
||||||
</div>
|
</div>
|
||||||
<div className='text-3xl leading-tight font-semibold'>
|
<div className='text-3xl leading-tight font-semibold'>
|
||||||
{scanned_documents}
|
{scanned_documents}
|
||||||
|
|||||||
@ -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 = 'PaperClaimsai';
|
const title = 'PaperClaims.ai';
|
||||||
|
|
||||||
// Fetch Pexels image/video
|
// Fetch Pexels image/video
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -129,27 +129,20 @@ 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='Welcome to your PaperClaimsai app!' />
|
<CardBoxComponentTitle title='PaperClaims.ai | Turn paper into payments' />
|
||||||
|
|
||||||
<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 React.js/Node.js app generated by the{' '}
|
This is a temporary landing page for the main app portal.
|
||||||
<a
|
|
||||||
className={`${textColor}`}
|
|
||||||
href='https://flatlogic.com/generator'
|
|
||||||
>
|
|
||||||
Flatlogic Web App Generator
|
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
<p className='text-center text-gray-500'>
|
<p className='text-center text-gray-500'>
|
||||||
For guides and documentation please check your local README.md
|
Use the Login button below to access the portal, or visit the {' '}
|
||||||
and the{' '}
|
|
||||||
<a
|
<a
|
||||||
className={`${textColor}`}
|
className={`${textColor}`}
|
||||||
href='https://flatlogic.com/documentation'
|
href='https://www.paperclaims.ai'
|
||||||
>
|
>
|
||||||
Flatlogic documentation
|
PaperClaims.ai public website
|
||||||
</a>
|
</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,6 +154,7 @@ 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/'>
|
||||||
@ -187,13 +181,14 @@ 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'>
|
||||||
© 2024 <span>{title}</span>. All rights reserved
|
© 2025 <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
|
||||||
|
|||||||
@ -52,7 +52,7 @@ export default function Login() {
|
|||||||
remember: true,
|
remember: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const title = 'PaperClaimsai';
|
const title = 'PaperClaims.ai | Login';
|
||||||
|
|
||||||
// Fetch Pexels image/video
|
// Fetch Pexels image/video
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -204,32 +204,7 @@ 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'>
|
||||||
Use{' '}
|
Login below to access your account.
|
||||||
<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>
|
||||||
|
|||||||
@ -83,12 +83,12 @@ const EditScanned_documentsPage = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>{getPageTitle('Edit scanned_documents')}</title>
|
<title>{getPageTitle('Edit Claim')}</title>
|
||||||
</Head>
|
</Head>
|
||||||
<SectionMain>
|
<SectionMain>
|
||||||
<SectionTitleLineWithButton
|
<SectionTitleLineWithButton
|
||||||
icon={mdiChartTimelineVariant}
|
icon={mdiChartTimelineVariant}
|
||||||
title={'Edit scanned_documents'}
|
title='Edit Claim'
|
||||||
main
|
main
|
||||||
>
|
>
|
||||||
{''}
|
{''}
|
||||||
|
|||||||
@ -86,12 +86,12 @@ const Scanned_documentsTablesPage = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>{getPageTitle('Scanned_documents')}</title>
|
<title>{getPageTitle('Claims')}</title>
|
||||||
</Head>
|
</Head>
|
||||||
<SectionMain>
|
<SectionMain>
|
||||||
<SectionTitleLineWithButton
|
<SectionTitleLineWithButton
|
||||||
icon={mdiChartTimelineVariant}
|
icon={mdiChartTimelineVariant}
|
||||||
title='Scanned_documents'
|
title='Claims'
|
||||||
main
|
main
|
||||||
>
|
>
|
||||||
{''}
|
{''}
|
||||||
|
|||||||
@ -53,12 +53,12 @@ const Scanned_documentsNew = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>{getPageTitle('New Item')}</title>
|
<title>{getPageTitle('New Claim')}</title>
|
||||||
</Head>
|
</Head>
|
||||||
<SectionMain>
|
<SectionMain>
|
||||||
<SectionTitleLineWithButton
|
<SectionTitleLineWithButton
|
||||||
icon={mdiChartTimelineVariant}
|
icon={mdiChartTimelineVariant}
|
||||||
title='New Item'
|
title='New Claim'
|
||||||
main
|
main
|
||||||
>
|
>
|
||||||
{''}
|
{''}
|
||||||
|
|||||||
@ -86,12 +86,12 @@ const Scanned_documentsTablesPage = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>{getPageTitle('Scanned_documents')}</title>
|
<title>{getPageTitle('Claims')}</title>
|
||||||
</Head>
|
</Head>
|
||||||
<SectionMain>
|
<SectionMain>
|
||||||
<SectionTitleLineWithButton
|
<SectionTitleLineWithButton
|
||||||
icon={mdiChartTimelineVariant}
|
icon={mdiChartTimelineVariant}
|
||||||
title='Scanned_documents'
|
title='Claims'
|
||||||
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 Item'
|
label='New Claim'
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@ -29,10 +29,6 @@ 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 }));
|
||||||
@ -41,7 +37,7 @@ const Scanned_documentsView = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>{getPageTitle('View scanned_documents')}</title>
|
<title>{getPageTitle('Claim Details')}</title>
|
||||||
</Head>
|
</Head>
|
||||||
<SectionMain>
|
<SectionMain>
|
||||||
<SectionTitleLineWithButton
|
<SectionTitleLineWithButton
|
||||||
@ -50,7 +46,7 @@ const Scanned_documentsView = () => {
|
|||||||
main
|
main
|
||||||
>
|
>
|
||||||
<BaseButton
|
<BaseButton
|
||||||
color='info'
|
title='Claim Details'
|
||||||
label='Edit'
|
label='Edit'
|
||||||
href={`/scanned_documents/scanned_documents-edit/?id=${id}`}
|
href={`/scanned_documents/scanned_documents-edit/?id=${id}`}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user