Commit graph

17 commits

Author SHA1 Message Date
abaevbog
f387c67fbc
remove unneeded .trim from react-virt patch (#4379)
Followup to #4370, per https://github.com/zotero/zotero/pull/4370#discussion_r1674336402
2024-07-12 00:21:45 -04:00
abaevbog
a07117c938
Patch react-virtualized to fix react 18 scroll lag (#4370)
React 18 introduced automatic batching which tries to avoid unnecessary
re-rendering (https://react.dev/blog/2022/03/08/react-18-upgrade-guide#automatic-batching).
In some components based on react-virtualized (e.g. tag selector),
it leads to visible lagginess on scroll via keypress or
mouse wheel (not trackpad). This patch wraps setState of the scroll handler
of react-virtualized with ReactDOM.flushSync, which opts out
of automatic batching.

Fixes: #4368
2024-07-11 01:18:25 -04:00
Tom Najdek
76caebdd8a
Show current locale in error message in localize-ftl. Fix #4302 2024-07-01 11:08:41 +02:00
Tom Najdek
b9f0d26cee
Improve ftl localization scripts 2024-06-21 15:40:10 +02:00
Tom Najdek
b7244998a1
Few fixes to ftl-to-json and localize-ftl scripts (#3707)
* Omit msg-ref-only strings from Transifex JSON
* Fix msg-ref-only strings not included in translated .ftl files
* Update ftl-tx. Simplify localize-ftl script.
* Tweak FTL -> JSON conversion to produce a single file
2024-06-18 06:34:17 -04:00
Tom Najdek
0f6cae891d
JS Build: Fix watch exits if omni update fails 2024-04-02 17:38:15 +02:00
Tom Najdek
95cfc4be13
JS Build: Fix watch exits with error in some scenarios 2024-03-13 11:34:53 +01:00
Tom Najdek
e7f899c09d
JS Build: Fix watch exits when encountering an error 2024-03-12 17:04:47 +01:00
Tom Najdek
0478e66a47
Improve build process. Fix #3758 (#3809)
- Remove directories that should no longer be present in the build.
- Add watching for new files.
- Add debounce and batching to reduce verbosity and avoid needless cleanup and "add to omni" steps
  when entire directories are affected.
2024-03-08 01:26:24 -05:00
Tom Najdek
a68424658a Fix a bug in the build process
Fixes TypeError: Cannot read properties of undefined (reading 'toFixed')
2024-01-24 04:03:12 -05:00
Dan Stillman
838a3090fd Move pdf-reader submodule to reader 2023-08-08 01:40:24 -04:00
Dan Stillman
086399da33 Handle multiple Fluent source files
With list specified in js-build/config.js
2023-05-29 22:46:24 -04:00
Dan Stillman
0de1305665 Tweaks to Fluent/Transifex JSON processing scripts (#3058)
- Use locale directories for JSON files, since that's where the
  Transifex client will interact with them
- Skip non-locale directories (e.g., don't create an .ftl file for
  .DS_Store)
- Other minor simplification
2023-05-29 22:46:24 -04:00
Tom Najdek
afaf0b4968 Add scripts to convert ftl to/from Transifex JSON (#3058) 2023-05-29 22:46:24 -04:00
Dan Stillman
c326a6c971 Fix more files for combined repos 2023-04-29 07:50:54 -04:00
Dan Stillman
c55ef8714b Update app build scripts for new combined repo
Also:

- Replace `install.rdf` with `version` file
- Remove lots of obsolete logic in `prepare_build` (formerly
  `build_xpi`)
2023-04-26 04:40:22 -04:00
Dan Stillman
ae0091fbae Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00