Aristotelis
5a25726889
[Development] Specify extra directory as a designated ignored folder ( #2593 )
...
* Add `extra` directory as a designated ignored folder
Excludes `extra/` from version tracking, file formatters, and file checks.
* Remove pytest cache from exclusion rules
Python test discovery is easy enough to disable for the workspace in VS Code's settings and pytest does not serve any purpose in the context of the project anyway.
2023-07-27 22:27:07 +10:00
Damien Elmes
3350c75c9e
Work around CI failure on Windows with PyQt 6.5.2
2023-07-26 21:10:19 +10:00
Damien Elmes
06316161df
Update certifi for minor bug fix
2023-07-26 20:41:19 +10:00
Damien Elmes
dea2b1b7b4
Qt 6.5.1 -> 6.52 on Windows/Mac
...
Linux still blocked on previous Wayland breakage
2023-07-26 20:39:11 +10:00
RumovZ
e122ec44a1
Pass dict for locals and globals to exec() ( #2590 )
2023-07-25 21:21:06 +10:00
Luc Mcgrady
2dec8361ff
Add keyboard shortcut for legacy stats ( #2583 )
...
* Added: Shortcut for legacy stats
* Added: Name to contributors
* Capitalize S
2023-07-24 11:31:41 +10:00
Damien Elmes
2985901595
Update translations
2023-07-24 10:29:59 +10:00
Damien Elmes
05a0c8b9ee
Catch altered translation of 'unknown error'
...
https://forums.ankiweb.net/t/how-to-solve-this-problem-trouble-report/32402
2023-07-24 10:29:37 +10:00
Damien Elmes
4e891ae02b
Don't throw on empty URLs in clipboard
...
https://forums.ankiweb.net/t/dragging-and-dropping-picture-error/32313
2023-07-24 10:28:07 +10:00
Kenny
c8e8b3b772
Fix a11y error in CardsCount Component ( #2585 )
...
* fix: a11y issues in CardCounts component
* feat: add name to contributors file
* fix: excessive spacing
2023-07-21 20:43:08 +10:00
Damien Elmes
2b7a01f2f6
Apply similar border-radius fix for help page
2023-07-18 22:50:27 +10:00
Derek Dang
19d4f849ae
Address a11y warning for TabbedValue ( #2582 )
...
* Address a11y warning for TabbedValue
* Make the tab underline straight (dae)
2023-07-18 22:49:02 +10:00
RumovZ
365700e45a
Fix addon update dialog showing twice ( #2580 )
...
* Gitignore .ninja_deps
* Don't check for addon updates on profile unload
This fixes two update dialogs showing up when switching profiles.
* Only show addon update dialog once
... instead of once every time the profile is changed, when the version
doesn't match.
This is analogous to when the dialog is triggered by elapsed time.
* Manage last_run_version update in ProfileManager
2023-07-18 22:26:59 +10:00
Derek Dang
c2fa3b50f0
Fix a11y-noninteractive-element-interactions ( #2578 )
...
* Fix a11y-noninteractive-element-interactions
* Update CONTRIBUTORS
* Fix formatting issues
* Address a11y-noninteractive-element-interactions
2023-07-17 14:34:09 +10:00
Damien Elmes
d982962474
Update bold check to font weight 700
...
https://github.com/ankitects/anki/issues/2453
2023-07-17 14:20:31 +10:00
Damien Elmes
481876101e
Add Filipino to language list
2023-07-17 14:07:11 +10:00
Damien Elmes
12117843e0
Update translations
2023-07-17 14:07:08 +10:00
shunlog
ae2a27020a
Align code blocks to left ( #2575 )
...
* Align code blocks to left
Fixes #2573
* Update CONTRIBUTORS
2023-07-14 13:50:01 +10:00
Damien Elmes
70bf2729e6
Tolerate {{FrontSide}} on the front side
...
https://forums.ankiweb.net/t/display-the-template-for-the-front-has-a-problem/32035
2023-07-13 21:39:16 +10:00
3ter
690e82a74f
Add did-add-field-hook analogous to did-delete-field ( #2574 )
...
* Add add field hook analogous to delete field
* Add myself to contributors
2023-07-13 21:10:12 +10:00
dependabot[bot]
bd5641eab4
Bump semver from 6.3.0 to 6.3.1 ( #2572 )
...
Fixes a minor security alert.
Bumps [semver](https://github.com/npm/node-semver ) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases )
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md )
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-12 21:16:10 +10:00
mmjang
3e68820018
make weekday font smaller for Chinese locale ( #2535 ) ( #2571 )
...
* make weekday font smaller for Chinese locale (#2535 )
* add item to contributor list
2023-07-12 20:44:25 +10:00
Damien Elmes
ad1e305a79
Fix eslint issue
2023-07-10 11:05:32 +10:00
Damien Elmes
e2a4005531
Fix @__PURE__ replacement not matching multiple times
...
Also handle subfolders
2023-07-10 11:02:35 +10:00
Damien Elmes
97785fd508
Add delay to test_modelChange()
...
Have seen this fail on macOS a couple of times, and once on Windows,
so the issue does not appear Windows-only, and the existing delay does
not appear to have been long enough in all cases.
2023-07-10 10:40:37 +10:00
Hikaru Y
8c4eeecfcd
Fix run-qt5.15.bat ( #2569 )
2023-07-10 10:35:43 +10:00
Damien Elmes
dcc19e0326
Improve performance of invalid ID fix in DB check
...
Fixes https://forums.ankiweb.net/t/check-database-is-stuck-on-checking-history/31891
2023-07-07 22:53:41 +10:00
Damien Elmes
b133de00cd
Add updated script for transforming ftl text
2023-07-06 22:27:09 +10:00
Damien Elmes
8452de0c5a
Stop including Qt translations when EXTRA_FTL_ROOT provided
...
This was causing index mismatches when switching between release and
non-release builds, presumably as the build script wasn't being rerun
in that case. We could add a rerun-if-changed=RELEASE, but easier to
strip this out, as it's rare to run the checks from an external repo.
2023-07-04 18:26:27 +10:00
Damien Elmes
c44cf61673
Fix i18n build script not responding to env var changes
...
Not much use declaring the cargo flag when we bake the env var into
the binary! Also treat an empty variable as missing.
2023-07-04 17:17:41 +10:00
Damien Elmes
e37b7b919e
Add nothing to undo/redo
...
https://forums.ankiweb.net/t/translation-of-nothing-to-undo/31735
2023-07-04 13:41:02 +10:00
Damien Elmes
0ddec0bcb7
Add an improved tool for copying/moving FTL strings
2023-07-04 13:39:01 +10:00
Damien Elmes
3b25c7a109
Update translations
2023-07-04 13:39:00 +10:00
Damien Elmes
39393d3520
Move i18n helpers into ftl/, with a single main.rs
...
Clap gives us a nice help message and better arg parsing
2023-07-04 10:47:15 +10:00
Damien Elmes
942b3b2eff
Fix some ftl args not being passed correctly in TypeScript
2023-07-04 00:47:59 +10:00
Damien Elmes
215bede447
Increase default size of media check screen
...
https://forums.ankiweb.net/t/text-does-not-fit-in-buttons-of-media-check-window/31731/2
2023-07-03 23:58:24 +10:00
Damien Elmes
6a83f5b022
Avoid :pages prefix on ts/*, so build rule matches folder location
2023-07-03 17:24:27 +10:00
Damien Elmes
4442a73488
Merge the separate editor index files
...
They're almost the same, and the extra work competes for CPU cores
with the other build steps.
2023-07-03 17:24:27 +10:00
Damien Elmes
d4d154025e
Add a script to clean build folder
2023-07-03 17:24:27 +10:00
Damien Elmes
565dddbf29
Move markpure to TypeScript
...
Combined with the previous changes, this allows the mobile clients to
build the web components without having to set up a Python environment,
and should speed up AnkiDroid CI.
2023-07-03 17:24:27 +10:00
Damien Elmes
c873b28d15
Move .py i18n method generation to Rust
2023-07-03 15:58:46 +10:00
Damien Elmes
c83f577601
Move .ts i18n method generation to Rust
...
Based on a similar approach I used for AnkiDroid. The separate modules
file has been integrated into ftl.js.
2023-07-03 14:36:09 +10:00
Damien Elmes
c25c00e411
Combine all backend methods into a single js/d.ts file, like in Python
...
Easier to import from, and allows us to declare the output of the build
action without having to iterate over all the proto filenames. Have
confirmed it doesn't break esbuild's tree shaking.
2023-07-03 13:46:38 +10:00
Damien Elmes
5623523a16
deckconfig.proto -> deck_config.proto
...
Makes it consistent with our other proto files, and matches the service
name.
2023-07-03 13:44:54 +10:00
Damien Elmes
e868c327f1
Roll prettier plugin back for now
...
Depends on GLIBC_2.29
2023-07-03 09:53:32 +10:00
Damien Elmes
d513d5efba
Add scss formatter
2023-07-03 09:44:38 +10:00
Damien Elmes
daa74e9b8b
Update dprint plugins
2023-07-03 09:42:29 +10:00
Damien Elmes
827e3410ad
Store field content instead of trying to mutate clipboard data
...
Hopefully this will finally address the clipboard issues some users
have been experiencing.
Tentatively closes #2349
2023-07-02 22:23:31 +10:00
Damien Elmes
9a26b536db
Remove dataChanged workaround on Windows
...
I believe this should be fixed in 6.4/6.5
https://bugreports.qt.io/browse/QTBUG-102738
2023-07-02 20:37:05 +10:00
Damien Elmes
20a8295175
Only disable specific animations/transitions/shadows
...
If I've missed any, follow-up PRs would be most appreciated.
Closes #2557
2023-07-02 20:02:14 +10:00