remove chessground.min.js

rm-chessground.min.js
Niklas Fiekas 2021-05-12 21:29:57 +02:00
parent 33b5d7711d
commit 47e84a3a14
19 changed files with 2 additions and 24 deletions

View File

@ -56,7 +56,6 @@ trait AssetHelper { self: I18nHelper with SecurityHelper =>
def captchaTag = jsModule("captcha") def captchaTag = jsModule("captcha")
def infiniteScrollTag = jsModule("infiniteScroll") def infiniteScrollTag = jsModule("infiniteScroll")
def chessgroundTag = jsAt("javascripts/vendor/chessground.min.js")
def cashTag = jsAt("javascripts/vendor/cash.min.js") def cashTag = jsAt("javascripts/vendor/cash.min.js")
def fingerprintTag = jsAt("javascripts/fipr.js") def fingerprintTag = jsAt("javascripts/fipr.js")
def tagifyTag = jsAt("vendor/tagify/tagify.min.js") def tagifyTag = jsAt("vendor/tagify/tagify.min.js")

View File

@ -19,7 +19,6 @@ object bits {
moreCss = moreCss, moreCss = moreCss,
moreJs = moreJs, moreJs = moreJs,
openGraph = openGraph, openGraph = openGraph,
chessground = false,
robots = false, robots = false,
zoomable = true, zoomable = true,
csp = defaultCsp.withWebAssembly.withPeer.some csp = defaultCsp.withWebAssembly.withPeer.some

View File

@ -154,9 +154,8 @@ object layout {
nonce nonce
) )
private def loadScripts(moreJs: Frag, chessground: Boolean)(implicit ctx: Context) = private def loadScripts(moreJs: Frag)(implicit ctx: Context) =
frag( frag(
chessground option chessgroundTag,
ctx.requiresFingerprint option fingerprintTag, ctx.requiresFingerprint option fingerprintTag,
ctx.nonce map lichessJsObject, ctx.nonce map lichessJsObject,
if (netConfig.minifiedAssets) if (netConfig.minifiedAssets)
@ -193,7 +192,6 @@ object layout {
moreJs: Frag = emptyFrag, moreJs: Frag = emptyFrag,
playing: Boolean = false, playing: Boolean = false,
openGraph: Option[lila.app.ui.OpenGraph] = None, openGraph: Option[lila.app.ui.OpenGraph] = None,
chessground: Boolean = true,
zoomable: Boolean = false, zoomable: Boolean = false,
csp: Option[ContentSecurityPolicy] = None, csp: Option[ContentSecurityPolicy] = None,
wrapClass: String = "" wrapClass: String = ""
@ -295,7 +293,7 @@ object layout {
) )
), ),
a(id := "reconnecting", cls := "link text", dataIcon := "B")(trans.reconnecting()), a(id := "reconnecting", cls := "link text", dataIcon := "B")(trans.reconnecting()),
loadScripts(moreJs, chessground) loadScripts(moreJs)
) )
) )
) )

View File

@ -25,7 +25,6 @@ LichessEditor(document.getElementById('board-editor'), data);"""
) )
), ),
moreCss = cssTag("editor"), moreCss = cssTag("editor"),
chessground = false,
zoomable = true, zoomable = true,
openGraph = lila.app.ui openGraph = lila.app.ui
.OpenGraph( .OpenGraph(

View File

@ -38,7 +38,6 @@ object userAnalysis {
)}""") )}""")
), ),
csp = defaultCsp.withWebAssembly.some, csp = defaultCsp.withWebAssembly.some,
chessground = false,
openGraph = lila.app.ui openGraph = lila.app.ui
.OpenGraph( .OpenGraph(
title = "Chess analysis board", title = "Chess analysis board",

View File

@ -37,7 +37,6 @@ object home {
) )
), ),
moreCss = cssTag("lobby"), moreCss = cssTag("lobby"),
chessground = false,
openGraph = lila.app.ui openGraph = lila.app.ui
.OpenGraph( .OpenGraph(
image = assetUrl("logo/lichess-tile-wide.png").some, image = assetUrl("logo/lichess-tile-wide.png").some,

View File

@ -34,7 +34,6 @@ object show {
)}""") )}""")
), ),
csp = defaultCsp.withWebAssembly.some, csp = defaultCsp.withWebAssembly.some,
chessground = false,
zoomable = true zoomable = true
) { ) {
main(cls := "analyse") main(cls := "analyse")

View File

@ -34,7 +34,6 @@ object show {
)})""") )})""")
), ),
csp = defaultCsp.withWebAssembly.some, csp = defaultCsp.withWebAssembly.some,
chessground = false,
openGraph = lila.app.ui openGraph = lila.app.ui
.OpenGraph( .OpenGraph(
image = cdnUrl(routes.Export.puzzleThumbnail(puzzle.id.value).url).some, image = cdnUrl(routes.Export.puzzleThumbnail(puzzle.id.value).url).some,

View File

@ -50,7 +50,6 @@ object racer {
), ),
title = "Puzzle Racer", title = "Puzzle Racer",
zoomable = true, zoomable = true,
chessground = false
) { ) {
main( main(
div(cls := "racer racer-app racer--play")( div(cls := "racer racer-app racer--play")(

View File

@ -53,7 +53,6 @@ object show {
) )
)}""") )}""")
), ),
chessground = false,
zoomable = true, zoomable = true,
csp = defaultCsp.withWebAssembly.some, csp = defaultCsp.withWebAssembly.some,
openGraph = lila.app.ui openGraph = lila.app.ui

View File

@ -18,7 +18,6 @@ object bits {
moreJs: Frag = emptyFrag, moreJs: Frag = emptyFrag,
openGraph: Option[lila.app.ui.OpenGraph] = None, openGraph: Option[lila.app.ui.OpenGraph] = None,
moreCss: Frag = emptyFrag, moreCss: Frag = emptyFrag,
chessground: Boolean = true,
playing: Boolean = false, playing: Boolean = false,
robots: Boolean = false robots: Boolean = false
)(body: Frag)(implicit ctx: Context) = )(body: Frag)(implicit ctx: Context) =
@ -31,7 +30,6 @@ object bits {
ctx.blind option cssTag("round.nvui"), ctx.blind option cssTag("round.nvui"),
moreCss moreCss
), ),
chessground = chessground,
playing = playing, playing = playing,
robots = robots, robots = robots,
zoomable = true, zoomable = true,

View File

@ -60,7 +60,6 @@ object player {
)})""") )})""")
), ),
openGraph = povOpenGraph(pov).some, openGraph = povOpenGraph(pov).some,
chessground = false,
playing = true playing = true
)( )(
main(cls := "round")( main(cls := "round")(

View File

@ -49,7 +49,6 @@ object watcher {
)})""") )})""")
), ),
openGraph = povOpenGraph(pov).some, openGraph = povOpenGraph(pov).some,
chessground = false
)( )(
main(cls := "round")( main(cls := "round")(
st.aside(cls := "round__side")( st.aside(cls := "round__side")(
@ -70,7 +69,6 @@ object watcher {
variant = pov.game.variant, variant = pov.game.variant,
title = gameVsText(pov.game, withRatings = true), title = gameVsText(pov.game, withRatings = true),
openGraph = povOpenGraph(pov).some, openGraph = povOpenGraph(pov).some,
chessground = false
)( )(
frag( frag(
main(cls := "round")( main(cls := "round")(

View File

@ -31,7 +31,6 @@ object storm {
), ),
title = "Puzzle Storm", title = "Puzzle Storm",
zoomable = true, zoomable = true,
chessground = false
) { ) {
main( main(
div(cls := "storm storm-app storm--play")( div(cls := "storm storm-app storm--play")(

View File

@ -53,7 +53,6 @@ object show {
)}""") )}""")
), ),
robots = s.isPublic, robots = s.isPublic,
chessground = false,
zoomable = true, zoomable = true,
csp = defaultCsp.withWebAssembly.withPeer.some, csp = defaultCsp.withWebAssembly.withPeer.some,
openGraph = lila.app.ui openGraph = lila.app.ui

View File

@ -56,7 +56,6 @@ object show {
cssTag("swiss.show"), cssTag("swiss.show"),
hasScheduleInput option cssTag("flatpickr") hasScheduleInput option cssTag("flatpickr")
), ),
chessground = false,
openGraph = lila.app.ui openGraph = lila.app.ui
.OpenGraph( .OpenGraph(
title = s"${fullName(s)}: ${s.variant.name} ${s.clock.show} #${s.id}", title = s"${fullName(s)}: ${s.variant.name} ${s.clock.show} #${s.id}",

View File

@ -48,7 +48,6 @@ object show {
if (tour.isTeamBattle) "tournament.show.team-battle" if (tour.isTeamBattle) "tournament.show.team-battle"
else "tournament.show" else "tournament.show"
}, },
chessground = false,
openGraph = lila.app.ui openGraph = lila.app.ui
.OpenGraph( .OpenGraph(
title = s"${tour.name()}: ${tour.variant.name} ${tour.clock.show} ${tour.mode.name} #${tour.id}", title = s"${tour.name()}: ${tour.variant.name} ${tour.clock.show} ${tour.mode.name} #${tour.id}",

View File

@ -35,7 +35,6 @@ object index {
) )
), ),
moreCss = cssTag("tv.single"), moreCss = cssTag("tv.single"),
chessground = false,
openGraph = lila.app.ui openGraph = lila.app.ui
.OpenGraph( .OpenGraph(
title = s"Watch the best ${channel.name.toLowerCase} games of lichess.org", title = s"Watch the best ${channel.name.toLowerCase} games of lichess.org",

File diff suppressed because one or more lines are too long