Changeset 81c9e25


Ignore:
Timestamp:
02/08/21 20:00:55 (4 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
df62f68
Parents:
6729ba5
Message:

reorganization

Files:
9 added
2 deleted
9 edited
72 moved

Legend:

Unmodified
Added
Removed
  • .gitignore

    r6729ba5 r81c9e25  
    1 *.java.hsp
    2 *.sonarj
    3 *.sw*
    4 .DS_Store
    5 .settings
    6 .springBeans
    7 bin
    8 build.sh
    9 integration-repo
    10 ivy-cache
    11 jxl.log
    12 jmx.log
    13 derby.log
    14 spring-test/test-output/
    15 .gradle
    16 argfile*
    17 activemq-data/
    18 
    19 classes/
    20 /build
    21 buildSrc/build
    22 /spring-*/build
    23 /spring-core/kotlin-coroutines/build
    24 /framework-bom/build
    25 /integration-tests/build
    26 /src/asciidoc/build
    27 target/
    28 
    29 # Eclipse artifacts, including WTP generated manifests
    30 .classpath
    31 .project
    32 spring-*/src/main/java/META-INF/MANIFEST.MF
    33 
    34 # IDEA artifacts and output dirs
    35 *.iml
    36 *.ipr
    37 *.iws
    381.idea
    39 out
    40 test-output
    41 atlassian-ide-plugin.xml
    42 .gradletasknamecache
    43 
    44 # Client APP
  • back_end/src/main/java/it/finki/tinki/model/Users/User.java

    r6729ba5 r81c9e25  
    99import java.util.List;
    1010
    11 @Entity
     11@Entity(name = "users")
    1212@Data
    1313public class User extends Account{
  • back_end/src/main/java/it/finki/tinki/service/AccountService.java

    r6729ba5 r81c9e25  
    1212
    1313public interface AccountService {
     14    boolean hasData();
    1415    Account findUser(String email, String password, AccountType type);
    1516    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  
    1818import org.springframework.stereotype.Service;
    1919
     20import java.util.ArrayList;
    2021import java.util.List;
    2122import java.util.Optional;
     
    5152    }
    5253
     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
    5365    @Override
    5466    public Account findUser(String email, String password, AccountType type) {
  • client_app/public/index.html

    r6729ba5 r81c9e25  
    33  <head>
    44    <meta charset="utf-8" />
    5     <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
     5    <link rel="icon" href="%PUBLIC_URL%/logo.png" />
    66    <meta name="viewport" content="width=device-width, initial-scale=1" />
    77    <meta name="theme-color" content="#000000" />
     
    1010      content="Web site created using create-react-app"
    1111    />
    12     <title>React App</title>
     12    <title>Tinki</title>
    1313  </head>
    1414  <body>
  • client_app/src/components/account_edit/company_edit.js

    r6729ba5 r81c9e25  
    8686                    <Form.Input id="street" name="street" type='text' required fluid label='Street'
    8787                                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>
    8989                </Form>
    9090            </Container>
  • client_app/src/components/account_edit/team_edit.js

    r6729ba5 r81c9e25  
    7777                    <Form.Input id="members" name="members" type="number" required fluid label="Number of members"
    7878                                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>
    8080                </Form>
    8181            </Container>
  • client_app/src/components/account_edit/user_edit.js

    r6729ba5 r81c9e25  
    118118                    <Dropdown placeholder="Skills you want to learn..." fluid multiple value={this.state.toLearn} selection options={this.state.sortedOptions} onChange={this.setToKnow}/>
    119119                    <br/>
    120                     <Button primary type="submit">Edit</Button>
     120                    <Button primary type="submit">Confirm</Button>
    121121                </Form>
    122122            </Container>
  • client_app/src/components/template/header.js

    r6729ba5 r81c9e25  
    22import {Link} from "react-router-dom";
    33import {Menu, MenuItem } from "semantic-ui-react";
    4 
     4import logo from "../../assets/logo.png";
    55
    66const HeaderComp = (props) => {
     
    88        return(
    99            <Menu inverted>
     10                <MenuItem>
     11                    <div className="ui mini image">
     12                        <img src={logo}/>
     13                    </div>
     14                </MenuItem>
    1015                <MenuItem  as={Link} to='/register/user'>
    1116                    Register User
     
    2631            return(
    2732                <Menu inverted>
     33                    <MenuItem>
     34                        <div className="ui mini image">
     35                            <img src={logo}/>
     36                        </div>
     37                    </MenuItem>
    2838                    <Menu.Item as={Link} to='/profile'>
    2939                        Profile
     
    4353            return(
    4454                <Menu inverted>
     55                    <MenuItem>
     56                        <div className="ui mini image">
     57                            <img src={logo}/>
     58                        </div>
     59                    </MenuItem>
    4560                    <Menu.Item as={Link} to='/profile'>
    4661                        Profile
     
    6075            return(
    6176                <Menu inverted>
     77                    <MenuItem>
     78                        <div className="ui mini image">
     79                            <img src={logo}/>
     80                        </div>
     81                    </MenuItem>
    6282                    <Menu.Item as={Link} to='/profile'>
    6383                        Profile
  • client_app/src/components/work_edit/edit_internship.js

    r6729ba5 r81c9e25  
    8888                    <Form.Input id="openSpots" name="openSpots" type='openSpots' value={this.state.openSpots} required fluid label='Open Spots'
    8989                                placeholder='Enter open spots...' onChange={this.handleCheck}/>
    90                     <Button type="submit">Edit</Button>
     90                    <Button type="submit">Confirm</Button>
    9191                </Form>
    9292            </Container>
  • client_app/src/components/work_edit/edit_job.js

    r6729ba5 r81c9e25  
    8686                    <Form.Input id="salary" name="salary" type='number' value={this.state.salary} required fluid label='Salary'
    8787                                placeholder='Enter salary...' onChange={this.handleCheck}/>
    88                     <Button type="submit">Edit</Button>
     88                    <Button type="submit">Confirm</Button>
    8989                </Form>
    9090            </Container>
  • client_app/src/components/work_edit/edit_project.js

    r6729ba5 r81c9e25  
    8282                    <Form.Input id="salary" name="salary" type='number' value={this.state.salary} required fluid label='Salary'
    8383                                placeholder='Enter salary...' onChange={this.handleCheck}/>
    84                     <Button type="submit">Edit</Button>
     84                    <Button type="submit">Confirm</Button>
    8585                </Form>
    8686            </Container>
Note: See TracChangeset for help on using the changeset viewer.