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 myObject = { | |
nevinha: "a", | |
u: "2" | |
} | |
const form = new FormData() | |
Object.keys(myObject).forEach(key => { | |
form.append(key, myObject[key]) | |
}) |
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-disable no-useless-escape */ | |
import { FormACWrapper } from "./styled"; | |
import { useState } from "react"; | |
import { SubmitHandler, useForm } from "react-hook-form"; | |
import Typography from "../Typography"; | |
import Button from "../Button"; | |
type Inputs = { | |
email: string; | |
phone: string; |
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-disable no-useless-escape */ | |
import { FormACWrapper } from "./styled"; | |
import { useState } from "react"; | |
import { SubmitHandler, useForm } from "react-hook-form"; | |
import Typography from "../Typography"; | |
import Button from "../Button"; | |
type Inputs = { | |
email: string; | |
phone: string; |
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
async function* iteratableGuards(validators) { | |
let currentValidator = 0 | |
let previousResult = null | |
while (currentValidator < validators.length) { | |
previousResult = yield await validators[currentValidator](previousResult) | |
currentValidator++ | |
} | |
} |
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 React, { useCallback, useState } from "react"; | |
import { adopt } from "react-adopt"; | |
import Input from "@components/common/Form/Input"; | |
import Button from "@components/common/Form/Button"; | |
import { | |
SubscribeStyles, | |
SubscribeContainer, | |
SubiscribeTitle, | |
SubiscribeDetails, |
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
getSearchParameters() { | |
var prmstr = window.location.search.substr(1); | |
return prmstr != null && prmstr != "" ? this.transformToAssocArray(prmstr) : {}; | |
} | |
transformToAssocArray( prmstr ) { | |
var params = {}; | |
var prmarr = prmstr.split("&"); | |
for ( var i = 0; i < prmarr.length; i++) { | |
var tmparr = prmarr[i].split("="); |
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
module.exports = [ | |
'junk food', | |
'nightclub', | |
'milkshake', | |
'fast food', | |
'french fries', | |
'burguer', | |
'cigarret', | |
'tobacco', | |
'cigar', |
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 React, { PropTypes } from 'react'; | |
const $NAME = (props) => { | |
return ( | |
$END | |
); | |
} | |
$NAME .propTypes = { | |
// myProp: PropTypes.string.isRequired |
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
module.exports = { | |
entry: [path+'carrosel.js', path+'navigation.js', path+'authentication.js', path+'search.js', path+'theme.js', | |
path+'scroll-navigate.js', portletsPath+'my-systems.js'], | |
output: { | |
path: './src/js/libs', | |
filename: 'bundle.js' | |
}, | |
devServer: { | |
inline: true, |
NewerOlder