Commit Graph

232 Commits

Author SHA1 Message Date
Thor77 3cc29eafc2
Remove deprecated CustomInput 2022-06-11 23:16:06 +02:00
Thor77 2130b94970
Move EditableStringList style to component
https://nextjs.org/docs/basic-features/built-in-css-support#adding-component-level-css
2022-06-11 23:16:06 +02:00
Thor77 c34831610a
Remove deprecated InputGroupAddon 2022-06-11 23:16:05 +02:00
Thor77 0c61fcf570
Move bootstrap css import to _app.js 2022-06-11 23:16:05 +02:00
Thor77 77e39b691c
Remove Container and useless favicon dependency
https://nextjs.org/docs/messages/app-container-deprecated
https://nextjs.org/docs/api-reference/next/head
2022-06-11 23:16:05 +02:00
Thor77 185f0d5534
Move all css imports into _app.js
https://nextjs.org/docs/basic-features/built-in-css-support
2022-06-11 23:16:04 +02:00
Daniel Schädler aa00dcc6b3
#Sellout 2022-05-29 23:40:33 +02:00
Felix Hamme 5589e8c97e Use loading page for tournament edit page 2019-06-20 16:10:17 +02:00
Felix Hamme 8b773d5067 Use loading page for tournament statistics page 2019-06-20 15:57:39 +02:00
Felix Hamme c380c2ae80 Use loading page for tournament page 2019-06-20 15:40:36 +02:00
Felix Hamme 778d017302 Continuing merge: link tournament view, edit and statistics pages between each other, use new design from merged branch 2019-06-19 18:55:04 +02:00
Felix Hamme ecc1401042 Continuing merge: add Statistics button to tournament page 2019-06-19 17:53:56 +02:00
Felix Hamme 3df9f44c92 Merge remote-tracking branch 'origin/master' into ticket/TURNIERE-148
# Conflicts:
#	js/api.js
#	pages/tournament.js
2019-06-19 16:39:48 +02:00
Felix Hamme 9897257748 Redesign tournament header/properties 2019-06-18 22:29:33 +02:00
betanummeric 34f4eb9fb2
Merge branch 'master' into ticket/TURNIERE-236 2019-06-18 21:27:26 +02:00
betanummeric 46bb62bf87
Merge branch 'master' into ticket/TURNIERE-237 2019-06-18 20:21:48 +02:00
Jonny f99492c809 Add redirect to the tournament after successful creation 2019-06-18 16:09:35 +02:00
Jonny 8baa6fe9f0 Add modal to describe registration process instead of a toast 2019-06-18 16:06:53 +02:00
Felix Hamme 4068c7c621 Add link to create-tournament-page on private and public tournament list 2019-06-18 14:07:11 +02:00
Jonny 70047a2e55 Add notifications and redirect after trying to register 2019-06-18 13:49:12 +02:00
Felix Hamme d421cb2974 Add error message and prevent submit on tournament creation if not all groups are 100% full 2019-06-17 22:42:51 +02:00
Felix Hamme 0c1f896360 Make group advance input error message more verbose 2019-06-17 22:28:24 +02:00
Felix Hamme 682db6f832 Cleanup: Use reactstrap components instead of buggy "self-coded" stuff 2019-06-17 22:26:58 +02:00
Felix Hamme 59153eca7a Merge remote-tracking branch 'origin/master' into ticket/TURNIERE-239 2019-06-17 20:28:46 +02:00
Felix Hamme 4cc2660551 Code style fixes 2019-06-17 19:40:53 +02:00
Jonny 39164053ff Add warning popup for invalid values 2019-06-16 19:17:40 +02:00
Jonny 932cefff7b Make sanity check before sending create request to backend 2019-06-16 18:28:37 +02:00
Jonny 5b64dc6c0e Remove upper bounds for numeric inputs 2019-06-16 18:25:13 +02:00
Felix Hamme 99ca99ea38 Add a collapse button for all matches in a group stage
The button defaults to show if the playoff hasn't started, otherwise to hide.
2019-06-14 22:56:52 +02:00
Felix Hamme 5a9d543a01 Implement group stage 2019-06-14 22:23:58 +02:00
Felix Hamme 112e5b7a81 Refactoring: Move Stage, playoff stages out of tournament.js 2019-06-14 22:03:38 +02:00
Felix Hamme fed0516334 Refactoring: Move api call and conversion out of tournament.js 2019-06-14 21:51:51 +02:00
Jonny 71d66fdb74 Extract the numeric input as single component 2019-06-14 14:26:36 +02:00
Jonny e8c78539ae Make consistent style with the second number selection 2019-06-14 14:26:36 +02:00
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
Jonny 38e24a2ec1 Fix some code issues from eslint 2019-05-29 09:42:03 +02:00
Jonny 7f28252ae8 Fix bug preventing the edit match modal from showing to the owner 2019-05-29 08:32:42 +02:00
Jonny 3286120f26 Add detection of empty statistics and show according message 2019-05-29 08:13:20 +02:00
Jonny f1ca2d3d82
Merge branch 'master' into ticket/TURNIERE-148 2019-05-29 04:43:38 +02:00
JP1998 54cca0f1d1 Add actual API call to retrieve the statistics 2019-05-29 04:42:26 +02:00
JP1998 d24e464f8e Adjust the title and image header to new API data 2019-05-29 04:06:06 +02:00
JP1998 da4b5ac2e5 Adjust DominanceShower to the actually implemented API data 2019-05-29 04:03:32 +02:00
Jonny abfded9e0f Adjust names of the used data to the (expected) backend names 2019-05-29 00:23:40 +02:00
Jonny 2ea9668f38 Extract the dominance shower view 2019-05-29 00:23:40 +02:00
Jonny beffd24855 Extract the standings table view 2019-05-29 00:23:39 +02:00
Jonny 3e9307a79d Remove custom css and replace it with bootstrap classes 2019-05-29 00:19:27 +02:00
Jonny e07378ba92 Extract the findTeam-function 2019-05-29 00:19:27 +02:00
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