@pardjs/recaptcha-nuxt
v0.2.2
Published
Simple and easy Google reCAPTCHA integration with Nuxt.js
Downloads
5
Readme
Google reCAPTCHA
Forked from nuxt-community/recaptcha-module
Used recaptcha.net
replace google.com
to avoid the forbiden with GFW
Simple and easy Google reCAPTCHA integration with Nuxt.js
Setup
- Add
@padjs/recaptcha-nuxt
dependency withyarn
ornpm
into your project - Add
@padjs/recaptcha-nuxt
tomodules
section ofnuxt.config.js
- Configure it:
{
modules: [
[
"@padjs/recaptcha-nuxt",
{
/* reCAPTCHA options */
}
]
];
}
using top level options
{
modules: [
'@padjs/recaptcha-nuxt',
],
recaptcha: {
/* reCAPTCHA options */
},
}
Configuration
{
// ...
recaptcha: {
hideBadge: Boolean, // Hide badge element (v3)
siteKey: String, // Site key for requests
version: Number, // Version
},
// ...
}
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) mvrlin [email protected]