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

slrmun_ravindu #1

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
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
cf5def9
Commented in Git Ignore
akindu-k Jan 4, 2024
10ba1e1
update .gitignore
GitUserRavindu Jan 4, 2024
6ee6fce
Merge branch 'slrmun_Ravindu' of https://github.com/RotaractMora/slrm…
akindu-k Jan 4, 2024
268209e
dropdown changes
akindu-k Jan 4, 2024
93141fc
toast packages
akindu-k Jan 4, 2024
da4a588
update FPSSubmission.jsx
GitUserRavindu Jan 4, 2024
6ae0b66
Merge branch 'slrmun_Ravindu' of https://github.com/RotaractMora/slrm…
akindu-k Jan 4, 2024
8247d9b
updated with toast
GitUserRavindu Jan 4, 2024
01c8269
Merge branch 'slrmun_Ravindu' of https://github.com/RotaractMora/slrm…
akindu-k Jan 4, 2024
b86818d
Update UserProfile.jsx 2
GitUserRavindu Jan 5, 2024
7e72578
Remove country selection dropdown and update FPS submission
GitUserRavindu Jan 5, 2024
3288432
Merge branch 'slrmun_Ravindu' of https://github.com/RotaractMora/slrm…
akindu-k Jan 5, 2024
e11f3fb
update UserDetailsForm.jsx and Registration.jsx
GitUserRavindu Jan 5, 2024
357d3b4
Merge branch 'slrmun_Ravindu' of https://github.com/RotaractMora/slrm…
akindu-k Jan 5, 2024
3b2e836
Sidepanel order changed
GitUserRavindu Jan 5, 2024
3e7f435
update CommitteeSelection.jsx and styles.jsx
GitUserRavindu Jan 5, 2024
b621282
Undo the changes to CommitteeSelection.jsx and styles.jsx
GitUserRavindu Jan 5, 2024
62d5037
preference selection with move up and down buttons initial
sdtperera Jan 5, 2024
df125c4
Merge branch 'slrmun_Ravindu' of https://github.com/RotaractMora/slrm…
sdtperera Jan 5, 2024
038babb
user preference update not working
sdtperera Jan 5, 2024
ee51130
commented on payments.jsx
akindu-k Jan 6, 2024
d57e70c
added moveup and down icons
GitUserRavindu Jan 6, 2024
30eb519
Preference Order, Status messages
GitUserRavindu Jan 6, 2024
fa95140
Merge branch 'slrmun_Ravindu' of https://github.com/RotaractMora/slrm…
GitUserRavindu Jan 6, 2024
2c09d34
updated the committee list
akindu-k Jan 6, 2024
a538c2d
Remove older payment component
GitUserRavindu Jan 6, 2024
9828bcf
perference order styles
sdtperera Jan 6, 2024
69611f2
Merge branch 'slrmun_Ravindu' of https://github.com/RotaractMora/slrm…
sdtperera Jan 6, 2024
36cf579
set userRegistrationStatus based on preference_list
sdtperera Jan 6, 2024
ed0bc06
add new images and duplicate in slrmun directory
sdtperera Jan 6, 2024
eb0ce58
fix typo
sdtperera Jan 6, 2024
5dcdb2a
spelling error
akindu-k Jan 6, 2024
1263ab6
update userrow.jsx and usertable.jsx
GitUserRavindu Jan 7, 2024
5ac4dd5
update userrow.jsx and usertable.jsx , added new columns to the table
GitUserRavindu Jan 8, 2024
f6ee7ff
update UserManagement.jsx, userManagement.js
GitUserRavindu Jan 8, 2024
2b76f1b
Update userManagement.js
GitUserRavindu Jan 8, 2024
150a274
Update committeeSelection.jsx, added toast
GitUserRavindu Jan 9, 2024
55a9ec2
Update UserRow.jsx
GitUserRavindu Jan 9, 2024
58e7c77
Update UserRow.jsx
GitUserRavindu Jan 9, 2024
301c944
Update UserRow.jsx
GitUserRavindu Jan 9, 2024
201af87
Updated UserRow.jsx and UserTable.jsx
GitUserRavindu Jan 10, 2024
52742cf
Added required attribute to the address in UserDetailsForm.jsx
GitUserRavindu Jan 11, 2024
ec6dcc8
Update CommitteeSelection.jsx
akindu-k Jan 11, 2024
9487a40
Reservation Updated
GitUserRavindu Jan 11, 2024
1856678
Merge branch 'slrmun_Ravindu' of https://github.com/RotaractMora/slrm…
GitUserRavindu Jan 11, 2024
bc68069
Update CommitteeSelection.jsx
GitUserRavindu Jan 11, 2024
1848b91
Reservation details styles changed.
GitUserRavindu Jan 11, 2024
4318a6e
Update ForeignInstructions.jsx
GitUserRavindu Jan 12, 2024
f3ffa1a
Update FroupDropDown.jsx
GitUserRavindu Jan 13, 2024
dfae421
Update on CommitteeSelection.jsx
akindu-k Jan 14, 2024
d93686e
Update ForeignInstructions.jsx
akindu-k Jan 16, 2024
54f8ca8
Updated CommitteeSelection.jsx and ForeignInstructions.jsx
GitUserRavindu Jan 17, 2024
fa05c40
Payment Details updated
GitUserRavindu Jan 22, 2024
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
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
/build

# firebase service account
/push_data/serviceAccountKey.json
# /push_data/serviceAccountKey.json

# google apis
/src/constants/secrets.js
#/src/constants/secrets.js

# misc
.DS_Store
Expand Down
294 changes: 158 additions & 136 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"react-firebase-hooks": "^5.0.2",
"react-router-dom": "^6.2.1",
"react-scripts": "5.0.0",
"react-toastify": "^9.1.3",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
Binary file added public/images/committee-logos/al.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/committee-logos/ga4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/committee-logos/uncsw.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/committee-logos/unep.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/committee-logos/who.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/country-flags/canada.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/country-flags/denmark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/country-flags/iraq.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/country-flags/saudi-arabia.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/country-flags/south-korea.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/country-flags/sweden.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/country-flags/syria.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/slrmun/images/committee-logos/al.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/slrmun/images/committee-logos/ga4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/slrmun/images/committee-logos/ipc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/slrmun/images/committee-logos/sochum.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/slrmun/images/committee-logos/uncsw.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/slrmun/images/committee-logos/unep.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/slrmun/images/committee-logos/unhrc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/slrmun/images/committee-logos/unsc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/slrmun/images/committee-logos/who.jpg
Binary file added public/slrmun/images/country-flags/al-jazeera.jpg
Binary file added public/slrmun/images/country-flags/albania.jpg
Binary file added public/slrmun/images/country-flags/argentina.jpg
Binary file added public/slrmun/images/country-flags/armenia.jpg
Binary file added public/slrmun/images/country-flags/australia.jpg
Binary file added public/slrmun/images/country-flags/bahrain.jpg
Binary file added public/slrmun/images/country-flags/bangladesh.jpg
Binary file added public/slrmun/images/country-flags/bbc.jpg
Binary file added public/slrmun/images/country-flags/belarus.jpg
Binary file added public/slrmun/images/country-flags/belaruse.jpg
Binary file added public/slrmun/images/country-flags/belgium.jpg
Binary file added public/slrmun/images/country-flags/benin.jpg
Binary file added public/slrmun/images/country-flags/bolivia.jpg
Binary file added public/slrmun/images/country-flags/brazil.jpg
Binary file added public/slrmun/images/country-flags/burundi.jpg
Binary file added public/slrmun/images/country-flags/cameroon.jpg
Binary file added public/slrmun/images/country-flags/canada.jpg
Binary file added public/slrmun/images/country-flags/chad.jpg
Binary file added public/slrmun/images/country-flags/chilie.jpg
Binary file added public/slrmun/images/country-flags/china.jpg
Binary file added public/slrmun/images/country-flags/comoros.jpg
Binary file added public/slrmun/images/country-flags/costa-rica.jpg
Binary file added public/slrmun/images/country-flags/croatia.jpg
Binary file added public/slrmun/images/country-flags/cuba.jpg
Binary file added public/slrmun/images/country-flags/default-flag.jpg
Binary file added public/slrmun/images/country-flags/denmark.jpg
Binary file added public/slrmun/images/country-flags/djibouti.jpg
Binary file added public/slrmun/images/country-flags/egypt.jpg
Binary file added public/slrmun/images/country-flags/eritrea.jpg
Binary file added public/slrmun/images/country-flags/estonia.jpg
Binary file added public/slrmun/images/country-flags/finland.jpg
Binary file added public/slrmun/images/country-flags/france.jpg
Binary file added public/slrmun/images/country-flags/gambia.jpg
Binary file added public/slrmun/images/country-flags/germany.jpg
Binary file added public/slrmun/images/country-flags/ghana.jpg
Binary file added public/slrmun/images/country-flags/hungary.jpg
Binary file added public/slrmun/images/country-flags/india.jpg
Binary file added public/slrmun/images/country-flags/indonesia.jpg
Binary file added public/slrmun/images/country-flags/iran.jpg
Binary file added public/slrmun/images/country-flags/iraq.jpg
Binary file added public/slrmun/images/country-flags/ireland.jpg
Binary file added public/slrmun/images/country-flags/israel.jpg
Binary file added public/slrmun/images/country-flags/italy.jpg
Binary file added public/slrmun/images/country-flags/japan.jpg
Binary file added public/slrmun/images/country-flags/jordan.jpg
Binary file added public/slrmun/images/country-flags/kazakhstan.jpg
Binary file added public/slrmun/images/country-flags/kenya.jpg
Binary file added public/slrmun/images/country-flags/kuwait.jpg
Binary file added public/slrmun/images/country-flags/lebanon.jpg
Binary file added public/slrmun/images/country-flags/liberia.jpg
Binary file added public/slrmun/images/country-flags/libiya.jpg
Binary file added public/slrmun/images/country-flags/lithuania.jpg
Binary file added public/slrmun/images/country-flags/luxembourg.jpg
Binary file added public/slrmun/images/country-flags/malaysia.jpg
Binary file added public/slrmun/images/country-flags/mauritania.jpg
Binary file added public/slrmun/images/country-flags/mexico.jpg
Binary file added public/slrmun/images/country-flags/mongolia.jpg
Binary file added public/slrmun/images/country-flags/montenegro.jpg
Binary file added public/slrmun/images/country-flags/morocco.jpg
Binary file added public/slrmun/images/country-flags/nepal.jpg
Binary file added public/slrmun/images/country-flags/news-first.jpg
Binary file added public/slrmun/images/country-flags/nigeria.jpg
Binary file added public/slrmun/images/country-flags/norway.jpg
Binary file added public/slrmun/images/country-flags/oman.jpg
Binary file added public/slrmun/images/country-flags/pakistan.jpg
Binary file added public/slrmun/images/country-flags/paraguay.jpg
Binary file added public/slrmun/images/country-flags/poland.jpg
Binary file added public/slrmun/images/country-flags/qatar.jpg
Binary file added public/slrmun/images/country-flags/reuters.jpg
Binary file added public/slrmun/images/country-flags/russia.jpg
Binary file added public/slrmun/images/country-flags/senegal.jpg
Binary file added public/slrmun/images/country-flags/singapore.jpg
Binary file added public/slrmun/images/country-flags/slovakia.jpg
Binary file added public/slrmun/images/country-flags/slovenia.jpg
Binary file added public/slrmun/images/country-flags/somalia.jpg
Binary file added public/slrmun/images/country-flags/spain.jpg
Binary file added public/slrmun/images/country-flags/sri-lanka.jpg
Binary file added public/slrmun/images/country-flags/sudan.jpg
Binary file added public/slrmun/images/country-flags/sweden.jpg
Binary file added public/slrmun/images/country-flags/syria.jpg
Binary file added public/slrmun/images/country-flags/tunisia.jpg
Binary file added public/slrmun/images/country-flags/turkiye.jpg
Binary file added public/slrmun/images/country-flags/uae.jpg
Binary file added public/slrmun/images/country-flags/ukraine.jpg
Binary file added public/slrmun/images/country-flags/usa.jpg
Binary file added public/slrmun/images/country-flags/uzbekistan.jpg
Binary file added public/slrmun/images/country-flags/venezuela.jpg
Binary file added public/slrmun/images/country-flags/yemen.jpg
Binary file added public/slrmun/images/country-flags/zimbabwe.jpg
5 changes: 5 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import "./App.css";

import { AuthProvider } from "./firebase/Auth";


import React from 'react';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

function App() {
const bas_theme = createTheme();
const styles = theme_config(bas_theme);
Expand Down
Binary file added src/assets/images/move_down.png
Binary file added src/assets/images/move_up.png
14 changes: 8 additions & 6 deletions src/components/grouped-drop-down/GroupedDropDown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,22 @@ import {
} from "@material-ui/core";
import React from "react";

const GroupedDropDown = ({ data, selected, groupLabel, categorized }) => {
const GroupedDropDown = ({ data, selected, groupLabel, categorized , onSelectionChange }) => {
return (
<FormControl sx={{ m: 1, minWidth: 120 }}>
<InputLabel htmlFor="grouped-select">{groupLabel}</InputLabel>

{data ? (
categorized ? (
<Select
defaultValue={selected.id}
<Select
defaultValue={selected!=undefined? (selected.id):("0")}
id="grouped-select"
label={groupLabel}
onChange={(e) => onSelectionChange(e.target.value)}
>
<ListSubheader>Selected</ListSubheader>
<MenuItem value={selected.id}>{selected.text}</MenuItem>
{selected!=undefined ? (<MenuItem value={selected.id}>{selected.text}</MenuItem>):(null)}
{/* <MenuItem value={selected.id}>{selected.text}</MenuItem> */}
{Object.entries(data).map((group, key) => {
return [
<ListSubheader key={key}>{group[0]}</ListSubheader>,
Expand All @@ -33,7 +35,7 @@ const GroupedDropDown = ({ data, selected, groupLabel, categorized }) => {
})}
</Select>
) : (
<Select value={selected.id} id="grouped-select" label={groupLabel}>
<Select value={selected.id} id="grouped-select" label={groupLabel} onChange={(e) => onSelectionChange(e.target.value)}>
<ListSubheader>Selected</ListSubheader>
<MenuItem value={selected.id}>{selected.text}</MenuItem>
<ListSubheader>Available</ListSubheader>
Expand All @@ -45,7 +47,7 @@ const GroupedDropDown = ({ data, selected, groupLabel, categorized }) => {
</Select>
)
) : (
<Select defaultValue={0} id="grouped-select" label={groupLabel}>
<Select defaultValue={0} id="grouped-select" label={groupLabel} onChange={(e) => onSelectionChange(e.target.value)}>
<MenuItem value={0}>None</MenuItem>
</Select>
)}
Expand Down
20 changes: 10 additions & 10 deletions src/components/side-panel/SidePanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,6 @@ const SidePanel = ({ cross, setShowSidePanel }) => {
onClick={() => setShowSidePanel(false)}
/>
) : null}
{visibilityArray[1] ? (
<ListItem
text={"Committee Selection"}
DispIcon={AccountBalanceIcon}
link={COMMITTEE_SELECTION}
active={current_path === COMMITTEE_SELECTION}
collapsed={collapsed}
onClick={() => setShowSidePanel(false)}
/>
) : null}
{visibilityArray[2] ? (
<ListItem
text={"Payments"}
Expand All @@ -123,6 +113,16 @@ const SidePanel = ({ cross, setShowSidePanel }) => {
onClick={() => setShowSidePanel(false)}
/>
) : null}
{visibilityArray[1] ? (
<ListItem
text={"Committee Selection"}
DispIcon={AccountBalanceIcon}
link={COMMITTEE_SELECTION}
active={current_path === COMMITTEE_SELECTION}
collapsed={collapsed}
onClick={() => setShowSidePanel(false)}
/>
) : null}
{visibilityArray[3] ? (
<ListItem
text={"FPS Submission"}
Expand Down
53 changes: 47 additions & 6 deletions src/components/user-details-form/UserDetailsForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,24 +86,41 @@ const UserDetailsForm = ({ userData, setUserData, getPassword }) => {
value={userData.email ? userData.email : ""}
onChange={(e) => setUserData({ ...userData, email: e.target.value })}
/>
<div className={classes.inputPair}>
<div>
<TextField
id="mobile_number"
label="Mobile Number"
required
fullWidth
variant="outlined"
margin="normal"
value={userData.mobile_number ? userData.mobile_number : ""}
onChange={(e) => setUserData({ ...userData, mobile_number: e.target.value })}
/>
</div>
{/* <TextField
id="mun_experience"
label="MUN Experience (years)"
required
InputProps={{
className: [classes.marginR, classes.input].join(" "),
className: [classes.marginL, classes.input].join(" "),
}}
type="number"
variant="outlined"
margin="normal"
value={userData.mobile_number ? userData.mobile_number : ""}
value={
userData.mun_experience ? parseInt(userData.mun_experience) : 0
}
onChange={(e) =>
setUserData({ ...userData, mobile_number: e.target.value })
setUserData({ ...userData, mun_experience: e.target.value })
}
/>
/> */}


<div className={classes.inputPair}>
<TextField
id="mun_experience"
label="MUN Experience (years)"
label="No. of MUN Conferences"
required
InputProps={{
className: [classes.marginL, classes.input].join(" "),
Expand All @@ -118,7 +135,30 @@ const UserDetailsForm = ({ userData, setUserData, getPassword }) => {
setUserData({ ...userData, mun_experience: e.target.value })
}
/>
<TextField
id="mun_awards"
label="MUN Awards"
required
InputProps={{
className: [classes.marginR, classes.input].join(" "),
}}
type="number"
variant="outlined"
margin="normal"
value={
userData.mun_awards ? parseInt(userData.mun_awards) : 0
}
onChange={(e) =>
setUserData({ ...userData, mun_awards: e.target.value })
}
/>
</div>






<div className={classes.root}>
<FormControl component="fieldset" className={classes.formControl}>
<FormLabel component="legend">Current Status</FormLabel>
Expand Down Expand Up @@ -185,6 +225,7 @@ const UserDetailsForm = ({ userData, setUserData, getPassword }) => {
id="residence_address"
label="Residence Address"
fullWidth
required
variant="outlined"
margin="normal"
value={userData.residence_address ? userData.residence_address : ""}
Expand Down
7 changes: 7 additions & 0 deletions src/constants/secrets.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const FIREBASE_API_KEY = "AIzaSyDEkgZGfXIWn2maHMjGDC3uM2K2TRCUDGw";
export const FIREBASE_AUTH_DOMAIN = "slrmun-24.firebaseapp.com";
export const FIREBASE_DATABSE_URL = "https://slrmun-24-default-rtdb.asia-southeast1.firebasedatabase.app";
export const FIREBASE_PROJECT_ID = "slrmun-24";
export const FIREBASE_STORAGE_BUCKET = "slrmun-24.appspot.com";
export const FIREBASE_MESSAGING_SENDER_ID = "1091767194271";
export const FIREBASE_APP_ID= "1:1091767194271:web:a0abfc27df30661a5cc8aa";
Loading