1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-18 04:21:12 +02:00

Add some more commands to commands palette.

Some refactoring also. Move palette events to commands.js.
This commit is contained in:
Kushagra Gour
2018-10-27 20:24:34 +05:30
parent 021f1390ab
commit f4de6572c2
6 changed files with 60 additions and 39 deletions

View File

@@ -1,9 +1,15 @@
import {
OPEN_SAVED_CREATIONS_EVENT,
SAVE_EVENT
} from './commandPaletteService';
export const SWITCH_FILE_EVENT = 'switchFileEvent';
export const NEW_CREATION_EVENT = 'newCreationEvent';
export const OPEN_SAVED_CREATIONS_EVENT = 'openSavedCreationsEvent';
export const SAVE_EVENT = 'saveEvent';
export const OPEN_SETTINGS_EVENT = 'openSettingsEvent';
export const commands = [
{
name: 'Start New Creation',
event: NEW_CREATION_EVENT,
keyboardShortcut: ''
},
{
name: 'Open Creation',
event: OPEN_SAVED_CREATIONS_EVENT,
@@ -15,8 +21,8 @@ export const commands = [
keyboardShortcut: 'Cmd+S'
},
{
name: 'Add Library',
run: '',
keyboardShortcut: 'Cmd+F'
name: 'Open Settings',
event: OPEN_SETTINGS_EVENT,
keyboardShortcut: ''
}
];