Commit Graph

46 Commits

Author SHA1 Message Date
Jonny f99492c809 Add redirect to the tournament after successful creation 2019-06-18 16:09:35 +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 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
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
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
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 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
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 4f079d75ec Merge branch 'master' into ticket/TURNIERE-138 2019-04-17 10:02:08 +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
Jonny 23447c7afe Merge branch 'master' into ticket/TURNIERE-139 2019-04-16 14:16:51 +02:00
Jonny e50dc7d293 Add proper logic for removing teams with the group stage 2019-04-16 12:38:35 +02:00
Jonny 8aad4d614d Make groups visible and add the teams to the groups 2019-04-16 10:51:48 +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 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 0a1678ed51 Make the create-page actually send the data to the api 2019-04-11 12:57:40 +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 cbe5343a64 Resolve any errors in the syntax 2019-04-08 11:08:43 +02:00
JP1998 110f862bc3 Change the SignedInEnforcer to a more flexible and versatile UserRestrictor 2019-04-08 10:20:31 +02:00
JP1998 41eacfc999 Add first prototype of the restriction of content 2019-04-08 09:21:37 +02: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
JP1998 9124edc3f2 Fix all the styling issues in all the files 2018-12-09 23:46:21 +01:00
Felix Hamme f7d532dc21 Implement team names editor for tournament creation 2018-11-15 15:46:46 +01:00
Felix Hamme 6207049fa1 Design static part of create-tournament page; generify the full page background design (previously login.css) 2018-11-12 23:37:11 +01:00
JP1998 a954a546f4 Add titles to all the pages and read query parameters 2018-11-08 11:05:21 +01:00
JP1998 e0f402f218 Add the initial backbone of the frontend
This commit adds all the pages that are going to exist.
2018-11-07 13:58:22 +01:00