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
let index = 0; | |
const Trigger = ( int ) => { | |
index = index + int; | |
if ( index < $scope.group.length ) //$scope.group - lista de arrays para serem enviados | |
{ | |
/* | |
DataSourse é o arquivo com o serviço $http.post(), | |
nesse caso o response é o int da ultima rowId adicionada. | |
*/ | |
dataSource.addConjunto( $scope.group[item-A], $scope.group[item-B], $scope.group[item-C] ) |
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
# Before deploying, you need generate a Personal Access Token from Github | |
const token = gitpass; | |
fetch("https://api.github.com/graphql", { | |
method: "POST", | |
body: JSON.stringify({ | |
query: `query{ viewer { repositories(first:100 isFork:false privacy:PUBLIC) { nodes { name } } } }` | |
}), | |
headers: { | |
Authorization: `Bearer ${token}` |
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, { useState } from "react"; | |
import { InputPassword, ButtonViewPassword } from "../globalStyles"; | |
const InputPass = () => { | |
const [type, setType] = useState("password"); | |
function toggle(e) { | |
e.preventDefault(); | |
e.stopPropagation(); | |
setType(type === "text" ? "password" : "text"); |
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 from 'react'; | |
const ScriptTag = (props) => { | |
React.useEffect(() => { | |
const script = document.createElement("script"); | |
script.async = true; | |
script.src = props.url; | |
document.body.appendChild(script); | |
}, []) | |
return( |