From c48da4e2cd22837a9f6e8b7eb4a59924967aec3f Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Wed, 26 Jan 2022 15:20:47 +0100 Subject: [PATCH] ornicar -> lichess-org --- CONTRIBUTING.md | 8 ++++---- COPYING.md | 2 +- README.md | 16 ++++++++-------- app/views/site/contact.scala | 2 +- app/views/site/faq.scala | 6 +++--- app/views/site/freeJs.scala | 4 ++-- app/views/site/page.scala | 4 ++-- bin/deploy | 6 +++--- bin/mongodb/create-trophy-kinds.js | 2 +- modules/appeal/src/main/Appeal.scala | 2 +- modules/report/src/main/ReportScore.scala | 2 +- modules/tournament/src/main/JsonView.scala | 2 +- modules/ublog/src/main/UblogMarkup.scala | 2 +- package.json | 4 ++-- project/Dependencies.scala | 2 +- project/plugins.sbt | 2 +- ui/ceval/src/worker.ts | 2 +- ui/common/src/richText.ts | 2 +- ui/round/src/ctrl.ts | 2 +- ui/site/src/flatpickr.ts | 2 +- 20 files changed, 37 insertions(+), 37 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 65455022c48..d4e66143a9d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/COPYING.md b/COPYING.md index cef860f0d96..b90ea7a7687 100644 --- a/COPYING.md +++ b/COPYING.md @@ -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 diff --git a/README.md b/README.md index dd414e48e3c..278865c2963 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # [lichess.org](https://lichess.org) -[![Build server](https://github.com/ornicar/lila/workflows/Build%20server/badge.svg)](https://github.com/ornicar/lila/actions?query=workflow%3A%22Build+server%22) -[![Build assets](https://github.com/ornicar/lila/workflows/Build%20assets/badge.svg)](https://github.com/ornicar/lila/actions?query=workflow%3A%22Build+assets%22) +[![Build server](https://github.com/lichess-org/lila/workflows/Build%20server/badge.svg)](https://github.com/lichess-org/lila/actions?query=workflow%3A%22Build+server%22) +[![Build assets](https://github.com/lichess-org/lila/workflows/Build%20assets/badge.svg)](https://github.com/lichess-org/lila/actions?query=workflow%3A%22Build+assets%22) [![Crowdin](https://d322cqt584bo4o.cloudfront.net/lichess/localized.svg)](https://crowdin.com/project/lichess) [![Twitter](https://img.shields.io/badge/Twitter-%40lichess-blue.svg)](https://twitter.com/lichess) -Lichess homepage +Lichess homepage 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: -[![GitHub contributors](https://contrib.rocks/image?repo=ornicar/lila)](https://github.com/ornicar/lila/graphs/contributors) +[![GitHub contributors](https://contrib.rocks/image?repo=lichess-org/lila)](https://github.com/lichess-org/lila/graphs/contributors) ## Competence development program diff --git a/app/views/site/contact.scala b/app/views/site/contact.scala index 4a79ce0cd70..45b038320e4 100644 --- a/app/views/site/contact.scala +++ b/app/views/site/contact.scala @@ -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()) diff --git a/app/views/site/faq.scala b/app/views/site/faq.scala index f0459c8b075..3cf0b7c4244 100644 --- a/app/views/site/faq.scala +++ b/app/views/site/faq.scala @@ -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()) ) ) ), diff --git a/app/views/site/freeJs.scala b/app/views/site/freeJs.scala index b0db7fde935..a77a7b339b8 100644 --- a/app/views/site/freeJs.scala +++ b/app/views/site/freeJs.scala @@ -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:" diff --git a/app/views/site/page.scala b/app/views/site/page.scala index d305f5fe63c..bfdbe060f4e 100644 --- a/app/views/site/page.scala +++ b/app/views/site/page.scala @@ -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) ) }, diff --git a/bin/deploy b/bin/deploy index 2dc857ac08f..7df43a23bb8 100755 --- a/bin/deploy +++ b/bin/deploy @@ -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"]) diff --git a/bin/mongodb/create-trophy-kinds.js b/bin/mongodb/create-trophy-kinds.js index 1cd367c4a40..00e260c3e72 100644 --- a/bin/mongodb/create-trophy-kinds.js +++ b/bin/mongodb/create-trophy-kinds.js @@ -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, diff --git a/modules/appeal/src/main/Appeal.scala b/modules/appeal/src/main/Appeal.scala index 1521dc73319..79e8b47780e 100644 --- a/modules/appeal/src/main/Appeal.scala +++ b/modules/appeal/src/main/Appeal.scala @@ -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 diff --git a/modules/report/src/main/ReportScore.scala b/modules/report/src/main/ReportScore.scala index 40c1d3d9fc4..ef9e679902f 100644 --- a/modules/report/src/main/ReportScore.scala +++ b/modules/report/src/main/ReportScore.scala @@ -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 diff --git a/modules/tournament/src/main/JsonView.scala b/modules/tournament/src/main/JsonView.scala index 5616d301fb9..8e4934c3db4 100644 --- a/modules/tournament/src/main/JsonView.scala +++ b/modules/tournament/src/main/JsonView.scala @@ -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) diff --git a/modules/ublog/src/main/UblogMarkup.scala b/modules/ublog/src/main/UblogMarkup.scala index 04c249ca7fe..119f9a24db6 100644 --- a/modules/ublog/src/main/UblogMarkup.scala +++ b/modules/ublog/src/main/UblogMarkup.scala @@ -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 diff --git a/package.json b/package.json index 8a68893a4bc..2abc81f6fb2 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/project/Dependencies.scala b/project/Dependencies.scala index ad57a3619a6..4cbdf5a02ec 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -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" diff --git a/project/plugins.sbt b/project/plugins.sbt index 1de70af9900..afb01c7d319 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -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") diff --git a/ui/ceval/src/worker.ts b/ui/ceval/src/worker.ts index 88f21ee07e4..d19948d57d8 100644 --- a/ui/ceval/src/worker.ts +++ b/ui/ceval/src/worker.ts @@ -152,7 +152,7 @@ export class ThreadedWasmWorker extends AbstractWorker { 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(); } diff --git a/ui/common/src/richText.ts b/ui/common/src/richText.ts index 1a5f0602ebf..384fbec2eb4 100644 --- a/ui/common/src/richText.ts +++ b/ui/common/src/richText.ts @@ -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 diff --git a/ui/round/src/ctrl.ts b/ui/round/src/ctrl.ts index 80b72ac0f2a..e85a9f2e405 100644 --- a/ui/round/src/ctrl.ts +++ b/ui/round/src/ctrl.ts @@ -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()) { diff --git a/ui/site/src/flatpickr.ts b/ui/site/src/flatpickr.ts index 3f530985ed8..3a860f31be5 100644 --- a/ui/site/src/flatpickr.ts +++ b/ui/site/src/flatpickr.ts @@ -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, }); });