Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@aligilan/infinitescroll
Advanced tools
Readme
An infinite scroll for nuxt applications
npm install @aligilan/infinitescroll --save
...
modules:[
'@aligilan/infinitescroll'
],
...
<template>
<div>
<ul>
<li></li>
<li></li>
<li></li>
<infinite-scroll :enough="enough" @load-more="getData()" />
</ul>
</div>
</template>
<script>
data(){
return{
dataArray: [],
...
//=======infiniteScroll
enough: false,
page: 1,
pageSize: 10,
//=====================
...
}
},
mounted(){
this.getData();
},
methods:{
...
//=======infiniteScroll
async getData(){
try{
let result = await this.$axios.$get(`my-api-url?page=${this.page++}`);
if(result.success == 'true'){
this.dataArray = this.this.dataArray.concat(result.data);
// Stop scroll-loader
result.data.length < this.pageSize && (this.enough = true);
}
}catch(error){
console.log('error', error)
}
},
//=====================
...
}
</script>
Option | Description |
---|---|
:id | set an id for loader element. |
:enough | flag to visible loader or hide. |
:offset | add offset to current page scroll position, before reach loader position. |
@load-more: When page current scroll position reached loader position, will emit this event.
FAQs
Infinite Scroll will emit event when reached at the end of the page
The npm package @aligilan/infinitescroll receives a total of 37 weekly downloads. As such, @aligilan/infinitescroll popularity was classified as not popular.
We found that @aligilan/infinitescroll 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.