Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const mapStateToProps = { | |
Component: state => ({ | |
}), | |
}; | |
export const mapDispatchToProps = { | |
Component: dispatch => ({ | |
}), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint import/no-named-as-default: 0 */ | |
import { propTypes, defaultProps } from './PropTypes'; | |
import { mapStateToProps, mapDispatchToProps } from './Selector'; | |
import { lazy } from '@/core/scaffolding/feature'; | |
const ImageDropHolder = lazy({ namespace: 'ImagesManager', exportName: 'ImageDropHolder' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
css-box-model | |
is-plain-object | |
lodash | |
package-json | |
text-table | |
#react | |
React-Move | |
classnames | |
react-virtualized |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import browser from "exp-react-test"; | |
import mountTestApp from "./helpers/mountTestApp"; | |
When("The application mounts", () => { | |
mountTestApp(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// disable warning | |
console.disableYellowBox = true; | |
//eslint | |
npx install-peerdeps --dev eslint-config-airbnb | |
//shoutem | |
yarn add @shoutem/ui | |
//configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.sitespeed.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import app from '../../../app'; | |
import apiHelpers from '@/server/api/tests/apiHelpers'; | |
const request = require('supertest'); | |
const tokenValue = apiHelpers.createToken('anotheruser@expressen.se'); | |
export const httpRequest = type => (endpoint, includeAuthenCookie = true) => argsObj => { | |
const req = request(app)[type](endpoint); | |
if (includeAuthenCookie) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const CANCEL_REJECTION = 'CANCEL_REJECTION'; | |
export default function createPromiseCanceller() { | |
let racesInProgress; | |
let promiseRejector; | |
let racePromise; | |
function resetCanceller() { | |
racesInProgress = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await puppeteer.launch({ args: ['--no-sandbox', '--disable-setuid-sandbox'] }); | |
const page = await browser.newPage(); | |
await page.goto('https://website.com', { waitUntil: 'networkidle0', timeout: 60000 }); | |
await page.setViewport({ width: 1920, height: 1080 }); | |
await page.screenshot({ path: 'website.png', fullPage: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
custom container | |
::: section header | |
# header | |
content | |
::: | |
oc -n bn-klara-goran2-prod describe pod goran2-7fd8fc7f47-pptll |
NewerOlder