Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
cb_vuepress-plugin-element-tabs
Advanced tools
Vuepress plugin - markdown custom container to display content in tabs from Element UI
This plugin requires VuePress >= 1.0.0, for now you can try it via yarn add vuepress@next -D
yarn add vuepress-plugin-element-tabs -D
// .vuepress/config.js
module.exports = {
plugins: [
'vuepress-plugin-element-tabs'
]
}
:::: tabs
::: tab title
__markdown content__
:::
::: tab javascript
``` javascript
() => {
console.log('Javascript code example')
}
```
:::
::::
Accepted Value Like That
:::: tabs type:board-card
::: tab title lazy
__markdown content__
:::
::::
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
type | type of Tab | String | card/border-card | border-card |
tab-position | position of tabs | String | top/right/bottom/left | top |
stretch | whether width of tab automatically fits its container | Boolean | - | false |
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
label | title of the tab | String | - | - |
lazy | whether Tab is lazily rendered | Boolean | - | false |
var canvas = document.getElementById('screen');
var mouse = getMouse(canvas);
function addEvent(obj, type, handle) {
try {
obj.addEventListener(type, handle, false);
} catch (e) {
try {
obj.attachEvent("on" + type, handle);
} catch (e) {
obj["on" + type] = handle;
}
}
}
function getMouse(element) {
var mouse = { x: 0, y: 0 };
addEvent(element, "mousemove", function(e) {
var x, y;
var e = e || window.event;
const box = element.getBoundingClientRect();
x = e.clientX - box.x;
y = e.clientY - box.y;
mouse.x = x;
mouse.y = y;
});
return mouse;
}
FAQs
Vuepress plugin - Tabs Container for Vuepress
We found that cb_vuepress-plugin-element-tabs 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.