
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@thinknpm/vue-form-ui
Advanced tools
A Collection of Vue.js Form Components
:abc: Text input (only allows letters)
:1234: Number input (only allows numbers)
:date: Date input (3 inputs split DD/MM/YYYY - only allows valid dates and has optional min/max age validation)
:e-mail: Email input (valid emails only)
:iphone: Phone input (UK mobile or home)
:radio_button: Radio buttons input (fieldset)
:ballot_box_with_check: Checkbox buttons input (fieldset)
:arrow_down_small: Select input
:pound: Currency input
npm install @thinknpm/vue-form-ui --save
// import form components
import TextInput from '@thinknpm/vue-form-ui/src/components/textinput.vue'
import EmailInput from '@thinknpm/vue-form-ui/src/components/emailinput.vue'
// vue component
export default {
name: 'Form',
components: {
'text-input': TextInput,
'email-input': EmailInput,
// lazyload/code split the component
// components can be grouped using the same 'webpackChunkName'
'phone-input': () => import(/* webpackChunkName: "code-split-1" */ '@thinknpm/vue-form-ui/src/components/phoneinput.vue')
}
}
<text-input inputname="firstName" label="First Name" :required="true" />
<email-input inputname="email" label="Email" :required="true" />
<phone-input inputname="mobile" label="Mobile number" type="mobile" />
These are imported via a Vue mixin: import { basic_props } from '../mixins/basic-props.js'
inputname (string) required
name given to the input
label (string) required
string used to fill question and placerholder text
value (object)
used to prepopulate input value from an object e.g { value: 'prepopulated value' }
required (boolean)
basic validation - is the field required
helpText (string)
string which can be used to display a help message
sectionID (number)
number which is used when you want to validation form sections without triggering inputs in different 'sections'
customErrors (object)
This is not included via mixin because defaults are different for input types
Object containing custom error messages for each rule e.g. { required: 'Please provide your name' }
minLength (string)
components: TextInput, EmailInput, PhoneInput
Set the minimum length of input value
maxLength (string)
components: TextInput, EmailInput, PhoneInput
Set the maximum length of input value
minAge (number)
components: DateInput
Set the minimum age for date validation
maxAge (number)
components: DateInput
Set the maximum age for date validation
type (string)
components: PhoneInput
Set phone input type to either 'mobile' or 'home'
options (array)
components: ButtonsRadio, ButtonsCheckbox, SelectInput
An array of objects used to provide options for the buttons e.g. [{ 'value': true, 'name': 'Yes' }, { 'value': false, 'name': 'No' }]
FAQs
Collection of Vue.js Form Components
The npm package @thinknpm/vue-form-ui receives a total of 2 weekly downloads. As such, @thinknpm/vue-form-ui popularity was classified as not popular.
We found that @thinknpm/vue-form-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.