Anki/pylib/anki/_backend
RumovZ 3672b0fe73
Switch CardInfoDialog to ts page (#1414)
* Only collect card stats on the backend ...

... instead of rendering an HTML string using askama.

* Add ts page Card Info

* Update test for new `col.card_stats()`

* Remove obsolete CardStats code

* Use new ts page in `CardInfoDialog`

* Align start and end instead of left and right

Curiously, `text-align: start` does not work for `th` tags if assigned
via classes.

* Adopt ts refactorings after rebase

#1405 and #1409

* Clean up `ts/card-info/BUILD.bazel`

* Port card info logic from Rust to TS

* Move repeated field to the top

https://github.com/ankitects/anki/pull/1414#discussion_r725402730

* Convert pseudo classes to interfaces

* CardInfoPage -> CardInfo

* Make revlog in card info optional

* Add legacy support for old card stats

* Check for undefined instead of falsy

* Make Revlog separate component

* drop askama dependency (dae)

* Fix nightmode for legacy card stats
2021-10-14 19:22:47 +10:00
..
__init__.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00
BUILD.bazel move proto files into separate py_library in same namespace 2021-07-11 14:51:25 +10:00
fluent.py rework translation handling 2021-03-26 09:41:32 +10:00
genbackend.py Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
generated.py start work on more clearly defining backend/protobuf boundaries 2021-01-31 18:55:45 +10:00
genfluent.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00
rsbridge.pyi rework backend codegen to support multiple services; split out sched 2021-03-11 14:51:29 +10:00