Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
- [Introduction](#Introduction) - [Usage](#usage) - [Components](#components) - [Input](#input) - [Select](#select) - [Textarea](#textarea) - [Checkbox](#checkbox) - [Radio](#radio)
Vue Inputs is a package that bundles common form inputs using Bootstrap 4 framework. Each component acts as a wrapper, making it much easier to use form elements without the need to repeat labels, validation and other classes, help blocks.
npm install vue-inputs --save
Including this plugin in your VueJS application is very simple. This will register all available components globally, so you can use them anywhere in your application.
import FormInputs from 'vue-inputs'
Vue.use(FormInputs)
All components have validator injected into them from parent component, so you don't need to worry about checking for errors. If error with same name as name
property is found, validation error will be show on component.
Prop | Types | Default | Description |
---|---|---|---|
label | String, Boolean | - | Label to show on the input. If false , label is not shown. |
name | String | - | Input's name |
value | any | - | Automatically injected when using v-model |
inline | Boolean | false | Show label and input inline |
input-group | Boolean | false | Show input group addon. Makes slot input-group-append available. (form-input only) |
options | Array | - | Options for select (form-select only) |
id | String | auto generated | ID (form-checkbox and form-radio only) |
<form-input
label="First Name"
name="first_name"
v-model="user.firstName"
></form-input>
<form-select
label="Role"
name="role_id"
v-model="user.roleId"
:options="roles"
></form-select>
Select component accepts array of objects as options:
roles: [
{ text: 'Select Role', value: null },
{ text: 'Administrator', value: 1 },
{ text: 'Subscriber', value: 2 }
]
<form-textarea
label="Content"
name="content"
v-model="post.content"
></form-textarea>
<form-checkbox
label="I agree to terms and conditions"
name="terms_and_conditions"
v-model="user.terms_and_conditions"
></form-checkbox>
<form-radio
label="Blue"
name="color"
value="blue"
v-model="product.color"
></form-radio>
FAQs
- [Introduction](#Introduction) - [Usage](#usage) - [Components](#components) - [Input](#input) - [Select](#select) - [Textarea](#textarea) - [Checkbox](#checkbox) - [Radio](#radio)
The npm package dm-menus receives a total of 0 weekly downloads. As such, dm-menus popularity was classified as not popular.
We found that dm-menus 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.