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

Develop #22

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c488dfb
Merge pull request #16 from AI4Bharat/homepage
KunalTiwary Dec 13, 2023
0382ae8
Merge pull request #18 from AI4Bharat/homepage
KunalTiwary Dec 13, 2023
a316b0b
resolved issues
sagarika-padmanaban Dec 13, 2023
64facae
resolved issues
sagarika-padmanaban Dec 13, 2023
3912a30
resolved issues
sagarika-padmanaban Dec 13, 2023
9110b04
resolved issues
sagarika-padmanaban Dec 13, 2023
d40c6ea
added google login
Dec 13, 2023
64addc0
resolved issues
sagarika-padmanaban Dec 14, 2023
59a984c
Merge pull request #21 from AI4Bharat/workspace
ishvindersethi22 Dec 14, 2023
f9ef38d
email and password based login
Dec 14, 2023
e0c5255
Merge branch 'develop' into googleLogin
kartikvirendrar Dec 14, 2023
c0f4a92
env file changes
kartikvirendrar Dec 14, 2023
ea47904
Create .env.example
kartikvirendrar Dec 14, 2023
9f1de48
env file changes
kartikvirendrar Dec 14, 2023
f765141
resolved issues
sagarika-padmanaban Dec 14, 2023
928e695
Merge branch 'develop' into workspace
sagarika-padmanaban Dec 14, 2023
3517578
resolved issues
sagarika-padmanaban Dec 14, 2023
f9acfc5
Merge pull request #24 from AI4Bharat/frontend
ishvindersethi22 Dec 14, 2023
2adeb08
added build check for pull requests to develop branch
kartikvirendrar Dec 14, 2023
0c2a0e7
Update nextjs.yml
kartikvirendrar Dec 14, 2023
2e1beab
Update nextjs.yml
kartikvirendrar Dec 14, 2023
a921d28
Merge branch 'develop' into googleLogin
kartikvirendrar Dec 14, 2023
943c93c
Merge pull request #25 from AI4Bharat/cicd-patch
ishvindersethi22 Dec 14, 2023
e63f1da
Merge pull request #20 from AI4Bharat/googleLogin
ishvindersethi22 Dec 14, 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
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NEXT_PUBLIC_API-KEY= ""
NEXT_PUBLIC_AUTH-DOMAIN= ""
NEXT_PUBLIC_PROJECT-ID= ""
NEXT_PUBLIC_STORAGE-BUCKET= ""
NEXT_PUBLIC_MSG-SENDER-ID= ""
NEXT_PUBLIC_APP-ID= ""
NEXT_PUBLIC_MEASUREMENT-ID= ""
5 changes: 5 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["develop"]
pull_request:
branches: ["develop"]


# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -87,6 +90,8 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'

steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ npm-debug.log*

# local env files
.env*.local
.env

# vercel
.vercel
.vercel
485 changes: 346 additions & 139 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
"@mui/icons-material": "^5.14.18",
"@mui/material": "^5.14.18",
"@mui/styles": "^5.14.18",
"firebase": "^10.6.0",
"firebase": "^10.7.1",
"firebase-auth": "^0.1.2",
"@mui/x-date-pickers-pro": "^6.18.4",
"mui-datatables": "^4.3.0",
"next": "14.0.3",
"react": "^18",
"react-date-range": "^1.4.0",
"react-dom": "^18",
"react-router-dom": "^6.20.1"
},
Expand Down
83 changes: 3 additions & 80 deletions src/app/change-password/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import IconButton from "@material-ui/core/IconButton";
import Visibility from "@material-ui/icons/Visibility";
import VisibilityOff from "@material-ui/icons/VisibilityOff";
import CustomButton from "../components/common/Button";


const ChangePassword = (props) => {
Expand Down Expand Up @@ -49,22 +50,7 @@ import {
message: "",
variant: "success",
});

// const apiLoading = useSelector(state => state.apiStatus.loading);
// const apiMessage = useSelector(state => state.apiStatus.message);
// const apiError = useSelector(state => state.apiStatus.error);
// useEffect(() => {
// setSnackbarInfo({
// open: apiMessage ? true : false,
// variant: apiError ? "error" : "success",
// message: apiMessage ,
// });
// }, [apiMessage, apiError])

// useEffect(() => {
// setLoading(apiLoading);
// }, [apiLoading])


const handleClickShowPassword = () => {
setValues({ ...values, showPassword: !values.showPassword });
};
Expand All @@ -79,70 +65,7 @@ import {
const handleMouseDownPassword = (event) => {
event.preventDefault();
};
// const loggedInUserData = useSelector(
// (state) => state.fetchLoggedInUserData.data
// );

// const handleChangePassword = async () => {
// setNewPassword("")
// setCurrentPassword("")
// setConfirmPassword("")
// const ChangePassword = {
// new_password: newPassword,
// current_password: currentPassword,
// confirm_password: confirmPassword
// }
// if(newPassword!==confirmPassword){
// setSnackbarInfo({
// ...snackbar,
// open: true,
// message: "New Password and Confirm Password must match",
// variant: 'error'
// })
// }
// else{
// const userObj = new ChangePasswordAPI(loggedInUserData.id,ChangePassword);
// const res = await fetch(userObj.apiEndPoint(), {
// method: "PATCH",
// body: JSON.stringify(userObj.getBody()),
// headers: userObj.getHeaders().headers,
// });
// const resp = await res.json();
// if (res.ok) {
// setSnackbarInfo({
// open: true,
// message: resp?.message,
// variant: "success",
// })

// } else {
// setSnackbarInfo({
// open: true,
// message: resp?.message,
// variant: "error",
// })
// }
// }

// }



// const renderSnackBar = () => {
// return (
// <CustomizedSnackbars
// open={snackbar.open}
// handleClose={() =>
// setSnackbarInfo({ open: false, message: "", variant: "" })
// }
// anchorOrigin={{ vertical: "top", horizontal: "right" }}
// variant={snackbar.variant}
// message={[snackbar.message]}
// />
// );
// };



return (
<ThemeProvider theme={themeDefault}>
{loading && <Spinner />}
Expand Down
Loading
Loading