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
"use strict"; | |
/** | |
* Hypertext Transfer Protocol (HTTP) response status codes. | |
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes} | |
*/ | |
enum HttpStatusCode { | |
/** | |
* The server has received the request headers and the client should proceed to send the request body |
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'; |
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'; |
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'; |
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'; |
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); |
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 |
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'; |
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'; |
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]) |
NewerOlder