
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@atoms-studio/nuxt-components
Advanced tools
Unstyled components that cover most common UI patterns. Uses Vite in lib mode to build for production. Uses Vitest to run unit tests.
Unstyled components that cover most common UI patterns.
Uses Vite in lib mode to build for production.
Uses Vitest to run unit tests.
yarn add @atoms-studio/nuxt-components
Then in your Nuxt 3 project you should import your Nuxt component like this:
<template>
<div class="wrapper-image-component">
<AppPicture
:image="image"
:focal-point="focalPoint"
:base64="base"
sizes="md:500px xl:100vw"
/>
</div>
</template>
<script>
import '@atoms-studio/nuxt-components/dist/style.css'
import { AppPicture } from '@atoms-studio/nuxt-components'
export default {
components: {
AppPicture,
},
data() {
return {
image: {
url: 'https://images.ctfassets.net/w2dr5qwt1rrm/2QTfowm3D2kbkTdoUTtTv2/57fc815c23c0be887f44675413372580/LAxBR_2020.11.12_Final_Product_KV_RVB.jpg',
width: 2500,
height: 1236,
},
focalPoint: {
x: 1264,
y: 677,
},
base: 'data:image/jpeg;base64,/9j/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAAIABADASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAAAAIE/8QAGxAAAgEFAAAAAAAAAAAAAAAAAAEDAhETMTP/xAAUAQEAAAAAAAAAAAAAAAAAAAAD/8QAFREBAQAAAAAAAAAAAAAAAAAAABH/2gAMAwEAAhEDEQA/AN80aeqyMDt0QAEM/9k=',
}
},
}
</script>
<script setup>
as you see fit.tests
folder named after it, ie: test/<componentName>.test.ts
.To execute unit tests, run yarn test
in the packages/nuxt-components
folder.
FAQs
The Nuxt module to enable auto importing for Nuxt 3
The npm package @atoms-studio/nuxt-components receives a total of 86 weekly downloads. As such, @atoms-studio/nuxt-components popularity was classified as not popular.
We found that @atoms-studio/nuxt-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.