
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@adoratorio/vue-components-lib
Advanced tools
A collection of base components for frontend projects
From the beautiful guys 😎 of Adoratorio
A simple library that includes various reusable components, written in vue and created to simplify the website development internal process.
You can simply download this repo from GitHub or install it by npm command.
# Install package
npm install @adoratorio/vue-components-lib
TemplateName/
|- GroupElementsFolder/
| |- ElementName/
| | └─ index.vue
| └─ ElementName/
| └─ index.vue
|- ElementName/
| └─ index.vue
|- ...
└─ index.vue
// template import
import { TemplateName } from 'vue-components-lib/TemplateName';
import { ElementName } from 'vue-components-lib/TemplateName/GroupElementsFolder/ElementName';
// or
import TemplateName from 'vue-components-lib/TemplateName';
import ElementName from 'vue-components-lib/TemplateName/GroupElementsFolder/ElementName';
You can import the chosen Template component and add into its slot any single Element, adding slot="slotName"
to them or, if you prefer, you can import the single Element where you need them.
<!-- add Element inside Templete -->
<TemplateName theme="themeName">
<ElementName slot="slotName" />
</TemplateName>
<!-- or use a single Element -->
<ElementName theme="themeName" />
The default structure of all Templates slots is an array with two strings ['heading', 'content']
, you can redefine it passing a prop to the Template component named slots that is an array of names of the slots that you need it.
<template>
<div id="app">
<TemplateName :slots="slots" />
</div>
</template>
<script>
import { TemplateName } from 'vue-components-lib/TemplateName';
export default {
name: 'App',
components: {
TemplateName,
},
data() {
return {
slots: ['foo', 'bar'],
};
},
};
</script>
To select the component style you can pass the themeName in a theme
prop to the Template and every child will inherit the style of the parent, or if you prefer you can define a theme for every single Element component passing them the theme
prop.
Available themes:
<TemplateName theme="themeName">
<!-- inherit from parent -->
<ElementName slot="slotName" />
<!-- redefine theme for a single element -->
<ElementName theme="differentThemeName" />
</TemplateName>
<!-- if don't pass anythings as theme the elemente take the 'default' aspect theme -->
<ElementName />
<!-- Single Element with theme -->
<ElementName theme="themeName" />
If you want to edit the style of a Template or Element component(since the style is scoped) you can modify it with >>>
combinator (also known as /deep/
).
.parent >>> .deep-child {
color: red;
}
Copyright (c) Adoratorio Studio ⚡️.
FAQs
A collection of base components for frontend projects
The npm package @adoratorio/vue-components-lib receives a total of 0 weekly downloads. As such, @adoratorio/vue-components-lib popularity was classified as not popular.
We found that @adoratorio/vue-components-lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.