Skip to content

Commit f48c0e0

Browse files
move constants to typings as well
1 parent c62ed62 commit f48c0e0

22 files changed

+34
-34
lines changed

lib/actions/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {CONFIG_LOAD, CONFIG_RELOAD} from '../constants/config';
1+
import {CONFIG_LOAD, CONFIG_RELOAD} from '../../typings/constants/config';
22
import type {HyperActions} from '../../typings/hyper';
33
import type {configOptions} from '../../typings/config';
44

lib/actions/header.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import {CLOSE_TAB, CHANGE_TAB} from '../constants/tabs';
1+
import {CLOSE_TAB, CHANGE_TAB} from '../../typings/constants/tabs';
22
import {
33
UI_WINDOW_MAXIMIZE,
44
UI_WINDOW_UNMAXIMIZE,
55
UI_OPEN_HAMBURGER_MENU,
66
UI_WINDOW_MINIMIZE,
77
UI_WINDOW_CLOSE
8-
} from '../constants/ui';
8+
} from '../../typings/constants/ui';
99
import rpc from '../rpc';
1010
import {userExitTermGroup, setActiveGroup} from './term-groups';
1111
import type {HyperDispatch} from '../../typings/hyper';

lib/actions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import rpc from '../rpc';
2-
import {INIT} from '../constants';
2+
import {INIT} from '../../typings/constants';
33
import type {HyperDispatch} from '../../typings/hyper';
44

55
export default function init() {

lib/actions/notifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {NOTIFICATION_MESSAGE, NOTIFICATION_DISMISS} from '../constants/notifications';
1+
import {NOTIFICATION_MESSAGE, NOTIFICATION_DISMISS} from '../../typings/constants/notifications';
22
import type {HyperActions} from '../../typings/hyper';
33

44
export function dismissNotification(id: string): HyperActions {

lib/actions/sessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
SESSION_USER_DATA,
1515
SESSION_SET_XTERM_TITLE,
1616
SESSION_SEARCH
17-
} from '../constants/sessions';
17+
} from '../../typings/constants/sessions';
1818
import type {HyperState, HyperDispatch, HyperActions} from '../../typings/hyper';
1919
import type {Session} from '../../typings/common';
2020

lib/actions/term-groups.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
TERM_GROUP_REQUEST,
66
TERM_GROUP_EXIT,
77
TERM_GROUP_EXIT_ACTIVE
8-
} from '../constants/term-groups';
9-
import {SESSION_REQUEST} from '../constants/sessions';
8+
} from '../../typings/constants/term-groups';
9+
import {SESSION_REQUEST} from '../../typings/constants/sessions';
1010
import findBySession from '../utils/term-groups';
1111
import {getRootGroups} from '../selectors';
1212
import {setActiveSession, ptyExitSession, userExitSession} from './sessions';

lib/actions/ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
UI_OPEN_SSH_URL,
2525
UI_CONTEXTMENU_OPEN,
2626
UI_COMMAND_EXEC
27-
} from '../constants/ui';
27+
} from '../../typings/constants/ui';
2828

2929
import {setActiveGroup} from './term-groups';
3030
import type parseUrl from 'parse-url';

lib/actions/updater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {UPDATE_INSTALL, UPDATE_AVAILABLE} from '../constants/updater';
1+
import {UPDATE_INSTALL, UPDATE_AVAILABLE} from '../../typings/constants/updater';
22
import rpc from '../rpc';
33
import type {HyperActions} from '../../typings/hyper';
44

lib/reducers/sessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
SESSION_SET_XTERM_TITLE,
1212
SESSION_SET_CWD,
1313
SESSION_SEARCH
14-
} from '../constants/sessions';
14+
} from '../../typings/constants/sessions';
1515
import type {sessionState, session, Mutable, ISessionReducer} from '../../typings/hyper';
1616

1717
const initialState: sessionState = Immutable<Mutable<sessionState>>({

lib/reducers/term-groups.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {v4 as uuidv4} from 'uuid';
22
import type {Immutable as ImmutableType} from 'seamless-immutable';
33
import Immutable from 'seamless-immutable';
4-
import {TERM_GROUP_EXIT, TERM_GROUP_RESIZE} from '../constants/term-groups';
5-
import type {SessionAddAction} from '../constants/sessions';
6-
import {SESSION_ADD, SESSION_SET_ACTIVE} from '../constants/sessions';
4+
import {TERM_GROUP_EXIT, TERM_GROUP_RESIZE} from '../../typings/constants/term-groups';
5+
import type {SessionAddAction} from '../../typings/constants/sessions';
6+
import {SESSION_ADD, SESSION_SET_ACTIVE} from '../../typings/constants/sessions';
77
import findBySession from '../utils/term-groups';
88
import {decorateTermGroupsReducer} from '../utils/plugins';
99
import type {ITermGroup, ITermState, ITermGroups, ITermGroupReducer, Mutable} from '../../typings/hyper';

0 commit comments

Comments
 (0)