From 120ab7f1203ce90ef9c12a62719a1c7009bcc6cf Mon Sep 17 00:00:00 2001 From: crockwave Date: Sun, 28 Jun 2020 15:42:38 -0500 Subject: [PATCH 1/2] Made captcha reloadable on image click --- .../features/auth_login/components/captcha.js | Bin 2553 -> 2931 bytes .../components/registration_form.js | Bin 5481 -> 5583 bytes app/soapbox/locales/ar.json | 1 + app/soapbox/locales/ast.json | 1 + app/soapbox/locales/bg.json | 1 + app/soapbox/locales/bn.json | 1 + app/soapbox/locales/br.json | 1 + app/soapbox/locales/ca.json | 1 + app/soapbox/locales/co.json | 1 + app/soapbox/locales/cs.json | 1 + app/soapbox/locales/cy.json | 1 + app/soapbox/locales/da.json | 1 + app/soapbox/locales/de.json | 1 + app/soapbox/locales/defaultMessages.json | 9 +++++++++ app/soapbox/locales/el.json | 1 + app/soapbox/locales/en.json | 1 + app/soapbox/locales/eo.json | 1 + app/soapbox/locales/es-AR.json | 1 + app/soapbox/locales/es.json | 1 + app/soapbox/locales/et.json | 1 + app/soapbox/locales/eu.json | 1 + app/soapbox/locales/fa.json | 1 + app/soapbox/locales/fi.json | 1 + app/soapbox/locales/fr.json | 1 + app/soapbox/locales/ga.json | 1 + app/soapbox/locales/gl.json | 1 + app/soapbox/locales/he.json | 1 + app/soapbox/locales/hi.json | 1 + app/soapbox/locales/hr.json | 1 + app/soapbox/locales/hu.json | 1 + app/soapbox/locales/hy.json | 1 + app/soapbox/locales/id.json | 1 + app/soapbox/locales/io.json | 1 + app/soapbox/locales/it.json | 1 + app/soapbox/locales/ja.json | 1 + app/soapbox/locales/ka.json | 1 + app/soapbox/locales/kk.json | 1 + app/soapbox/locales/ko.json | 1 + app/soapbox/locales/lt.json | 1 + app/soapbox/locales/lv.json | 1 + app/soapbox/locales/mk.json | 1 + app/soapbox/locales/ms.json | 1 + app/soapbox/locales/nl.json | 1 + app/soapbox/locales/nn.json | 1 + app/soapbox/locales/no.json | 1 + app/soapbox/locales/oc.json | 1 + app/soapbox/locales/pl.json | 1 + app/soapbox/locales/pt-BR.json | 1 + app/soapbox/locales/pt.json | 1 + app/soapbox/locales/ro.json | 1 + app/soapbox/locales/ru.json | 1 + app/soapbox/locales/sk.json | 1 + app/soapbox/locales/sl.json | 1 + app/soapbox/locales/sq.json | 1 + app/soapbox/locales/sr-Latn.json | 1 + app/soapbox/locales/sr.json | 1 + app/soapbox/locales/sv.json | 1 + app/soapbox/locales/ta.json | 1 + app/soapbox/locales/te.json | 1 + app/soapbox/locales/th.json | 1 + app/soapbox/locales/tr.json | 1 + app/soapbox/locales/uk.json | 1 + app/soapbox/locales/zh-CN.json | 1 + app/soapbox/locales/zh-HK.json | 1 + app/soapbox/locales/zh-TW.json | 1 + 65 files changed, 71 insertions(+) diff --git a/app/soapbox/features/auth_login/components/captcha.js b/app/soapbox/features/auth_login/components/captcha.js index 3921f3d6ecf0b7baaa57640f52a0e4833fbed8c6..74ad686ac3739de2276df8f8d0ffd49a0b39005e 100644 GIT binary patch delta 386 zcmew<{8?;+4WmwGZb5!gi9)r4TYgb)Vo6DAif?LhabkL^LajntQGTw1dQoa(a*1wc zUP;bmOUB#m`FYMcnaSCc4={>N7GXL8<8Qvew2wtt0SJ=w^NK+R!W7oBhtz9ufn-3y zCMC1X4$cGe3+$?GFzn7uu?5^Q{lvt9PpQo3cSWuFjk*Jpebceb^N@`kSX-)~$ zrMBu|7b%ovq$*_Qf}CEGuaKTvqL8SNms+j>)G7|rtFEALS8JnRfMomR3+&d~Pj*jmFFun{33rpw2_uvA2{N-d K3LOCheLD&eeG%vY diff --git a/app/soapbox/features/landing_page/components/registration_form.js b/app/soapbox/features/landing_page/components/registration_form.js index 23d0f1f8ef0aa11ddde7b9a6471c38571e0f1d4d..36faad10329ad4847f0aa2b620b2b673f04b71ed 100644 GIT binary patch delta 77 zcmaE93#d<& Date: Fri, 3 Jul 2020 20:13:19 +0000 Subject: [PATCH 2/2] Update defaultMessages.json to include captcha defaultMessage --- app/soapbox/locales/defaultMessages.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/soapbox/locales/defaultMessages.json b/app/soapbox/locales/defaultMessages.json index b5ad94f03b..72396dc07e 100644 --- a/app/soapbox/locales/defaultMessages.json +++ b/app/soapbox/locales/defaultMessages.json @@ -905,6 +905,15 @@ ], "path": "app/soapbox/features/audio/index.json" }, + { + "descriptors": [ + { + "defaultMessage": "Click the image to get a new captcha", + "id": "registration.captcha.hint" + } + ], + "path": "app/soapbox/features/auth_login/components/captcha.json" + }, { "descriptors": [ {