Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Matúš Valko
Online Gaming Management System
Commits
e6fd3bdc
Commit
e6fd3bdc
authored
Jun 14, 2022
by
Marek Kadlečík
Browse files
Add more sample players
parent
f8ff6438
Pipeline
#144748
passed with stage
in 1 minute
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gaming-sample-data/src/main/java/cz/muni/fi/pa165/sampledata/SampleDataLoadingFacadeImpl.java
View file @
e6fd3bdc
...
...
@@ -12,8 +12,6 @@ import cz.muni.fi.pa165.services.tournament.TournamentService;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.crypto.argon2.Argon2PasswordEncoder
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
import
org.springframework.stereotype.Component
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -44,11 +42,14 @@ public class SampleDataLoadingFacadeImpl implements SampleDataLoadingFacade {
TeamEntity
g2_esports
=
team
(
"g2_esports"
,
CountryEnum
.
GERMANY
);
TeamEntity
skt_t1
=
team
(
"skt_t1"
,
CountryEnum
.
SOUTH_KOREA
);
PlayerEntity
crimsix
=
player
(
"9384b466-badf-40ca-bbeb-4d8f6eb98042"
,
"Ian Porter"
,
"poter"
,
PlayerEntity
poter
=
player
(
"9384b466-badf-40ca-bbeb-4d8f6eb98042"
,
"Ian Porter"
,
"poter"
,
"heslo"
,
true
,
CountryEnum
.
AFGHANISTAN
,
g2_esports
,
5
,
6
,
7
);
PlayerEntity
JJoNak
=
player
(
"6e374a4e-5213-4581-847c-45f9e73ffe90"
,
"Bang Seong-hyun "
,
"bang"
,
PlayerEntity
bang
=
player
(
"6e374a4e-5213-4581-847c-45f9e73ffe90"
,
"Bang Seong-hyun"
,
"bang"
,
"heslo"
,
true
,
CountryEnum
.
ALBANIA
,
skt_t1
,
15
,
25
,
100
);
PlayerEntity
great
=
player
(
"3f41380c-ebca-11ec-8ea0-0242ac120002"
,
"John Great"
,
"great"
,
"heslo"
,
false
,
CountryEnum
.
AFGHANISTAN
,
g2_esports
,
9
,
1
,
50
);
PlayerEntity
galvo
=
player
(
"5863e83e-ebca-11ec-8ea0-0242ac120002"
,
"Pablo Galvani"
,
"galvo"
,
"heslo"
,
false
,
CountryEnum
.
ALBANIA
,
skt_t1
,
14
,
15
,
70
);
log
.
info
(
"Loaded Sample Players."
);
TournamentEntity
msi
=
tournament
(
"MSI"
,
"Ottawa"
,
CountryEnum
.
SOUTH_KOREA
,
10000
,
TournamentFormat
.
DEFAULT
,
10
);
...
...
gaming-spring-mvc/src/main/webapp/WEB-INF/jsp/match/list.jsp
View file @
e6fd3bdc
...
...
@@ -26,7 +26,7 @@
<tbody>
<c:forEach
items=
"
${
matches
}
"
var=
"match"
>
<tr>
<td><c:out
value=
"
${
match
.
tournament
.
city
}
"
/></td>
<td><c:out
value=
"
${
match
.
tournament
.
name
}
"
/></td>
<td><c:out
value=
"
${
match
.
teams
.
size
()
}
"
/></td>
<td><c:out
value=
"
${
match
.
playerList
.
size
()
}
"
/></td>
<td>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment