Abdo
573af9cd4c
Use key instead of code in type-in field ( #3166 )
...
* Use key instead of code in type-in field
* Use event.key for Enter
2024-05-01 16:59:11 +10:00
Damien Elmes
22ecab1a0e
Ensure DB check tooltip appears in main window
...
https://forums.ankiweb.net/t/is-this-bug-or-the-new-modification-in-anki-desktop/44072
2024-04-30 23:21:41 +10:00
Pedro Schreiber
074becc0ce
Add keyboard shortcuts for empty cards and toggle mask on image occlusion ( #3136 )
...
* Add keyboard shortcuts for empty cards and toggle mask on image occlusion
- add shortcut for empty cards
- add shortcut for toggle mask
- set tooltips with shortcuts
use unused shortcut for empty cards
* remove unnecessary shortcut added in main.py
* change empty cards shortcut and try to fix CI error in CONTRIBUTORS
* change shortcut for empty cards for universal support
2024-04-25 17:19:38 +10:00
Abdo
b7e782c7e1
Show review count with FSRS evaluation results ( #3165 )
2024-04-25 17:10:41 +10:00
Lucas Scharenbroch
ee8683587a
Add number truncation before back-end translation ( #3162 )
...
* Add number-truncation before backend translation
* Round instead of truncate (conform to testcases)
* Add test-case for plural rounding-to-one corner-case
* Move rounding into generated translation code
* Change unit test to test generated function
* Round any number in generation, ignore (int vs float)
(it seems that that type distinction is frequently inaccurate)
* Update formatting
2024-04-24 02:41:40 +01:00
Jarrett Ye
2c9accf595
update optimal retention and parameters tooltip ( #3148 )
...
* update optimal retention and parameters tooltip
* Revert "update optimal retention and parameters tooltip"
This reverts commit 32fdc5c1c3
.
* update optimal retention and parameters tooltip
* check num of revlogs at first
* use new translation string
* Update deck-config.ftl
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
* Update deck-config.ftl
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
* Update deck-config.ftl
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
* Update ftl/core/deck-config.ftl
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
* fix position of translation string
* Update deck-config.ftl
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
* Update deck-config.ftl
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
* Update deck-config.ftl
---------
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
2024-04-24 02:38:52 +01:00
RumovZ
790c52f012
Svg icon ( #3135 )
...
* Add sveltekit-svg plugin to fix svg icon styling
Closes #3127 .
* Unify svg icon usage
Moves all icons into ts/lib/components/icons.ts and uses a single component to render
them both with eslint and svelte-kit.
* Fix spinning revert icon not being centered
* Use svg earth icon for global label
* Add tooltip to global label icon
* Remove eslint-plugin-simple-import-sort
Imports are already sorted by dprint with conflicting rules.
2024-04-24 02:37:31 +01:00
Mani
f0f9535200
fix io draw in mobile client ( #3160 )
2024-04-23 22:39:26 +10:00
Harvey R
839fd7bc8b
Add minimalist mode tooltip ( #3155 )
...
* Add preferences-minimalist-mode-tooltip
* Update preferences.ui
* Update preferences.ui
* Add preferences_minimalist_mode_tooltip
* Update preferences.ui
* Update preferences.ui
2024-04-23 00:32:55 +10:00
Abdo
e6c7d89443
Fix auto sync not working on Windows shutdown ( #3153 )
...
* Fix auto sync not working on Windows shutdown
* Fix mypy error
* Use translated string
2024-04-23 00:32:00 +10:00
Damien Elmes
a188a59646
Fix adding/saving I/Os on mobile
2024-04-22 20:58:26 +10:00
Damien Elmes
a90eda2e53
Update rustls for security issue
2024-04-22 19:37:11 +10:00
Abdo
00248665d7
Avoid locale.getdefaultlocale() if possible ( #3143 )
...
* Avoid locale.getdefaultlocale() if possible
* Suppress warning
* Add comment
* Apply suggestions from code review
2024-04-19 19:52:02 +10:00
Abdo
c62e2d8df0
Fix spacebar causing stutter when editing cards ( #3150 )
...
* Fix spacebar causing stutter when editing cards
* Remove IO toolbar event handlers on unmount
* Remove nested keydown handlers
2024-04-19 19:13:56 +10:00
RumovZ
ebc6c0847a
HMR on Windows ( #3144 )
...
* Enable hot module reloading on Windows
* Update VSC launch.json and tasks.json
* Bind vite server to 127.0.0.1 (dae)
Our frontend connects via IP, and on Windows, this fails if the server
is bound to 'localhost' instead.
2024-04-17 21:23:34 +10:00
Abdo
0a706c5dd9
Ignore errors in do_window_cleanup to fix shutdown issue ( #3142 )
...
* Ignore errors in do_window_cleanup to fix shutdown issue
* Only catch RuntimeError
2024-04-17 20:50:41 +10:00
Abdo
351aa96dfc
Fix IO text size in review screen ( #2986 )
...
* Store relative font size
* Handle multi-line text
Thanks to @glutanimate
2024-04-17 20:45:40 +10:00
Damien Elmes
1a868bcaaf
Ensure runner gets rebuilt in Mac CI
2024-04-17 20:23:50 +10:00
Jarrett Ye
d1b2ab5983
Return current weights if fsrs items is zero & handle error in evaluation and optimal retention ( #3141 )
...
* return current weights if fsrs_items is zero
* handle error of evaluation if items.is_empty()
* TODO: handle error of optimal retention
* Revert "TODO: handle error of optimal retention"
This reverts commit 80a5b3803e
.
* Revert "handle error of evaluation if items.is_empty()"
This reverts commit 7f0a5570e7
.
2024-04-17 20:18:00 +10:00
Damien Elmes
e66adcca38
alertOnError should default to true
...
Regressed in svelte-kit port
2024-04-17 20:13:37 +10:00
Damien Elmes
a1fa865bb2
Update translations
2024-04-13 15:02:54 +07:00
Damien Elmes
39d191edd7
Bump version
2024-04-13 15:02:46 +07:00
Loudwig
d8f2782c26
Feature Show Reminder before answer ( #3064 ) ( #3119 )
...
* Feature Question Action Show Reminder (#3064 )
Added a option in the deck config that allow the user to choose in
Autoupdate mode between showing a reminder or revealing the card.
Also added my name to the contributors
* Update ftl/core/deck-config.ftl
2024-04-13 08:39:50 +01:00
Abdo
e486d6b513
Improve typing of custom fabric.Object properties ( #3134 )
...
* Ensure increasing ordinals of new masks
* Add fabric.d.ts
* Revert "Ensure increasing ordinals of new masks"
This reverts commit dedfeec9ad
.
2024-04-13 08:36:08 +01:00
Wu Yi-Wei
31439e325d
Add Margins on the Buttons on the About Page ( #3137 )
...
* Add Margins on the Buttons on the About Page
* Fix contributors
* Fix format
2024-04-12 05:21:26 +01:00
Damien Elmes
761780397b
Update idna for security issue
2024-04-12 11:17:29 +07:00
user1823
0334f4ff77
Optimum → Minimum retention ( #3133 )
...
This was missed in https://github.com/ankitects/anki/pull/3129 .
2024-04-11 14:49:45 +01:00
dependabot[bot]
25345b91e1
Bump vite from 5.0.12 to 5.0.13 ( #3132 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 5.0.12 to 5.0.13.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.13/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v5.0.13/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-11 08:54:10 +01:00
Damien Elmes
d0c4b938cb
Update translations
2024-04-11 14:09:34 +07:00
Damien Elmes
1780c89d78
Fix casing of 'historical retention'
2024-04-11 14:09:16 +07:00
Mani
477f932f35
fix select all and change ordinal in edit mode in io ( #3109 )
...
* fix select all and change ordinal in edit mode in io
* make ordinal undefined for all shapes in group/ungroup
* fix group shapes and some ui fixes
* Don't add node_modules/* to dprint deps
* use minimum ordinal when shape merged, use max ordinal++ when ungrouped, in add mode no ordinal preset so NaN
* use state for ungroup shape
* maintain existing ordinal in editing mode
* fix order of ordinal in ungroup shape
* refactor: remove for loop, use forEach
2024-04-11 08:08:07 +01:00
Antoine Q
da4551e351
Update deck-config.ftl to clarify what optimal retention means ( #3129 )
...
* Update deck-config.ftl to clarify what optimal retention means
Renaming “Optimal retention” to “Minimum recommended retention"
* Update deck-config.ftl
Removing "Predicted" in deck-config-predicted-optimal-retention
* Update deck-config.ftl
Updating keys
* Update ftl/core/deck-config.ftl
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
2024-04-10 10:29:30 +01:00
Abdo
29bdc47482
Fix IO text masks being grouped ( #3128 )
2024-04-10 08:36:00 +01:00
Abdo
642f29cf5e
Fix IO mask position slightly off in edit mode ( #3121 )
2024-04-08 16:40:22 +01:00
Escape0707
97efd49cd8
Ignore exception raised by pip_system_certs not found ( #3114 )
...
This dependency usually doesn't benefit Linux distros with requests library configured to use system certificate already. And is not packaged by most distros. Making it optional will make most Linux users' installation much easier.
2024-04-05 13:12:06 +01:00
Jarrett Ye
10d567f937
Update to FSRS-rs v0.6.1 ( #3106 )
...
* update to FSRS-rs 0.6.0
* update to crates.io version
* format
* update to FSRS-rs v0.6.01
* ./ninja fix:minilints
* update python backend code
2024-04-05 13:04:50 +01:00
Damien Elmes
00ba69b5fe
Fix latest RUSTSEC warning
2024-04-05 18:35:28 +07:00
Damien Elmes
3033b54890
Another attempt at fixing rounding issue with optimal retention
...
Also use the previously-added translation.
2024-04-05 18:22:45 +07:00
Damien Elmes
690866b090
Update instructions for Debian 12
2024-04-04 16:34:57 +07:00
Damien Elmes
0b3b6bb7f2
Update translations
2024-04-04 15:36:31 +07:00
Damien Elmes
20aff51df8
Forgot->Reset
2024-04-04 15:36:19 +07:00
Antoine Q
068f14378e
Update about.py ( #3112 )
...
Update about.py to add my name.
2024-04-03 10:22:40 +01:00
Damien Elmes
bdc9be2bbb
Ensure ankihelper is rebuilt on arch change
...
https://forums.ankiweb.net/t/24-04-breaks-dark-mode-on-mac/43048
2024-04-03 15:07:50 +07:00
Damien Elmes
022a95db25
Mention missing libraries
2024-04-03 14:41:28 +07:00
Damien Elmes
a5154635dc
Possible fix for crash on first sync
...
https://forums.ankiweb.net/t/desktop-app-closes-itself-after-i-try-to-log-in/43132
2024-04-03 14:11:34 +07:00
jthulhu
3cd8c5700b
Corrected minor non-idiomatic snippet of code ( #3108 )
...
* Corrected minor non-idiomaticity.
* Added to CONTRIBUTORS.
2024-04-01 11:34:23 +01:00
Damien Elmes
7121cb5132
Fix arm64 node checksum
2024-04-01 17:17:44 +07:00
Mani
038a0189d0
highlight io shapes in answer side ( #3098 )
2024-03-31 10:14:11 +01:00
Abdo
31e2dc1409
Fix some cloze handling regressions ( #3086 )
...
* Place cursor inside empty clozes
* Remove empty <li> after being added
2024-03-31 10:01:17 +01:00
Damien Elmes
9c733848b8
Revert "Revert "Preserve HTML formatting inside clozes ( #3038 )""
...
This reverts commit e911b4b69a
.
Trying again now that 24.04 is out.
2024-03-31 15:55:30 +07:00