
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@vuetility/vue-custom-scroller
Advanced tools
A customizable Vue scroller component 📜📦
WARNING: custom-scroller is at pre-alpha stage of development and may undergo significant changes.
Feel free to submit issues and feature requests here.
npm i @vuetility/vue-custom-scroller
or if you prefer yarn
yarn add @vuetility/vue-custom-scroller
You may install Custom Scroller globally:
import Vue from 'vue';
import VueCustomScroller from '@vuetility/vue-custom-scroller';
Vue.use(VueCustomScroller);
This will make <custom-scroller> available to all components within your Vue app.
Include the custom scroller directly into your component using import:
<script>
import { CustomScroller } from '@vuetility/vue-custom-scroller';
export default {
...
components: {
CustomScroller
}
...
};
</script>
<template>
...
<scrollable-element ref="targetEl"></scrollable-element> /* some scrollable element(component) */
<custom-scroller targetElement="targetEl"/>
...
</template>
Property | Type | Required | Default | Description |
---|---|---|---|---|
targetElement | String | true | ref of the element to scroll, it can be an HTMLElement or a VueComponent | |
onlyShowIfOverflowing | Boolean | false | true | Only show scroller if the target element overflows |
customClass | String | false | class name to override the scroller styles(find the default styles attached below) |
.v-vuetility__vue-custom-scroller {
width: 200px;
outline: none;
-webkit-appearance: none;
background: #EBEBEB;
border-radius: 4px;
cursor: pointer;
}
.v-vuetility__vue-custom-scroller::-webkit-slider-thumb {
-webkit-appearance: none;
border: 1px solid #233242;
height: 5px;
width: var(--slider-thumb-width);
cursor: pointer;
background: #233242;
border-radius: 4px;
box-shadow: 1px 1px 1px #233242, 0 0 1px #233242;
}
<template>
...
<custom-scroller
targetElement="targetEl"
customClass="custom-class"
onlyShowIfOverflowing
step="0.7"
></custom-scroller>
...
</template>
<style lang="scss">
.custom-class {
/*...styles here...*/
}
.custom-class::-webkit-slider-thumb {
/*...styles here...*/
}
</style>
Click here to see the component in action.
To begin development, run:
npm install
npm run serve
then navigate to http://localhost:8080/
FAQs
A customizable Vue scroller component 📜 📦
The npm package @vuetility/vue-custom-scroller receives a total of 0 weekly downloads. As such, @vuetility/vue-custom-scroller popularity was classified as not popular.
We found that @vuetility/vue-custom-scroller 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.