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 infiniteScrollTag = jsModule("infiniteScroll")
def chessgroundTag = jsAt("javascripts/vendor/chessground.min.js")
def cashTag = jsAt("javascripts/vendor/cash.min.js")
def fingerprintTag = jsAt("javascripts/fipr.js")
def tagifyTag = jsAt("vendor/tagify/tagify.min.js")

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -56,7 +56,6 @@ object show {
cssTag("swiss.show"),
hasScheduleInput option cssTag("flatpickr")
),
chessground = false,
openGraph = lila.app.ui
.OpenGraph(
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"
else "tournament.show"
},
chessground = false,
openGraph = lila.app.ui
.OpenGraph(
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"),
chessground = false,
openGraph = lila.app.ui
.OpenGraph(
title = s"Watch the best ${channel.name.toLowerCase} games of lichess.org",

File diff suppressed because one or more lines are too long