mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Fix babel scope tracker error on build
This commit is contained in:
parent
a733963371
commit
41d70c3a15
6 changed files with 7 additions and 11 deletions
|
|
@ -8,7 +8,7 @@ import {
|
|||
} from '../constants/term-groups';
|
||||
import {SESSION_REQUEST} from '../constants/sessions';
|
||||
import findBySession from '../utils/term-groups';
|
||||
import getRootGroups from '../selectors';
|
||||
import {getRootGroups} from '../selectors';
|
||||
import {setActiveSession, ptyExitSession, userExitSession} from './sessions';
|
||||
import {Dispatch} from 'redux';
|
||||
import {ITermState, ITermGroup, HyperState} from '../hyper';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import {php_escapeshellcmd as escapeShellCmd} from 'php-escape-shell';
|
||||
import {isExecutable} from '../utils/file';
|
||||
import getRootGroups from '../selectors';
|
||||
import {getRootGroups} from '../selectors';
|
||||
import findBySession from '../utils/term-groups';
|
||||
import notify from '../utils/notify';
|
||||
import rpc from '../rpc';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import {createSelector} from 'reselect';
|
|||
import Header from '../components/header';
|
||||
import {closeTab, changeTab, maximize, openHamburgerMenu, unmaximize, minimize, close} from '../actions/header';
|
||||
import {connect} from '../utils/plugins';
|
||||
import getRootGroups from '../selectors';
|
||||
import {getRootGroups} from '../selectors';
|
||||
import {HyperState} from '../hyper';
|
||||
import {Dispatch} from 'redux';
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ const getTabs = createSelector(
|
|||
})
|
||||
);
|
||||
|
||||
const HeaderContainer = connect(
|
||||
export const HeaderContainer = connect(
|
||||
(state: HyperState) => {
|
||||
return {
|
||||
// active is an index
|
||||
|
|
@ -77,5 +77,3 @@ const HeaderContainer = connect(
|
|||
},
|
||||
null
|
||||
)(Header, 'Header');
|
||||
|
||||
export default HeaderContainer;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import * as uiActions from '../actions/ui';
|
|||
import {getRegisteredKeys, getCommandHandler, shouldPreventDefault} from '../command-registry';
|
||||
import stylis from 'stylis';
|
||||
|
||||
import HeaderContainer from './header';
|
||||
import {HeaderContainer} from './header';
|
||||
import TermsContainer from './terms';
|
||||
import NotificationsContainer from './notifications';
|
||||
import {HyperState} from '../hyper';
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import {connect} from '../utils/plugins';
|
|||
import {resizeSession, sendSessionData, setSessionXtermTitle, setActiveSession, onSearch} from '../actions/sessions';
|
||||
|
||||
import {openContextMenu} from '../actions/ui';
|
||||
import getRootGroups from '../selectors';
|
||||
import {getRootGroups} from '../selectors';
|
||||
import {HyperState, TermsProps} from '../hyper';
|
||||
import {Dispatch} from 'redux';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,8 @@ import {createSelector} from 'reselect';
|
|||
import {HyperState} from './hyper';
|
||||
|
||||
const getTermGroups = ({termGroups}: Pick<HyperState, 'termGroups'>) => termGroups.termGroups;
|
||||
const getRootGroups = createSelector(getTermGroups, termGroups =>
|
||||
export const getRootGroups = createSelector(getTermGroups, termGroups =>
|
||||
Object.keys(termGroups)
|
||||
.map(uid => termGroups[uid])
|
||||
.filter(({parentUid}) => !parentUid)
|
||||
);
|
||||
|
||||
export default getRootGroups;
|
||||
|
|
|
|||
Loading…
Reference in a new issue