Changeset db94dbd
- Timestamp:
- 01/14/21 22:54:45 (4 years ago)
- Branches:
- master
- Children:
- 5b36317
- Parents:
- be373a8
- Location:
- client_app
- Files:
-
- 4 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/package-lock.json
rbe373a8 rdb94dbd 1137 1137 "integrity": "sha512-ij4wRiunFfaJxjB0BdrYHIH8FxBJpOwNPhhAcunlmPdXudL1WQV1qoP9un6JsEBAgQH+7UXyyjh0g7jTxXK6tg==" 1138 1138 }, 1139 "@date-fns/upgrade": { 1140 "version": "1.0.3", 1141 "resolved": "https://registry.npmjs.org/@date-fns/upgrade/-/upgrade-1.0.3.tgz", 1142 "integrity": "sha512-0BLzKmXwWw3Zh3cZzW4xScmwGijXCAulaFdikqNiSnK8PAgYYSWWxOP/kuJFpKaoIT5KzstVGyHsjA7t/QXi1Q==", 1143 "requires": { 1144 "date-fns": "^2.1" 1145 } 1146 }, 1139 1147 "@eslint/eslintrc": { 1140 1148 "version": "0.2.2", … … 3997 4005 } 3998 4006 }, 4007 "classnames": { 4008 "version": "2.2.6", 4009 "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz", 4010 "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==" 4011 }, 3999 4012 "clean-css": { 4000 4013 "version": "4.2.3", … … 4766 4779 "whatwg-mimetype": "^2.3.0", 4767 4780 "whatwg-url": "^8.0.0" 4781 } 4782 }, 4783 "date-fns": { 4784 "version": "2.16.1", 4785 "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.16.1.tgz", 4786 "integrity": "sha512-sAJVKx/FqrLYHAQeN7VpJrPhagZc9R4ImZIWYRFZaaohR3KzmuK88touwsSwSVT8Qcbd4zoDsnGfX4GFB4imyQ==" 4787 }, 4788 "dayzed": { 4789 "version": "3.2.1", 4790 "resolved": "https://registry.npmjs.org/dayzed/-/dayzed-3.2.1.tgz", 4791 "integrity": "sha512-3jnjfUOGxGA31iYAR2QfiDzWVfl3ccejm7/ya5P1gYpOtc9b4PEcl0xUAf7f74czEteAC/oPQCspNv/LAJlIYw==", 4792 "requires": { 4793 "@babel/runtime": "^7.6.2", 4794 "date-fns": "^2.0.0" 4768 4795 } 4769 4796 }, … … 6658 6685 "mime-types": "^2.1.12" 6659 6686 } 6687 }, 6688 "format-string-by-pattern": { 6689 "version": "1.2.1", 6690 "resolved": "https://registry.npmjs.org/format-string-by-pattern/-/format-string-by-pattern-1.2.1.tgz", 6691 "integrity": "sha512-x7JY+q8XvBmHCf4ZSQiiG+8fmC02oiei1JoAsUcdHcy8Kn6LwaE1KUlQ8ph3fNnIcWY65B3aVuKArdbAEQxpLg==" 6660 6692 }, 6661 6693 "forwarded": { … … 12502 12534 } 12503 12535 }, 12536 "react-semantic-ui-datepickers": { 12537 "version": "2.12.0", 12538 "resolved": "https://registry.npmjs.org/react-semantic-ui-datepickers/-/react-semantic-ui-datepickers-2.12.0.tgz", 12539 "integrity": "sha512-IlwyruitM42x/EIcb7aZOaJZxl7aWr/ckib+0Xut4cCURQwYz+LiWxWZhVmHmCgT2lZS6QCXDbyfAxvRnXEqww==", 12540 "requires": { 12541 "@babel/runtime": "7.12.1", 12542 "@date-fns/upgrade": "1.0.3", 12543 "classnames": "2.2.6", 12544 "core-js": "3.6.5", 12545 "date-fns": "2.16.1", 12546 "dayzed": "3.2.1", 12547 "format-string-by-pattern": "1.2.1", 12548 "react-fast-compare": "3.2.0" 12549 }, 12550 "dependencies": { 12551 "@babel/runtime": { 12552 "version": "7.12.1", 12553 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz", 12554 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==", 12555 "requires": { 12556 "regenerator-runtime": "^0.13.4" 12557 } 12558 }, 12559 "core-js": { 12560 "version": "3.6.5", 12561 "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.5.tgz", 12562 "integrity": "sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA==" 12563 } 12564 } 12565 }, 12504 12566 "read-pkg": { 12505 12567 "version": "2.0.0", -
client_app/package.json
rbe373a8 rdb94dbd 12 12 "react-router-dom": "^5.2.0", 13 13 "react-scripts": "4.0.1", 14 "react-semantic-ui-datepickers": "^2.12.0", 14 15 "semantic-ui-css": "^2.4.1", 15 16 "semantic-ui-react": "^2.0.1", -
client_app/src/components/main/App.js
rbe373a8 rdb94dbd 21 21 import EditCompany from "../account_edit/company_edit"; 22 22 import EditTeam from "../account_edit/team_edit"; 23 import JobRegister from "../work_register/job_register"; 24 import InternshipRegister from "../work_register/internship_register"; 25 import ProjectRegister from "../work_register/project_register"; 23 26 24 27 class App extends Component{ … … 55 58 <Route path={"/company/edit"} render={() => <EditCompany oldUser={this.state.currentUser} updateUser={this.updateUser} message={this.setSuccess}/>}/> 56 59 <Route path={"/team/edit"} render={() => <EditTeam oldUser={this.state.currentUser} updateUser={this.updateUser} message={this.setSuccess}/>}/> 60 <Route path={"/register/job"} render={() => <JobRegister accountId={this.state.currentUser.id} type={this.state.currentUser.type} updateJobs={this.updateJobs} />}/> 61 <Route path={"/register/internship"} render={() => <InternshipRegister accountId={this.state.currentUser.id} type={this.state.currentUser.type} updateInternships={this.updateInternships} />}/> 62 <Route path={"/register/project"} render={() => <ProjectRegister accountId={this.state.currentUser.id} type={this.state.currentUser.type} updateInternships={this.updateProjects} />}/> 57 63 <Route path={"/logout"} render={() => <Redirect to={"/login"}/>}/> 58 64 <Route path={"/"} render={() => <Redirect to={"/login"}/>}/> … … 83 89 } 84 90 91 updateJobs = (job) => { 92 this.setState(prevState => ({ 93 currentUser:{ 94 ...prevState.currentUser, 95 jobs: [...prevState.currentUser.jobs, job] 96 } 97 })) 98 } 99 100 updateInternships = (internship) => { 101 this.setState(prevState => ({ 102 currentUser:{ 103 ...prevState.currentUser, 104 internships: [...prevState.currentUser.internships, internship] 105 } 106 })) 107 } 108 109 updateProjects = (project) => { 110 this.setState(prevState => ({ 111 currentUser:{ 112 ...prevState.currentUser, 113 projects: [...prevState.currentUser.projects, project] 114 } 115 })) 116 } 117 85 118 attemptLogin = (email, password, type) => { 86 119 UserLogin.login(email, password, type).then((res) =>{ -
client_app/src/components/work/company_internships.js
rbe373a8 rdb94dbd 10 10 return( 11 11 <Container textAlign="left"> 12 <Button as={Link} to={"/ internships/add"} primary>Add</Button>13 <h1>Registered Jobs:</h1>12 <Button as={Link} to={"/register/internship"} primary>Add</Button> 13 <h1>Registered Internships:</h1> 14 14 {props.userProfile.internships.map(item =>{ 15 15 return <Internships -
client_app/src/components/work/company_jobs.js
rbe373a8 rdb94dbd 10 10 return( 11 11 <Container textAlign="left"> 12 <Button as={Link} to={"/ job/add"} primary>Add</Button>12 <Button as={Link} to={"/register/job"} primary>Add</Button> 13 13 <h1>Registered Jobs:</h1> 14 14 {props.userProfile.jobs.map(item =>{ -
client_app/src/components/work/team_jobs.js
rbe373a8 rdb94dbd 10 10 return( 11 11 <Container textAlign="left"> 12 <Button as={Link} to={"/ job/add"} primary>Add</Button>12 <Button as={Link} to={"/register/job"} primary>Add</Button> 13 13 <h1>Registered Jobs:</h1> 14 14 {props.userProfile.jobs.map(item =>{ -
client_app/src/components/work/team_projects.js
rbe373a8 rdb94dbd 10 10 return( 11 11 <Container textAlign="left"> 12 <Button as={Link} to={"/ project/add"} primary>Add</Button>13 <h1>Registered Jobs:</h1>12 <Button as={Link} to={"/register/project"} primary>Add</Button> 13 <h1>Registered Projects:</h1> 14 14 {props.userProfile.projects.map(item =>{ 15 15 return <Projects
Note:
See TracChangeset
for help on using the changeset viewer.