
Research
Using Trusted Protocols Against You: Gmail as a C2 Mechanism
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
vue-beercss-navigation
Advanced tools
A Vue.js component that provides a customizable navigation rail or drawer, with support to configure entries with icons and labels, with a focus on responsiveness and following Material Design 3 guidelines, implemented with BeerCSS.
npm install vue-beercss-navigation
Include BeerCSS in your application: Add the following lines to your main.js or app.js file to include BeerCSS and Material Dynamic Colors:
import 'beercss'
import 'material-dynamic-colors'
Here's how to use the VueBeercssNavigation component in your Vue.js application:
<template>
<div>
<VueBeercssNavigation :modelValue="navigationEntries" @close="handleClose" @activeteEntry="handleActiveEntry">
<template v-slot:top>
<!-- Custom content for the top slot -->
</template>
<template v-slot:bottom>
<!-- Custom content for the bottom slot -->
</template>
</VueBeercssNavigation>
</div>
</template>
<script>
export default {
data() {
return {
navigationEntries: [
{ name: 'home', label: 'Home', icon: 'home', path: '/' },
{
name: 'settings',
label: 'Settings',
icon: 'settings',
entrys: [
{ name: 'profile', label: 'Profile', icon: 'person', path: '/profile' },
{ name: 'account', label: 'Account', icon: 'account_circle', path: '/account' }
]
}
]
};
},
methods: {
handleClose() {
console.log('Navigation closed');
},
handleActiveEntry(entry) {
console.log('Active entry:', entry);
}
}
};
</script>
Prop | Type | Default | Description |
---|---|---|---|
modelValue | Array | [] | The array of navigation entries. |
Prop | Type | Description |
---|---|---|
path | String | The route path for the navigation entry. |
icon | String | The icon for the navigation entry. |
label | String | The label for the navigation entry. |
name | String | The unique name for the navigation entry. |
entrys | Array | An array of child navigation entries. |
The component emits the following events:
Event | Description |
---|---|
@close | Emitted when the navigation is closed. |
@activeteEntry | Emitted when an entry is activated. The event payload contains the activated entry object. |
Slot | Description |
---|---|
top | Slot for custom content to be placed at the top of the navigation. |
bottom | Slot for custom content to be placed at the bottom of the navigation. |
This project is licensed under the MIT License.
FAQs
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.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.