This file contains hidden or 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
.seletor { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
margin: 10px; | |
color: #fff; | |
font-size: 1rem; | |
} |
This file contains hidden or 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
module.exports = { | |
extends: [ | |
'stylelint-config-recommended', | |
'stylelint-config-styled-components', | |
], | |
plugins: ['stylelint-order'], | |
sintax: 'css-in-js', | |
rules: { | |
'rule-empty-line-before': ['always', { except: 'first-nested' }], | |
'at-rule-empty-line-before': 'always', |
This file contains hidden or 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
.seletor { | |
display: flex; | |
margin: 10px; | |
font-size: 1rem; | |
align-items: center; | |
color: #fff; | |
justify-content: center; | |
} |
This file contains hidden or 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
module.exports = { | |
// lines above were suppressed | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
use: [ | |
{ | |
loader: 'babel-loader', |
This file contains hidden or 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
module.exports = { | |
extends: [ | |
'stylelint-config-recommended', | |
'stylelint-config-styled-components', | |
], | |
sintax: 'css-in-js', | |
}; |
This file contains hidden or 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 URL_CACHED = [ | |
/vendedores/, | |
/usuarios/, | |
]; | |
export function getURLCached(req) { | |
const { url } = req; | |
const urlMapped = URL_CACHED.map(pattern => { | |
const patternRegexp = new RegExp(pattern); | |
return patternRegexp.test(url); |
This file contains hidden or 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 { setup } from 'axios-cache-adapter'; | |
import localforage from 'localforage'; | |
import memoryDriver from 'localforage-memoryStorageDriver'; | |
import { getURLCached } from './cache'; | |
localforage.defineDriver(memoryDriver); | |
const localforageStore = localforage.createInstance({ | |
driver: [localforage.LOCALSTORAGE, localforage.INDEXEDDB], | |
name: 'NOME_QUE APARECE_NO_LOCALSTORAGE', |
This file contains hidden or 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
// function to connect | |
const initLoad = useCallback(async () => { | |
if (!info) return history.push(commom.CONFIG_ERROR); | |
const room1 = await connect(info.joinInfo.attendee.jwtToken, { | |
video: { deviceId: videoInputDevice }, | |
audio: { deviceId: audioInputDevice }, | |
name: info.meetingId, | |
networkQuality: { | |
local: 2, | |
remote: 1, |
This file contains hidden or 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
[ | |
{ | |
"key": "alt+1", | |
"command": "extension.runJestFile", | |
}, | |
{ | |
"key": "alt+2", | |
"command": "extension.runJest", | |
}, | |
{ |
This file contains hidden or 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 React, { useEffect, useState } from 'react'; | |
import { Fade } from './styles'; | |
export default function FadeComponent({ show, children }) { | |
const [render, setRender] = useState(show); | |
useEffect(() => { | |
if (show) setRender(true); | |
}, [show]); |