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.
aesth-vue-range-input
Advanced tools
a completely customizable and aesthetic range input component for vue.
a completely customizable and aesthetic range input component for vue.
For vue 3, include the @next
tag like this - ...aesth-vue-range-input@next
npm install aesth-vue-range-input
yarn add aesth-vue-range-input
<script src="https://cdn.jsdelivr.net/npm/aesth-vue-range-input"></script>
<script src="https://unpkg.com/aesth-vue-range-input"></script>
If installed through npm or yarn,
<template>
<div id="app">
<aesth-vue-range-input v-model.number="rangeValue" />
</div>
</template>
<script>
import AesthVueRangeInput from "aesth-vue-range-input";
export default {
data() {
return {
rangeValue: 20,
};
},
components {
AesthVueRangeInput,
},
};
</script>
Include the version number of vue in the value of the script's src
attribute.
If installed through CDN, in your HTML file,
<head>
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<!-- OR -->
<script src="https://unpkg.com/vue@2"></script>
<script src="https://cdn.jsdelivr.net/npm/aesth-vue-range-input"></script>
<!-- OR -->
<script src="https://unpkg.com/aesth-vue-range-input"></script>
</head>
<body>
<div id="app">
<aesth-vue-range-input v-model.number="rangeValue" />
</div>
<script>
var app = new Vue({
el: '#app',
data: {
rangeValue: 20,
}
});
</script>
</body>
A Demo of the aesth-vue-range-input installed through jsDelivr is available here.
All the props are optional.
Prop | Description | Type | Default |
---|---|---|---|
max | the greatest value in the range of permitted values | Number | 100 |
value | the value of the range input (make sure to include the .number modifier on the v-model directive) | Number | 0 |
rangeWidth | the width of the range input | String | 100% |
progressColor | the color of the range input's progress section (the v-model directive has to be present for this to be visible on webkit browsers) | String | #000c |
trackColor | the color of the range input's track | String | #0003 |
squaredThumb | boolean specifying whether the range input's thumb should be in a square or circle shape | Boolean | false |
thumbBorderColor | the color of the thumb's border | String | #000 |
thumbSize | the width and height CSS properties of the range input's thumb | String | 20px |
buffered | an object containing the width and color of the buffered section | Object | undefined |
Here's an implementation with the buffered
prop:
<aesth-vue-range-input
:buffered="{
width: '70%',
color: '#0008',
}"
/>
MIT © Idorenyin Udoh
FAQs
a completely customizable and aesthetic range input component for vue.
We found that aesth-vue-range-input 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.