anki/ts/lib
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
..
i18n Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
bridgecommand.ts Implement register-package and export some packages 2021-08-30 14:41:40 +02:00
BUILD.bazel Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
cards.ts Add gatherByQueue and gatherByCtype methods 2021-01-04 14:04:51 +01:00
dom.ts Satisfy eslint 2021-09-15 13:45:20 +02:00
genfluent.py Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
image-import.d.ts update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
keys.ts Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
nightmode.ts initial Bazel conversion 2020-11-01 14:26:58 +10:00
platform.ts use different toolbar size on Mac 2021-06-05 11:28:36 +10:00
postrequest.ts support card state mutator in test scheduler 2021-05-17 16:59:02 +10:00
proto.ts Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
register-package.ts Disallow setting, deleting or defining properties on packages 2021-09-03 00:52:39 +02:00
runtime-require.ts expose require() instead of the svelte global 2021-08-24 10:22:07 +10:00
shadow-dom.d.ts fixes for TypeScript 4.4.x 2021-09-23 09:52:21 +10:00
shortcuts.ts Special handling of Backspace/Delete etc. for displaying shortcuts 2021-09-09 15:37:57 +02:00
time.test.ts add missing copyright headers to *.ts 2021-04-13 18:57:08 +10:00
time.ts Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
tsconfig.json Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
typing.ts add missing copyright headers to *.ts 2021-04-13 18:57:08 +10:00
wrap.ts Ugly fix: do not execute moveCursorPastPostfix when front includes "anki-mathjax" 2021-09-17 20:12:11 +02:00