Dan Stillman
3693674fc9
Fix Fluent localization for non-English locales
...
All declared Fluent files need to exist for a locale to be used (in a
window?). Since Mozilla code tries to load Fluent files, we need to copy
non-English Mozilla .ftl files to their default effective path (just in
the app omni.ja instead of the toolkit omni.ja).
Fixes #3094
2023-04-26 04:40:22 -04:00
Abe Jellinek
c07eccb468
Scaffold: Improve perceived translation speed
...
When translators do a lot of logging.
https://github.com/zotero/translators/pull/3022#issuecomment-1517291971
2023-04-21 13:38:42 -04:00
Dan Stillman
033733122a
Merge pull request #2784 from AbeJellinek/fx-compat-loadDocument
...
fx-compat: Implement Scaffold functions, SingleFile, PDF redirects, and style installation
2023-04-14 15:07:26 -04:00
Abe Jellinek
0612a9e6f5
fx-compat: Run translation and SingleFile in [hidden] browser
...
And replace loadDocuments().
2023-04-14 11:44:44 -04:00
Abe Jellinek
01b9a3c268
fx-compat: Fix <tab> keyboard nav, move CE imports to single file ( #2756 )
...
Having a single customElements.js file that we import everywhere we need it
helps with organization, and it gives us a single place to put things like the
<tab> fix.
We could switch to using setElementCreationCallback() like Firefox if the number
of imports gets out of hand, but the overhead right now should be small.
2023-04-12 23:09:40 -04:00
Abe Jellinek
88ce834385
Monkey-patch toolbarbutton CE to display a native menu on macOS
2023-03-29 15:02:55 +03:00
Abe Jellinek
b1595cdd1d
Scaffold: Support the detectedItemType
test field ( #3023 )
2023-03-14 10:21:10 -04:00
Abe Jellinek
55b17c2b7e
Scaffold web template: Serialize multiples
...
Fixes #2980
2023-02-23 16:36:59 -05:00
Abe Jellinek
4865f8afca
Scaffold: Await more async functions
...
Might help prevent a deadlock I experienced when switching back to Zotero after
changing a translator file externally (although I can't reproduce it).
2023-01-23 12:32:30 -05:00
YFdyh000
bb5fe45f31
Show fieldLocalizedName in Scaffold - List All Fields ( #2965 )
2023-01-17 10:39:02 -05:00
Abe Jellinek
da075fb215
fx-compat: Scaffold: Fix Tests richlistbox growing when tests are added
2022-12-20 13:19:22 -05:00
Abe Jellinek
76f844da2f
Scaffold: Autocomplete translator IDs in setTranslator() calls
2022-11-01 16:36:44 -04:00
Abe Jellinek
ac8db7a376
fx-compat: Scaffold: Fix type-to-find not receiving ' '
2022-11-01 16:05:17 -04:00
Abe Jellinek
1aebad3c19
Scaffold: Fix copying JSON test data
...
Previously only copied '[object Object]'.
2022-11-01 16:04:24 -04:00
Dan Stillman
acc4d2a81b
Update paths for Mozilla Fluent files
...
Follow-up to zotero/zotero-standalone-build@600b35d
2022-09-15 18:39:19 -04:00
Abe Jellinek
500f187a60
Scaffold: Remove useless debug
2022-09-13 11:20:41 -07:00
Abe Jellinek
52e8fa8995
Prune Monaco distribution, fix JS acting like TS in Scaffold
...
We don't need most of the bundled languages or localizations, so they were just
taking up disk space pointlessly.
2022-09-12 14:06:17 -07:00
Abe Jellinek
0fe394082c
fx-compat: Scaffold: Prevent Space from scrolling translator list
2022-08-30 10:07:15 -04:00
Abe Jellinek
c2254f3783
fx-compat: Scaffold: Native checkboxes, dropmarker
2022-08-22 16:20:28 -04:00
Abe Jellinek
0eaf5887ea
fx-compat: Scaffold: Use platform keys like zoteroPane
2022-08-17 16:47:39 -04:00
Abe Jellinek
f5f49c7b1d
fx-compat: Scaffold: Non-async detectWeb and async scrape by default
...
We don't usually want an async detectWeb, since HTTP requests should only be
used there in very exceptional cases. We do usually want an async scrape (and we
were already - mistakenly - awaiting it).
2022-08-17 16:31:30 -04:00
Abe Jellinek
139d92054f
Scaffold templates: Pull URL from doc
...
Link URLs could lead to redirects.
2022-08-11 02:25:43 -04:00
Abe Jellinek
7d3e95e050
Fix Scaffold load error when fontSize pref is set
2022-08-11 02:25:43 -04:00
Abe Jellinek
5e6dc290b6
fx-compat: Scaffold: Read ESLint output from stdin
...
Need to update your zotero/translators clone to get linting working again.
2022-07-19 16:26:17 -04:00
Abe Jellinek
14f79018ad
fx-compat: Scaffold: Fix "undefined" attributes
2022-07-19 14:44:28 -04:00
Abe Jellinek
916627b590
fx-compat: Scaffold: Fix indentation using spaces
2022-07-11 13:03:48 -04:00
Abe Jellinek
f81b4b071f
fx-compat: Correct create[XUL]Element[NS]() calls
...
This fixes the dictionary manager and various other places where a XUL
element was being created with createElement(), and also simplifies a lot
of createElementNS(HTML_NS, ...) calls.
This might cause some minor regressions but everything tested has
worked. Not touching preferences (#2659 ) or bindings.
2022-06-29 11:14:40 -04:00
Abe Jellinek
9c837b3361
Improve Monaco integration and use in csledit
...
And remove timedtextarea.xml. Fixes #2665 .
2022-06-28 15:05:16 -04:00
Abe Jellinek
9a2e98360a
fx-compat: Scaffold: Update Monaco
...
Now that we can. Quite a bit faster and more customizable.
2022-06-08 17:38:59 -05:00
Abe Jellinek
e537018e71
fx-compat: Initial fix for Scaffold
...
Not working:
- Web tests (hidden browser is broken)
- Test Updated status text
- Various platform menu things (code copied from ZP and will use whichever
approach we settle on there)
2022-06-08 17:16:50 -05:00
Dan Stillman
2e26703b50
fx-compat: goQuitApplication() now takes an event
argument
2022-05-13 04:28:57 -04:00
Dan Stillman
77015336a4
WIP: Localization
2022-05-13 04:28:56 -04:00
Abe Jellinek
dea9fc5e88
Scaffold: setInterval -> activate listener
2022-04-07 19:50:13 -07:00
Abe Jellinek
fbaa1c6e61
Fix huge Scaffold toolbar icons on Win/Linux
2022-04-05 14:50:05 -07:00
Abe Jellinek
27c9086222
Scaffold: Show "defer" value in test list
2022-03-30 14:49:42 -07:00
Abe Jellinek
ed31a11fce
Scaffold: Sanitize items for display more accurately
2022-03-09 11:42:16 -08:00
Dan Stillman
6da38c292e
Scaffold: Tweak tooltip text for Run and Update button
2022-03-02 22:36:44 -05:00
Abe Jellinek
5409ae3313
Overhaul Scaffold ( #2293 )
2022-03-02 22:36:04 -05:00
Abe Jellinek
c5067edd2d
Fix Scaffold failing to initialize ( #2200 )
2021-09-09 05:17:35 -04:00
Adomas Venčkauskas
4d497afea0
Use Translator Tester code from shared repo for Scaffold
2021-07-28 15:46:07 +03:00
Abe Jellinek
d2db842938
Scaffold: Add action to open test URL in internal browser ( #2117 )
2021-07-13 03:33:57 -04:00
Abe Jellinek
f942c224f5
Scaffold: Run/delete tests with the keyboard ( #2118 )
2021-07-09 03:42:08 -04:00
Abe Jellinek
06660d04f0
Scaffold: Update year and add spacing in template ( #2066 )
2021-05-21 00:53:19 -04:00
Dan Stillman
018f04f369
Scaffold: Focus code editor when selecting tab
2020-12-24 02:46:19 -05:00
Dan Stillman
2ed4bb1c8f
Ace: Config adjustments in Run JavaScript window
...
- Use the "Chrome" theme
- Hide the gutter
- Don't highlight the active line
- Remove default iframe borders
- Focus the editor on window open
Ace instances (e.g., Scaffold) are now responsible for setting their own
theme (to avoid a flash of Monokai before a lighter theme appears).
2020-12-24 02:45:37 -05:00
Dan Stillman
e095dbb031
Ace: Fix path to ace.html ( #1930 )
2020-12-24 02:41:51 -05:00
Fletcher Hazlehurst
36d81e839c
Use ace-builds NPM package
2020-12-18 10:45:38 -07:00
Dan Stillman
558ad20ce6
Scaffold: Improve cookie handling
...
- Use cookies from browser pane when running detectWeb or doWeb
- Use cookies from document when running or updating tests
This should fix various cases where translators can't be properly
developed or tested in Scaffold (e.g., [1]).
[1] https://github.com/zotero/translators/pull/2296#issuecomment-739116620
2020-12-06 03:09:13 -05:00
Dan Stillman
7c201f5d59
Big Sur style fixes
...
- Restore active <tab> label
- Fix appearance of tabs in item pane
2020-07-28 00:15:11 -04:00
Dan Stillman
a086507167
Obey Cmd/Ctrl-W in Scaffold, Style Editor, and Run JavaScript windows
2020-05-17 04:08:43 -04:00