anki/pylib/tests
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
..
support tweaking the folder names again 2020-01-03 07:48:38 +10:00
__init__.py replace the old stripHTML() methods with the backend implementation 2021-10-01 23:15:45 +10:00
run_format.py bump minimum Python to 3.9 2021-10-04 15:05:15 +10:00
run_mypy.py apply some f-string updates via flynt 2021-10-02 23:52:02 +10:00
run_pylint.py update Python deps 2021-10-02 23:52:23 +10:00
run_pytest.py add missing copyright headers to *.py 2021-04-13 18:45:35 +10:00
shared.py move proto files into separate py_library in same namespace 2021-07-11 14:51:25 +10:00
test_cards.py PEP8 collection.py 2021-06-27 15:12:22 +10:00
test_collection.py move proto files into separate py_library in same namespace 2021-07-11 14:51:25 +10:00
test_decks.py PEP8 collection.py 2021-06-27 15:12:22 +10:00
test_exporting.py move proto files into separate py_library in same namespace 2021-07-11 14:51:25 +10:00
test_find.py Add pylib/browser.py for literal config keys 2021-07-05 12:44:48 +02:00
test_flags.py PEP8 collection.py 2021-06-27 15:12:22 +10:00
test_importing.py apply some f-string updates via flynt 2021-10-02 23:52:02 +10:00
test_latex.py apply some f-string updates via flynt 2021-10-02 23:52:02 +10:00
test_media.py Revert "stop (un)escaping media filenames" 2021-07-16 10:37:59 +10:00
test_models.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00
test_sched2021.py use different approach to running tests twice 2021-03-01 12:47:39 +10:00
test_schedv1.py apply some f-string updates via flynt 2021-10-02 23:52:02 +10:00
test_schedv2.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00
test_stats.py Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
test_template.py PEP8 cards.py 2021-06-27 12:12:23 +10:00
test_undo.py PEP8 collection.py 2021-06-27 15:12:22 +10:00