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.
v-pagination
Advanced tools
Note: This package is for use with Vuejs 1. For version 2 please use vue-pagination-2 instead.
Simple, generic and non-intrusive pagination component for Vue.js. Presentation is based on bootstrap.
Compile the code using browserify
with the stringify
transform
npm install v-pagination
Require the script:
var VuePagination = require('v-pagination');
Import the compiled standalone file into your HTML, which will expose a global VuePagination
variable.
Vue.use(VuePagination)
HTML:
<pagination for="some-entity" :records="500"></pagination>
props:
for
string
required
unique identifier for the component instance.records
number
required
number of recordsper-page
number
optional
records per page. Default: 25chunk
number
optional
max pages per chunk. Default: 10count-text
string
optional
total records text. Default: '{count} records'When a page is selected an event will be dispatched, using the unique id for the component. Listen to it and respond accordingly:
this.$on('vue-pagination::some-entity', function(page) {
// display the relevant records using the page param
});
To programmatically set the page apply a v-ref
identifier to the component and use one of the following methods:
setPage(page)
next()
prev()
nextChunk()
prevChunk()
All methods return true
if the page is legal and was thus set, or false
otherwise.
totalPages
totalChunks
currentChunk
FAQs
Vue.js pagination component
We found that v-pagination 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.