Skip to content

Commit 3d73ce6

Browse files
committed
Merge branch 'master' into api-bots-players-redesign
2 parents 36003de + f40645f commit 3d73ce6

File tree

721 files changed

+7522
-7574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

721 files changed

+7522
-7574
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,6 @@ e2478dfc217e5bf034a810a5449494b76d471282
9999

100100
# Scala Steward: Reformat with scalafmt 3.10.2
101101
94063c367bc120efdbb548e3692a4c260f4ef662
102+
103+
# Scala Steward: Reformat with scalafmt 3.10.4
104+
0b0545e15ad527e7fc99c5b854123727ac5f6b5e

.github/copilot-instructions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pnpm test
7979
# Watch mode for tests
8080
pnpm test:watch
8181

82-
# Check code formatting (Prettier)
82+
# Check code formatting (Oxfmt)
8383
pnpm check-format
8484

8585
# Auto-format code
@@ -187,7 +187,8 @@ pnpm lint [path]
187187
- **pnpm-workspace.yaml**: Defines workspace packages
188188
- **ui/.build/**: Custom frontend build system
189189
- **.scalafmt.conf**: Scala formatting rules
190-
- **ui/.prettierrc.json**: TypeScript/CSS formatting rules
190+
- **ui/.oxlint.json**: TypeScript formatting rules (Oxlint)
191+
- **ui/.oxfmt.json**: TypeScript/CSS/JSON/MD formatting rules (Oxfmt)
191192
- **conf/routes**: HTTP route definitions
192193
- **conf/application.conf.default**: Main application configuration template
193194

.github/workflows/server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ubuntu-latest
3636
strategy:
3737
matrix:
38-
java-version: [21, 25]
38+
java-version: [21]
3939
steps:
4040
- uses: actions/checkout@v6
4141
- uses: actions/setup-java@v5

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,5 @@ instance.lock
6060
/docker-compose.yml
6161
/?
6262

63-
# eslint cache
64-
/ui/.eslintcache
65-
6663
# deploy bearer
6764
.lila-cli

.oxfmtrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"singleQuote": true,
4+
"printWidth": 110
5+
}

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.10.3"
1+
version = "3.10.4"
22
runner.dialect = scala3
33

44
align.preset = none

COPYING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public/sounds/sfx | [Enigmahack](https://github.com/Enigmahack) | AGPLv3+
7474
public/sounds/lisp | [EdinburghCollective](http://lichess.org/@/EdinburghCollective) | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
7575
SVG in ui/learn/src/apple.ts | [Sensa](https://www.svgrepo.com/svg/434273/star) | [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/deed.en)
7676
public/flair/img/symbols.neovim-mark.webp | Jason Long | [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/) (Modified by converting to webp and resizing)
77+
public/images/practice/* [game-icons.net](https://game-icons.net/about.html) [CC BY 3.0](http://creativecommons.org/licenses/by/3.0/)
78+
public/images/puzzle-themes/* [game-icons.net](https://game-icons.net/about.html) [CC BY 3.0](http://creativecommons.org/licenses/by/3.0/)
7779
translation/source/puzzleTheme.xml | the lila authors and contributors | [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/)
7880
## Exceptions (non-free)
7981

app/Lila.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ final class LilaComponents(
8686
c.result
8787

8888
val httpFilters = Seq(
89-
lila.web.HttpFilter(
90-
env.net,
91-
env.web.settings.sitewideCoepCredentiallessHeader.get,
92-
lila.security.Mobile.LichessMobileUa.parse
93-
)
89+
lila.web.HttpFilter(env.net, lila.security.Mobile.LichessMobileUa.parse)
9490
)
9591

9692
override lazy val httpErrorHandler =

app/controllers/Analyse.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ final class Analyse(
6767
movetimes = true,
6868
clocks = true,
6969
division = true,
70-
opening = true,
7170
rating = ctx.pref.showRatings,
7271
lichobileCompat = HTTPRequest.isLichobile(ctx.req),
7372
puzzles = true

app/controllers/Clas.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ final class Clas(env: Env, authC: Auth) extends LilaController(env):
7171
.verify()
7272
.flatMap: captcha =>
7373
if captcha.ok
74-
then env.clas.api.clas.create(data, me.value).map(redirectTo)
74+
then env.clas.api.clas.create(data, me).map(redirectTo)
7575
else BadRequest.async(renderCreate(data.some))
7676
)
7777
}
@@ -301,7 +301,7 @@ final class Clas(env: Env, authC: Auth) extends LilaController(env):
301301

302302
def archive(id: ClasId, v: Boolean) = SecureBody(_.Teacher) { _ ?=> me ?=>
303303
WithClass(id): clas =>
304-
env.clas.api.clas.archive(clas, me.value, v).inject(redirectTo(clas).flashSuccess)
304+
env.clas.api.clas.archive(clas, me, v).inject(redirectTo(clas).flashSuccess)
305305
}
306306

307307
def studentForm(id: ClasId) = Secure(_.Teacher) { ctx ?=> me ?=>
@@ -340,7 +340,7 @@ final class Clas(env: Env, authC: Auth) extends LilaController(env):
340340
}
341341
,
342342
data =>
343-
env.clas.api.student.create(clas, data, me.value).map { s =>
343+
env.clas.api.student.create(clas, data, me).map { s =>
344344
Redirect(routes.Clas.studentForm(clas.id))
345345
.flashing("created" -> s"${s.student.userId} ${s.password.value}")
346346
}
@@ -378,7 +378,7 @@ final class Clas(env: Env, authC: Auth) extends LilaController(env):
378378
bindForm(env.clas.forms.student.manyCreate(lila.clas.Clas.maxStudents - nbStudents))(
379379
err => BadRequest.page(views.clas.student.manyForm(clas, students, err, nbStudents, Nil)),
380380
data =>
381-
env.clas.api.student.manyCreate(clas, data, me.value).flatMap { many =>
381+
env.clas.api.student.manyCreate(clas, data, me).flatMap { many =>
382382
env.user.lightUserApi
383383
.preloadMany(many.map(_.student.userId))
384384
.inject(

0 commit comments

Comments
 (0)