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.
@maggioli-design-system/magma
Advanced tools
Questa libreria fornisce una lista di componenti basati sullo standard web-component agnostici rispetto ai framework Javascript
Fa uso della libreria @maggioli-design-system/styles per gli sitli dei componenti
npm i '@maggioli-design-system/magma'
// insert in bootstrap file of client part of your application
import { defineCustomElements } from "@maggioli-design-system/magma/loader";
defineCustomElements();
Alternatively, if you wanted to take advantage of ES Modules, you could include the components using an import statement.
<html>
<head>
<script type="module">
import { defineCustomElements } from '@maggioli-design-system/magma/loader/index.es2017.mjs';
defineCustomElements();
</script>
</head>
<body>
<mds-text>Hello world</mds-text>
</body>
</html>
Import style used by components
/* global.css */
// color
@import "@maggioli-design-system/styles/dist/css/colors-rgb.css";
// font
@import '@fontsource/karla/400.css';
@import '@fontsource/karla/700.css';
@import '@fontsource/merriweather/400.css';
@import '@fontsource/merriweather/700.css';
@import '@fontsource/roboto-mono/400.css';
@import '@fontsource/roboto/500.css';
@import '@fontsource/roboto/700.css';
@import '@fontsource/roboto/900.css';
For more details see the library
Set the path where the mds-icon
component will get the svg icons
window.sessionStorage.setItem('mdsIconSvgPath', 'assets/img/svg/');
If you are using React set this inside UseEffet
otherwise window is not defined
For greater interoperability between components and frameworks, see the specific libraries for Angular and React
FAQs
Magma is Maggioli Design System's web-components library.
The npm package @maggioli-design-system/magma receives a total of 55 weekly downloads. As such, @maggioli-design-system/magma popularity was classified as not popular.
We found that @maggioli-design-system/magma 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 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.