1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-02 12:47:41 +02:00
joplin/ElectronClient
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
..
build Tools: Improve and simplify how to build the apps (#2538) 2020-02-20 22:59:18 +00:00
build-win macOS: Improved appearance of application icon 2020-05-31 17:50:41 +01:00
commands Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
gui Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
locales Update en_US.po 2020-06-20 18:22:01 -04:00
plugins Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
tools Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
.gitignore Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
app.js Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
bridge.js Desktop: Resolves #2665: Add support for system theme auto-switching 2020-05-21 00:47:38 +01:00
checkForUpdates.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00
dev-app-update.yml-FORTESTING Tools: Improve and simplify how to build the apps (#2538) 2020-02-20 22:59:18 +00:00
ElectronAppWrapper.js Revert "Desktop: Add global shortcut to show/hide Joplin (#2653)" 2020-04-15 05:50:26 -04:00
global.d.ts Tools: Try to add codemirror types again (#3380) 2020-06-18 18:58:11 +01:00
gulpfile.js Tools: Improve building and testing app on Windows 2020-06-22 23:06:47 +01:00
index.html Desktop: Add option to choose Code Mirror as code editor (#3284) 2020-06-06 16:00:20 +01:00
InteropServiceHelper.js Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
main-html.js Desktop: Refactored command system 2020-07-03 22:32:39 +01:00
main.js Desktop: Resolves #2773: Add support for system keychain to save sensitive settings (#3207) 2020-06-03 17:07:50 +01:00
package-lock.json Desktop, Mobile: Fixes #3281: Prevent code highlighting from freezing the app in some cases 2020-06-28 18:31:43 +01:00
package.json Desktop, Mobile: Fixes #3281: Prevent code highlighting from freezing the app in some cases 2020-06-28 18:31:43 +01:00
style.css Desktop: Add option to choose Code Mirror as code editor (#3284) 2020-06-06 16:00:20 +01:00