anki/rslib
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
..
.cargo initial Bazel conversion 2020-11-01 14:26:58 +10:00
build Remove native HelpPage enum 2021-07-22 16:32:49 +02:00
cargo Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
i18n update Rust deps 2021-10-02 20:42:03 +10:00
src Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
tests use separate integration test for links 2021-07-24 10:12:25 +10:00
.gitignore initial Bazel conversion 2020-11-01 14:26:58 +10:00
BUILD.bazel Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
Cargo.toml Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
empty.rs add a valid, empty file so the check action works in Rust Analyzer 2021-05-05 15:53:27 +10:00
README.md add some code editing/completion docs 2020-12-16 14:16:08 +10:00
rustfmt.bzl update to the latest rules_rust + security framework update 2021-03-27 19:28:19 +10:00
rustfmt.toml tidy up Rust imports 2021-04-18 18:38:54 +10:00

Anki's Rust code.

backend.proto stores the interfaces used to communicate backend messages between Rust, Python and TypeScript.