1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/ReactNativeClient/lib/models
Laurent Cozic c63c6370b5 Desktop: Refactored command system
The goal is to make the command system more modular, so each command can
be defined as a single object that includes a declaration (name, label,
etc.) and a runtime (to execute the command, test if it should be
enabled, etc.)

Utility methods are provided to convert a command to a menu item or a
toolbar button, thus reducing duplicated and boiler plate code across the
codebase (often the menu item logic was duplicated in the toolbar
button logic and vice versa).

The goal is to make it easier to add new commands (and associated menu
item and toolbar buttons) and to call them from
anywhere. This is also useful for plugins, which can also easily define
new commands.

Could also allow creating a command palette.
2020-07-03 22:32:39 +01:00
..
Alarm.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
BaseItem.js Desktop, Cli: Fixes #2331: Only de-duplicate imported notebook titles when needed 2020-06-28 18:00:51 +01:00
Folder.js Desktop: Do not expand the leaft notebook when following a link to a note 2020-06-15 22:59:42 +00:00
ItemChange.js Chore: Apply eslint no-unused-vars eslint config and add TypeScript config 2019-09-12 22:16:42 +00:00
MasterKey.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
Migration.js All: Extract note renderer to separate package (WIP) (#2206) 2019-12-29 18:58:40 +01:00
Note.js Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
NoteResource.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
NoteTag.js Tools: Enforce and apply eslint rules prefer-const and no-var 2020-03-13 23:46:14 +00:00
Resource.js Desktop: Fixed issue with setting filename for edited attachments 2020-06-09 19:15:43 +00:00
ResourceLocalState.js First pass at linting lib dir 2019-07-29 15:43:53 +02:00
Revision.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
Search.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
Setting.js All: Refactored themes to allow using the same ones in both desktop and mobile version 2020-06-10 22:08:59 +01:00
SmartFilter.js Desktop: Resolves #262: Implement "show all notes" (#2472) 2020-02-22 11:25:16 +00:00
Tag.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00