anki/ts/lib
Vova Selin 2df3698e8c
Minor changes to graphs (#1566)
* Add thousands comma separator for card counts graph

* Fix Answer Buttons graph's tooltip

Changes to the "times pressed" heading

* Shows the percent of that button out of all the presses

* Comma separates total on thousands

* Update CONTRIBUTERS

* Wider spacing for graph tables

* Switch to locale-based stats numbers

* Update CONTRIBUTORS 

Wrong email?

* Fix counts graph on narrow devices

Graph and table now align in a column when the device's screen is narrow. Columns widths are  bounded to not get too wide

* Rename toLocaleXXX functions

* toLocaleNumber -> localizedNumber
 *  toLocaleString -> localizedDate

Also cleans up sketchy "card counts" table formatting

* Localize more numbers

Uses locale-based rounding for more numbers now

* Localize graph axis ticks

* Fix future-due graph tooltip

* avoid div by zero (dae)

Ignoring NaN in localizedNumber() could potentially mask a mistake
in the future - better to explicitly handle the invalid case at the
source instead.
2021-12-29 15:04:15 +10:00
..
i18n Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
bridgecommand.ts Implement register-package and export some packages 2021-08-30 14:41:40 +02:00
BUILD.bazel Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
cards.ts fix inverted SchedBuried and UserBuried in cards.ts 2021-12-20 12:57:35 +10:00
context-keys.ts Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
cross-browser.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
dom.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
events.ts Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
functional.ts Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10: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 Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
nightmode.ts Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
node.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
platform.ts use different toolbar size on Mac 2021-06-05 11:28:36 +10:00
postrequest.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
promise.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
proto.ts Card info cleanup (#1446) 2021-10-23 11:00:43 +10:00
register-package.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
runtime-require.ts avoid Object.fromEntries() and some instances of globalThis 2021-11-02 12:54:06 +10:00
shadow-dom.d.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
shortcuts.ts Add back wrap function (#1551) 2021-12-13 14:00:35 +10:00
time.test.ts add missing copyright headers to *.ts 2021-04-13 18:57:08 +10:00
time.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
tsconfig.json Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
typing.ts add missing copyright headers to *.ts 2021-04-13 18:57:08 +10:00
uuid.ts Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
wrap.ts Add back wrap function (#1551) 2021-12-13 14:00:35 +10:00