File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " stylelint-config-apostrophe" ,
3+ "rules" : {
4+ "scale-unlimited/declaration-strict-value" : " off"
5+ }
6+ }
Original file line number Diff line number Diff line change 44 "description" : " Adds reCAPTCHA v3 to Apostrophe login pages" ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "lint" : " npm run eslint" ,
7+ "lint" : " npm run eslint && npm run stylelint " ,
88 "eslint" : " eslint ." ,
9+ "stylelint" : " stylelint ui/**/*.{scss,vue}" ,
910 "test" : " npm run lint && mocha"
1011 },
1112 "repository" : {
2021 "apostrophe" : " workspace:^" ,
2122 "eslint" : " ^9.39.1" ,
2223 "eslint-config-apostrophe" : " workspace:^" ,
23- "mocha" : " ^7.2.0"
24+ "mocha" : " ^7.2.0" ,
25+ "stylelint" : " ^16.0.0" ,
26+ "stylelint-config-apostrophe" : " workspace:^"
2427 }
2528}
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ export default {
2424 : this .$emit (' block' );
2525 }
2626 },
27+ mounted () {
28+ if (! window .grecaptcha ) {
29+ this .addScript ();
30+ }
31+
32+ this .executeRecaptcha ();
33+ },
2734 methods: {
2835 addScript () {
2936 const scriptElem = document .createElement (' script' );
You can’t perform that action at this time.
0 commit comments