-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathui.js
More file actions
88 lines (68 loc) · 2.09 KB
/
ui.js
File metadata and controls
88 lines (68 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import {createAction} from 'redux-actions';
export const userDoneTyping = createAction('USER_DONE_TYPING');
export const focusLine = createAction(
'FOCUS_LINE',
(component, line, column) => ({component, line, column}),
(_component, _line, _column, timestamp = Date.now()) => ({timestamp}),
);
export const editorFocusedRequestedLine = createAction(
'EDITOR_FOCUSED_REQUESTED_LINE',
);
export const editorFocused = createAction(
'EDITOR_FOCUSED',
(source, cursor, language) => ({source, cursor, language}),
);
export const editorBlurred = createAction(
'EDITOR_BLURRED',
);
export const startDragColumnDivider = createAction(
'START_DRAG_COLUMN_DIVIDER',
);
export const stopDragColumnDivider = createAction(
'STOP_DRAG_COLUMN_DIVIDER',
);
export const popOutProject = createAction(
'POP_OUT_PROJECT',
);
export const notificationTriggered = createAction(
'NOTIFICATION_TRIGGERED',
(type, severity = 'error', metadata = {}) => ({type, severity, metadata}),
);
export const userDismissedNotification = createAction(
'USER_DISMISSED_NOTIFICATION',
type => ({type}),
);
export const currentCursorChanged = createAction(
'CURRENT_CURSOR_CHANGED',
(source, cursor, language) => ({source, cursor, language}),
);
export const currentFocusedSelectorChanged = createAction(
'CURRENT_FOCUSED_SELECTOR_CHANGED',
);
export const updateNotificationMetadata = createAction(
'UPDATE_NOTIFICATION_METADATA',
(type, metadata) => ({type, metadata}),
);
export const toggleEditorTextSize = createAction(
'TOGGLE_EDITOR_TEXT_SIZE',
);
export const toggleTopBarMenu = createAction(
'TOGGLE_TOP_BAR_MENU',
);
export const closeTopBarMenu = createAction(
'CLOSE_TOP_BAR_MENU',
);
export const startEditingInstructions = createAction(
'START_EDITING_INSTRUCTIONS',
projectKey => ({projectKey}),
(_projectKey, timestamp = Date.now()) => ({timestamp}),
);
export const cancelEditingInstructions = createAction(
'CANCEL_EDITING_INSTRUCTIONS',
);
export const showSaveIndicator = createAction(
'SHOW_SAVE_INDICATOR',
);
export const hideSaveIndicator = createAction(
'HIDE_SAVE_INDICATOR',
);