Commit Graph

119 Commits

Author SHA1 Message Date
Jonny e58cfdc288 Add new input, which increases the group advance exponentially 2019-06-14 14:26:36 +02:00
Jonny 8c6304fac7 Actually send the playoff_teams_amount parameter 2019-06-14 14:26:36 +02:00
betanummeric e18cfcd9ea
Merge branch 'master' into ticket/TURNIERE-135 2019-06-10 20:54:47 +02:00
Jonny ba701f675a
Merge branch 'master' into ticket/TURNIERE-243 2019-06-10 18:13:40 +02:00
Felix Hamme 39a8de0d21 Replace the profile page with a login mask if the user is not signed in 2019-06-06 18:31:00 +02:00
Felix Hamme 4854847454 Merge branch 'ticket/TURNIERE-243' into ticket/TURNIERE-135 2019-06-06 18:26:56 +02:00
Felix Hamme 0172625387 Simplify the default usecase of UserRestrictor by creating RequireLogin and applying it to the create and private pages 2019-06-06 18:23:58 +02:00
Felix Hamme f2af9fac12 Add mail address change form with corresponding backend calls 2019-06-06 15:46:32 +02:00
Felix Hamme 9ff387cced Create a profile page that displays the username and e-mail 2019-06-06 14:39:39 +02:00
Felix Hamme 4e8a690d2a Make calls to api for changing match scores 2019-06-06 12:06:09 +02:00
Felix Hamme 78e511f228 Disable end-match-button if the scores are equal and the match is in playoff stage 2019-06-06 12:06:09 +02:00
Felix Hamme e402fab71b Merge remote-tracking branch 'origin/master' into ticket/TURNIERE-207 2019-05-29 00:01:54 +02:00
Felix Hamme 134844973e Implement ending a match: make backend calls, replace match states {team1_won, team2_won, undecided} with {finished}, hold the match data in Match.js in state instead of in props, reorder internal match data storage 2019-05-29 00:00:54 +02:00
JP1998 3fc8a5d291 Check the group advance input for valid values 2019-05-28 23:10:07 +02:00
JP1998 2defc3df22 Refactor the handleGroupSizeInput method 2019-05-28 22:55:19 +02:00
JP1998 3bb902b033 Check for invalid inputs before applying new group size 2019-05-28 16:54:51 +02:00
Felix Hamme 97ba7726ed Move Match and belongings out of tournament.js to new file Match.js 2019-05-12 12:21:24 +02:00
Felix Hamme a40ecd56e9 Move axios wrapper methods to new file backendApi 2019-05-12 12:21:24 +02:00
Felix Hamme 7b5e18cc9e Move everypage.css into css directory 2019-05-12 12:21:24 +02:00
Felix Hamme b3243f6a5c Format every js file to comply with the new eslint rules 2019-05-09 14:48:43 +02:00
Felix Hamme b40c0382a8 Automatically apply eslint rules 2019-05-09 14:48:43 +02:00
Jonny b30a3a759e
Merge branch 'master' into ticket/TURNIERE-156 2019-05-02 08:52:18 +02:00
Felix Hamme 1af7ee413f Change the list of public tournaments to share some redundant code with the list of private tournaments 2019-04-28 04:21:01 +02:00
Felix Hamme dac0c33272 Implement page for displaying the list of private tournaments 2019-04-28 04:18:18 +02:00
Felix Hamme 6aeb97ae99 Remove unused code 2019-04-28 03:06:40 +02:00
Felix Hamme 9b56b2eddb Merge branch 'master' into ticket/TURNIERE-141 2019-04-27 13:32:37 +02:00
JP1998 2217212a4a Refactoring the createTeamArray-method 2019-04-23 23:52:22 +02:00
Jonny 6af5f9dc72 Add logic for creation of the data for group stages 2019-04-23 11:27:02 +02:00
Felix Hamme 45d2b221eb Apply css files in the same order everywhere (eliminate warning by mini-css-extract-plugin) 2019-04-22 16:43:14 +02:00
Jonny 2bc3fe24b3 Remove manual clearing of errors
Since the errors are now always cleared upon rehydration of the
application state, we can now safely remove the api method
clearErrors() and also remove calls to this method.
2019-04-18 00:03:28 +02:00
Jonny f97fc23a4c Format the error messages for registering 2019-04-17 16:30:00 +02:00
Felix Hamme 4f079d75ec Merge branch 'master' into ticket/TURNIERE-138 2019-04-17 10:02:08 +02:00
Felix Hamme 0b35c6c84d Begin implementing page for private tournaments 2019-04-17 09:59:09 +02:00
JP1998 75f7186ca7 Fix a bug logging the user out when calling certain sites
This has happened because the store was being updated before
it was rehydrated, and thus first saving an empty state, which
is thereafter being loaded when rehydrating the application state.
2019-04-16 23:20:51 +02:00
Felix Hamme b0b6fb84e0 Use smaller scope for variables 2019-04-16 14:25:42 +02:00
Felix Hamme 303f774989 Use strong typed comparison expressions 2019-04-16 14:17:33 +02:00
Jonny 23447c7afe Merge branch 'master' into ticket/TURNIERE-139 2019-04-16 14:16:51 +02:00
Felix Hamme 47b4c4602b Replace disgusting code with beautiful code 2019-04-16 14:13:01 +02:00
Jonny e50dc7d293 Add proper logic for removing teams with the group stage 2019-04-16 12:38:35 +02:00
Jonny 6962f50ac6 Remove unused import 2019-04-16 10:54:25 +02:00
Jonny 8aad4d614d Make groups visible and add the teams to the groups 2019-04-16 10:51:48 +02:00
betanummeric c2dcd5946c
Merge branch 'master' into ticket/TURNIERE-121 2019-04-16 10:34:40 +02:00
Jonny 0bd92b2ada Create / Rename properties needed for the group view 2019-04-16 09:50:13 +02:00
JP1998 f0aa1af2a1 Create rational bounds for the group size and number of advancing teams 2019-04-16 09:50:13 +02:00
JP1998 b0949f28d5 Create proper animation for the group phase section
The appearance and disappearance of the group phase section will now be animated.
The animation will have to be adjusted at some point, since currently the height
is hardcoded.
The reason for the library is, that react-bootstrap doesn't support
animations anymore as of
https://github.com/react-bootstrap/react-overlays/issues/146#issuecomment-282036734
2019-04-16 09:47:50 +02:00
JP1998 d957ad417d Rename property 'fadeIn' to 'groupPhaseEnabled'
I think this name is much more descriptive of what this property actually represents.
2019-04-16 08:55:33 +02:00
JP1998 148686b7c1 Fix bug preventing the owner of a tournament from starting / editing matches 2019-04-11 16:25:24 +02:00
JP1998 980d2eac3d Fix a bug, which causes the tournament site to crash
Whenever a match in the play off stage of a tournament has not had a team determined
yet the tournament site would crash on it since it expected two team objects attached.
2019-04-11 16:19:17 +02:00
JP1998 2e93076d79 Fix a bug where you are logged out after reloading the /create page 2019-04-11 15:53:27 +02:00
JP1998 9525aa68d5 Correctly format the sent data 2019-04-11 15:35:37 +02:00