Damien Elmes
220e14bf0f
disable broken svelte_check test on Windows for now
...
Likely caused by a lack of sandboxing on Windows, causing the generated
.d.ts files to be visible to svelte_check, and being picked up in
preference over the .svelte file.
2021-05-08 12:15:49 +10:00
Henrik Giesel
49745e1282
Fix module name formatting
2021-05-07 02:14:54 +02:00
Henrik Giesel
cc02563ca1
Fix Preview tooltip
2021-05-07 02:04:44 +02:00
Henrik Giesel
f50d81f787
Fix unused CSS selector issue in graphs introduced by updating Svelte
2021-05-07 02:04:44 +02:00
Henrik Giesel
15f306950d
Use any in toolbar.ts for using context as parameter
2021-05-07 02:04:44 +02:00
Henrik Giesel
81cf2c9bd4
Turn on editor:eslint
2021-05-07 02:04:44 +02:00
Henrik Giesel
d1c99cfb7b
Add copyright header
2021-05-07 02:04:44 +02:00
Henrik Giesel
b2eec9c3c3
Add ts-expect-error for module import in EditorToolbar
2021-05-07 02:04:44 +02:00
Henrik Giesel
2112b419f9
Fix ButtonDropdown
2021-05-07 02:04:44 +02:00
Henrik Giesel
c9368ed98f
Add lefttopbtns as AddonButtons
2021-05-07 02:04:44 +02:00
Henrik Giesel
928f486867
Add ButtonToolbarItem as interface for modifying button groups
2021-05-07 02:04:44 +02:00
Henrik Giesel
4a6b3b3786
Clean up ButtonGroup and factor out extension logic
2021-05-07 02:04:44 +02:00
Henrik Giesel
e80f43e8fc
Enable setting of PreviewButton and hiding of cloze button again
2021-05-07 02:04:42 +02:00
Henrik Giesel
862905c58a
Fix typing issues
2021-05-07 02:03:55 +02:00
Henrik Giesel
9c1936698c
Set tooltip for buttons correctly
2021-05-07 02:03:55 +02:00
Henrik Giesel
0371405c23
Use ButtonGroupItem for all buttons in editor
2021-05-07 02:03:55 +02:00
Henrik Giesel
e1cc22b9ee
Add hiding functionality in ButtonGroup
2021-05-07 02:03:55 +02:00
Henrik Giesel
26f85a0f9d
Add API for adding new buttons, updating existing ones in ButtonGroup
2021-05-07 02:03:55 +02:00
Henrik Giesel
413ac6cf63
Fix issue with dropdowns
2021-05-07 02:03:55 +02:00
Henrik Giesel
c1adebf2da
Add .dropdown-menu class to DropdownMenu
2021-05-07 02:03:55 +02:00
Henrik Giesel
9d9df2a04b
Add back ColorButtons
2021-05-07 02:03:55 +02:00
Henrik Giesel
bd31a19852
Activate FormatBlockButtons
2021-05-07 02:03:55 +02:00
Henrik Giesel
baff3df381
Add all format inline buttons
2021-05-07 02:03:55 +02:00
Henrik Giesel
982c85ded6
Export module functions from EditorToolbar
2021-05-07 02:03:55 +02:00
Henrik Giesel
0baf14dc8b
Refactor {CommandIcon,Icon,Square}Button into IconButton and WithState
2021-05-07 02:03:55 +02:00
Henrik Giesel
2f5074bff6
Make StickyBar flex
2021-05-07 02:03:55 +02:00
Henrik Giesel
8aa3f5f2fa
Translate ts files in ts/editor to svelte files
2021-05-07 02:03:55 +02:00
Henrik Giesel
47b1cfe804
Rename editor-toolbar to components
2021-05-07 02:03:55 +02:00
Henrik Giesel
59876439e7
Add StickyBar.svelte WithTheming.svelte
2021-05-07 02:03:55 +02:00
Henrik Giesel
4736b1ce1c
Move Notetype buttons to using slots instead of dynamic components
2021-05-07 02:03:55 +02:00
Henrik Giesel
6d6c798ca3
Simplify structure of EditorToolbar and ButtonGroup in editor HTML file
2021-05-07 02:03:55 +02:00
Damien Elmes
af2c7c0744
fix missing keyboard modifier translations on Linux/Windows
...
https://forums.ankiweb.net/t/card-browser-hotkeys-semi-broken/9815
2021-05-07 09:30:06 +10:00
Henrik Giesel
268adf1d03
Move EditorToolbar API into EditorToolbar.svelte
2021-04-25 19:15:00 +02:00
Henrik Giesel
f5fba15435
Initialize editor toolbar via function, not web component
2021-04-25 18:32:01 +02:00
Henrik Giesel
53bb8c7b28
Add addMenu and updateMenu, avoid using {buttons,menus}Promise outside of class
2021-04-24 01:08:55 +02:00
Henrik Giesel
9f7a187d4a
Add mostly working addcards topbar
2021-04-24 00:00:32 +02:00
Henrik Giesel
6ae368ebac
Reduce typing overhead in ts/editor-toolbar/index.ts and export buttonGroup
2021-04-23 19:05:43 +02:00
Henrik Giesel
bda99ee0f1
Add IterableToolbarItem interface for easier typing
2021-04-23 18:53:52 +02:00
Henrik Giesel
4379f1e84f
Make dynamicComponents usable for addons, rather than the components directly
...
rawButton({ html: ... })
instead of
{ component: RawButton, html: ... }
2021-04-23 16:43:36 +02:00
Damien Elmes
00f170dddc
update remaining anki/ references
2021-04-23 10:16:40 +10:00
Henrik Giesel
1d72599a37
Rename anki/ to lib/ for export
...
import _ from "anki/x";
will become
import _ from "lib/x";
to fit the directory name.
2021-04-23 10:02:28 +10:00
Henrik Giesel
5197e3b779
Prefer optionalModifiers over register multiple shortcuts
2021-04-22 18:15:25 +02:00
Henrik Giesel
31e4b79ff4
Add optionalModifiers parameter to registerShortcut
2021-04-22 17:28:38 +02:00
Henrik Giesel
f6ef4d43cb
Use registerShortcut in inputHandlers + Avoid focus on color picker
2021-04-22 15:09:09 +02:00
Henrik Giesel
47809f6230
Add shortcut labels for ColorPicker and Latex items
2021-04-22 14:35:44 +02:00
Henrik Giesel
3cf7db8557
Add better better shortcutLabel support for buttons
2021-04-22 14:18:48 +02:00
Henrik Giesel
4a264cd8b7
Add editing fluent strings without attached keyboard shortcuts
2021-04-22 13:38:37 +02:00
Henrik Giesel
2109b67caf
Move up cloze id
2021-04-22 03:37:01 +02:00
Henrik Giesel
d2ca94a29d
Move other buttons to WithShortcut
2021-04-22 03:25:31 +02:00
Henrik Giesel
85f89dc111
Add first shortcuts for bold, italic, underline, removeFormat
2021-04-22 02:37:04 +02:00