Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@adyen/lume
Advanced tools
[![PR workflow](https://github.com/Adyen/lume/actions/workflows/pr.yml/badge.svg)](https://github.com/Adyen/lume/actions/workflows/pr.yml) [![MIT License](https://img.shields.io/badge/license-MIT)](https://github.com/Adyen/lume/blob/main/LICENSE) [![Netli
Lume is a combination of a set of design guidelines for creating data visualizations that tell stories, and a component library that implements them, built for Vue applications.
Note: Lume ships two packages - one that is compatible with Vue 2.7, and another, with Vue 3. The second is published as
@adyen/lume-vue3
. Our examples import the Vue 2.7-compatible version, but if you're using Vue 3, just update the import name.
🧑🎨 Backed by strong data visualization design principles, guidelines and patterns
🖼️ Leverages Vue for SVG rendering and reactivity
📦 Available for both Vue 2.7 and 3
To install Lume, run the following command:
$ npm install @adyen/lume
$ npm install @adyen/lume-vue3
You can import Lume components to your Vue app:
// SFC <script type="ts">
import { defineComponent } from 'vue';
import { LumeBarChart } from '@adyen/lume';
export default defineComponent({
components: { LumeBarChart },
...
});
// Composition <script setup type="ts">
import { LumeBarChart } from '@adyen/lume';
You can also import Lume as a Vue plugin that you install in your global Vue setup:
import Vue from 'vue';
import LumePlugin from '@adyen/lume/plugin';
import App from './my-app.vue';
Vue.use(LumePlugin);
const app = new Vue(App).$mount('#root');
For Lume to render as intended, you also need to import its styles.
// app/index/main.ts
import Vue from 'vue';
import App from './my-app.vue';
// Main styles
import '@adyen/lume/styles';
// (Optional) Lume font
import '@adyen/lume/font';
const app = new Vue(App).$mount('#root');
// app/index/main.ts
import Vue from 'vue';
import App from './my-app.vue';
// Main styles
import '@adyen/lume/scss';
// (Optional) Lume font
import '@adyen/lume/font';
const app = new Vue(App).$mount('#root');
<template>...</template>
<script>
...
</script>
<!-- Main styles -->
<style src="@adyen/lume/styles"></style>
<!-- (Optional) Lume font -->
<style src="@adyen/lume/font"></style>
<template>...</template>
<script>
...
</script>
<!-- Main styles -->
<style lang="scss" src="@adyen/lume/scss"></style>
<!-- (Optional) Lume font -->
<style src="@adyen/lume/font"></style>
<template>...</template>
<script>
...
</script>
<!-- Main styles -->
<style lang="scss">
@use '@adyen/lume/scss' with (
$lume-font-family: 'Times New Roman'
);
</style>
You can clone this repo and use pnpm
to install dependencies. We use Storybook to develop our features.
To run the app inside a Docker container:
.env
file with your Docker image URL:
$ echo DOCKER_IMAGE={YOUR_IMAGE_HERE} >> .env
$ docker compose up -d
$ docker attach lume
pnpm
:
$ npm i -g pnpm
PATH
variable:
$ export PATH="${PATH}:/root/local/bin"
Lume ships two packages, one for each Vue version (2 and 3).
Development is done in Vue 3, keeping in mind that the same source code must work the same way on both Vue versions, so some of the new Vue 3 APIs are restricted, unless provided with a fallback.
Storybook is available by running the following command:
$ pnpm run storybook
Every chart component should have its own .stories
file, and it will be automatically loaded onto the Storybook manager.
To generate a release:
$ git checkout -b release-[VERSION] && git push -u origin release-[VERSION]
$ npm run release
This will prompt you with an interactive CLI to create a new version, tag, changelog entry and release.
Feature | Status |
---|---|
Charts | |
Alluvial (sankey) diagram | ✅ |
Single bar chart | ✅ |
Grouped bar chart | ✅ |
Stacked bar chart | ✅ |
Horizontal orientation for all bar charts | ✅ |
Line chart | ✅ |
Sparkline chart | ✅ |
Features | |
A11y colors | 🚧 |
A11y guidelines & impl. | ❌ |
Dark theme | ❌ |
Select dataset in legend | ❌ |
✅ - Done
🚧 - WIP
❌ - To do
FAQs
Lume is a Vue data visualization component library, built with Typescript and D3.
The npm package @adyen/lume receives a total of 112 weekly downloads. As such, @adyen/lume popularity was classified as not popular.
We found that @adyen/lume demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.