Skip to content

Commit b6d440b

Browse files
committed
Update players. Reformat using prettier.
1 parent 87d67d8 commit b6d440b

File tree

3 files changed

+51
-87
lines changed

3 files changed

+51
-87
lines changed

src/components/Board.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function appendPlayerPoolTeams() {
2121
(p) => !playersInTeams.includes(p),
2222
);
2323

24-
_chunk(playerPoolPlayerNames, 8).map((playerNames, index) => {
24+
_chunk(playerPoolPlayerNames, 7).map((playerNames, index) => {
2525
const id = `playerpool-${index}`;
2626
teams[id] = { id, playerNames };
2727
});
@@ -160,7 +160,7 @@ class Board extends React.Component {
160160

161161
<div
162162
id="app-playerpool"
163-
className="p-4 bg-black/80 rounded-xl grid grid-cols-8 border border-sky-500"
163+
className="p-4 bg-black/80 rounded-xl grid grid-cols-4 border border-sky-500"
164164
>
165165
{playerPoolTeams.map((team) => (
166166
<DroppablePlayerList

src/data.js

Lines changed: 45 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,59 @@
11
export const pickOrder = [
2-
1, 2, 3, 4, 5, 6, 7,
3-
6, 7, 5, 4, 3, 2, 1,
4-
3, 5, 2, 1, 7, 4, 6,
5-
1, 4, 2, 6, 7, 3, 5,
2+
1, 2, 3, 4, 5, 6, 7, 5, 6, 7, 4, 3, 2, 1, 2, 1, 3, 4, 7, 6, 5, 1, 5, 6, 7, 4,
63
].map((n) => n - 1);
74

85
const captains = [
9-
["paniagua", "FI"],
10-
["nas", "SE"],
11-
["Macisum", "NO"],
12-
["HangTime", "GB"],
13-
["PreMorteM", "NO"],
14-
["Zepp", "RU"],
15-
["snapcase", "SE"],
6+
["spokz", "PL"],
7+
["Link", "NO"],
8+
["Nexus", "FI"],
9+
["Nico", "US"],
10+
["tuhmapoika", "FI"],
11+
["myca", "PL"],
12+
["neophyte", "HU"],
1613
];
1714

1815
const player_pool = [
19-
["AHemlocksLie", "US"],
20-
["alice", "SE"],
21-
["Anza", "FI"],
22-
["bass", "SE"],
23-
["biggz", "IS"],
24-
["bjarke", "DK"],
25-
["Calinou", "FR"],
26-
["coj", "US"],
27-
["darko", "DE"],
28-
["diehuman", "PT"],
29-
["Dobezz", "GB"],
30-
["doomie", "PL"],
31-
["duce", "DE"],
32-
["Ekz", "SE"],
33-
["Evil", "UA"],
34-
["Flamer", "CZ"],
35-
["Flash", "CA"],
36-
["floc", "DE"],
37-
["gLAd", "RU"],
38-
["Grc", "SE"],
39-
["HaraldQuake", "DE"],
40-
["himmu", "FI"],
41-
["Hooraytio", "SE"],
42-
["kip", "FI"],
43-
["kwon", "DE"],
44-
["lethalwiz", "SE"],
45-
["Link", "NO"],
46-
["Locktar", "SE"],
47-
["milamber", "HU"],
48-
["musi", "HU"],
49-
["myca", "PL"],
50-
["neophyte", "HU"],
51-
["Nexus", "FI"],
52-
["Nico", "US"],
53-
["NinJaA", "HU"],
54-
["nlk", "RU"],
55-
["ocoini", "NO"],
56-
["Pamppu", "FI"],
57-
["PhenomenA", "SE"],
58-
["Pitbull", "LT"],
59-
["RaggA", "IE"],
60-
["raket", "SE"],
61-
["ratatat", "SE"],
62-
["rghst", "DE"],
63-
["Riki", "PL"],
64-
["robin", "NO"],
65-
["rotker", "PL"],
66-
["rusti", "FI"],
67-
["sailorman", "SE"],
68-
["Slaughter", "FI"],
69-
["spokz", "PL"],
70-
["Szturm", "PL"],
71-
["tr0ll", "NO"],
72-
["tuhmapoika", "FI"],
73-
["tumult", "SE"],
74-
["Veggie", "US"],
75-
["viag", "CA"],
76-
["wallu", "FI"],
77-
["XuMuK", "RU"],
78-
["ztranger", "PT"],
16+
["AHemlocksLie", "US"],
17+
["alice", "SE"],
18+
["badsebi", "PL"],
19+
["biggz", "IS"],
20+
["Calinou", "FR"],
21+
["diehuman", "PT"],
22+
["Dobezz", "GB"],
23+
["doomie", "PL"],
24+
["duce", "DE"],
25+
["Evil", "UA"],
26+
["Flash", "CA"],
27+
["HaraldQuake", "DE"],
28+
["kwon", "DE"],
29+
["milamber", "HU"],
30+
["musi", "HU"],
31+
["NinJaA", "HU"],
32+
["nlk", "RU"],
33+
["Pamppu", "FI"],
34+
["PhenomenA", "SE"],
35+
["RaggA", "IE"],
36+
["ratatat", "SE"],
37+
["rotker", "PL"],
38+
["sailorman", "SE"],
39+
["Veggie", "US"],
40+
["XuMuK", "RU"],
41+
["ztranger", "PT"],
7942
];
8043

8144
// do not edit below
8245
export const teams = captains.reduce((teams, [name, _], index) => {
83-
teams[name] = {
84-
id: name,
85-
index,
86-
playerNames: [name],
87-
};
88-
return teams;
46+
teams[name] = {
47+
id: name,
48+
index,
49+
playerNames: [name],
50+
};
51+
return teams;
8952
}, {});
9053

9154
export const players = [...player_pool, ...captains]
92-
.toSorted((a, b) => a[0].localeCompare(b[0]))
93-
.reduce((players, [name, country_code]) => {
94-
players[name] = { name, country_code: country_code.toLocaleLowerCase() };
95-
return players;
96-
}, {});
55+
.toSorted((a, b) => a[0].localeCompare(b[0]))
56+
.reduce((players, [name, country_code]) => {
57+
players[name] = { name, country_code: country_code.toLocaleLowerCase() };
58+
return players;
59+
}, {});

src/styles/_dnd.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@apply text-xl text-yellow-700 ml-auto;
1919
content: "";
2020
}
21-
21+
2222
div:nth-child(5) .app-player::after {
2323
@apply text-xl text-slate-400 ml-auto;
2424
content: "";
@@ -69,8 +69,9 @@
6969
#app-teams .dnd-droppable {
7070
@apply opacity-100;
7171

72-
$colors: "rose", "cyan", "purple", "emerald", "blue", "amber", "green",
73-
"orange", "lime", "gray", "pink", "violet";
72+
$colors:
73+
"rose", "cyan", "purple", "emerald", "blue", "amber", "green", "orange",
74+
"lime", "gray", "pink", "violet";
7475

7576
@for $i from 1 through length($colors) {
7677
$color: nth($colors, $i);

0 commit comments

Comments
 (0)