Commit Graph

175 Commits

Author SHA1 Message Date
Jonny d557a21d90 Extract the ranged map function 2019-05-29 00:19:27 +02:00
Jonny 7c1928dce3 Adjust the style of the dominance shower view 2019-05-29 00:19:26 +02:00
Jonny 9fc909e257 Extract the tournament information view for more consisten looks 2019-05-29 00:19:26 +02:00
Jonny dd7168da4f Add most / least dominant team and styling for statistics 2019-05-29 00:04:33 +02:00
Jonny 25dfd57708 Add a client side animation of the collapse of the current standings table 2019-05-29 00:04:33 +02:00
Jonny b1810fb2ee Make current standings table collapsible 2019-05-29 00:04:33 +02:00
Jonny 287ffe6cc5 Sort performances by their rank and not by their differences 2019-05-29 00:04:32 +02:00
Jonny 9a8230f254 Add rank to the current standings 2019-05-29 00:04:32 +02:00
Jonny c66f9cf128 Remove the grey background from statistics view 2019-05-29 00:04:32 +02:00
Jonny f2f7263095 Fix a bug preventing the favicon from showing on certain sites 2019-05-29 00:04:32 +02:00
Jonny d857a4e159 Properly style the buttons on the tournament and its statistics 2019-05-29 00:03:40 +02:00
Jonny 3bc7768bec Add button to return to tournament from statistics 2019-05-29 00:02:40 +02:00
Felix Hamme e402fab71b Merge remote-tracking branch 'origin/master' into ticket/TURNIERE-207 2019-05-29 00:01:54 +02:00
Jonny 435f24cef8 Add button to get directly back to the tournament 2019-05-29 00:01:03 +02:00
Jonny bfe89b6387 Introduce a more uniform look for the tournament statistics 2019-05-29 00:01:03 +02:00
Jonny 7976d8b0f3 Sort the teams accordings to match and point differential 2019-05-29 00:01:03 +02:00
Jonny 41b05e446d Add first prototype for the table view 2019-05-29 00:01:03 +02:00
Jonny c33acb586a Add empty page for statistics of a tournament 2019-05-29 00:01:03 +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
JP1998 f3c429692c Make the login and register components clear errors as soon as they are mounted 2019-04-11 14:13:43 +02:00
JP1998 4964040ad8 Fix bug showing public tournaments as private 2019-04-11 13:00:02 +02:00
JP1998 0a1678ed51 Make the create-page actually send the data to the api 2019-04-11 12:57:40 +02:00
Jonny 74aa5c67fd
Merge branch 'master' into ticket/TURNIERE-131 2019-04-11 08:17:08 +02:00
JP1998 45136aa1d6 Fix a bug which crashes the site when there is no internet connection
In case there is no internet connection axios will not return a response object
with the error after a request. Since we still tried to access said object the
website crashed when there was no internet connection.
2019-04-09 17:03:04 +02:00
JP1998 6035da058e Restrict access to the modal for users that are not the owner of the tournament 2019-04-09 17:00:49 +02:00
JP1998 2b1d7b084e Pull up signed in and username properties from EditButton to TournamentPage
This makes us able to provide these fields in lower components without having to
rebind the state to the properties of this component.
This will be needed to restrct access to the modal allowing the user to modify scores.
2019-04-09 16:58:56 +02:00
betanummeric 0ae54f5f61
Merge branch 'master' into ticket/TURNIERE-134 2019-04-09 10:53:08 +02:00
JP1998 73fa9213b8 Add the favicon to all pages 2019-04-09 10:18:55 +02:00
JP1998 5f1a8877df Fix a bug causing the server to always create an error 2019-04-09 09:55:45 +02:00
JP1998 f1e206db0b Clean imports in all the javascript files 2019-04-09 09:52:51 +02:00
JP1998 c4ce39f353 Move EditableStringList into the component folder 2019-04-09 09:29:27 +02:00
JP1998 7838237f4b Export all the common components into their own files 2019-04-09 09:22:12 +02:00
JP1998 fb93feed45 Make the tournament page correctly handle status codes from the backend 2019-04-08 11:41:48 +02:00
JP1998 a8fec087b7 Edit the appearance of the errors in the edit tournament page 2019-04-08 11:16:58 +02:00
JP1998 cbe5343a64 Resolve any errors in the syntax 2019-04-08 11:08:43 +02:00
JP1998 8796bbf553 Add several restrictions to the edit tournament page 2019-04-08 10:51:11 +02:00
JP1998 110f862bc3 Change the SignedInEnforcer to a more flexible and versatile UserRestrictor 2019-04-08 10:20:31 +02:00
JP1998 4dc55a93d2 Remove the edit button from tournaments that the user is not the owner of 2019-04-08 09:43:42 +02:00
JP1998 41eacfc999 Add first prototype of the restriction of content 2019-04-08 09:21:37 +02:00
JP1998 069c2c2148 Fix an issue with some buttons that appeared in grey instead of white 2019-04-03 11:12:04 +02:00
JP1998 d307cdb907 Resolve conflicts and style issues 2018-12-13 08:49:01 +01:00
Jonny 4ecd4bd207
Merge branch 'master' into ticket/TURNIERE-113 2018-12-13 08:12:06 +01:00
JP1998 fb69be4735 Assign a unique id to elements on /t/:code/edit 2018-12-12 22:44:52 +01:00
JP1998 498e0353c1 Resolve conflicts and fix style issues 2018-12-12 21:54:07 +01:00
Jonny e77e3f6dc8
Merge branch 'master' into ticket/TURNIERE-105 2018-12-12 21:32:02 +01:00
JP1998 8612b88ff7 Resolve conflicts and style issues 2018-12-12 21:25:01 +01:00
Jonny 4dd5298176
Merge branch 'master' into ticket/TURNIERE-104 2018-12-12 21:12:36 +01:00
JP1998 e66638dcc0 Fix code style issues 2018-12-12 20:59:37 +01:00
JP1998 cbaa1b8270 Fix issue with order of mounting of components
Since the credentials were checked in the componentDidMount of the App
but the tournamen was loaded in the componentDidMount of the EditTournament component,
which was done first. Thus the auth headers were cleared, and the user was logged out.
2018-12-12 20:47:45 +01:00
Felix Hamme 5c55ff025b Update data processing in public tournament list due to changed api 2018-12-12 18:43:53 +01:00
JP1998 ec0a75e5df Implement editing of team names 2018-12-12 17:50:03 +01:00
JP1998 30b2891b72 Add display of team names 2018-12-12 16:23:23 +01:00
Felix Hamme 68aeade599 Fix footer spacing on tournament edit page 2018-12-12 16:02:16 +01:00
JP1998 909faff65c Create a first draft of the edit-tournament-page 2018-12-12 15:43:34 +01:00
Felix Hamme 21d43ab641 Minor design tweak for matches 2018-12-11 22:04:36 +01:00
Felix Hamme 0eb4df58cf Write the name of the tournament owner in the tournament view 2018-12-11 16:05:44 +01:00
Felix Hamme 115df26572 Make code for MatchTable in tournament view more readable (fFix react error message) 2018-12-11 16:01:25 +01:00
Felix Hamme b30971385f Fetch single tournaments from the api in tournament view 2018-12-11 15:56:56 +01:00
Felix Hamme a9f38ce6f6 In tournament view: Iterate over stages and write method for level name 2018-12-11 13:52:39 +01:00
JP1998 9124edc3f2 Fix all the styling issues in all the files 2018-12-09 23:46:21 +01:00
Felix Hamme 8cc2647258 Design score edit input fields in tournament view 2018-12-09 00:48:35 +01:00
Felix Hamme 0bbaaa4d3b Change match hover design 2018-12-08 00:44:49 +01:00
Felix Hamme 7bbeee9e25 Design matches on the tournament page 2018-12-07 14:49:47 +01:00