
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@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 250 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 3 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.