remove unused visualizer

pull/2642/head
Thibault Duplessis 2017-02-05 12:34:21 +01:00
parent 34c9489171
commit 1a92e8af3d
6 changed files with 0 additions and 27 deletions

3
.gitmodules vendored
View File

@ -31,9 +31,6 @@
[submodule "public/vendor/bar-rating"]
path = public/vendor/bar-rating
url = https://github.com/antennaio/jquery-bar-rating
[submodule "public/visualizer"]
path = public/visualizer
url = https://github.com/ornicar/chess_game_visualizer
[submodule "public/vendor/stockfish.pexe"]
path = public/vendor/stockfish.pexe
url = https://github.com/niklasf/stockfish.pexe

View File

@ -59,24 +59,6 @@ object Export extends LilaController {
}
}
def visualizer(id: String) = Open { implicit ctx =>
OnlyHumans {
OptionFuResult(GameRepo game id) { game =>
gameToPgn(game, asImported = false, asRaw = false) map { pgn =>
lila.mon.export.visualizer()
Redirect {
import lila.api.Env.current.Net._
val base = s"$Protocol$AssetDomain/assets"
val encoded = java.net.URLEncoder.encode(pgn.toString, "UTF-8")
s"$base/visualizer/index_lichess.html?pgn=$encoded"
}
} recoverWith {
case _: Exception => notFound
}
}
}
}
def puzzlePng(id: Int) = Open { implicit ctx =>
OnlyHumansAndFacebook {
PngRateLimitGlobal("-", msg = HTTPRequest lastRemoteAddress ctx.req) {

View File

@ -73,9 +73,6 @@ atom = atom.some) {
@if(game.isPgnImport) {
<a data-icon="x" class="text" rel="nofollow" href="@routes.Export.pgn(game.id)?as=imported">@trans.downloadImported()</a>
}
@if(false && lila.game.Game.visualisableVariants(game.variant)) {
<a data-icon="=" class="text" target="_blank" href="@routes.Export.visualizer(game.id)">Generate images</a>
}
<a data-icon="=" class="text embed_howto" target="_blank">Embed in your website</a>
</div>
</div>

View File

@ -271,7 +271,6 @@ POST /$gameId<\w{8}>/request-analysis controllers.Analyse.requestAnalysi
GET /game/export/$gameId<\w{8}>.pgn controllers.Export.pgn(gameId: String)
GET /game/export/png/$gameId<\w{8}>.png controllers.Export.png(gameId: String)
GET /game/visualizer/$gameId<\w{8}> controllers.Export.visualizer(gameId: String)
# Fishnet
POST /fishnet/acquire controllers.Fishnet.acquire

View File

@ -485,7 +485,6 @@ object mon {
def puzzle = inc("export.png.puzzle")
}
def pdf = inc("export.pdf.game")
def visualizer = inc("export.visualizer.game")
}
def measure[A](path: RecPath)(op: => A) = {

@ -1 +0,0 @@
Subproject commit 44e365688c33077381f5b44318fc61015584ef8b