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.
@devintent/dev
Advanced tools
This library is still in the experimental phase.
The goal is to compose lower level Angular Material components into higher level components that are built with a focus on rapid application development.
npm i @devintent/dev --save
Landscape Tablet
Portrait Phone
Find the demo here. Resize the screen width to see the responsive features.
<dev-button-bar [navItems]="navItems" class="mat-elevation-z1"></dev-button-bar> <router-outlet></router-outlet>
import {NavItem} from '@devintent/dev';
...
// Define your array
navItems: NavItem[];
...
// Add labels, route paths, and Material Design icon names.
this.navItems = [
{label: 'Hot Tub', path: 'first', iconName: 'hot_tub'},
{label: 'Beach', path: 'second', iconName: 'beach_access'},
{label: 'Gym', path: 'third', iconName: 'fitness_center'}
];
...
Find icon names by searching the Material Design Icons Tool.
import {ButtonBarModule} from '@devintent/dev';
...
imports: [
ButtonBarModule
],
This component requires that you have appropriate routing set up to match the route paths in the NavItem
entries.
Here is our demo routing config and
it's import.
The component themes work with Angular Material Custom Themes
which are defined in .scss
files.
You should define your theme in a SASS Partial. For example, _theme.scss
:
// Custom Theming for Angular Material
// For more information: https://material.angular.io/guide/theming
@import '~@angular/material/theming';
// Define the palettes for your theme using the Material Design palettes available in palette.scss
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
// hue. Available color palettes: https://material.io/design/color/
$demo-primary: mat-palette($mat-indigo);
$demo-accent: mat-palette($mat-green, A200, A100, A400);
// The warn palette is optional (defaults to red).
$demo-warn: mat-palette($mat-red);
// Create the theme object (a Sass map containing all of the palettes).
$demo-theme: mat-light-theme($demo-primary, $demo-accent, $demo-warn);
$demo-typography: mat-typography-config(
//$font-family: 'Roboto, monospace',
//$headline: mat-typography-level(32px, 48px, 700),
//$body-1: mat-typography-level(16px, 24px, 500)
);
Then your primary SCSS entry point should import this theme file and pass the theme into both the Angular Material and DevIntent Dev components.
@import 'theme';
@import '~@devintent/dev/all-theme';
// Include the common styles for Angular Material. We include this here so that you only
// have to load a single css file for Angular Material in your app.
// Be sure that you only ever include this mixin once!
@include mat-core($demo-typography);
// Include theme styles for core and each component used in your app.
@include angular-material-theme($demo-theme);
// In addition to telling Angular Material about your theme, you also need to let the @devintent/dev
// components know about your theme.
@include dev-theme($demo-theme);
Note: We have not yet implemented custom typography for these components, but you can use it with Angular Material components. See more in their Typography Guide.
FAQs
Application Development Library
We found that @devintent/dev 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’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.