Anki/rslib/src/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
..
scheduler rename Config in protobuf to avoid conflict with module name 2021-07-11 19:27:08 +10:00
search Add tooltips for some browser columns 2021-09-30 13:15:09 +02:00
sync in/out -> request/response 2021-06-20 15:49:20 +10:00
adding.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00
card.rs support updating multiple cards in one transaction/undo op 2021-08-02 16:59:02 +10:00
cardrendering.rs replace the old stripHTML() methods with the backend implementation 2021-10-01 23:15:45 +10:00
collection.rs in/out -> request/response 2021-06-20 15:49:20 +10:00
config.rs configs.proto plural workaround no longer necessary 2021-07-11 19:35:18 +10:00
dbproxy.rs update to latest rusqlite 2021-06-25 16:22:21 +10:00
deckconfig.rs expose scheduler js option in deck config 2021-06-24 14:38:10 +10:00
decks.rs in/out -> request/response 2021-06-20 15:49:20 +10:00
error.rs handle notes with missing cards in browser 2021-07-22 14:58:57 +10:00
generic.rs new change notetype implementation for the frontend 2021-06-10 22:19:24 +10:00
i18n.rs in/out -> request/response 2021-06-20 15:49:20 +10:00
links.rs Remove native HelpPage enum 2021-07-22 16:32:49 +02:00
media.rs in/out -> request/response 2021-06-20 15:49:20 +10:00
mod.rs Add links.proto and backend module 2021-07-22 10:05:38 +02:00
notes.rs support updating multiple notes in one transaction/undo op 2021-08-02 17:07:26 +10:00
notetypes.rs Skip new notetype checks when importing apkg 2021-07-28 21:46:51 +02:00
ops.rs fix note changes triggering a queue rebuild 2021-06-08 12:09:35 +10:00
progress.rs fix clippy lints for latest Rust 2021-06-21 13:09:36 +10:00
stats.rs Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
tags.rs bikeshedding: amount -> match_limit 2021-09-12 11:57:49 +10:00