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.
@hennge/vue3-pagination
Advanced tools
A Vue 3 component for pagination.
Package is available on NPM: https://www.npmjs.com/package/vue3-pagination
// with npm
npm install @hennge/vue3-pagination
// with yarn
yarn add @hennge/vue3-pagination
The component is packaged mainly for use with bundlers, if you require a browser build - post an issue.
import VPagination from "@hennge/vue3-pagination";
import "@hennge/vue3-pagination/dist/vue3-pagination.css";
export default {
...
components: {
VPagination
}
...
}
<template>
<v-pagination
v-model="page"
:pages="10"
:range-size="1"
active-color="#DCEDFF"
@update:modelValue="updateHandler"
/>
</template>
Main interaction with the pagination is done via v-model
with Number
as expected type of the value passed.
ID | Type | Default | Description |
---|---|---|---|
pages | Number | Total number of pages | |
rangeSize | Number | 1 | Number of page around the current page |
activeColor | String | #DCEDFF | Background color of the current page |
hideFirstButton | Boolean | false | Hide the button to go to the first page |
hideLastButton | Boolean | false | Hide the button to go to the last page |
ID | Output | Description |
---|---|---|
update:modelValue | Number | The current page has been updated |
Copyright © 2020 - Present, Julian Springaux
FAQs
A Vue 3 component for pagination.
The npm package @hennge/vue3-pagination receives a total of 2,357 weekly downloads. As such, @hennge/vue3-pagination popularity was classified as popular.
We found that @hennge/vue3-pagination demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
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.