0.2.2 • Published 5 years ago

@pardjs/recaptcha-nuxt v0.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Google reCAPTCHA

Forked from nuxt-community/recaptcha-module

Used recaptcha.net replace google.com to avoid the forbiden with GFW

npm version npm downloads Circle CI Codecov Dependencies Standard JS

Simple and easy Google reCAPTCHA integration with Nuxt.js

📖 Release Notes

Setup

  1. Add @padjs/recaptcha-nuxt dependency with yarn or npm into your project
  2. Add @padjs/recaptcha-nuxt to modules section of nuxt.config.js
  3. 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

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) mvrlin mvrlin@pm.me