Commit Graph

17 Commits (deepcrayonfish)

Author SHA1 Message Date
Benedikt Werner 9dc2be1656
Learn: Don't load chessground twice 2021-06-24 03:43:46 +02:00
Benedikt Werner a591c7feb5
Learn: Add missing js i18n key 2021-05-26 18:36:49 +02:00
Thibault Duplessis 42084de5fa fix routing and form binding for play 2.8.7 2021-02-08 15:25:21 +01:00
Thibault Duplessis 5be8b166ee embedJsUnsafeLoadThen 2020-09-04 16:10:30 +02:00
Thibault Duplessis ea5d513192 dedup js module inclusion code 2020-07-31 13:52:49 +02:00
Thibault Duplessis b48699798d fix more warnings, getting ready for scala 3 2020-07-07 11:24:08 +02:00
Thibault Duplessis 5488a09548 scalafmt 2.5 2020-05-05 22:11:15 -06:00
kraktus e93bfe8eca Load i18nKyes to learn 2020-05-05 20:20:43 +01:00
Thibault Duplessis 4654058dcb flatter i18n DB implementation
JS translations broken atm
2020-02-12 10:46:59 -06:00
Thibault Duplessis ff1cc70bef reformat with scalafmt 2019-12-13 08:37:32 -06:00
Thibault Duplessis eb492022ce fix chessground for mini-board on /learn 2019-04-24 13:34:57 +07:00
Niklas Fiekas 9e3e4b4f0e more json cleanup, remove JsonHelper 2019-04-22 10:50:14 +02:00
Niklas Fiekas b6fbf28132 reland embedJs signature fix
Sadly this was nicer in Twirl, because *safe* string interpolation was
happening more naturally in templates. This example allows no XSS,
guaranteed by types:

  @embedJs {
    var foo = { "bar": @{safeJsonValue(jsObj)} };
  }

Equivalent with scalatags:

  embedJs(frag(
    raw("""var foo = { "bar": """), jsObj.toJsonFrag, raw(" }; ")
  ))

This is so ugly that it's used nowhere. Just unsafe string interpolation
everywhere:

  embedJsUnsafe(s"""var foo = { "bar": ${safeJsonValue(jsObj)} };""")

Note that this would compile fine without safeJsonValue, but would be
an XSS vulnerability.
2019-04-22 08:56:55 +02:00
Thibault Duplessis 2f0898a1d6 rename cssTag 2019-04-21 21:33:50 +07:00
Thibault Duplessis 1a5d9dcff8 all pages are responsive now 2019-04-11 17:23:25 +07:00
Thibault Duplessis a410c7b905 templating refactoring 2019-04-08 16:54:45 +07:00
Thibault Duplessis 30fcbec418 learn UI WIP 2019-03-25 08:34:45 +07:00