-
Notifications
You must be signed in to change notification settings - Fork 50
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
67d4e90
commit f109dc8
Showing
4 changed files
with
151 additions
and
115 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// constants.js | ||
module.exports = { | ||
ERROR_LOGIN_REQUIRED: "You must login", | ||
ERROR_NO_PERMISSION: "You don't have permission", | ||
ERROR_NOT_AUTHOR: "You are not the Author", | ||
ERROR_FETCH_LISTINGS: "Failed to fetch listings. Please try again later.", | ||
ERROR_CREATE_LISTING: "Failed to create listing", | ||
ERROR_LOAD_EDIT_PAGE: "Failed to load edit page", | ||
ERROR_LOAD_LISTING_DETAILS: "Failed to load listing details", | ||
ERROR_UPDATE_LISTING: "Failed to update listing", | ||
ERROR_DELETE_LISTING: "Failed to delete listing", | ||
ERROR_LISTING_NOT_FOUND: "Listing not found", | ||
ERROR_SEND_VALID_DATA: "Send valid data of listing", | ||
SUCCESS_LISTING_CREATED: "New listing created successfully", | ||
SUCCESS_LISTING_UPDATED: "Listing updated successfully", | ||
SUCCESS_LISTING_DELETED: "Listing deleted successfully", | ||
SUCCESS_REVIEW_ADDED: "Review added successfully!" | ||
}; |
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