Kenny
3727781522
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
ae5f1cfda1
Apply similar border-radius fix for help page
2023-07-18 22:50:27 +10:00
Derek Dang
1cac2dc85f
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
9430e3ddf2
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
ca41dfeb3d
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
754fcc2b3a
Update bold check to font weight 700
...
https://github.com/ankitects/anki/issues/2453
2023-07-17 14:20:31 +10:00
Damien Elmes
f504cc45f1
Add Filipino to language list
2023-07-17 14:07:11 +10:00
Damien Elmes
998b728285
Update translations
2023-07-17 14:07:08 +10:00
shunlog
a2cd9ec34d
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
a623dff0da
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
f076fa28af
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]
e0862bbc19
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
ed332966d9
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
ae6d79fd7e
Fix eslint issue
2023-07-10 11:05:32 +10:00
Damien Elmes
17051c2b81
Fix @__PURE__ replacement not matching multiple times
...
Also handle subfolders
2023-07-10 11:02:35 +10:00
Damien Elmes
0d7c34dace
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
0309f969e7
Fix run-qt5.15.bat ( #2569 )
2023-07-10 10:35:43 +10:00
Damien Elmes
9711044290
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
fc0bff4166
Add updated script for transforming ftl text
2023-07-06 22:27:09 +10:00
Damien Elmes
516abf7cfa
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
e835922ded
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
32d6248ff1
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
aced75f743
Add an improved tool for copying/moving FTL strings
2023-07-04 13:39:01 +10:00
Damien Elmes
04b74a56b7
Update translations
2023-07-04 13:39:00 +10:00
Damien Elmes
13572a86b2
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
78b4a391cc
Fix some ftl args not being passed correctly in TypeScript
2023-07-04 00:47:59 +10:00
Damien Elmes
b73c4bfe9c
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
79779f915e
Avoid :pages prefix on ts/*, so build rule matches folder location
2023-07-03 17:24:27 +10:00
Damien Elmes
a06e2335c4
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
ec9cf4a821
Add a script to clean build folder
2023-07-03 17:24:27 +10:00
Damien Elmes
9f5b7e79cc
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
cb8007ce30
Move .py i18n method generation to Rust
2023-07-03 15:58:46 +10:00
Damien Elmes
4c76e3150b
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
f3b6deefe9
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
ffadbf577b
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
5349f32e8d
Roll prettier plugin back for now
...
Depends on GLIBC_2.29
2023-07-03 09:53:32 +10:00
Damien Elmes
62c7cdc543
Add scss formatter
2023-07-03 09:44:38 +10:00
Damien Elmes
f68a584bd7
Update dprint plugins
2023-07-03 09:42:29 +10:00
Damien Elmes
d0798ae7e0
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
e63be7083c
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
7d2ec8ed65
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
Damien Elmes
51efcabf4a
Update n2 for Windows console fix; recommend it on Windows as well
2023-07-02 19:03:37 +10:00
Damien Elmes
711c28e1a5
Fix some Windows path issues
...
- Don't bake modified PATH in to build.ninja; instead set it at run time.
- Add win audio in build.rs, as doing it in run.bat results in it being
added multiple times when you run multiple times.
2023-07-02 18:22:44 +10:00
Damien Elmes
dfae9f353a
Exclude PyOxidizer from recursive checkout
2023-07-02 18:22:44 +10:00
Damien Elmes
8c712cd118
Support creating a standalone sync server
2023-07-02 18:22:44 +10:00
Damien Elmes
0f77de896d
Fix building outside workspace
...
rslib/build.rs needs descriptors, even if env var not set
2023-07-02 18:22:44 +10:00
Damien Elmes
c6f429ab17
Add option to use LTO in release builds
...
Shrinks rslib.so from about 40MB to about 26MB, at the cost of considerably
higher build time in a release build.
2023-07-02 18:22:44 +10:00
Damien Elmes
56a1046ff8
Fix bundling
...
PyOxidizer binary is now going into a platform folder, and our Qt
deps moved.
2023-07-02 18:22:44 +10:00
Damien Elmes
b4bfc1a80d
Let ninja/n2 do the configure invocation
...
I'd introduced maybe_reconfigure_build() after running into issues where
configure was not being invoked, but have discovered why that was happening:
the out folder path must be identical to the canonical path listed in
build.ninja, which it wasn't when a symlink was used. With this change,
we avoid having to invoke ninja twice, and get visibility into the
configure step.
This also makes rsbridge only depend on out/env, which prevents it from
being rebuilt when any reconfigure happens.
2023-07-02 18:22:44 +10:00
Damien Elmes
58c0f61d31
Fix progress not updating after one-way sync
2023-07-02 15:47:09 +10:00