Damien Elmes
6dd78b0ea5
Merge pull request #1159 from hgiesel/newapproach
...
Prefer idiomatic Svelte features over dynamic components
2021-05-08 11:35:31 +10:00
Henrik Giesel
755b39b59e
Check for id when inserting dynamic elements
...
* I'm not sure it behaved, if there were multiple elements
inserted by different add-ons into the same container
2021-05-07 16:50:17 +02:00
Henrik Giesel
c894d32c14
Fix remaining errors in editor/*.svelte files
2021-05-07 15:10:28 +02:00
Henrik Giesel
9379477e09
Use MouseEvent instead of KeyboardEvent in WithShortcut
...
* otherwise the disabled button will allow it to pass through
2021-05-07 14:46:08 +02:00
Henrik Giesel
3d4224a886
Rename Detachable.detach to detached
2021-05-07 14:31:08 +02:00
Henrik Giesel
840191d358
Use json.dumps instead of backticks in editor.py
2021-05-07 14:22:06 +02:00
Damien Elmes
7f5972c080
update license checker for security issue in dependency
2021-05-07 18:50:25 +10:00
Damien Elmes
552a53495e
roll back black for now due to Windows breakage
2021-05-07 18:50:25 +10:00
Damien Elmes
f9d5eda3f8
update Rust deps
2021-05-07 18:22:27 +10:00
Damien Elmes
0bfd03d781
update Python deps
2021-05-07 18:13:17 +10:00
Damien Elmes
26e9fba1f7
update docstrings for latest black
2021-05-07 18:12:56 +10:00
Damien Elmes
5213ff8dbb
update JS deps
...
Unfortunately we're still stuck with a security alert about underscore,
because the latest jsdoc uses an old underscore, and protobufjs depends
on it.
https://github.com/jsdoc/jsdoc/issues/1908
2021-05-07 18:03:22 +10:00
Damien Elmes
4fe03e1f22
tweak hover css to work with latest js deps
2021-05-07 17:57:28 +10:00
Damien Elmes
4242d82adf
fix find&replace
2021-05-07 14:02:40 +10:00
Henrik Giesel
cd6599c301
Fix module name formatting
2021-05-07 02:14:54 +02:00
Henrik Giesel
8c32691d30
Fix Preview Button after changing from f-string to normal string
2021-05-07 02:12:37 +02:00
Henrik Giesel
1e5feffba0
Fix Preview tooltip
2021-05-07 02:04:44 +02:00
Henrik Giesel
8a558eb297
Fix unused CSS selector issue in graphs introduced by updating Svelte
2021-05-07 02:04:44 +02:00
Henrik Giesel
fbc9c8a250
Use any in toolbar.ts for using context as parameter
2021-05-07 02:04:44 +02:00
Henrik Giesel
8f2c5a0c1c
Turn on editor:eslint
2021-05-07 02:04:44 +02:00
Henrik Giesel
147617dff2
Add copyright header
2021-05-07 02:04:44 +02:00
Henrik Giesel
17bca7be6e
Add ts-expect-error for module import in EditorToolbar
2021-05-07 02:04:44 +02:00
Henrik Giesel
bb2fb8e9f5
Fix ButtonDropdown
2021-05-07 02:04:44 +02:00
Henrik Giesel
0a979d789a
Make LabelButtons support active notion
2021-05-07 02:04:44 +02:00
Henrik Giesel
95b6b386dc
Only initialize extension apis if necessary
2021-05-07 02:04:44 +02:00
Henrik Giesel
d92a0c44c7
Add lefttopbtns as AddonButtons
2021-05-07 02:04:44 +02:00
Henrik Giesel
d3bec1a584
Add ButtonToolbarItem as interface for modifying button groups
2021-05-07 02:04:44 +02:00
Henrik Giesel
55e8256f0e
Clean up ButtonGroup and factor out extension logic
2021-05-07 02:04:44 +02:00
Henrik Giesel
dd99524ae0
Enable setting of PreviewButton and hiding of cloze button again
2021-05-07 02:04:42 +02:00
Henrik Giesel
0612c3428b
Fix typing issues
2021-05-07 02:03:55 +02:00
Henrik Giesel
47edde0d00
Set tooltip for buttons correctly
2021-05-07 02:03:55 +02:00
Henrik Giesel
74dad42df3
Use ButtonGroupItem for all buttons in editor
2021-05-07 02:03:55 +02:00
Henrik Giesel
68339ab0b0
Set ButtonPosition via ButtonGroupItem
2021-05-07 02:03:55 +02:00
Henrik Giesel
f724b45ae1
Add hiding functionality in ButtonGroup
2021-05-07 02:03:55 +02:00
Henrik Giesel
da5756822f
Add API for adding new buttons, updating existing ones in ButtonGroup
2021-05-07 02:03:55 +02:00
Henrik Giesel
5f8f4c06f8
Fix issue with dropdowns
2021-05-07 02:03:55 +02:00
Henrik Giesel
deafb0925c
Add .dropdown-menu class to DropdownMenu
2021-05-07 02:03:55 +02:00
Henrik Giesel
099325f407
Add back ColorButtons
2021-05-07 02:03:55 +02:00
Henrik Giesel
af7b1f7d7f
Activate FormatBlockButtons
2021-05-07 02:03:55 +02:00
Henrik Giesel
805ef26e20
Add all format inline buttons
2021-05-07 02:03:55 +02:00
Henrik Giesel
35267f30c9
Export module functions from EditorToolbar
2021-05-07 02:03:55 +02:00
Henrik Giesel
e7706bac6d
Refactor {CommandIcon,Icon,Square}Button into IconButton and WithState
2021-05-07 02:03:55 +02:00
Henrik Giesel
76ea48fade
Make StickyBar flex
2021-05-07 02:03:55 +02:00
Henrik Giesel
45c52f75aa
Translate ts files in ts/editor to svelte files
2021-05-07 02:03:55 +02:00
Henrik Giesel
8238ec5727
Rename editor-toolbar to components
2021-05-07 02:03:55 +02:00
Henrik Giesel
1515e07ea6
Add StickyBar.svelte WithTheming.svelte
2021-05-07 02:03:55 +02:00
Henrik Giesel
138e69bcf1
Move Notetype buttons to using slots instead of dynamic components
2021-05-07 02:03:55 +02:00
Henrik Giesel
a51eb42e7b
Simplify structure of EditorToolbar and ButtonGroup in editor HTML file
2021-05-07 02:03:55 +02:00
Damien Elmes
a24456d96f
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
Damien Elmes
2a6cd2ff72
default to the v2 scheduler in new collections
...
ported from 9e91785d98
2021-05-06 19:09:28 +10:00