Skip to content

Commit c76bff0

Browse files
chore: code formatting
1 parent bb2c219 commit c76bff0

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

source/app/web/statics/embed/app.placeholder.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@
10441044
})
10451045
: null),
10461046
//Chess
1047-
...(set.plugins.enabled.chess
1047+
...(set.plugins.enabled.chess
10481048
? ({
10491049
chess: {
10501050
platform: options["chess.platform"] || "(chess platform)",
@@ -1056,14 +1056,19 @@
10561056
WhiteElo: faker.datatype.number(3000),
10571057
BlackElo: faker.datatype.number(3000),
10581058
},
1059-
animation: { size: 40, delay: 3, duration: 0.6 },
1060-
result: { white: faker.datatype.number(3), get black() { return this.white + faker.helpers.arrayElement([-1, +1]) } },
1059+
animation: {size: 40, delay: 3, duration: 0.6},
1060+
result: {
1061+
white: faker.datatype.number(3),
1062+
get black() {
1063+
return this.white + faker.helpers.arrayElement([-1, +1])
1064+
},
1065+
},
10611066
moves: [
10621067
{color: "w", piece: "p", from: "f2", to: "f4", san: "f4", flags: "b"},
10631068
{color: "b", piece: "p", from: "c7", to: "c5", san: "c5", flags: "b"},
10641069
{color: "w", piece: "p", from: "e2", to: "e4", san: "e4", flags: "b"},
10651070
{color: "b", piece: "p", from: "d7", to: "d6", san: "d6", flags: "n"},
1066-
]
1071+
],
10671072
},
10681073
})
10691074
: null),

source/plugins/community/chess/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function({login, q, imports, data, account}, {enabled = fal
1111

1212
//Load inputs
1313
const {user, platform, animation} = imports.metadata.plugins.chess.inputs({data, account, q})
14-
for (const [key, defaulted] of Object.entries({size:40, delay:1, duration:4})) {
14+
for (const [key, defaulted] of Object.entries({size: 40, delay: 1, duration: 4})) {
1515
if (Number.isNaN(Number(animation[key])))
1616
animation[key] = defaulted
1717
if (animation[key] < 0)
@@ -45,4 +45,4 @@ export default async function({login, q, imports, data, account}, {enabled = fal
4545
catch (error) {
4646
throw imports.format.error(error)
4747
}
48-
}
48+
}

tests/mocks/api/axios/get/lichess.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ Bxh6 9. Qxh6 Bb7 10. a3 e5 11. O-O-O Qe7 12. Kb1 a6 13. Nc1 O-O-O 14. Nb3 exd4
2020
d4 22. Nd5 Nbxd5 23. exd5 Qd6 24. Rxd4 cxd4 25. Re7+ Kb6 26. Qxd4+ Kxa5 27. b4+
2121
Ka4 28. Qc3 Qxd5 29. Ra7 Bb7 30. Rxb7 Qc4 31. Qxf6 Kxa3 32. Qxa6+ Kxb4 33. c3+
2222
Kxc3 34. Qa1+ Kd2 35. Qb2+ Kd1 36. Bf1 Rd2 37. Rd7 Rxd7 38. Bxc4 bxc4 39. Qxh8
23-
Rd3 40. Qa8 c3 41. Qa4+ Ke1 42. f4 f5 43. Kc1 Rd2 44. Qa7 1-0`.trim()
23+
Rd3 40. Qa8 c3 41. Qa4+ Ke1 42. f4 f5 43. Kc1 Rd2 44. Qa7 1-0`.trim(),
2424
})
2525
}
2626
}
27-
28-
29-
30-

0 commit comments

Comments
 (0)