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
Damien Elmes
19ee3446be
Update n2 for Windows console fix; recommend it on Windows as well
2023-07-02 19:03:37 +10:00
Damien Elmes
8f9db6dd48
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
c00a796a50
Exclude PyOxidizer from recursive checkout
2023-07-02 18:22:44 +10:00
Damien Elmes
03d4f24ff5
Support creating a standalone sync server
2023-07-02 18:22:44 +10:00
Damien Elmes
d7f6a9e972
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
ebc24c94c8
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
d7ef61b8df
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
e12b007b0e
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
7956eee8b7
Fix progress not updating after one-way sync
2023-07-02 15:47:09 +10:00
Damien Elmes
11fcceb5e2
Fix Windows build
2023-07-02 15:17:29 +10:00
Damien Elmes
c4eb281112
Fix clean build failure
2023-07-02 14:55:47 +10:00