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.
vue-rss-widget
Advanced tools
Readme
This unstyled component enables you to display any rssfeed ...anywhere in your app. It uses the RSS2JSON (https://rss2json.com/) service to transform the feed into json format. So, never forget to prefix your feed with https://api.rss2json.com/v1/api.json?rss_url= ...your feed.
While there is a free tier for this service, check other plans on RSS2JSON.
For the sake of simplicity, but also to let it be used with any UI framework, you will have to customize it with VUE SLOT api.
Here under you'll find an example of how to do it.
Check examples here under.
in order to install it in your project
npm install vue-rss-widget (or npm i vue-rss-widget)
then import the component where you need it
<template>
<div>
<rss-widget>
<template v-slot:feed_header="slotProps">
<h2>{{slotProps.rssfeed.title}}</h2>
</template>
<template v-slot:feed_body="slotProps">
<ul >
<li v-for="(item,i) in slotProps.items" :key="i">
<div class="card">
<div class="card-header">
<h4>{{item.title}}</h4>
</div>
<div class="card-body">
{{item.description}}
</div>
</div>
</li>
</ul>
</template>
</rss-widget>
</div>
</template>
<script>
import RssWidget from "vue-rss-widget"
export default {
components: {
RssWidget
},
}
</script>
<style scoped>
</style>
Prop | Type | Required | Default | Description |
---|---|---|---|---|
feed | String | NO | the url of the feed | Provide the full url of the feed |
Name | Params | Info |
---|---|---|
feed_header | use the vairable you want to retrieve data (ex.slotProps) | you'll get rssfeed.title, rssfeed.image, rssfeed.description, rssfeed.url |
feed_body | use the vairable you want to retrieve data (ex.slotProps) | items {title,description,image,author,pubDate,categories[]} |
This example uses bootstrap-vue
FAQs
This unstyled component enables you to display any rssfeed ...anywhere in your app. It uses the RSS2JSON (https://rss2json.com/) service to transform the feed into json format. So, never forget to prefix your feed with https://api.rss2json.com/v1/api.json
The npm package vue-rss-widget receives a total of 4 weekly downloads. As such, vue-rss-widget popularity was classified as not popular.
We found that vue-rss-widget 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.