refactor wishlist manipulation code (#66)
This commit is contained in:
parent
0d7d73744c
commit
0b26ec0ce4
8 changed files with 521 additions and 361 deletions
|
@ -140,10 +140,13 @@ module.exports.strings = {
|
|||
WISHLIST_ADD: 'Add item to wishlist',
|
||||
WISHLIST_ADDED_BY_USER: addedBy => `Added by: ${addedBy}`,
|
||||
WISHLIST_ADDED_BY: 'Added By',
|
||||
WISHLIST_ADDED_ITEM_TO_OWN_WISHLIST: 'Added item to wishlist.',
|
||||
WISHLIST_CONFLICT: 'Items are being added too quickly. Please try again.',
|
||||
WISHLIST_DELETE: 'Delete',
|
||||
WISHLIST_EDIT_ITEM: 'Edit Item',
|
||||
WISHLIST_FETCH_FAIL: 'Failed to fetch the wishlist -- does the user exist?',
|
||||
WISHLIST_IMAGE: 'Image',
|
||||
WISHLIST_ITEM_MISSING: 'Failed to find item',
|
||||
WISHLIST_MOVE_DOWN: 'Move Down',
|
||||
WISHLIST_MOVE_GUARD: 'Not correct user',
|
||||
WISHLIST_MOVE_INVALID: 'Invalid move',
|
||||
|
@ -152,6 +155,7 @@ module.exports.strings = {
|
|||
WISHLIST_MOVE_ITEM_UP: 'Move Item Up',
|
||||
WISHLIST_MOVE_SUCCESS: 'Successfully moved item!',
|
||||
WISHLIST_MOVE_TOP: 'Move Top',
|
||||
WISHLIST_MOVE_UNKNOWN_DIRECTION: 'Unknown direction',
|
||||
WISHLIST_MOVE_UP: 'Move Up',
|
||||
WISHLIST_NAME: 'Name',
|
||||
WISHLIST_NOTE: 'Note',
|
||||
|
@ -162,17 +166,16 @@ module.exports.strings = {
|
|||
WISHLIST_PLEDGE: 'Pledge',
|
||||
WISHLIST_PLEDGED: pledgedBy => `Pledged for by ${pledgedBy}`,
|
||||
WISHLIST_PLEDGED_GUEST: 'Pledged for by a guest user',
|
||||
WISHLIST_PLEDGED_ITEM_FOR_USER: user => `Pledged item for ${user}.`,
|
||||
WISHLIST_PRICE: 'Price',
|
||||
WISHLIST_REFRESH_GUARD: 'Invalid user',
|
||||
WISHLIST_REFRESH_NO_URL: 'Item has no URL.',
|
||||
WISHLIST_REFRESH_SUCCESS: 'Successfully refreshed data!',
|
||||
WISHLIST_REMOVE_GUARD: 'Not correct user',
|
||||
WISHLIST_REMOVE_MISSING: 'Failed to find item',
|
||||
WISHLIST_REMOVE_SUCCESS: 'Successfully removed from wishlist',
|
||||
WISHLIST_SUGGEST: 'Suggest item',
|
||||
WISHLIST_TITLE: name => `${_CC.config.siteTitle} - Wishlist - ${name}`,
|
||||
WISHLIST_UNPLEDGE_GUARD: 'You did not pledge for this', // should never happen unless someone makes their own http requests
|
||||
WISHLIST_UNPLEDGE_MISSING: 'Failed to find item',
|
||||
WISHLIST_UNPLEDGE_SUCCESS: 'Successfully unpledged for item!',
|
||||
WISHLIST_UNPLEDGE: 'Unpledge',
|
||||
WISHLIST_URL_LABEL: 'Item URL or Name (<a href="/supported-sites">Supported Sites</a>)',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue