Anki/ts
Luc Mcgrady 8b18a08b3b
FSRS - Ignore revlogs before date while optimizing (#2922)
* Added: Date input button

* Added: ignoreDate to config

* Added: Backend

* Optimize function passes value

* Fix: Spelling

* Moved: filter logic from revlog_for_srs to update_memory_state

* fmt

* Copyright header

* ./check

* Fix: Test

* Renamed: Ignore_date -> Ignore_before_date

* Neaten parameters

* evaluate weights

* ./check

* Optimize all presets

* Added: Label localizations

* Removed globe label

* Added: Tooltip

* Changed error type

* fmt

* Moved filter to own function

* missing function call replacement

* Fix: Typo

* Apply suggestions from code review

Co-authored-by: Damien Elmes <dae@users.noreply.github.com>

* timestamp * 1000 -> timestamp_millis

* ignoreBefore -> ignore_before

* clarified ignore_before variables

* i64 -> TimestampMillis

* Un-traitified remove_revlogs_before

* Added: ms == 0 guard

* Added: Ignore_before affects scheduling

* Moved filter to fsrs_items_for_training

* removed filter from revlog_for_srs

* Tuple -> UpdateMemoryStateEntry

* Removed unused function

* Removed superfluous _ms from variables

* cid -> id

* Different ignore method

* Added: Unit test

* cid -> id

* Test: Exact ms edge case

* ./check

* Fix: re-learns could be before ignore date in cards without learning steps

* getignoreRevlogsBeforeMs -> getIgnoreRevlogsBeforeMs

* Removed pub(crate)

* Clarified unit test

* last_learn_entry -> first_of_last_learn_entries

* @user1823's method

* IOS fix

* ./check

* Fix: width defined twice
2024-02-22 11:01:10 +07:00
..
card-info Record FSRS difficulty in the review log 2023-09-17 11:50:38 +10:00
change-notetype Improve keyboard handling and accessibility for Select.svelte and refactor (#2811) 2023-11-21 14:23:18 +10:00
components Do not close web pages when Esc is pressed and a modal is open (#2894) 2023-12-21 13:59:52 +10:00
congrats Ignore congrats fetch errors 2024-01-19 15:28:54 +10:00
deck-options FSRS - Ignore revlogs before date while optimizing (#2922) 2024-02-22 11:01:10 +07:00
domlib Fix overwrite surround (#2247) 2022-12-09 10:10:58 +10:00
editable Fix MathJax editor not opening when navigating into blocks (#2953) 2024-01-19 16:06:27 +10:00
editor Refactor text attribute button components (#3012) 2024-02-18 13:09:05 +07:00
fields Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
graphs More precise percent of days studied (#2889) 2024-01-21 20:25:50 +10:00
html-filter Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
icons Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
image-occlusion Maintain original IO cloze order in editing mode (#2987) 2024-02-07 13:42:47 +10:00
import-anki-package Allow im-/exporting with or without deck configs (#2804) 2023-11-13 13:54:41 +10:00
import-csv Improve keyboard handling and accessibility for Select.svelte and refactor (#2811) 2023-11-21 14:23:18 +10:00
import-page Hide show/close buttons on mobile 2023-09-19 13:14:54 +10:00
lib Change link to manual in help screen from icon to text (#2886) 2023-12-13 09:03:05 +10:00
mathjax Fix underscores in MathJax breaking rendering 2023-12-11 15:00:56 +10:00
reviewer Replace css_browser_selector with our own implementation (#2854) 2023-11-30 10:57:33 +10:00
sveltelib Do not close web pages when Esc is pressed and a modal is open (#2894) 2023-12-21 13:59:52 +10:00
tag-editor Make tags and tag suggestions able to be styled by add-ons (#2941) 2024-01-18 10:09:06 +10:00
tools Fix JS proto definitions not getting tree-shaken 2023-11-27 13:34:42 +10:00
.gitignore Update eslint to 4.22.0 2021-04-22 19:19:39 +02:00
bundle_svelte.mjs Fix a deprecation warning in Svelte 2023-08-23 11:05:14 +10:00
bundle_ts.mjs Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
esbuild_jest.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
jest.config.js Update to Svelte 4, and update most other JS deps (#2565) 2023-07-01 16:21:53 +10:00
licenses.json Replace css_browser_selector with our own implementation (#2854) 2023-11-30 10:57:33 +10:00
page.html Load page script after body created (#1802) 2022-04-19 17:16:56 +10:00
README.md add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
transform_ts.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
tsconfig.json Update TS deps 2023-11-27 13:34:42 +10:00
yarn.sh Fix yarn.sh failing with linked out folder 2023-03-31 13:08:59 +10:00

Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.

To update all dependencies:

./update.sh

To add a new dev dependency, use something like:

./add.sh -D @rollup/plugin-alias