Abe Jellinek
88d4598fce
Scaffold: Change base font size to 13
...
We should probably just use the Zotero font size setting here, but
this works as a quick fix.
2024-10-22 15:33:21 -04:00
abaevbog
8a6bc2cb10
vpat 44 followup: no escape handler in editors ( #4776 )
2024-10-22 14:21:50 -04:00
windingwind
eea1291314
Fix select items window overflow ( #4747 )
...
Also:
* Remove unused element in select items window
* Move and rename zotero/ingester/selectitems to scaffold/select to
avoid confusion with selectItemsDialog
2024-10-19 06:33:14 -04:00
abaevbog
c14896a640
vpat 44: scaffold keyboard tab selection focus ( #4069 )
...
Do not move focus from the tab onto the editor/input
during keyboard navigation to not change context per
https://www.w3.org/WAI/WCAG21/Understanding/on-input .
Focus will still shift if tab selection changed on mouse click.
Also:
- added focus ring to tabs. Additional mouseup handling
to prevent the focus ring from briefly appearing on click.
- on Escape from within the editor, focus the current
tab.
- on shift-tab from the beginning of the editor,
tab out of the editor to previous element.
2024-10-10 17:08:32 -04:00
Abe Jellinek
237a2e5b86
Scaffold: Fix test statuses not persisting
2024-10-09 14:15:34 -04:00
Abe Jellinek
f22f87537c
Scaffold: Get PATH from login shell for ESLint on macOS
...
And:
- Use eslint instead of teslint
- Remove debug logging, since we're running this constantly now
- Kill ESLint at the end, although it should exit on its own
2024-10-09 13:43:01 -04:00
Abe Jellinek
528ee8adac
Scaffold: Fix evaluation of translator ending in single-line comment
2024-10-09 10:17:42 -04:00
Abe Jellinek
40dd345280
Scaffold: Run ESLint continuously, not just after save ( #4738 )
...
Includes API changes in Zotero.Translators in order to support
in-memory translator serialization.
Type changes in docstrings are corrections, not actual changes.
2024-10-09 01:46:10 -04:00
Abe Jellinek
54cee37703
Scaffold: Cleanup
2024-10-08 15:26:02 -04:00
Abe Jellinek
1caeb1ef08
Scaffold: Fix richlistbox misalignment
2024-10-08 14:53:30 -04:00
Abe Jellinek
9d9d98b907
Scaffold: Fix silent do* failure when code has syntax error
...
Apparently _error() does get called!
detect* methods were already logging syntax errors as expected.
TranslationChild handles errors in detect* and do* identically. Odd.
2024-10-08 14:43:58 -04:00
Abe Jellinek
1bf0fd7d57
Scaffold: Manage blank lines before test cases automatically
2024-05-15 12:42:00 -04:00
Abe Jellinek
634e27c621
Scaffold: Don't use cookie sandbox by default
...
Instead, just set an empty cookie sandbox when running tests without
"Remember cookies" enabled. The cookie sandbox doesn't remember cookies
set in JS, which breaks some sites in the Scaffold browser.
https://forums.zotero.org/discussion/114239/z7-beta77-scaffold-bugs-report
2024-05-07 15:11:03 -04:00
Abe Jellinek
19ab6b6643
Scaffold: Fix duplicate text in test status label
2024-05-07 14:30:56 -04:00
Abe Jellinek
387210e139
Scaffold: Fix Open URL
2024-05-07 14:28:50 -04:00
Abe Jellinek
655575eb77
Monaco / Scaffold: Use LF line endings on all platforms
...
https://forums.zotero.org/discussion/114239/z7-beta77-scaffold-bugs-report
2024-05-07 12:10:57 -04:00
Abe Jellinek
fde33e7100
fx115: Scaffold: Center Open window (ex-sheet)
2024-04-22 15:02:30 -04:00
Abe Jellinek
c031e1fbbd
Scaffold: Disable sticky headers in Tests editor
2024-04-12 13:21:17 -07:00
Abe Jellinek
6ebb15778b
fx115: Fix Scaffold richlistboxes and load dialog sizing ( #3968 )
2024-04-11 22:53:59 -04:00
Dan Stillman
920461cd9d
fx115: Update lots of OS.File/OS.Path uses
2024-03-30 00:58:54 -04:00
Dan Stillman
e76c6c6a1a
fx115: Update loadURI() calls to take nsIURI and remove loadURIWithFlags
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1810141
https://bugzilla.mozilla.org/show_bug.cgi?id=1444760
2024-03-30 00:58:53 -04:00
Dan Stillman
c36f40735c
fx115: Change FilePicker to Mozilla ESM style
...
var { FilePicker } = ChromeUtils.importESModule('chrome://zotero/content/modules/filePicker.mjs');
2024-03-30 00:58:53 -04:00
Dan Stillman
2051f08b4c
fx115: Move Zotero
object initialization to zotero.mjs
2024-03-30 00:58:53 -04:00
Abe Jellinek
4f0e9bb9bb
Scaffold: Enable syntax highlighting/formatting in Test Input
2024-03-26 16:36:05 -04:00
Abe Jellinek
a7044db15e
Scaffold: Remember cookies set in browser by default
...
Making this configurable - it's worth testing translators to make sure
that they *aren't* dependent on some specific cookie configuration,
apart from obvious cases like login-gated sites.
2024-03-26 14:22:08 -04:00
Abe Jellinek
bef7ecd409
Scaffold: Print attachment URLs
...
Useful for debugging. This doesn't apply to tests.
2024-03-22 12:44:30 -04:00
Abe Jellinek
ff96de8723
Scaffold: Remove id field from returned items
...
Generates confusing diff output and isn't necessary.
2024-03-22 11:41:14 -04:00
Abe Jellinek
cee1e3a596
Scaffold: Update copyright year automatically
2024-03-18 12:20:22 -04:00
Abe Jellinek
5489b6cc4b
Scaffold: Show current Git branch in title ( #3834 )
2024-03-12 01:33:03 -04:00
Abe Jellinek
0e251b4975
Scaffold: Fix tests losing defer: true on update
2024-01-31 14:30:34 -05:00
Abe Jellinek
7944253bed
Scaffold: Update HiddenBrowser to use object-oriented API
...
Fixes updating tests.
2024-01-31 14:27:21 -05:00
Abe Jellinek
ba0475810c
Scaffold: Implement new toolbar
...
New icons and new scaffold.scss go into chrome://zotero/skin. The separate root
for Scaffold is mostly a historical relic, and adding special cases to build
scripts, SCSS mixins, and so on would just make things complicated.
2024-01-24 04:03:36 -05:00
Abe Jellinek
1dd3812e00
Deprecate setFontSize(), replace with new Zotero.UIProperties
...
This new XPCOM module handles font size and UI density and automatically keeps
registered roots up to date when prefs change. Roots receive a
UIPropertiesChanged event after their properties are updated.
2024-01-24 03:39:09 -05:00
Abe Jellinek
a37dd2462a
Disable error reporting in Scaffold
2024-01-23 12:06:40 -05:00
Abe Jellinek
071bf06995
Scaffold: Use standard ESLint options ( #3498 )
2023-12-27 05:29:12 -05:00
Abe Jellinek
345bbcf50c
Scaffold: Prompt to save before resetting
...
Now that Scaffold remembers and automatically loads the last edited translator
(65048fd624
), it needs to be easier to create a
new translator without saving (and bumping the lastModified date on) the
translator you had open.
2023-07-31 09:44:20 -04:00
Abe Jellinek
65048fd624
Scaffold: Automatically load last opened translator
2023-06-24 15:00:57 -07:00
Abe Jellinek
c124ca9738
Scaffold: Fix test creation
...
Fixes #3167
2023-06-15 16:18:57 -07: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
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
b1595cdd1d
Scaffold: Support the detectedItemType
test field ( #3023 )
2023-03-14 10:21:10 -04: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
76f844da2f
Scaffold: Autocomplete translator IDs in setTranslator() calls
2022-11-01 16:36:44 -04:00
Abe Jellinek
1aebad3c19
Scaffold: Fix copying JSON test data
...
Previously only copied '[object Object]'.
2022-11-01 16:04:24 -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
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