Gathering detailed insights and metrics for react-reactstrap-pagination
Gathering detailed insights and metrics for react-reactstrap-pagination
Gathering detailed insights and metrics for react-reactstrap-pagination
Gathering detailed insights and metrics for react-reactstrap-pagination
npm install react-reactstrap-pagination
48.5
Supply Chain
71.5
Quality
74.5
Maintenance
100
Vulnerability
99.3
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
17 Stars
83 Commits
12 Forks
2 Watching
25 Branches
5 Contributors
Updated on 25 Sept 2024
JavaScript (95.49%)
HTML (4.51%)
Cumulative downloads
Total Downloads
Last day
14.8%
70
Compared to previous day
Last week
6.3%
319
Compared to previous week
Last month
-4.9%
1,294
Compared to previous month
Last year
-59.1%
22,575
Compared to previous year
2
3
26
Pagination component made using Reactstrap PaginationItem and PaginationLink components.
1PaginationComponent.propTypes = {
2 // Total number of items
3 totalItems: PropTypes.number.isRequired,
4 // Number of items displayed each page
5 pageSize: PropTypes.number.isRequired,
6 // Function to receive the event when a page is selected
7 onSelect: PropTypes.func.isRequired,
8 // Number of pages being displayed, by default 5
9 maxPaginationNumbers: PropTypes.number,
10 // Page where the pagination starts, by default 1
11 defaultActivePage: PropTypes.number
12 // Change text of "First" button
13 firstPageText: PropTypes.string
14 // Change text of "Previous" button
15 previousPageText: PropTypes.string
16 // Change text of "Next" button
17 nextPageText: PropTypes.string
18 // Change text of "Last" button
19 lastPageText: PropTypes.string
20 // Changes the size of the component. Values: "sm" and "lg". Without the prop the size is normal.
21 size: PropTypes.string
22}
1<PaginationComponent totalItems={50} pageSize={5} onSelect={this.handleSelected} />
activePage prop changed to defaultActivePage. Now it correctly changes the numbers if the defaultActivePage is bigger than maxPaginationNumbers.
Removed use of deprecated method componentWillReceiveProps.
It is possible to change any props, including defaultActivePage and it will update correctly (using state).
It was added on 1.0.8 but it's worth to mention, the size prop with the values "sm" or "lg" will make smaller or bigger the component. It was an option from the actual Reactstrap PaginationItem component.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
87 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More