
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@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
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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.