View App.tsx
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'; | |
import { | |
Button, | |
Dimensions, | |
SafeAreaView, | |
ScrollView, | |
StyleSheet, | |
Text, | |
View, | |
} from 'react-native'; |
View App.tsx
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'; | |
import { | |
Button, | |
Dimensions, | |
SafeAreaView, | |
ScrollView, | |
StyleSheet, | |
Text, | |
View, | |
} from 'react-native'; |
View App.tsx
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'; | |
import { | |
Button, | |
Dimensions, | |
SafeAreaView, | |
ScrollView, | |
StyleSheet, | |
Text, | |
View, | |
} from 'react-native'; |
View App.tsx
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'; | |
import { | |
Dimensions, | |
SafeAreaView, | |
ScrollView, | |
StyleSheet, | |
View, | |
} from 'react-native'; | |
import WebView from 'react-native-webview'; |
View gist:6ec2e27a3ffb6f9619e762a6ac57274e
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
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); |
View generator_component.js
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 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 |
View integration_test_signup.test.js
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 { 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'; |
View helpers-data.js
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 { | |
deburr, | |
isEmpty, | |
findIndex, | |
drop, | |
pad, | |
padEnd, | |
padStart | |
} from 'lodash'; | |
import moment from 'moment'; |
View calendar-events.js
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
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]) |
View panda.js
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
<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"> |
NewerOlder