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.
@pencilpix/vue2-clock-picker
Advanced tools
A simple clock picker component for vue v2.x
.
$ npm install @pencilpix/vue2-clock-picker --save
or
$ yarn add @pencilpix/vue2-clock-picker
In Browser:
<script src="node_modules/vuejs/dist/vue.min.js"></script>
<script src="path/to/vue2-clock-picker/dist/vue2-clock-picker.min.js">
<script>
Vue.use(VueClockPicker);
</script>
Module:
import VueClockPicker from 'vue2-clock-picker';
once component is installed it can be used as:
<vue-clock-picker></vue-clock-picker>
prop | type | default |
---|---|---|
placeholder | String | input placeholder default '' |
name | String | input name default '' |
label | String | label text will be hidden if not set. default '' |
input-class | String | css custom class to be applied to input. default '' . |
input-container-class | String | css custom class to be applied to input container. |
input-value-class | String | css custom class to be applied to input container when input contains value. default '' . |
input-focus-class | String | css custom class to be applied to input container when the input is focused. default '' . |
input-error-class | String | css custom class to be applied to input container when the value not match HH:MM or the input is required and the value is empty. |
value | String | initial value of input. default '' |
required | Boolean | set it to true if time field is required. default false |
event | when |
---|---|
beforeOpen | just before opening the dialog. |
open | just after opening the dialog. |
beforeClose | just before closing the dialog. |
close | just after closing the dialog. |
timeset | after the value of input is set. and it will recieve the value as 01:02 |
cancel | when cancel dialog button is clicked and it will receive the value found at cancel time. |
method | behavior |
---|---|
open | open the dialog |
close | close the dialog |
getValue | return the current value of the input as 02:00 |
setValue | set the current value of input and it accept String with valid time HH:MM |
FAQs
vuejs clock picker component
The npm package @pencilpix/vue2-clock-picker receives a total of 177 weekly downloads. As such, @pencilpix/vue2-clock-picker popularity was classified as not popular.
We found that @pencilpix/vue2-clock-picker 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.