summaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/anki-controller.js
diff options
context:
space:
mode:
authorKuuuube <61125188+Kuuuube@users.noreply.github.com>2024-02-02 21:53:42 -0500
committerGitHub <noreply@github.com>2024-02-03 02:53:42 +0000
commit5a2bc4e542b7f22d1e6a4ba318cfcdc33817d34a (patch)
tree81a112708329ca8b2866ed4d05cf7203252854d6 /ext/js/pages/settings/anki-controller.js
parent6dc7e90f8d5679b0de298c820a5b88b93590ed31 (diff)
Add frequency number handlebars (#600)
* Add frequencies-num handlebar * Fix handlebar name * Fix inconsistent variable name format * Add frequency-number to anki tests * Use full names for total and frequency variables * Migrate handlebars to JS, split rank and occurance, add average * Remove left behind frequency-number * Fix "occurrence" spelling * Cleanup types * Add frequency support for kanji cards * Fix code style * Clean up most of duplicate code and merge functions * Fix frequencies.length check * Use less witchcraft and remove redundant type casting
Diffstat (limited to 'ext/js/pages/settings/anki-controller.js')
-rw-r--r--ext/js/pages/settings/anki-controller.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/js/pages/settings/anki-controller.js b/ext/js/pages/settings/anki-controller.js
index ae6a71db..a0d57457 100644
--- a/ext/js/pages/settings/anki-controller.js
+++ b/ext/js/pages/settings/anki-controller.js
@@ -138,6 +138,10 @@ export class AnkiController {
'document-title',
'expression',
'frequencies',
+ 'frequency-harmonic-rank',
+ 'frequency-harmonic-occurrence',
+ 'frequency-average-rank',
+ 'frequency-average-occurrence',
'furigana',
'furigana-plain',
'glossary',
@@ -168,6 +172,11 @@ export class AnkiController {
'cloze-suffix',
'dictionary',
'document-title',
+ 'frequencies',
+ 'frequency-harmonic-rank',
+ 'frequency-harmonic-occurrence',
+ 'frequency-average-rank',
+ 'frequency-average-occurrence',
'glossary',
'kunyomi',
'onyomi',