Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-captcha
Advanced tools
Readme
Component (es6) Captcha for Vue.js
The demo page is HERE.
^2.0.0
^4.7.0
^3.1.0
$ npm install --save vue-captcha
<template>
<div class="form">
<div class="row">
<div><strong>Default</strong></div>
<my-captcha :callSuccess="captchaBtn"></my-captcha>
<button class="button" v-bind:disabled="btndis" v-on:click="clicked">Submit</button>
</div>
<div class="row">
<div><strong>Change: color </strong></div>
<my-captcha :callSuccess="captchaOk" color="green"></my-captcha>
</div>
<div class="row">
<div><strong>Change: color / resolve (only text) </strong></div>
<my-captcha :callSuccess="captchaOk" color="orange" resolve="text"></my-captcha>
</div>
<div class="row">
<div><strong>Change: color / resolve (only digit) </strong></div>
<my-captcha :callSuccess="captchaOk" color="purple" resolve="digit"></my-captcha>
</div>
<div class="row">
<div><strong>Change: color / mode (math) </strong></div>
<my-captcha :callSuccess="captchaOk" color="blue" mode="math"></my-captcha>
</div>
<div class="row">
<div><strong>Change: color / mode (math) / resolve (only text) </strong></div>
<my-captcha :callSuccess="captchaOk" color="black" mode="math" resolve="text"></my-captcha>
</div>
<div class="row">
<div><strong>Change: color / mode (math) / resolve (only digit) </strong></div>
<my-captcha :callSuccess="captchaOk" color="red" mode="math" resolve="digit"></my-captcha>
</div>
</div>
</template>
<script>
import myCaptcha from 'vue-captcha'
export default {
name: 'form',
data () {
return {
btndis: true
}
},
methods: {
captchaOk () {
console.log('captcha ok.!')
},
captchaBtn () {
this.btndis = false
},
clicked () {
alert('button active.!')
}
},
components: {
'my-captcha': myCaptcha
}
}
</script>
<style scope>
.form {
margin: 10px;
}
.row {
margin: 10px;
}
.button {
margin-top: 5px;
background-color: #1D9D74;
border: 1px solid transparent;
border-radius: 3px;
border-color: #dbdbdb;
text-align: center;
font-size: 1em;
height: 2.25em;
line-height: 1.5;
color: white;
cursor: pointer;
padding-bottom: calc(0.375em - 1px);
padding-left: calc(0.625em - 1px);
padding-right: calc(0.625em - 1px);
padding-top: calc(0.375em - 1px);
}
.button[disabled] {
cursor: not-allowed;
opacity: 0.6;
}
</style>
callSuccess
type: Function,
required: true
color
type: String
reuired: false
default: '#1D9D74'
mode
type: String
required: false
default: 'text' // 'text' -> alphanumeric | 'math' -> operations math
resolve
type: String
required: false
default: 'all' // 'all' -> written and digit | 'text' -> only written | 'digit' -> only digit
captchaOk = () => {
console.log('captcha ok.!')
}
<my-captcha :callSuccess="captchaOk"></my-captcha>
Copyright (c) 2017-present, Rafael Briceño @rafaelbm91
FAQs
Component (es6) Captcha for Vue.js
The npm package vue-captcha receives a total of 185 weekly downloads. As such, vue-captcha popularity was classified as not popular.
We found that vue-captcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.