1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/ReactNativeClient/lib/services
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
..
keychain Desktop: Resolves #2773: Add support for system keychain to save sensitive settings (#3207) 2020-06-03 17:07:50 +01:00
rest Desktop: API: Improved error handling on service end-point 2020-06-20 12:34:05 +01:00
AlarmService.js
AlarmServiceDriver.android.js
AlarmServiceDriver.ios.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
AlarmServiceDriverNode.js
back-button.js
BaseService.js
CommandService.ts Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
DecryptionWorker.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
EncryptionService.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
EncryptionServiceDriverNode.js
ExternalEditWatcher.js Desktop: API: Improved error handling on service end-point 2020-06-20 12:34:05 +01:00
InteropService_Exporter_Base.js
InteropService_Exporter_Html.js All: Refactored themes to allow using the same ones in both desktop and mobile version 2020-06-10 22:08:59 +01:00
InteropService_Exporter_Jex.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
InteropService_Exporter_Json.js
InteropService_Exporter_Md.js
InteropService_Exporter_Raw.js
InteropService_Importer_Base.js
InteropService_Importer_EnexToHtml.js
InteropService_Importer_EnexToMd.js
InteropService_Importer_Jex.js
InteropService_Importer_Md.js
InteropService_Importer_Raw.js Desktop, Cli: Fixes #2331: Only de-duplicate imported notebook titles when needed 2020-06-28 18:00:51 +01:00
InteropService.js Cli: Allow importing ENEX files as HTML 2020-06-14 16:45:17 +00:00
ItemChangeUtils.js
KvStore.js
MigrationService.js
ModelCache.js
NavService.js
PluginManager.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
report.js
ResourceEditWatcher.ts Tools: Apply linter rules 2020-06-04 18:24:11 +01:00
ResourceFetcher.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
ResourceService.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
RevisionService.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
SearchEngine.js Desktop: Make sure search engine can keep working when index is corrupted 2020-06-20 19:21:35 +01:00
SearchEngineUtils.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
SettingUtils.ts Tools: Apply linter rules 2020-06-04 18:24:11 +01:00
UndoRedoService.ts Mobile: Resolves #2595: Add undo/redo support 2020-06-13 16:20:18 +01:00