Commit graph

15 commits

Author SHA1 Message Date
jdlrobson 49daa42a67 Remove unused PNG icon
Follow up to I2322194481e4d6b7662c0f075768d5941afa98b8

Change-Id: I09a83c2221c4fd69d9e703072fc0669df82522f2
2019-01-28 15:25:54 -08:00
jdlrobson 3a945d1f66 Standardise captcha reload icon
Icon is updated on both desktop and mobile.
A CSS file is converted to a LESS file
CSS rules added to tweak icon position

See also:
I2322194481e4d6b7662c0f075768d5941afa98b8

Bug: T213775
Change-Id: I1f15cd9ac4b78d7f6e24b93af0fcfb809f00e563
2019-01-16 16:37:31 -08:00
jenkins-bot 2bf2e4ed97 Merge "FancyCaptcha: remove useless .fancycaptcha-wrapper CSS rule" 2019-01-17 00:04:43 +00:00
Volker E 0472aeae64 build: Update 'stylelint-config-wikimedia' to v0.5.0 and make pass
Change-Id: I6a9b69479df579fc27ca0f3178c6b34a105b88c0
2019-01-09 14:47:21 -08:00
Jack Phoenix 54af8fa163 FancyCaptcha: remove useless .fancycaptcha-wrapper CSS rule
This rule was originally added in 12361c5f31 (merged on 17 January 2013) for the "request a new FancyCaptcha" feature.
The element was however removed from the PHP source in 2237e2c4ce (14 January 2015), which left this rule a complete orphan and indeed, as of today, codesearch shows no other matches for "fancycaptcha-wrapper" in all WMF git/gerrit repos than this one.

Change-Id: Ie1b3612e962cb1c377d340a70e0fa06e08ea47d5
2018-12-02 23:44:48 +02:00
Ed Sanders 5c5d4a5429 Remove obsolete aliases from closures
Bug: T208951
Change-Id: I82abf50e680639f326d3a1ca639bc05fa0eeb7c5
2018-11-12 13:21:13 +00:00
Ed Sanders 190c701217 build: Update linters
Change-Id: I95a14ebfd19a6632cf685444508fea5b5b33817f
2018-02-04 21:22:31 +00:00
Alex Monk a1d0cc0e4f reload JS: Get captcha ID using JSON for the API request
Change-Id: I0cc5293bd9dd0f0e71a3f5b3277bd8d53cb740f8
2017-09-01 19:06:51 +00:00
Ed Sanders ae85f2ac6b Replace jshint/jscs with eslint and add stylelint
Change-Id: I9c33c65c913d891739b913d5363abba66c2cd0dd
2017-01-18 16:53:09 -08:00
Gergő Tisza 69d7524674 Fix FancyCaptcha reload JS
I0da671a5 broke the FancyCaptcha reload script for the old auth
forms, and didn't get it quite right for AuthManager forms either
(that one mostly works but the textfield is not refocused).
This patch fixes both.

Change-Id: I78300a4f6998e63e71e4516331f4f3408b86864b
2016-06-09 21:00:19 +00:00
Gergő Tisza 31c59374a4 Add AuthManager support to SimpleCaptcha, QuestyCaptcha, FancyCaptcha, MathCaptcha
Also update MathCaptcha so that it works with recent versions of
Math (and breaks with old ones). Also fix MathCaptcha API output,
which used to send the question in plaintext.

Bug: T110302
Change-Id: I0da671a546700110d789b79a3089460abd9cce3b
Depends-On: I8b52ec8ddf494f23941807638f149f15b5e46b0c
2016-05-16 09:50:25 +00:00
Ori Livneh 780f9eee27 Compress PNGs with zopflipng
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.

This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:

  git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
    parallel zopflipng -m -y --iterations=500 --filters=01234mepb {} {} \;

Files which zopflipng was not able to compress more efficiently were left unmodified.

Bug: T127608
Change-Id: I918a2e82996bbbc203d348e0c4983144359c0a68
2016-02-20 23:06:03 +00:00
Paladox 325f21e117 Add grunt-jscs package
This will allow us to run jscs in npm.

Change-Id: Ica970dfd2459bbdf50abc55ecdb24fe47307ccaa
2015-11-26 23:34:47 +00:00
Matthew Flaschen 843620632a Properly isolate reloading functionality, drop createacct name
There can be more then one CAPTCHA on the page in AJAX scenarios,
so it's important one reload not affect separate CAPTCHAs.

Also, drop the legacy createacct naming, except for the one
that is actually specific to CreateAccount.

The following patch must be merged immediately after this:
* Core - I8924d537cad3e39adace99fb20626247128d9bd9

Change-Id: I0e55a159efd66a73cd217d9a5e86b2bced90f57a
2015-10-22 14:08:05 -04:00
Florian cad5bc9200 Move FancyCaptcha to its own location
3. step in preparation of ExtensionRegistration.

Bug: T88047
Change-Id: I31d8e0c01b16aafb39b4ead7acc88f2e91d33e6a
2015-05-21 16:19:38 +00:00