Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { configure, addDecorator, addParameters } from '@storybook/html';
import { withCssResources } from '@storybook/addon-cssresources';
import jquery from 'jquery';
import mockMediaWiki from '../node_modules/@wikimedia/mw-node-qunit/src/mockMediaWiki.js';
global.mw = mockMediaWiki();
global.$ = jquery;
/**
* Storybook global configuration
*/
addDecorator(
withCssResources({
cssresources: [{
name: `x-ray`,
code: `<style>
body * {
outline: 1px solid rgb(255, 0, 0);
background-color: rgba(255, 0, 0, 0.07);}
</style>`,
picked: false,
}],
})
);
// Option defaults:
addParameters( {
options: {
isFullScreen: false,