mirror of
https://github.com/ankitects/anki.git
synced 2026-10-02 05:24:38 +08:00
d036c2ade428b65d47c677bf3887a7402312c5c5
<!-- Title (for the Pull Request title field at the top): Use a short prefix so the change type is obvious. You do not need to repeat it in the body below. Examples: - fix: — bugfix - feat: — feature - refactor: — internal change without user-facing feature - docs: — documentation only - chore: — tooling, CI, deps, build housekeeping - test: — tests only --> ## Linked issue (required) closes https://github.com/ankitects/anki/issues/4809 <!-- Fixes #123 / Closes #123 / Refs #123 --> ## Summary / motivation (required) <!-- What this PR does and why. For larger changes, add enough context for reviewers. --> This exposes a JS api to set the speed at which you click to unlock the FSRS parameters (See #4372) ## Steps to reproduce (required, use N/A if not applicable) <!-- Steps to reproduce: how to trigger the bug in the broken state (the "before"). - Mainly for bugfixes; - For bugs: numbered steps before the fix. For non-bugs: write N/A. - use N/A for features, refactors, docs, chore, etc. --> N/A ## How to test (required) <!--- How to test: how you verified the change (checks, unit tests, manual steps, edge cases — the "after" or general validation). ---> Open the console in the deck options and run `anki.setParameterUnlockClickTimeoutMs(0)`. If you set it to 0 then it will be impossible to unlock. if you set it to something very high it will be very easy. ### Checklist (minimum) - [X] I ran `./ninja check` or an equivalent relevant check locally. - [ ] I added or updated tests when the change is non-trivial or behavior changed. ### Details <!-- Commands, manual steps, edge cases, and what you observed --> ## Before / after behavior (optional) <!-- For bugfixes: behavior before vs after. For other types: N/A or a short note. --> ## Risk / compatibility / migration (optional) <!-- Breaking changes, rollout notes, or N/A for small / low-risk PRs --> ## UI evidence (required for visual changes; otherwise N/A) <!-- Screenshot or short video --> ## Scope - [X] This PR is focused on one change (no unrelated edits).
Anki
This repo contains the source code for the computer version of Anki.
About
Anki is a spaced repetition program. Please see the website to learn more.
This repo contains the source code for the computer version of Anki.
Getting Started
Contributing
Want to contribute to Anki? Check out the Contribution Guidelines.
For more information on building and developing, please see Development.
Contributors
The following people have contributed to Anki: CONTRIBUTORS
Anki Betas
If you'd like to try development builds of Anki but don't feel comfortable building the code, please see Anki betas.
License
Anki's license: LICENSE
Languages
Rust
37.5%
Python
22.9%
MDX
19.5%
TypeScript
9.5%
Svelte
8.9%
Other
1.3%