Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat&fixes #111

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
bbf0146
new design login,signup,dashboard,startup page is done
sp-rahul Oct 5, 2023
dbdc088
Merge remote-tracking branch 'origin/main' into ruhul
sp-rahul Oct 10, 2023
578d221
page design has done for 1st phase and need refactorization
sp-rahul Oct 10, 2023
f26c358
unused import removed
sp-rahul Oct 10, 2023
52d08d5
routing almost done
sp-rahul Oct 10, 2023
6662924
Main container margin padding. cart border,color resolve almost
sp-rahul Oct 12, 2023
c2919af
Merge remote-tracking branch 'origin/ruhul' into ruhul
sp-rahul Oct 12, 2023
37a6aa7
Merge branch 'techtwig:main' into ruhul
sp-rahul Oct 12, 2023
aff9269
re arranged
sp-rahul Oct 17, 2023
d45f858
form submitting going on
sp-rahul Oct 20, 2023
e4d4cb8
Merge remote-tracking branch 'origin/ruhul' into ruhul
sp-rahul Oct 21, 2023
b3ab315
form submission ndone
sp-rahul Oct 22, 2023
87afde8
# api created for budget, category, wallet.
sp-rahul Oct 23, 2023
45c14fa
# api created for budget, category, wallet.
sp-rahul Oct 25, 2023
6f31339
Merge branch 'ruhul'
sp-rahul Oct 25, 2023
c08c62b
Merge branch 'techtwig:main' into main
sp-rahul Oct 25, 2023
e96fff9
Added notify stack, added title and amount range in all forms, income…
sp-rahul Oct 25, 2023
62cca34
Merge branch 'techtwig:main' into main
sp-rahul Oct 25, 2023
c165e16
added joi validation
sp-rahul Oct 26, 2023
b65bac6
Joi validation pending task
sp-rahul Oct 29, 2023
0ef3848
Merge branch 'techtwig:main' into main
sp-rahul Oct 29, 2023
2352b8c
Merge remote-tracking branch 'origin/main'
sp-rahul Oct 29, 2023
a1ae347
Joi validation pending task
sp-rahul Oct 29, 2023
e013faa
Joi validation pending task
sp-rahul Oct 29, 2023
4bf5db6
Merge branch 'techtwig:main' into main
sp-rahul Oct 29, 2023
3585b5e
budget date issue dix
sp-rahul Oct 29, 2023
89e251a
Merge remote-tracking branch 'origin/main'
sp-rahul Oct 29, 2023
f43906a
budget date issue dix
sp-rahul Oct 30, 2023
1ddd4d5
budget date issue dix
sp-rahul Oct 30, 2023
04f8d81
auto comepele addted
sp-rahul Oct 31, 2023
9d7c372
auto comepele added
sp-rahul Oct 31, 2023
435f021
auto comepele added
sp-rahul Oct 31, 2023
41221f9
auto comepele issue fix, base url set
sp-rahul Oct 31, 2023
49f2d38
autocomeolete task done
sp-rahul Nov 2, 2023
d52fe0d
Merge remote-tracking branch 'origin/main'
sp-rahul Nov 2, 2023
f0f35a7
autocomeolete task done
sp-rahul Nov 2, 2023
5a02b5c
Merge branch 'techtwig:main' into main
sp-rahul Nov 5, 2023
862b973
Merge branch 'techtwig:main' into main
sp-rahul Nov 6, 2023
5e1ec02
login, sign up, tooltip, defaul year added
sp-rahul Nov 8, 2023
457bbb8
login, sign up, tooltip, defaul year added
sp-rahul Nov 10, 2023
ac50dee
Merge remote-tracking branch 'origin/main'
sp-rahul Nov 10, 2023
adb1511
Merge branch 'techtwig:main' into main
sp-rahul Nov 10, 2023
feb7de4
login, sign up, tooltip, defaul year added
sp-rahul Nov 10, 2023
755b800
Merge remote-tracking branch 'origin/main'
sp-rahul Nov 10, 2023
c221c00
yarn lock
sp-rahul Nov 10, 2023
05d68d0
footer position fix
sp-rahul Nov 10, 2023
4164fa9
dashboard scroller issue
sp-rahul Nov 11, 2023
7f80eee
feat terms and support page crreated
sp-rahul Nov 11, 2023
4e13035
Merge branch 'techtwig:main' into main
sp-rahul Nov 12, 2023
cf935fb
settings, contact, support, TC
sp-rahul Nov 12, 2023
900807f
Merge branch 'main' of github.com:sp-rahul/budgeting-app-pwa
sp-rahul Nov 12, 2023
10d5e35
signup page button position fix
sp-rahul Nov 12, 2023
a14201d
loading does not working, so rermoved
sp-rahul Nov 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified api-server-nestjs/.yarn/install-state.gz
Binary file not shown.
1 change: 0 additions & 1 deletion api-server-nestjs/src/.env-example

This file was deleted.

7 changes: 5 additions & 2 deletions api-server-nestjs/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import { AppModule } from './app.module';
import { ValidationPipe } from '@nestjs/common';
/*import { config } from 'dotenv';


config(); // Load environment variables from .env file*/
const PORT = 5000;

async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.useGlobalPipes(new ValidationPipe());
app.enableCors();
await app.listen(5000);
await app.listen(PORT);
console.log('server is running at: ' + PORT);
}

bootstrap()
bootstrap();
Empty file added api-server-nestjs/yarn
Empty file.
12,843 changes: 7,583 additions & 5,260 deletions api-server-nestjs/yarn.lock

Large diffs are not rendered by default.

Binary file modified frontend/.yarn/install-state.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions frontend/app/settings/contact-support/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import ContactSupport from '@/component/settings/ContactSupport';

const Constact = () => {
return <ContactSupport />;
};
export default Constact;
6 changes: 6 additions & 0 deletions frontend/app/settings/notification/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Nofifuactions from '@/component/settings/Notification';

const Notify = () => {
return <Nofifuactions />;
};
export default Notify;
2 changes: 1 addition & 1 deletion frontend/app/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Settings from '@/component/Settings';
import Settings from '@/component/settings/Settings';

const SettingsPage = () => {
return <Settings />;
Expand Down
6 changes: 6 additions & 0 deletions frontend/app/settings/terms-and-support/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import TermsAndSupport from '@/component/settings/TermsAndSupport';

const Terms = () => {
return <TermsAndSupport />;
};
export default Terms;
83 changes: 50 additions & 33 deletions frontend/common/CustomCardForSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,51 +1,68 @@
import {Button, Grid, Typography} from '@mui/material';
import {Box, Button, Grid, Typography} from '@mui/material';
import PlayArrowIcon from '@mui/icons-material/PlayArrow';
import React, {FC, useState} from 'react';
import React, {FC, useEffect, useState} from 'react';
import Drawers from '@/component/DrewerComponent';
import {useRouter} from 'next/navigation';

interface Props {
title: string;
subTitle?: string;
setting?: number;
onClk?: any;
}

const CustomCardForSetting: FC<Props> = ({title, subTitle}) => {
const handleDrewer = () => {
setState(!state);
return;
};
const [state, setState] = useState(false);
const CustomCardForSetting: FC<Props> = ({title, subTitle, setting, onClk}) => {
// const [state, setSate]=React.useState()
// const handleDrewer = () => {
// setState(!state);
// return;
// };
return (
<>
<Grid item xs={7} sx={{p: '20px'}}>
<Typography sx={{fontSize: '17px', fontWeight: '700'}}>
{title}
</Typography>
</Grid>
<Grid item xs={12}>
<Grid
item
xs={5}
container
onClick={onClk}
sx={{
display: 'flex',
alignItems: 'end',
justifyContent: 'right',
p: '20px 0px',
cursor: 'pointer',
'&:hover': {
border: '1px solid #00FF00',
color: 'black',
backgroundColor: 'lightblue',
},
borderRadius: '20px',
}}>
<Typography sx={{opacity: '.3'}}>{subTitle}</Typography>
<Button
onClick={handleDrewer}
<Grid item xs={7} sx={{p: '20px'}}>
<Typography sx={{fontSize: '17px', fontWeight: '700'}}>
{title}
</Typography>
</Grid>
<Grid
item
xs={5}
sx={{
p: '0px 0px',
maxWidth: '20px',
color: 'common.white',
':hover': {
backgroundColor: 'common.white',
},
}}
endIcon={<PlayArrowIcon sx={{color: '#000'}} />}></Button>
display: 'flex',
alignItems: 'end',
justifyContent: 'right',
p: '20px 0px',
}}>
<Typography sx={{opacity: '.3'}}>{subTitle}</Typography>
<Button
// onClick={handleDrewer}
// onClick={handleDrewer}
sx={{
p: '0px 0px',
maxWidth: '20px',
color: 'common.white',
':hover': {
backgroundColor: 'common.white',
},
}}
endIcon={<PlayArrowIcon sx={{color: '#000'}} />}></Button>

<Drawers state={state} setState={setState} />
{/*<Drawers state={state} setState={setState} />*/}
</Grid>
</Grid>
</>
</Grid>
);
};
export default CustomCardForSetting;
1 change: 0 additions & 1 deletion frontend/common/DashboardCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const DashboardCard: FC<Props> = ({title, amount}) => {
borderRadius: '10px',
width: '125px',
float: 'left',
marginRight: '12px',
mb: '7px',
}}>
<Box
Expand Down
10 changes: 3 additions & 7 deletions frontend/common/footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Box, Button, Grid, Tooltip} from '@mui/material';
import {Box, Grid, Tooltip} from '@mui/material';
import HomeRoundedIcon from '@mui/icons-material/HomeRounded';
import AddCircleOutlinedIcon from '@mui/icons-material/AddCircleOutlined';
import React, {FC, useEffect, useState} from 'react';
Expand All @@ -11,7 +11,7 @@ interface IFooter {
currentOption?: number;
newPage?: boolean;
}
const Footer: FC<IFooter> = ({currentOption, newPage}) => {
const Footer: FC<IFooter> = ({currentOption}) => {
const Router = useRouter();
const [selectNewPage, setSelectNewPage] = useState(false);
const [selectOption, setSelectOption] = useState(currentOption);
Expand All @@ -24,11 +24,7 @@ const Footer: FC<IFooter> = ({currentOption, newPage}) => {
return;
};
useEffect(() => {
console.log('Router', Router);
console.log('selectOption', selectOption);
console.log('selectNewPage', selectNewPage);
if (selectOption === 0 && !selectNewPage) {

Router.push('/dashboard', {scroll: false});
}
if (selectOption === 1 && !selectNewPage) {
Expand Down Expand Up @@ -71,7 +67,7 @@ const Footer: FC<IFooter> = ({currentOption, newPage}) => {
alignItems: 'center',
backgroundColor: '#fff',
borderTop: '2px solid #F6F5F6',
width: '429px',
width: '418px',
pb: '15px',
pt: '15px',
}}>
Expand Down
1 change: 1 addition & 0 deletions frontend/component/AddNewBudget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const AddNewBudget = () => {
rules={{
required: true,
}}
defaultValue={currentMonth}
render={({field: {onChange, value}}) => (
<Select
sx={{
Expand Down
7 changes: 5 additions & 2 deletions frontend/component/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const DashBoard = () => {
borderBottomRightRadius: '20px',
borderBottomLeftRadius: '20px',
}}>
<Grid container spacing={1}>
<Grid container rowSpacing={1}>
<Grid item xs={12}>
<Typography
sx={{fontSize: '18px', fontWeight: '700', mt: '40px'}}>
Expand All @@ -61,6 +61,7 @@ const DashBoard = () => {
overflowX: 'auto',
// overflowY: 'hidden',
display: 'flex',
gap: '12px',
}}>
<Box>
<DashboardCard
Expand Down Expand Up @@ -236,7 +237,9 @@ const DashBoard = () => {
</Grid>
</Grid>
</Grid>
<Footer currentOption={0} />
<Grid sx={{ml: '13px'}}>
<Footer currentOption={0} />
</Grid>
</Container>
);
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/component/SignUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ const Signup = ({setSelectedIndex}: any) => {
</Grid>
</Grid>
</Grid>
<Grid item xs={12} sx={{marginLeft: '15px'}}>
<Grid item xs={12}>
<SubmitButton>Create Account</SubmitButton>
</Grid>
</Grid>
Expand Down
5 changes: 3 additions & 2 deletions frontend/component/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import HomeRoundedIcon from '@mui/icons-material/HomeRounded';
import {CustomStyles} from '@/utilities/enums';
import {BarChartComponent} from '@/component/statisticsData/BarChart';
import {useRouter} from 'next/navigation';
import {timeDuration, wallets} from '@/utilities/helper';
import {timeDuration} from '@/utilities/helper';

const Statistics = () => {
const Router = useRouter();
Expand Down Expand Up @@ -227,8 +227,9 @@ const Statistics = () => {
percentage={'1%'}
/>
</Grid>
<Footer currentOption={1} />
</Grid>

<Footer currentOption={1} />
</Container>
);
};
Expand Down
30 changes: 30 additions & 0 deletions frontend/component/settings/ContactSupport.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
'use client';
import {Box, Container, Typography} from '@mui/material';
import {CustomStyles} from '@/utilities/enums';
import BackButton from '@/common/button/BackButton';

const ContactSupport = () => {
return (
<Container
maxWidth={'xs'}
disableGutters={true}
sx={{
minHeight: '100vh',
backgroundColor: '#FEFEFF',
pt: CustomStyles.CONTAINER_TOP,
pl: CustomStyles.CONTAINER_LEFT,
pr: CustomStyles.CONTAINER_RIGHT,
pb: '100px',
position: 'relative',
}}>
<Box>
<BackButton />
</Box>
<Typography sx={{fontSize: '20px', mb: '20px', fontWeight: '700'}}>
Contract support
</Typography>
<Typography>For details visit out web page</Typography>
</Container>
);
};
export default ContactSupport;
30 changes: 30 additions & 0 deletions frontend/component/settings/Notification.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
'use client';
import {Box, Container, Typography} from '@mui/material';
import {CustomStyles} from '@/utilities/enums';
import BackButton from '@/common/button/BackButton';

const Nofifuactions = () => {
return (
<Container
maxWidth={'xs'}
disableGutters={true}
sx={{
minHeight: '100vh',
backgroundColor: '#FEFEFF',
pt: CustomStyles.CONTAINER_TOP,
pl: CustomStyles.CONTAINER_LEFT,
pr: CustomStyles.CONTAINER_RIGHT,
pb: '100px',
position: 'relative',
}}>
<Box>
<BackButton />
</Box>
<Typography sx={{fontSize: '20px', mb: '20px', fontWeight: '700'}}>
Notofiaction
</Typography>
<Typography>For details visit out web page</Typography>
</Container>
);
};
export default Nofifuactions;
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
'use client';
import {Button, Container, Grid, Typography} from '@mui/material';
import Footer from '@/common/footer/Footer';
import React from 'react';
import React, {useEffect, useState} from 'react';
import CustomCardForSetting from '@/common/CustomCardForSettings';
import {CustomStyles} from '@/utilities/enums';
import {useRouter} from 'next/navigation';

const Settings = () => {
const [setting, setSetting] = useState<number>(0);
const Router = useRouter();
const habdleClick = (index: number) => {
console.log('already clicked');
setSetting(index);
};
useEffect(() => {
if (setting === 5) {
Router.push('/settings/terms-and-support', {scroll: false});
} else if (setting === 2) {
Router.push('/settings/notification', {scroll: false});
} else if (setting === 6) {
Router.push('/settings/contact-support', {scroll: false});
}
}, [setting]);
console.log('val', setting);
return (
<Container
maxWidth={'xs'}
Expand Down Expand Up @@ -45,12 +62,22 @@ const Settings = () => {
borderRadius: '40px',
}}>
<CustomCardForSetting title={'Premium'} />
<CustomCardForSetting title={'Notification'} subTitle={'USD'} />
<CustomCardForSetting
title={'Notification'}
subTitle={'USD'}
onClk={() => habdleClick(2)}
/>
<CustomCardForSetting title={'Main currency'} subTitle={'TK'} />
<CustomCardForSetting title={'Language'} />
<CustomCardForSetting title={'Export'} />
<CustomCardForSetting title={'Terms and policies'} />
<CustomCardForSetting title={'Contract support'} />
<CustomCardForSetting
title={'Terms and Support'}
onClk={() => habdleClick(5)}
/>
<CustomCardForSetting
title={'Contract support'}
onClk={() => habdleClick(6)}
/>
</Grid>
</Grid>
<Grid
Expand Down
Loading