diff --git a/react/src/actions/actionCreators.js b/react/src/actions/actionCreators.js index 56f1015..635788f 100644 --- a/react/src/actions/actionCreators.js +++ b/react/src/actions/actionCreators.js @@ -65,6 +65,7 @@ export * from './actions/dexCoins'; export * from './actions/fullTxHistory'; export * from './actions/basiliskTxHistory'; export * from './actions/iguanaHelpers'; +export * from './actions/cli'; export let Config; diff --git a/react/src/actions/storeType.js b/react/src/actions/storeType.js index dff833c..1b0527e 100644 --- a/react/src/actions/storeType.js +++ b/react/src/actions/storeType.js @@ -41,4 +41,5 @@ export const SAVE_APP_CONFIG = 'SAVE_APP_CONFIG'; export const SERVICE_ERROR = 'SERVICE_ERROR'; export const DASHBOARD_ACTIVE_ADDRESS = 'DASHBOARD_ACTIVE_ADDRESS'; export const LOAD_APP_INFO = 'LOAD_APP_INFO'; -export const LOG_GUI_HTTP = 'LOG_GUI_HTTP'; \ No newline at end of file +export const LOG_GUI_HTTP = 'LOG_GUI_HTTP'; +export const CLI = 'CLI'; \ No newline at end of file diff --git a/react/src/components/dashboard/settings.js b/react/src/components/dashboard/settings.js index 323d060..4367884 100644 --- a/react/src/components/dashboard/settings.js +++ b/react/src/components/dashboard/settings.js @@ -10,7 +10,8 @@ import { addPeerNode, getAppConfig, saveAppConfig, - getAppInfo + getAppInfo, + shepherdCli } from '../../actions/actionCreators'; import Store from '../../store'; import AddCoinOptionsCrypto from '../addcoin/addcoinOptionsCrypto'; @@ -35,6 +36,9 @@ class Settings extends React.Component { activeTabHeight: '0', appSettings: {}, tabElId: null, + cliCmdString: null, + cliCoin: null, + cliResponse: null, }; this.exportWifKeys = this.exportWifKeys.bind(this); this.updateInput = this.updateInput.bind(this); @@ -64,6 +68,12 @@ class Settings extends React.Component { tabElId: this.state.tabElId, })); } + + console.log('settings props', props); + } + + execCliCmd() { + Store.dispatch(shepherdCli('passthru', null, 'getinfo')); } openTab(elemId, tab) { @@ -340,6 +350,16 @@ class Settings extends React.Component { ); } + renderCliResponse() { + if (this.state.cliResponse) { + return ( + 1234 + ); + } else { + return null; + } + } + render() { return (
Select a coin and type in CLI compatible command
+ + +