Contributing
In this document, we'll describe how we are dealing with the development of two major versions.
This document example have two branches:
master
: major 0 of the app with render 71.x
: major 1 of the app with render 8
const searchEncodeURI = (str) => { | |
return str.replace(/[%"'.()]/g, (c) => { | |
switch (c) { | |
case '%': | |
return "@perc@" | |
case '"': | |
return "@quo@" | |
case '\'': | |
return "@squo@" | |
case '.': |
In this document, we'll describe how we are dealing with the development of two major versions.
This document example have two branches:
master
: major 0 of the app with render 71.x
: major 1 of the app with render 8<div className="w-100 absolute bottom-0" | |
style={{ | |
background: 'linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)', | |
maxHeight: '50px', | |
height: '100%', | |
pointerEvents: 'none', | |
}}> |
<react component="vtex.Hello" props=something.insideAngularScope"></react> |
(function () { | |
var video = document.querySelector('video:not([title="Advertisement"])') | |
if (!video.webkitSupportsPresentationMode || typeof video.webkitSetPresentationMode !== 'function') { | |
console.error('Esse código só funciona no Safari!') | |
return | |
} | |
var scoreX = document.querySelector('.placar__equipes') | |
var button = document.createElement('button') |
{ | |
"React Component": { | |
"prefix": "reactComp", | |
"body": [ | |
"import React, { Component } from 'react'", | |
"import PropTypes from 'prop-types'", | |
"", | |
"class ${1:${TM_FILENAME/(.*)\\.js/${1:/capitalize}/}} extends Component {", | |
" render() {", | |
" return (", |
import { AppContainer } from 'react-hot-loader' // Install `npm install react-hot-loader@next` | |
import React from 'react' | |
import App from './App' | |
const renderApp = (Root) => { | |
React.render( | |
<AppContainer> | |
<Root /> | |
</AppContainer>, | |
document.getElementById('app-root') |
Entendendo a sintaxe básica da linguagem em Y minutos: https://learnxinyminutes.com/docs/javascript/
Aprendendo a sintaxe da versão mais recente da linguagem https://egghead.io/courses/learn-es6-ecmascript-2015
I hereby claim:
To claim this, I am signing this object:
function transformToActionNames(actions) { | |
return _.map(actions, (action) => { | |
let newActionName = '' | |
for (var index = 0; index < action.length; index++) { | |
var char = action[index] | |
if (index === 0) { | |
newActionName += char.toUpperCase() | |
continue | |
} | |
if (char == char.toUpperCase()) { |