Commit Graph

34 Commits

Author SHA1 Message Date
21a5690277 Removes unwanted characters from passcode
Sometimes copying passcodes from https://plus.google.com/communities/108599095839806789745 will contain an invisible character(s) at the end which causes it to be invalid. This patch will remove non printable characters from a passcode before submitting it to Ingress.

I've found the bytes 0xefbbbf sometimes appear which is a BOM character.
2015-08-06 10:57:57 +10:00
c4117b3c29 [core] passcode contents are displayed correctly
Includes some other small fixes regarding passcodes.

Fixes #883
2014-10-05 22:24:15 +02:00
1f13ec3001 Improvements to passcode redeeming
- use text color instead of background, with font-weight:bold and a small shadow
- short format for passcodes
2014-08-09 16:59:33 +02:00
7a494be280 preliminary support for passcode redemption 2014-08-09 00:03:25 +02:00
f5d8587955 update code for the new internal name for enlightened - was ALIENS, now ENLIGHTENED 2013-07-31 20:15:14 +01:00
1eb785af1c * Add unusual XM objects 2013-06-10 13:57:30 -06:00
18e7a8f970 * Add new mods from June 10
* Attractive slidetoggle for dialog windows
2013-06-10 13:37:55 -06:00
0380893637 Style tweak 2013-05-25 00:36:16 -06:00
1b2baf5a88 = Redemption tweaks, round 3
* Pass the entire acquired item into resource decoders instead of the attribute in question. Generic 'resource' objects have things we need to examine.
* Formatted support for the `resource' taxonomy (portal keys and JARVIS/ADA). Remove standard 'default' taxonomy in favor of this.
* Let individual items override their own primary key (for example, JARVIS/ADA are both a FLIP_CARD, but we don't want to smash them together)
* Let the server-side item name override the "hard-coded" name in IITC
* Assuming that passcodes can eventually work like portal hacks, add support for the MEDIA and PORTAL_LINK_KEY item types.
* Change plaintext and HTML display for modResources in anticipation of link amplifiers
* Log entire JSON response to the console if we have to guess about items.
* Add more encouragement.
* Add Jarvis/ADA JSON responses, fake media items, and fake portal keys to json_examples.
2013-05-25 00:12:56 -06:00
4b39567e29 * Default dialogs to an empty title
* Fix bug that would cause some singleton dialogs to open several times
* Comment fix
2013-05-09 01:29:48 -06:00
2bdeb13f45 * Update redeeming.js to take advantage of new dialogs
* Dialogs now support collapsing and expanding
* Fix IITC about window - no longer resizes all onscreen dialogs
2013-05-07 01:42:47 -06:00
84f5499c18 * Window manager stuff. Multiple windows can be opened now. Still resolving bugs. 2013-05-06 17:09:39 -06:00
909c760061 * New passcode redemption plaintext format using Unicode chars
* Don't use digit format for plaintext redemption
* Remove unneecessary 'return true' statements
* Passcode guessing doesn't dirty up the results window as much
* Add asterisks to names for all types of guess
2013-04-27 22:37:21 -05:00
297cac1a18 * Proper digit formatting for passcode redemptions
* Add redeeming example used in pull request comments to json_examples/redeeming.js
2013-04-25 04:40:23 -05:00
2d662f9e79 = IITC Passcode Redemption overhaul, part 2
* Display random words of encouragement for successfully redeemed passcodes
* Refactor redeeming into smaller functions, using more jQuery logic
* Add redeem "handlers" - combinations of "decoders" and "formatters" for each taxonomy of item
* Add heuristic item guessing. If IITC can't figure out directly what an item is, try to guess what taxonomy of item it would be closest to. (For instance, if an item is truly unknown, but has a "rarity" attribute, it's going to be close to a modResource. Likewise, if an unknown item has a "level" attribute, it's going to be close to a resourceWithLevels.
** Tailor formatting and decoding based upon that guess. Worst case: the item is truly a mystery. Don't discard it: display it in a default format.
** Let the user know if we tried to heuristically guess an item. This won't happen unless something changes on the Ingress backend.
2013-04-25 02:11:04 -05:00
a80617e6e7 * Coding style tweaks 2013-04-24 01:11:38 -05:00
00523fc03d Completely overhauled passcode redemption.
* Show table by default, offer plaintext option for reward copy-pasting
* Use recommendations from https://plus.google.com/115907431535033114848/posts/PVV9j4fTR2m for item plaintext listing
* Break passcode redemption responses and errors into window.REDEEM_* variables
* If an item isn't known, don't simply let it slip into the Aurbis. Log it separately.
* Don't show AP or XM if the passcode didn't give any.
2013-04-23 20:21:48 -05:00
2403042179 Update redeeming.js
support for Powercubes
2013-04-14 01:02:25 +03:00
f8768acf63 add note about missing support for reporting power cubes when redeeming
need to capture the traffic to see the data format for this - tricky!
2013-04-13 22:12:34 +01:00
3bb3a4b6b2 fixed coding style (no spaces after for and if) 2013-03-07 15:04:50 +01:00
ca4ad51d93 fixed some more codingstyle issues 2013-03-07 13:32:03 +01:00
0824334d5f Merge branch 'upstream' into redeem_dlg
Conflicts:
	code/redeeming.js
2013-03-07 08:35:44 +01:00
1623c3fa9a fixed indetion 2013-03-07 08:31:25 +01:00
b30ac36ffa fix style nits 2013-03-06 00:02:28 +01:00
a448912500 Fix display of HTTP error messages for code redemption 2013-03-05 16:15:46 -06:00
967578f7ea fixed codingstyle and removed coda font 2013-03-05 13:35:09 +01:00
90ca848690 fixed indention 2013-03-05 08:56:46 +01:00
f167cd83ea changed "redeemed" to "accepted" 2013-03-05 08:55:15 +01:00
ba730111c4 Changed AP / XM Message to "+ 100 XM" 2013-03-05 08:52:56 +01:00
0afc26af4a new redeem dialog content 2013-03-05 08:52:46 +01:00
3c1c596a6a * Add detailed error messages for redemption errors (including rate-limiting, which happens sometimes).
* Reverse XMPs and resonators in redemption display
2013-03-04 15:55:01 -06:00
6bf3de0607 fix #252 by updating the wording 2013-02-21 20:15:29 +01:00
211b039be6 Parse items, AP, and XM response for passcodes, displaying information about the passcode's rewards. 2013-02-07 18:50:39 -06:00
a07ee0cc3d so others may contribute 2013-02-01 13:11:14 +01:00