Changeset 81c9e25
- Timestamp:
- 02/08/21 20:00:55 (4 years ago)
- Branches:
- master
- Children:
- df62f68
- Parents:
- 6729ba5
- Files:
-
- 9 added
- 2 deleted
- 9 edited
- 72 moved
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r6729ba5 r81c9e25 1 *.java.hsp2 *.sonarj3 *.sw*4 .DS_Store5 .settings6 .springBeans7 bin8 build.sh9 integration-repo10 ivy-cache11 jxl.log12 jmx.log13 derby.log14 spring-test/test-output/15 .gradle16 argfile*17 activemq-data/18 19 classes/20 /build21 buildSrc/build22 /spring-*/build23 /spring-core/kotlin-coroutines/build24 /framework-bom/build25 /integration-tests/build26 /src/asciidoc/build27 target/28 29 # Eclipse artifacts, including WTP generated manifests30 .classpath31 .project32 spring-*/src/main/java/META-INF/MANIFEST.MF33 34 # IDEA artifacts and output dirs35 *.iml36 *.ipr37 *.iws38 1 .idea 39 out40 test-output41 atlassian-ide-plugin.xml42 .gradletasknamecache43 44 # Client APP -
back_end/src/main/java/it/finki/tinki/model/Users/User.java
r6729ba5 r81c9e25 9 9 import java.util.List; 10 10 11 @Entity 11 @Entity(name = "users") 12 12 @Data 13 13 public class User extends Account{ -
back_end/src/main/java/it/finki/tinki/service/AccountService.java
r6729ba5 r81c9e25 12 12 13 13 public interface AccountService { 14 boolean hasData(); 14 15 Account findUser(String email, String password, AccountType type); 15 16 Account registerUser(String email, String password, String name, String surname, List<Skill> retainedSkills, List<Skill> skillsToLearn); -
back_end/src/main/java/it/finki/tinki/service/impl/AccountServiceImpl.java
r6729ba5 r81c9e25 18 18 import org.springframework.stereotype.Service; 19 19 20 import java.util.ArrayList; 20 21 import java.util.List; 21 22 import java.util.Optional; … … 51 52 } 52 53 54 55 @Override 56 public boolean hasData() { 57 58 List<User> users = this.userRepository.findAll(); 59 List<Company> companies = this.companyRepository.findAll(); 60 List<Team> teams = this.teamRepository.findAll(); 61 62 return users.size() > 0 || companies.size() > 0 || teams.size() > 0; 63 } 64 53 65 @Override 54 66 public Account findUser(String email, String password, AccountType type) { -
client_app/public/index.html
r6729ba5 r81c9e25 3 3 <head> 4 4 <meta charset="utf-8" /> 5 <link rel="icon" href="%PUBLIC_URL%/ favicon.ico" />5 <link rel="icon" href="%PUBLIC_URL%/logo.png" /> 6 6 <meta name="viewport" content="width=device-width, initial-scale=1" /> 7 7 <meta name="theme-color" content="#000000" /> … … 10 10 content="Web site created using create-react-app" 11 11 /> 12 <title> React App</title>12 <title>Tinki</title> 13 13 </head> 14 14 <body> -
client_app/src/components/account_edit/company_edit.js
r6729ba5 r81c9e25 86 86 <Form.Input id="street" name="street" type='text' required fluid label='Street' 87 87 placeholder='Enter address street.' value={this.state.street} onChange={this.handleCheck}/> 88 <Form.Field control={Button}> Register</Form.Field>88 <Form.Field control={Button}>Confirm</Form.Field> 89 89 </Form> 90 90 </Container> -
client_app/src/components/account_edit/team_edit.js
r6729ba5 r81c9e25 77 77 <Form.Input id="members" name="members" type="number" required fluid label="Number of members" 78 78 placeholder="Enter member count." value={this.state.members} onChange={this.handleCheck}/> 79 <Form.Field control={Button}> Register</Form.Field>79 <Form.Field control={Button}>Confirm</Form.Field> 80 80 </Form> 81 81 </Container> -
client_app/src/components/account_edit/user_edit.js
r6729ba5 r81c9e25 118 118 <Dropdown placeholder="Skills you want to learn..." fluid multiple value={this.state.toLearn} selection options={this.state.sortedOptions} onChange={this.setToKnow}/> 119 119 <br/> 120 <Button primary type="submit"> Edit</Button>120 <Button primary type="submit">Confirm</Button> 121 121 </Form> 122 122 </Container> -
client_app/src/components/template/header.js
r6729ba5 r81c9e25 2 2 import {Link} from "react-router-dom"; 3 3 import {Menu, MenuItem } from "semantic-ui-react"; 4 4 import logo from "../../assets/logo.png"; 5 5 6 6 const HeaderComp = (props) => { … … 8 8 return( 9 9 <Menu inverted> 10 <MenuItem> 11 <div className="ui mini image"> 12 <img src={logo}/> 13 </div> 14 </MenuItem> 10 15 <MenuItem as={Link} to='/register/user'> 11 16 Register User … … 26 31 return( 27 32 <Menu inverted> 33 <MenuItem> 34 <div className="ui mini image"> 35 <img src={logo}/> 36 </div> 37 </MenuItem> 28 38 <Menu.Item as={Link} to='/profile'> 29 39 Profile … … 43 53 return( 44 54 <Menu inverted> 55 <MenuItem> 56 <div className="ui mini image"> 57 <img src={logo}/> 58 </div> 59 </MenuItem> 45 60 <Menu.Item as={Link} to='/profile'> 46 61 Profile … … 60 75 return( 61 76 <Menu inverted> 77 <MenuItem> 78 <div className="ui mini image"> 79 <img src={logo}/> 80 </div> 81 </MenuItem> 62 82 <Menu.Item as={Link} to='/profile'> 63 83 Profile -
client_app/src/components/work_edit/edit_internship.js
r6729ba5 r81c9e25 88 88 <Form.Input id="openSpots" name="openSpots" type='openSpots' value={this.state.openSpots} required fluid label='Open Spots' 89 89 placeholder='Enter open spots...' onChange={this.handleCheck}/> 90 <Button type="submit"> Edit</Button>90 <Button type="submit">Confirm</Button> 91 91 </Form> 92 92 </Container> -
client_app/src/components/work_edit/edit_job.js
r6729ba5 r81c9e25 86 86 <Form.Input id="salary" name="salary" type='number' value={this.state.salary} required fluid label='Salary' 87 87 placeholder='Enter salary...' onChange={this.handleCheck}/> 88 <Button type="submit"> Edit</Button>88 <Button type="submit">Confirm</Button> 89 89 </Form> 90 90 </Container> -
client_app/src/components/work_edit/edit_project.js
r6729ba5 r81c9e25 82 82 <Form.Input id="salary" name="salary" type='number' value={this.state.salary} required fluid label='Salary' 83 83 placeholder='Enter salary...' onChange={this.handleCheck}/> 84 <Button type="submit"> Edit</Button>84 <Button type="submit">Confirm</Button> 85 85 </Form> 86 86 </Container>
Note:
See TracChangeset
for help on using the changeset viewer.