-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
805 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,118 +1,28 @@ | ||
import * as types from '../constants/eon_detail_action_types'; | ||
|
||
// ACTION CREATORS | ||
let pollerId; | ||
|
||
export function BEGIN_install(eon) { | ||
return { | ||
type: types.INSTALL, | ||
payload: eon | ||
}; | ||
} | ||
|
||
export function SUCCESS_install() { | ||
return { | ||
type: types.INSTALL_SUCCESS | ||
}; | ||
} | ||
|
||
export function FAIL_install(err) { | ||
return { | ||
type: types.INSTALL_FAIL, | ||
payload: { | ||
err | ||
} | ||
}; | ||
} | ||
|
||
export function BEGIN_uninstall() { | ||
return { | ||
type: types.UNINSTALL | ||
}; | ||
} | ||
|
||
export function SUCCESS_uninstall() { | ||
return { | ||
type: types.UNINSTALL_SUCCESS | ||
}; | ||
} | ||
|
||
export function FAIL_uninstall(err) { | ||
return { | ||
type: types.UNINSTALL_FAIL, | ||
payload: { | ||
err | ||
} | ||
}; | ||
} | ||
|
||
export function CHANGE_TAB(tab) { | ||
return { | ||
type: types.CHANGE_TAB, | ||
payload: tab | ||
}; | ||
} | ||
|
||
// SSH ACTION CREATORS | ||
export function BEGIN_connectSSH() { | ||
export function SHOW_COMMAND(tab) { | ||
return { | ||
type: types.CONNECT_SSH | ||
}; | ||
} | ||
|
||
|
||
export function SUCCESS_connectSSH() { | ||
return { | ||
type: types.CONNECT_SSH_SUCCESS | ||
}; | ||
} | ||
|
||
export function FAIL_connectSSH(err) { | ||
return { | ||
type: types.CONNECT_SSH_FAIL, | ||
payload: { | ||
err | ||
} | ||
}; | ||
} | ||
|
||
export function BEGIN_sshCommand() { | ||
return { | ||
type: types.SSH_COMMAND | ||
}; | ||
} | ||
|
||
export function SUCCESS_sshCommand() { | ||
return { | ||
type: types.SSH_COMMAND_SUCCESS | ||
}; | ||
} | ||
|
||
export function RESPONSE_sshCommand(stdout,stderr) { | ||
return { | ||
type: types.SSH_COMMAND_RESPONSE, | ||
payload: { | ||
stderr, | ||
stdout | ||
} | ||
type: types.SHOW_COMMAND, | ||
payload: tab | ||
}; | ||
} | ||
|
||
export function STOP_POLLING() { | ||
export function HIDE_COMMAND() { | ||
return { | ||
type: types.STOP_POLLING | ||
type: types.HIDE_COMMAND | ||
}; | ||
} | ||
|
||
export function FAIL_sshCommand(err) { | ||
export function RUN_COMMAND(command) { | ||
return { | ||
type: types.SSH_COMMAND_FAIL, | ||
payload: { | ||
err | ||
} | ||
type: types.RUN_COMMAND, | ||
payload: command | ||
}; | ||
} | ||
|
||
export function stopPolling() { | ||
dispatch(STOP_POLLING); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
import * as types from '../constants/ui_action_types'; | ||
|
||
export function SET_TERMINAL_FONT_SIZE(fontSize) { | ||
return { | ||
type: types.SET_TERMINAL_FONT_SIZE, | ||
payload: fontSize | ||
}; | ||
} | ||
export function SET_STATE_LIST_DEPTH(depth) { | ||
console.warn("Setting depth to: ", depth); | ||
return { | ||
type: types.SET_STATE_LIST_DEPTH, | ||
payload: depth | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.