Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
ui-astra-assets
Advanced tools
in this file
npm i
install dependencies
npm run build
or npm run tsc
to build your module
in childApp
in package.json under dependencies add ui-astra-assets with file:(relativePathToRepo)
npm i
to make sure everything is set up
start app npm start
AstraTheme should be used with MuiThemeProvider or when you need specific Material Theme styling
AstraColors can be used for Astra's Branding colors.
Note AstraColor.blue & AstraColor.green are the same as AstraTheme.primary & AstraTheme.secondary
import * as React from 'react';
import { AstraTheme } from 'ui-astra-assets';
import { MuiThemeProvider } from '@material-ui/core/styles';
import App from 'containers/App';
export default (props) => {
return (
...
<MuiThemeProvider theme={AstraTheme}>
...
<App />
...
</MuiThemeProvider>
...
);
};
import * as React from 'react';
import { AstraColors, AstraThemes } from 'ui-astra-assets';
import Button from '@material-ui/core/Button';
import { withStyles } from '@material-ui/core/styles';
const UglyButton = withStyles(theme => ({
root: {
backgroundColor: theme.palette.error.dark,
color: theme.palette.primary.dark,
},
}))(Button);
export default (props) => {
return (
// warning very ugly
<UglyButton
variant={'contained'}
>
Attention!
</Button>
);
};
import * as React from 'react';
import { AstraColors, AstraThemes } from 'ui-astra-assets';
import Button from '@material-ui/core/Button';
export default (props) => {
return (
// warning very ugly
<Button
style={{
backgroundColor: AstraColors.orange.dark,
// if you are using AstraTheme to set colors
// it may be better to use the above example
color: AstraTheme.palette.primary.light,
}}
variant={'contained'}
>
Attention!
</Button>
);
};
FAQs
1. in this file
The npm package ui-astra-assets receives a total of 0 weekly downloads. As such, ui-astra-assets popularity was classified as not popular.
We found that ui-astra-assets 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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.