alias rn-opt='adb shell input keyevent 82'
alias rn-reload='adb shell input keyevent 82 && adb shell input keyevent 20 && adb shell input keyevent 66'
alias rn-start='react-native run-android'
alias rn-log='react-native log-android'
alias rn-rm-apk='rm -r android/app/build/outputs'
alias rn-release='cd android && ./gradlew assembleRelease && cd .. || cd ..'
alias rn-deb='adb reverse tcp:9090 tcp:9090'
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
{ | |
"name": "My Progressive Web App", | |
"short_name": "PWA", | |
"start_url": "/index.html", // qual pagina sera iniciada | |
"scope": ".", // quais paginas serão incluidas na experiencia do PWA | |
"display": "standalone", // seu pwa ira funcionar de forma autonoma | |
"background_color": "#fff", // qual a cor sera usada enquanto estiver carregando (ou coloque o splashscreen) | |
"theme_color": "#3f51b5", // cor do tema ( customiza a barra de cima do celular ) | |
"description": "Pwa de estudo", // desrição | |
"dir": "ltr", // indica a direção de laitura do seu app ltr - leftToRight |
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 { notify } from 'src/helpers/notify' | |
class DGError extends Error { | |
constructor (message = '') { | |
super (message) | |
this.message = message | |
this.name = 'DGError' | |
if (Error.hasOwnProperty('captureStackTrace')) { | |
Error.captureStackTrace(this, this.constructor) | |
} |
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 ApolloClient, {InMemoryCache, ApolloLink} from "apollo-boost"; | |
const PATH_URL = 'http://URL' | |
const TOKEN = 'TOKEN' | |
const getApolloClient = () => { | |
const cache = new InMemoryCache() | |
return new ApolloClient({ | |
uri: `${PATH_URL}graphql`, |
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
<template> | |
<!-- BEGIN FormFullscreen --> | |
<form-fullscreen> | |
<!-- HEADER --> | |
<header-form title="Cadastro de Aula" /> | |
<!-- BEGIN CONTEUDO FORM --> | |
<div class="content"> | |
<div class="ui container"> | |
<!-- BEGIN Form --> | |
<form class="dg_form ui form" novalidate @submit.prevent="save"> |
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
export function dateTimeFormatter (date ,format) { | |
// date: format:'yyyy-MM-dd hh:mm:ss' | |
if (!date || date == "") { | |
return "" | |
} | |
if (typeof date === "string") { | |
var mts = date.match(/(\/Date\((\d+)\)\/)/) | |
if (mts && mts.length >= 3) { | |
date = parseInt(mts[2]) |
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 { | |
deburr, | |
isEmpty, | |
findIndex, | |
drop, | |
pad, | |
padEnd, | |
padStart | |
} from 'lodash'; | |
import moment from 'moment'; |
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 { mount } from 'enzyme'; | |
import toJson from 'enzyme-to-json'; | |
import wait from 'waait'; | |
import { MockedProvider } from 'react-apollo/test-utils' | |
import { ApolloConsumer } from 'react-apollo' | |
import Signup, { SIGNUP_MUTATION } from '../components/Signup'; | |
import { CURRENT_USER_QUERY } from '../components/User'; | |
import { fakeUser } from '../lib/testUtils'; |
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 chokidar = require('chokidar'); | |
const fs = require('fs'); | |
const templates = { | |
index: name => | |
`import React from 'react'; | |
const ${name} = () => ( | |
<div className="${name.toLowerCase()}"> | |
// TODO: write rest of ${name} component |
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
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); |