remove unused visualizer
parent
34c9489171
commit
1a92e8af3d
|
@ -31,9 +31,6 @@
|
||||||
[submodule "public/vendor/bar-rating"]
|
[submodule "public/vendor/bar-rating"]
|
||||||
path = public/vendor/bar-rating
|
path = public/vendor/bar-rating
|
||||||
url = https://github.com/antennaio/jquery-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"]
|
[submodule "public/vendor/stockfish.pexe"]
|
||||||
path = public/vendor/stockfish.pexe
|
path = public/vendor/stockfish.pexe
|
||||||
url = https://github.com/niklasf/stockfish.pexe
|
url = https://github.com/niklasf/stockfish.pexe
|
||||||
|
|
|
@ -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 =>
|
def puzzlePng(id: Int) = Open { implicit ctx =>
|
||||||
OnlyHumansAndFacebook {
|
OnlyHumansAndFacebook {
|
||||||
PngRateLimitGlobal("-", msg = HTTPRequest lastRemoteAddress ctx.req) {
|
PngRateLimitGlobal("-", msg = HTTPRequest lastRemoteAddress ctx.req) {
|
||||||
|
|
|
@ -73,9 +73,6 @@ atom = atom.some) {
|
||||||
@if(game.isPgnImport) {
|
@if(game.isPgnImport) {
|
||||||
<a data-icon="x" class="text" rel="nofollow" href="@routes.Export.pgn(game.id)?as=imported">@trans.downloadImported()</a>
|
<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>
|
<a data-icon="=" class="text embed_howto" target="_blank">Embed in your website</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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/$gameId<\w{8}>.pgn controllers.Export.pgn(gameId: String)
|
||||||
GET /game/export/png/$gameId<\w{8}>.png controllers.Export.png(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
|
# Fishnet
|
||||||
POST /fishnet/acquire controllers.Fishnet.acquire
|
POST /fishnet/acquire controllers.Fishnet.acquire
|
||||||
|
|
|
@ -485,7 +485,6 @@ object mon {
|
||||||
def puzzle = inc("export.png.puzzle")
|
def puzzle = inc("export.png.puzzle")
|
||||||
}
|
}
|
||||||
def pdf = inc("export.pdf.game")
|
def pdf = inc("export.pdf.game")
|
||||||
def visualizer = inc("export.visualizer.game")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def measure[A](path: RecPath)(op: => A) = {
|
def measure[A](path: RecPath)(op: => A) = {
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 44e365688c33077381f5b44318fc61015584ef8b
|
|
Loading…
Reference in New Issue