-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
1 parent
40c6db8
commit 729d83a
Showing
3 changed files
with
153 additions
and
84 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
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,93 +1,148 @@ | ||
// | ||
// Action Types | ||
// | ||
export const BINDER_MENU = "TOGGLE_BINDER_MENU" | ||
export const CONSOLE = "TOGGLE_CONSOLE" | ||
export const SAVE_DIALOG = "TOGGLE_SAVE_DIALOG" | ||
export const BINDER_MENU = "BINDER_MENU" | ||
export const CONSOLE = "CONSOLE" | ||
export const SAVE_DIALOG = "SAVE_DIALOG" | ||
|
||
export const FILE_PATH = "UPDATE_FILE_PATH" | ||
export const FILE_CONTENT = "UPDATE_FILE_PATH" | ||
export const PROVIDER = "UPDATE_PROVIDER" | ||
export const ORG = "UPDATE_ORG" | ||
export const REPO = "UPDATE_REPO" | ||
export const GIT_REF = "UPDATE_GIT_REF" | ||
export const FILE_PATH = "FILE_PATH" | ||
export const FILE_CONTENT = "ILE_PATH" | ||
export const PROVIDER = "PROVIDER" | ||
export const ORG = "ORG" | ||
export const REPO = "REPO" | ||
export const GIT_REF = "GIT_REF" | ||
|
||
export const LANG = "UPDATE_LANG" | ||
export const LANG = "LANG" | ||
|
||
export const COMMIT_MESSAGE = "UPDATE_COMMIT_MESSAGE" | ||
export const COMMIT_MESSAGE = "COMMIT_MESSAGE" | ||
|
||
export const STRIP_OUTPUT = "TOGGLE_STRIP_OUTPUT" | ||
export const FILE_BUFFER = "UPDATE_FILE_BUFFER" | ||
export const SAVED_TIME = "UPDATE_SAVED_TIME" | ||
export const STRIP_OUTPUT = "STRIP_OUTPUT" | ||
export const FILE_BUFFER = "FILE_BUFFER" | ||
export const SAVED_TIME = "SAVED_TIME" | ||
|
||
export const CONSOLE_LOG = "UPDATE_CONSOLE_LOG" | ||
export const NOTIFICATION_LOG = "UPDATE_NOTIFICATION_LOG" | ||
export const CONSOLE_LOG = "CONSOLE_LOG" | ||
export const NOTIFICATION_LOG = "NOTIFICATION_LOG" | ||
|
||
export const SERVER_STATUS = "UPDATE_SERVER_STATUS" | ||
export const HOST = "UPDATE_HOST" | ||
export const SERVER_STATUS = "SERVER_STATUS" | ||
export const HOST = "HOST" | ||
|
||
export const LOGGED_IN = "LOGGED_IN" | ||
export const USERNAME = "USERNAME" | ||
export const USER_IMAGE = "IMAGE" | ||
export const USER_LINK = "LINK" | ||
|
||
export const LOGGED_IN = "UPDATE_LOGGED_IN" | ||
export const USERNAME = "UPDATE_USERNAME" | ||
export const USER_IMAGE = "UPDATE_IMAGE" | ||
export const USER_LINK = "UPDATE_LINK" | ||
// | ||
// ACTION CREATOR | ||
// | ||
|
||
export const toggleStripOutput = (text: string) => ({ | ||
type: STRIP_OUTPUT, | ||
value: text | ||
}) | ||
|
||
export const setCommitMessage = (text: string) => ({ | ||
type: COMMIT_MESSAGE, | ||
value: text | ||
}) | ||
|
||
export const toggleBinderMenu = () => ({ | ||
type: BINDER_MENU | ||
type: `TOGGLE_${BINDER_MENU}` | ||
}) | ||
|
||
export const toggleConsole = () => ({ | ||
type: CONSOLE | ||
type: `TOGGLE_${CONSOLE}` | ||
}) | ||
|
||
export const toggleSaveDialog = () => ({ | ||
type: SAVE_DIALOG | ||
type: `TOGGLE_${SAVE_DIALOG}` | ||
}) | ||
|
||
export const setFilePath = (text: string) => ({ | ||
type: FILE_PATH, | ||
type: `UPDATE_${FILE_PATH}`, | ||
value: text | ||
}) | ||
|
||
export const setFileContent = (text: string) => ({ | ||
type: FILE_CONTENT, | ||
type: `UPDATE_${FILE_CONTENT}`, | ||
value: text | ||
}) | ||
|
||
export const setProvider = (text: string) => ({ | ||
type: PROVIDER, | ||
type: `UPDATE_${PROVIDER}`, | ||
value: text | ||
}) | ||
|
||
export const setORG = (text: string) => ({ | ||
type: ORG, | ||
type: `UPDATE_${ORG}`, | ||
value: text | ||
}) | ||
|
||
export const setRepo = (text: string) => ({ | ||
type: REPO, | ||
type: `UPDATE_${REPO}`, | ||
value: text | ||
}) | ||
|
||
export const setGitRef = (text: string) => ({ | ||
type: GIT_REF, | ||
type: `UPDATE_${GIT_REF}`, | ||
value: text | ||
}) | ||
|
||
export const setLang = (text: string) => ({ | ||
type: LANG, | ||
type: `UPDATE_${LANG}`, | ||
value: text | ||
}) | ||
|
||
export const setCommitMessage = (text: string) => ({ | ||
type: `UPDATE_${COMMIT_MESSAGE}`, | ||
value: text | ||
}) | ||
|
||
export const toggleStripOutput = (text: string) => ({ | ||
type: `TOGGLE_${STRIP_OUTPUT}`, | ||
value: text | ||
}) | ||
|
||
export const setFileBuffer = (obj: object) => ({ | ||
type: `UPDATE_${FILE_BUFFER}`, | ||
value: obj | ||
}) | ||
|
||
export const setSavedTime = (obj: object) => ({ | ||
type: `UPDATE_${SAVED_TIME}`, | ||
value: obj | ||
}) | ||
|
||
export const appendConsolelog = (obj: object) => ({ | ||
type: `APPEND_${CONSOLE_LOG}`, | ||
value: obj | ||
}) | ||
|
||
export const appendNotificationLog = (obj: object) => ({ | ||
type: `APPEND_${NOTIFICATION_LOG}`, | ||
value: obj | ||
}) | ||
|
||
export const setServerStatus = (text: string) => ({ | ||
type: `UPDATE_${SERVER_STATUS}`, | ||
value: text | ||
}) | ||
|
||
export const setHost = (obj: object) => ({ | ||
type: `UPDATE_${HOST}`, | ||
value: obj | ||
}) | ||
|
||
export const updateLoggedIn = (flag: boolean) => ({ | ||
type: `UPDATE_${LOGGED_IN}`, | ||
value: flag | ||
}) | ||
|
||
export const updateUsername = (text: string) => ({ | ||
type: `UPDATE_${USERNAME}`, | ||
value: text | ||
}) | ||
|
||
export const updateUserImage = (text: string) => ({ | ||
type: `UPDATE_${USER_IMAGE}`, | ||
value: text | ||
}) | ||
|
||
export const updateUserLink = (text: string) => ({ | ||
type: `UPDATE_${USER_LINK}`, | ||
value: text | ||
}) | ||
|
||
|
||
|
||
|
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