Jonny
38e24a2ec1
Fix some code issues from eslint
2019-05-29 09:42:03 +02:00
Jonny
a0bcd328e6
Fix bug preventing the request for the actual statistics to come through
2019-05-29 08:05:22 +02:00
Jonny
f1ca2d3d82
Merge branch 'master' into ticket/TURNIERE-148
2019-05-29 04:43:38 +02:00
JP1998
3aab76972b
Add redux state and api calls for the statistics
2019-05-29 03:58:29 +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
Felix Hamme
7848d3d81d
Implement starting a match, make backend calls
2019-05-28 22:03:17 +02:00
Felix Hamme
a40ecd56e9
Move axios wrapper methods to new file backendApi
2019-05-12 12:21:24 +02:00
Felix Hamme
6bea32b08a
Move actionType and defaultState definitions from api.js to own files
2019-05-12 12:21:24 +02:00
Felix Hamme
d12af2731f
use camleCase identifiers in api.js
2019-05-09 14:48:43 +02:00
Felix Hamme
b40c0382a8
Automatically apply eslint rules
2019-05-09 14:48:43 +02:00
Felix Hamme
f4cf04ad25
Formatting: satisfy Hound
2019-05-08 13:59:11 +02:00
Thor77
e858200a7a
Fix envvar problem
2019-05-08 10:54:00 +02:00
Felix Hamme
0a2c180d6a
Replace hardcoded backend url with environment variable (works only server-side) (required client-side tough, so it doesn't work (wait till next commit, Thor77 has a lovely fix for that))
...
(This commit was definitely not changed because I nagged about it wasn't working...)
2019-05-08 09:40:00 +02:00
Jonny
b30a3a759e
Merge branch 'master' into ticket/TURNIERE-156
2019-05-02 08:52:18 +02:00
Felix Hamme
a1828c30c3
Review changes: code cleanup
2019-05-01 15:53:22 +02:00
Felix Hamme
fd3085e1f1
Change code formatting to satisfy Hound
2019-04-28 04:27:41 +02:00
Felix Hamme
b300049e1e
Merge branch 'master' into ticket/TURNIERE-141
2019-04-28 04:22:14 +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
Felix Hamme
60c8bff55d
Greet the user with a toast notification when he logs in or out [now done with success callback methods]
2019-04-27 13:30:34 +02:00
Felix Hamme
f243b69a5e
Revert "Greet the user after login with a toast"
...
This reverts commit b85ce62b
2019-04-27 13:27:26 +02:00
Felix Hamme
bf8a9431bf
Revert "Say goodbye to the user when he logs out"
...
This reverts commit 7b38b503
2019-04-27 13:27:11 +02:00
Felix Hamme
7b38b503ef
Say goodbye to the user when he logs out
2019-04-23 20:47:07 +02:00
Felix Hamme
b85ce62b2f
Greet the user after login with a toast
2019-04-23 15:41:43 +02:00
Jonny
dfb709d37e
Remove the wrapping data object from the response of login
2019-04-18 10:19:37 +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
a8c5586a34
Disable rehydration of error messages
...
Since errors are cleared before the state is rehydrated the
clearing of the errors are dismissed when rehydrating. Thus
we'll have to clear the errors whenever the state is being
rehydrated.
2019-04-17 23:58:10 +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
betanummeric
c2dcd5946c
Merge branch 'master' into ticket/TURNIERE-121
2019-04-16 10:34:40 +02:00
JP1998
5a34b415f2
Add API method for clearing existing errors
2019-04-11 14:07:59 +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
JP1998
e2569b30c8
Add API method for creating a tournament
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
8796bbf553
Add several restrictions to the edit tournament page
2019-04-08 10:51:11 +02:00
JP1998
d307cdb907
Resolve conflicts and style issues
2018-12-13 08:49:01 +01:00
JP1998
e66638dcc0
Fix code style issues
2018-12-12 20:59:37 +01:00
JP1998
ec0a75e5df
Implement editing of team names
2018-12-12 17:50:03 +01:00
JP1998
909faff65c
Create a first draft of the edit-tournament-page
2018-12-12 15:43:34 +01:00
JP1998
d81a8f8cc6
Change the way the request methods get the current state
...
Since the state cannot be retrieved while the store has changes to be dispatched
the actual state (which is used for building the auth headers for requests) has
to be retrieved beforehand and given to the action as parameter.
2018-12-11 13:34:18 +01:00
JP1998
5aa97e162d
Add actually functioning style check and fix style in api.js
2018-12-06 09:57:51 +01:00
JP1998
ba12956abc
Add verification of credentials after loading page
2018-12-03 15:48:05 +01:00
JP1998
df75387164
Fix login and logout to actually work
...
Because of several issues the auth token has not been stored,
which lead to severe errors when trying to log out.
This issue has now been solved.
2018-12-03 15:20:14 +01:00
JP1998
f85863d965
Remove header, that is no longer being transmitted
2018-12-03 14:41:59 +01:00
JP1998
d0337fb640
Add actually working login and logout
2018-12-03 14:33:32 +01:00
Felix Hamme
9dd2466e10
Export request methods in api.js and include the api url in them
2018-12-03 12:46:02 +01:00
JP1998
fdfcd5087d
Add saving and sending of authentication headers
...
The actual authentication headers are now able to be easily sent
and saved for and after every request to the api.
2018-11-30 16:41:28 +01:00
JP1998
a927f97e32
Solve a bug with the error messages of unknown errors when logging in
2018-11-30 13:22:40 +01:00