Henrik Giesel
|
6209731cd0
|
Prefer slicing and splicing
|
2021-04-24 01:48:22 +02:00 |
|
Henrik Giesel
|
f94c7f380f
|
Fix typing typo
|
2021-04-24 01:15:16 +02:00 |
|
Henrik Giesel
|
438fcae263
|
Add addMenu and updateMenu, avoid using {buttons,menus}Promise outside of class
|
2021-04-24 01:08:55 +02:00 |
|
Henrik Giesel
|
9346e007c9
|
Add mostly working addcards topbar
|
2021-04-24 00:00:32 +02:00 |
|
Henrik Giesel
|
667db3c12e
|
Simplify Handling of margins and padding of ButtonGroup & ButtonDropdown
|
2021-04-23 22:22:53 +02:00 |
|
Henrik Giesel
|
bf0ea46536
|
Simplify tag structure in ButtonGroup
|
2021-04-23 21:42:44 +02:00 |
|
Henrik Giesel
|
da230fbb24
|
Add simple version of Chooser buttons
|
2021-04-23 21:25:44 +02:00 |
|
Henrik Giesel
|
01b53a6be8
|
Make update algorithm in editor-toolbar/index.ts recursive
|
2021-04-23 20:50:09 +02:00 |
|
Henrik Giesel
|
e66edd3887
|
Reduce typing overhead in ts/editor-toolbar/index.ts and export buttonGroup
|
2021-04-23 19:05:43 +02:00 |
|
Henrik Giesel
|
aebaaf1a70
|
Add IterableToolbarItem interface for easier typing
|
2021-04-23 18:53:52 +02:00 |
|
Henrik Giesel
|
14d3877bb4
|
Fix regression from eefdd564e2
Negative indices were not treated correctly (as offset from end)
|
2021-04-23 18:21:03 +02:00 |
|
Henrik Giesel
|
5acf330414
|
Add withLabel component
|
2021-04-23 17:20:52 +02:00 |
|
Henrik Giesel
|
59f0a2dd70
|
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
|
c78bcebcf6
|
make return value match mergeTooltipAndShortcut() signature
|
2021-04-23 19:48:36 +10:00 |
|
Damien Elmes
|
eefdd564e2
|
remove nested terneries and enable lint
@hgiesel would you mind quickly checking I've correctly captured
the logic here?
|
2021-04-23 13:00:18 +10:00 |
|
Damien Elmes
|
61dfa02b88
|
update remaining anki/ references
|
2021-04-23 10:16:40 +10:00 |
|
Damien Elmes
|
628f337c3c
|
Merge pull request #1148 from hgiesel/updatetypescript
Update Typescript to 4.2.4
|
2021-04-23 09:48:34 +10:00 |
|
Henrik Giesel
|
ed602146df
|
Update eslint to 4.22.0
|
2021-04-22 19:19:39 +02:00 |
|
Henrik Giesel
|
90a6024dff
|
Separate type import for WithShortcut
|
2021-04-22 18:19:09 +02:00 |
|
Henrik Giesel
|
d4e6fe6a34
|
Prefer optionalModifiers over register multiple shortcuts
|
2021-04-22 18:15:25 +02:00 |
|
Henrik Giesel
|
33fc648695
|
Add license headers
|
2021-04-22 16:49:30 +02:00 |
|
Henrik Giesel
|
0abcb86007
|
Use registerShortcut in inputHandlers + Avoid focus on color picker
|
2021-04-22 15:09:09 +02:00 |
|
Henrik Giesel
|
2477684e1c
|
Fix typo deregisters
|
2021-04-22 14:54:29 +02:00 |
|
Henrik Giesel
|
469c138ec1
|
Add shortcut labels for ColorPicker and Latex items
|
2021-04-22 14:35:44 +02:00 |
|
Henrik Giesel
|
e68d019b19
|
Add better better shortcutLabel support for buttons
|
2021-04-22 14:18:48 +02:00 |
|
Henrik Giesel
|
7c2ac1fd37
|
Add getPlatformString for making shortcuts to platform string
|
2021-04-22 13:04:24 +02:00 |
|
Henrik Giesel
|
7ab5f736df
|
Move other buttons to WithShortcut
|
2021-04-22 03:25:31 +02:00 |
|
Henrik Giesel
|
b0ddae0f6c
|
Add first shortcuts for bold, italic, underline, removeFormat
|
2021-04-22 02:37:04 +02:00 |
|
Henrik Giesel
|
e2e1b4d37b
|
Use registerShortcut within WithShortcut
|
2021-04-22 01:15:38 +02:00 |
|
Henrik Giesel
|
20f17a962a
|
Add WithShortcut
|
2021-04-22 01:15:38 +02:00 |
|
Henrik Giesel
|
18efdcac67
|
Gather editor-toolbar svelte components into filegroup
|
2021-04-21 13:18:31 +02:00 |
|
Henrik Giesel
|
6e2f2fc3a6
|
Move toolbar initialization into toolbar.ts
|
2021-04-20 15:32:02 +02:00 |
|
Henrik Giesel
|
f11db5579e
|
Move dynamic component initialization logic from editor to editor-toolbar
|
2021-04-20 14:23:28 +02:00 |
|
Henrik Giesel
|
973b7008b7
|
Make indent outdent only work for list items
+ make paragraph show its active state
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
5e978b28d4
|
Move button implementations from editor-toolbar to editor
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
93136030e9
|
Include editor-toolbar as a library in editor
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
85ea209d06
|
Generalize commandIconButton functionality of setting active state
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
96bd5c7b20
|
Add paragraph button
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
ece4f75592
|
Generalize inListItem to getAnchorElement
|
2021-04-20 13:44:43 +02:00 |
|
Henrik Giesel
|
5550dc8e44
|
Hide ButtonDropdown when closed
Otherwise ul.{svelte-class} in ButtonGroup has higher priority then .show from Bootstrap
|
2021-04-19 14:47:10 +02:00 |
|
Damien Elmes
|
2ea5f5abde
|
Merge pull request #1134 from hgiesel/formatblock
Add block formatting options to Editor
|
2021-04-17 09:40:52 +10:00 |
|
Henrik Giesel
|
b5e3156f6a
|
Color ButtonDropdown background in var(--bg-color) regardless of theme
|
2021-04-16 18:36:54 +02:00 |
|
Henrik Giesel
|
65442c5a84
|
Make clearer which parts of ButtonGroup css are theming related
|
2021-04-16 18:24:43 +02:00 |
|
Henrik Giesel
|
b102d0bbd2
|
Change style for Dropdown{Menu,Item} to match Button{Group,Dropdown}
|
2021-04-16 18:14:09 +02:00 |
|
Henrik Giesel
|
01870e68fa
|
Adjust ButtonDropdown for night mode
|
2021-04-16 17:14:47 +02:00 |
|
Henrik Giesel
|
6ce61de27c
|
Mark indent / outdent as non activatable
|
2021-04-16 16:11:53 +02:00 |
|
Henrik Giesel
|
11ace2f489
|
Add Fluent translations
|
2021-04-16 16:08:00 +02:00 |
|
Henrik Giesel
|
7e47c918ee
|
Add justify and indentation menu
|
2021-04-16 15:26:49 +02:00 |
|
Henrik Giesel
|
ef4ea3db23
|
Add ol and ul buttons, rename previous format to formatInline
|
2021-04-16 03:46:37 +02:00 |
|
Henrik Giesel
|
a6f74a387a
|
Satisfy ./script/svelte-check
|
2021-04-16 03:10:39 +02:00 |
|