mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
ornicar -> lichess-org
This commit is contained in:
+4
-4
@@ -2,13 +2,13 @@
|
||||
|
||||
## I want to contribute code to Lichess
|
||||
|
||||
- [Set up your development environment](https://github.com/ornicar/lila/wiki/Lichess-Development-Onboarding).
|
||||
- [Pick a GitHub issue to work on](https://github.com/ornicar/lila/issues). The [good first issue](https://github.com/ornicar/lila/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) and [no scala](https://github.com/ornicar/lila/issues?q=is%3Aissue+is%3Aopen+label%3A%22no+scala%22) tags might be useful.
|
||||
- [Set up your development environment](https://github.com/lichess-org/lila/wiki/Lichess-Development-Onboarding).
|
||||
- [Pick a GitHub issue to work on](https://github.com/lichess-org/lila/issues). The [good first issue](https://github.com/ornicar/lila/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) and [no scala](https://github.com/lichess-org/lila/issues?q=is%3Aissue+is%3Aopen+label%3A%22no+scala%22) tags might be useful.
|
||||
- Communicate with other devs on [Discord](https://discord.gg/lichess).
|
||||
|
||||
## I want to report a bug or a problem about Lichess
|
||||
|
||||
[**Make an issue**](https://github.com/ornicar/lila/issues/new). However, note that issues that provide little value compared to the required effort may be closed. Before creating an issue, make sure that:
|
||||
[**Make an issue**](https://github.com/lichess-org/lila/issues/new). However, note that issues that provide little value compared to the required effort may be closed. Before creating an issue, make sure that:
|
||||
|
||||
1. You list the steps to reproduce the problem to show that other users may experience it as well, if the issue is not self-descriptive.
|
||||
2. Search to make sure it isn't a duplicate. [The advanced search syntax](https://help.github.com/articles/searching-issues/) may come in handy.
|
||||
@@ -18,7 +18,7 @@ Report mobile-only bugs to [Lichess mobile](https://github.com/veloce/lichobile/
|
||||
|
||||
## I want to suggest a feature for Lichess
|
||||
|
||||
Issue tickets on features that lack potential or effectiveness are not useful and may be closed. Discussions regarding whether a proposed new feature would be useful can be done on the [Lichess Feedback Forum](https://lichess.org/forum/lichess-feedback) to gauge feedback. The developers may also discuss the idea there, and if it is exemplary, a corresponding issue ticket will be made. **When you're ready, [make an issue ticket](https://github.com/ornicar/lila/issues/new)** and link relevant, constructive comments regarding it in your issue ticket (such as a detailed Reddit post; linking to an empty forum thread with only your own commentary adds no value). Make sure that the feature you propose:
|
||||
Issue tickets on features that lack potential or effectiveness are not useful and may be closed. Discussions regarding whether a proposed new feature would be useful can be done on the [Lichess Feedback Forum](https://lichess.org/forum/lichess-feedback) to gauge feedback. The developers may also discuss the idea there, and if it is exemplary, a corresponding issue ticket will be made. **When you're ready, [make an issue ticket](https://github.com/lichess-org/lila/issues/new)** and link relevant, constructive comments regarding it in your issue ticket (such as a detailed Reddit post; linking to an empty forum thread with only your own commentary adds no value). Make sure that the feature you propose:
|
||||
|
||||
1. Is **effective in delivering a goal**. A feature that adds nothing new is purely fancy; please develop a userscript or userstyle for your personal use instead.
|
||||
2. Doesn't rely on mundane assumptions. Non-technical people have the tendency to measure how difficult / easy a feature is to implement based on their unreliable instincts, and such assumptions wastes everyone's time. **Point out what needs to happen**, not what you think will happen.
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ Any file in this project that does not state otherwise and is not listed as an
|
||||
exception below is part of lila and copyright (c) 2012-2021 the lila authors.
|
||||
|
||||
For a list of the authors see the commit log or
|
||||
https://github.com/ornicar/lila/graphs/contributors.
|
||||
https://github.com/lichess-org/lila/graphs/contributors.
|
||||
|
||||
Lila is free software; you can redistribute and/or modify it under the terms
|
||||
of the GNU Affero General Public License as published by the Free Software
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# [lichess.org](https://lichess.org)
|
||||
|
||||
[](https://github.com/ornicar/lila/actions?query=workflow%3A%22Build+server%22)
|
||||
[](https://github.com/ornicar/lila/actions?query=workflow%3A%22Build+assets%22)
|
||||
[](https://github.com/lichess-org/lila/actions?query=workflow%3A%22Build+server%22)
|
||||
[](https://github.com/lichess-org/lila/actions?query=workflow%3A%22Build+assets%22)
|
||||
[](https://crowdin.com/project/lichess)
|
||||
[](https://twitter.com/lichess)
|
||||
|
||||
<img src="https://raw.githubusercontent.com/ornicar/lila/master/public/images/home-bicolor.png" alt="Lichess homepage" title="Lichess comes with light and dark theme, this screenshot shows both." />
|
||||
<img src="https://raw.githubusercontent.com/lichess-org/lila/master/public/images/home-bicolor.png" alt="Lichess homepage" title="Lichess comes with light and dark theme, this screenshot shows both." />
|
||||
|
||||
Lila (li[chess in sca]la) is a free online chess game server focused on [realtime](https://lichess.org/games) gameplay and ease of use.
|
||||
|
||||
@@ -25,7 +25,7 @@ and relies on the [Play 2.8](https://www.playframework.com/) framework.
|
||||
[scalatags](https://com-lihaoyi.github.io/scalatags/) is used for templating.
|
||||
Pure chess logic is contained in the [scalachess](https://github.com/ornicar/scalachess) submodule.
|
||||
The server is fully asynchronous, making heavy use of Scala Futures and [Akka streams](https://akka.io).
|
||||
WebSocket connections are handled by a [separate server](https://github.com/ornicar/lila-ws) that communicates using [redis](https://redis.io/).
|
||||
WebSocket connections are handled by a [separate server](https://github.com/lichess-org/lila-ws) that communicates using [redis](https://redis.io/).
|
||||
Lichess talks to [Stockfish](https://stockfishchess.org/) deployed in an [AI cluster](https://github.com/niklasf/fishnet) of donated servers.
|
||||
It uses [MongoDB](https://mongodb.org) to store more than 1.7 billion games, which are indexed by [elasticsearch](https://github.com/elastic/elasticsearch).
|
||||
HTTP requests and WebSocket connections can be proxied by [nginx](https://nginx.org).
|
||||
@@ -39,7 +39,7 @@ Please help us [translate Lichess with Crowdin](https://crowdin.com/project/lich
|
||||
See [lichess.org/source](https://lichess.org/source) for a list of repositories.
|
||||
|
||||
[Join us on Discord](https://discord.gg/lichess) for more info.
|
||||
Use [GitHub issues](https://github.com/ornicar/lila/issues) for bug reports and feature requests.
|
||||
Use [GitHub issues](https://github.com/lichess-org/lila/issues) for bug reports and feature requests.
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -48,7 +48,7 @@ Use [GitHub issues](https://github.com/ornicar/lila/issues) for bug reports and
|
||||
run
|
||||
```
|
||||
|
||||
The Wiki describes [how to setup a development environment](https://github.com/ornicar/lila/wiki/Lichess-Development-Onboarding).
|
||||
The Wiki describes [how to setup a development environment](https://github.com/lichess-org/lila/wiki/Lichess-Development-Onboarding).
|
||||
|
||||
## HTTP API
|
||||
|
||||
@@ -70,14 +70,14 @@ For your own sake, please upgrade. Security and performance, think about it!
|
||||
## License
|
||||
|
||||
Lila is licensed under the GNU Affero General Public License 3 or any later
|
||||
version at your choice with an exception for Highcharts. See [copying](https://github.com/ornicar/lila/blob/master/COPYING.md) for
|
||||
version at your choice with an exception for Highcharts. See [copying](https://github.com/lichess-org/lila/blob/master/COPYING.md) for
|
||||
details.
|
||||
|
||||
## Credits
|
||||
|
||||
See [lichess.org/thanks](https://lichess.org/thanks) and the contributors here:
|
||||
|
||||
[](https://github.com/ornicar/lila/graphs/contributors)
|
||||
[](https://github.com/lichess-org/lila/graphs/contributors)
|
||||
|
||||
## Competence development program
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ object contact {
|
||||
a(href := routes.ForumCateg.show("lichess-feedback"))(reportBugInForum())
|
||||
),
|
||||
li(
|
||||
a(href := "https://github.com/ornicar/lila/issues")(reportWebsiteIssue())
|
||||
a(href := "https://github.com/lichess-org/lila/issues")(reportWebsiteIssue())
|
||||
),
|
||||
li(
|
||||
a(href := "https://github.com/veloce/lichobile/issues")(reportMobileIssue())
|
||||
|
||||
@@ -43,7 +43,7 @@ object faq {
|
||||
),
|
||||
p(
|
||||
whyIsLilaCalledLila(
|
||||
a(href := "https://github.com/ornicar/lila")("lila"),
|
||||
a(href := "https://github.com/lichess-org/lila")("lila"),
|
||||
a(href := "https://www.scala-lang.org/")("Scala")
|
||||
)
|
||||
)
|
||||
@@ -190,7 +190,7 @@ object faq {
|
||||
titlesAvailableOnLichess.txt(),
|
||||
p(
|
||||
lichessRecognizeAllOTBtitles(
|
||||
a(href := "https://github.com/ornicar/lila/wiki/Handling-title-verification-requests")(
|
||||
a(href := "https://github.com/lichess-org/lila/wiki/Handling-title-verification-requests")(
|
||||
asWellAsManyNMtitles()
|
||||
)
|
||||
)
|
||||
@@ -223,7 +223,7 @@ object faq {
|
||||
whatUsernameCanIchoose.txt(),
|
||||
p(
|
||||
usernamesNotOffensive(
|
||||
a(href := "https://github.com/ornicar/lila/wiki/Username-policy")(guidelines())
|
||||
a(href := "https://github.com/lichess-org/lila/wiki/Username-policy")(guidelines())
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
@@ -8,7 +8,7 @@ object freeJs {
|
||||
|
||||
private lazy val agpl = a(href := "https://www.gnu.org/licenses/agpl-3.0.en.html")("AGPL-3.0+")
|
||||
|
||||
private def github(path: String) = a(href := s"https://github.com/ornicar/lila/tree/master/$path")(path)
|
||||
private def github(path: String) = a(href := s"https://github.com/lichess-org/lila/tree/master/$path")(path)
|
||||
|
||||
private val uiModules = List(
|
||||
"analyse",
|
||||
@@ -43,7 +43,7 @@ object freeJs {
|
||||
),
|
||||
p(cls := "box__pad")(
|
||||
"Here are all frontend modules from ",
|
||||
a(href := "https://github.com/ornicar/lila/tree/master/ui")("ornicar/lila ui"),
|
||||
a(href := "https://github.com/lichess-org/lila/tree/master/ui")("lichess-org/lila ui"),
|
||||
" in ",
|
||||
a(href := "https://www.gnu.org/licenses/javascript-labels.en.html")("Web Labels"),
|
||||
" compatible format:"
|
||||
|
||||
@@ -46,7 +46,7 @@ object page {
|
||||
contentCls = "page",
|
||||
moreJs = embedJsUnsafeLoadThen(
|
||||
"""$('#asset-version-date').text(lichess.info.date);
|
||||
$('#asset-version-commit').attr('href', 'https://github.com/ornicar/lila/commits/' + lichess.info.commit).find('pre').text(lichess.info.commit.substr(0, 12));
|
||||
$('#asset-version-commit').attr('href', 'https://github.com/lichess-org/lila/commits/' + lichess.info.commit).find('pre').text(lichess.info.commit.substr(0, 12));
|
||||
$('#asset-version-message').text(lichess.info.message);"""
|
||||
)
|
||||
)(
|
||||
@@ -64,7 +64,7 @@ $('#asset-version-message').text(lichess.info.message);"""
|
||||
tr(
|
||||
td("Server"),
|
||||
td(date),
|
||||
td(a(href := s"https://github.com/ornicar/lila/commits/$commit")(pre(commit.take(12)))),
|
||||
td(a(href := s"https://github.com/lichess-org/lila/commits/$commit")(pre(commit.take(12)))),
|
||||
td(message)
|
||||
)
|
||||
},
|
||||
|
||||
+3
-3
@@ -55,9 +55,9 @@ SERVER_FILES = [
|
||||
".sbtopts.default",
|
||||
]
|
||||
|
||||
ASSETS_BUILD_URL = "https://api.github.com/repos/ornicar/lila/actions/workflows/assets.yml/runs"
|
||||
ASSETS_BUILD_URL = "https://api.github.com/repos/lichess-org/lila/actions/workflows/assets.yml/runs"
|
||||
|
||||
SERVER_BUILD_URL = "https://api.github.com/repos/ornicar/lila/actions/workflows/server.yml/runs"
|
||||
SERVER_BUILD_URL = "https://api.github.com/repos/lichess-org/lila/actions/workflows/server.yml/runs"
|
||||
|
||||
ARTIFACT_DIR = "/home/lichess-artifacts"
|
||||
|
||||
@@ -285,7 +285,7 @@ def deploy(profile, repo, commit, github_api_token, dry_run):
|
||||
|
||||
session = requests.Session()
|
||||
session.headers["Authorization"] = f"token {github_api_token}"
|
||||
session.headers["User-Agent"] = "ornicar/lila"
|
||||
session.headers["User-Agent"] = "lichess-org/lila"
|
||||
|
||||
try:
|
||||
wanted_hash = hash_files(commit.tree, profile["files"])
|
||||
|
||||
@@ -68,7 +68,7 @@ db.trophyKind.insert({
|
||||
_id: 'developer',
|
||||
name: 'Lichess developer',
|
||||
icon: '',
|
||||
url: 'https://github.com/ornicar/lila/graphs/contributors',
|
||||
url: 'https://github.com/lichess-org/lila/graphs/contributors',
|
||||
klass: 'icon3d',
|
||||
order: NumberInt(100),
|
||||
withCustomImage: false,
|
||||
|
||||
@@ -11,7 +11,7 @@ case class Appeal(
|
||||
createdAt: DateTime,
|
||||
updatedAt: DateTime,
|
||||
// date of first player message without a mod reply
|
||||
// https://github.com/ornicar/lila/issues/7564
|
||||
// https://github.com/lichess-org/lila/issues/7564
|
||||
firstUnrepliedAt: DateTime
|
||||
) {
|
||||
def id = _id
|
||||
|
||||
@@ -28,7 +28,7 @@ final private class ReportScore(
|
||||
|
||||
def autoScore(candidate: Report.Candidate) = candidate.isAutomatic ?? 25d
|
||||
|
||||
// https://github.com/ornicar/lila/issues/4587
|
||||
// https://github.com/lichess-org/lila/issues/4587
|
||||
def fixedAutoScore(c: Report.Candidate)(score: Double): Double =
|
||||
if (c.isAutoBoost) baseScore * 1.5
|
||||
else if (c.isAutoComm) 42d
|
||||
|
||||
@@ -283,7 +283,7 @@ final class JsonView(
|
||||
"id" -> game.id,
|
||||
"fen" -> chess.format.Forsyth.boardAndColor(game.situation),
|
||||
"orientation" -> game.naturalOrientation.name,
|
||||
"color" -> game.naturalOrientation.name, // app BC https://github.com/ornicar/lila/issues/7195
|
||||
"color" -> game.naturalOrientation.name, // app BC https://github.com/lichess-org/lila/issues/7195
|
||||
"lastMove" -> ~game.lastMoveKeys,
|
||||
"white" -> ofPlayer(featured.white, game player chess.White),
|
||||
"black" -> ofPlayer(featured.black, game player chess.Black)
|
||||
|
||||
@@ -45,7 +45,7 @@ final class UblogMarkup(baseUrl: config.BaseUrl, assetBaseUrl: config.AssetBaseU
|
||||
|
||||
private def unescape(txt: String) = txt.replace("""\_""", "_")
|
||||
|
||||
// https://github.com/ornicar/lila/issues/9767
|
||||
// https://github.com/lichess-org/lila/issues/9767
|
||||
// toastui editor escapes `_` as `\_` and it breaks autolinks
|
||||
private[ublog] object unescapeUnderscoreInLinks {
|
||||
private val hrefRegex = """href="([^"]+)"""".r
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@
|
||||
"description": "lichess.org: the forever free, adless and open source chess server",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ornicar/lila.git"
|
||||
"url": "https://github.com/lichess-org/lila.git"
|
||||
},
|
||||
"keywords": [
|
||||
"chess",
|
||||
@@ -14,7 +14,7 @@
|
||||
"author": "Thibault Duplessis and the gang",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ornicar/lila/issues"
|
||||
"url": "https://github.com/lichess-org/lila/issues"
|
||||
},
|
||||
"homepage": "https://lichess.org",
|
||||
"engines": {
|
||||
|
||||
@@ -3,7 +3,7 @@ import sbt._, Keys._
|
||||
|
||||
object Dependencies {
|
||||
|
||||
val lilaMaven = "lila-maven" at "https://raw.githubusercontent.com/ornicar/lila-maven/master"
|
||||
val lilaMaven = "lila-maven" at "https://raw.githubusercontent.com/lichess-org/lila-maven/master"
|
||||
|
||||
val scalalib = "com.github.ornicar" %% "scalalib" % "7.0.2"
|
||||
val hasher = "com.roundeights" %% "hasher" % "1.2.1"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
resolvers += Resolver.url(
|
||||
"lila-maven-sbt",
|
||||
url("https://raw.githubusercontent.com/ornicar/lila-maven/master")
|
||||
url("https://raw.githubusercontent.com/lichess-org/lila-maven/master")
|
||||
)(Resolver.ivyStylePatterns)
|
||||
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.8-lila_1.8")
|
||||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
|
||||
|
||||
@@ -152,7 +152,7 @@ export class ThreadedWasmWorker extends AbstractWorker<ThreadedWasmWorkerOpts> {
|
||||
|
||||
destroy() {
|
||||
// Terminated instances to not get freed reliably
|
||||
// (https://github.com/ornicar/lila/issues/7334). So instead of
|
||||
// (https://github.com/lichess-org/lila/issues/7334). So instead of
|
||||
// destroying, just stop instances and keep them around for reuse.
|
||||
this.protocol.sync?.stop();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Rich Text helper functions
|
||||
// Refactored for https://github.com/ornicar/lila/issues/7342 request
|
||||
// Refactored for https://github.com/lichess-org/lila/issues/7342 request
|
||||
import { VNode, Hooks } from 'snabbdom';
|
||||
|
||||
// from https://github.com/bryanwoods/autolink-js/blob/master/autolink.js
|
||||
|
||||
@@ -479,7 +479,7 @@ export default class RoundController {
|
||||
if (!this.replaying() && playedColor != d.player.color) {
|
||||
// atrocious hack to prevent race condition
|
||||
// with explosions and premoves
|
||||
// https://github.com/ornicar/lila/issues/343
|
||||
// https://github.com/lichess-org/lila/issues/343
|
||||
const premoveDelay = d.game.variant.key === 'atomic' ? 100 : 1;
|
||||
setTimeout(() => {
|
||||
if (!this.chessground.playPremove() && !this.playPredrop()) {
|
||||
|
||||
@@ -14,7 +14,7 @@ lichess.load.then(() => {
|
||||
minDate: minDate == 'yesterday' ? new Date(Date.now() - 1000 * 3600 * 24) : minDate,
|
||||
maxDate: new Date(Date.now() + 1000 * 3600 * 24 * 31 * 3),
|
||||
monthSelectorType: 'static',
|
||||
disableMobile: true, // https://flatpickr.js.org/mobile-support/ https://github.com/ornicar/lila/issues/8110
|
||||
disableMobile: true, // https://flatpickr.js.org/mobile-support/ https://github.com/lichess-org/lila/issues/8110
|
||||
...config,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user