-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
13 changed files
with
105 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// this file needs to use module.exports as it is used both by react and electron | ||
// make sure this file is identical in both src/config and public/app/config | ||
|
||
module.exports = { | ||
SAVE_SPACE_CHANNEL: 'space:save', | ||
GET_SPACE_CHANNEL: 'space:get', | ||
GET_SPACES_CHANNEL: 'spaces:get', | ||
DELETE_SPACE_CHANNEL: 'space:delete', | ||
DELETED_SPACE_CHANNEL: 'space:deleted', | ||
LOAD_SPACE_CHANNEL: 'space:load', | ||
LOADED_SPACE_CHANNEL: 'space:loaded', | ||
EXPORT_SPACE_CHANNEL: 'space:export', | ||
EXPORTED_SPACE_CHANNEL: 'space:exported', | ||
SHOW_LOAD_SPACE_PROMPT_CHANNEL: 'prompt:space:load:show', | ||
SHOW_EXPORT_SPACE_PROMPT_CHANNEL: 'prompt:space:export:show', | ||
SHOW_DELETE_SPACE_PROMPT_CHANNEL: 'prompt:space:delete:show', | ||
RESPOND_LOAD_SPACE_PROMPT_CHANNEL: 'prompt:space:load:response', | ||
RESPOND_EXPORT_SPACE_PROMPT_CHANNEL: 'prompt:space:export:respond', | ||
RESPOND_DELETE_SPACE_PROMPT_CHANNEL: 'prompt:space:delete:respond', | ||
}; |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// this file needs to use module.exports as it is used both by react and electron | ||
// make sure this file is identical in both src/config and app/config | ||
|
||
const ERROR_ZIP_CORRUPTED = 'ERROR_ZIP_CORRUPTED'; | ||
const ERROR_JSON_CORRUPTED = 'ERROR_JSON_CORRUPTED'; | ||
const ERROR_SPACE_ALREADY_AVAILABLE = 'ERROR_SPACE_ALREADY_AVAILABLE'; | ||
const ERROR_DOWNLOADING_FILE = 'ERROR_DOWNLOADING_FILE'; | ||
const ERROR_GENERAL = 'ERROR_GENERAL'; | ||
|
||
module.exports = { | ||
ERROR_ZIP_CORRUPTED, | ||
ERROR_JSON_CORRUPTED, | ||
ERROR_SPACE_ALREADY_AVAILABLE, | ||
ERROR_DOWNLOADING_FILE, | ||
ERROR_GENERAL, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// this file needs to use module.exports as it is used both by react and electron | ||
// make sure this file is identical in both src/config and public/app/config | ||
|
||
const ERROR_DOWNLOADING_MESSAGE = 'There was a problem downloading your files'; | ||
const ERROR_LOADING_MESSAGE = 'There was a problem loading your space'; | ||
const ERROR_EXPORTING_MESSAGE = 'There was a problem exporting this space'; | ||
const SUCCESS_EXPORTING_MESSAGE = 'Space was exported successfully'; | ||
const ERROR_DELETING_MESSAGE = 'There was a problem deleting this space'; | ||
const SUCCESS_DELETING_MESSAGE = 'Space was deleted successfully'; | ||
const ERROR_ZIP_CORRUPTED_MESSAGE = | ||
'The archive provided is not formatted properly'; | ||
const ERROR_JSON_CORRUPTED_MESSAGE = "Space's JSON file is corrupted"; | ||
const ERROR_SPACE_ALREADY_AVAILABLE_MESSAGE = | ||
'A space with the same id is already available'; | ||
const SUCCESS_SPACE_LOADED_MESSAGE = 'Space was loaded successfully'; | ||
const UNEXPECTED_ERROR_MESSAGE = 'An unexpected error has occurred'; | ||
const ERROR_GETTING_SPACE_MESSAGE = 'There was an error getting that space.'; | ||
const OFFLINE_ERROR_MESSAGE = 'This functionality requires online connectivity'; | ||
const ERROR_MESSAGE_HEADER = 'Error'; | ||
const ERROR_SAVING_SPACE_MESSAGE = 'There was an error saving the space'; | ||
const SUCCESS_SAVING_MESSAGE = 'Space was saved successfully'; | ||
const SUCCESS_MESSAGE_HEADER = 'Success'; | ||
|
||
module.exports = { | ||
ERROR_DOWNLOADING_MESSAGE, | ||
ERROR_MESSAGE_HEADER, | ||
ERROR_SAVING_SPACE_MESSAGE, | ||
SUCCESS_SAVING_MESSAGE, | ||
SUCCESS_MESSAGE_HEADER, | ||
ERROR_GETTING_SPACE_MESSAGE, | ||
ERROR_EXPORTING_MESSAGE, | ||
SUCCESS_EXPORTING_MESSAGE, | ||
ERROR_DELETING_MESSAGE, | ||
SUCCESS_DELETING_MESSAGE, | ||
ERROR_ZIP_CORRUPTED_MESSAGE, | ||
ERROR_JSON_CORRUPTED_MESSAGE, | ||
ERROR_SPACE_ALREADY_AVAILABLE_MESSAGE, | ||
SUCCESS_SPACE_LOADED_MESSAGE, | ||
UNEXPECTED_ERROR_MESSAGE, | ||
OFFLINE_ERROR_MESSAGE, | ||
ERROR_LOADING_MESSAGE, | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 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