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
:⌉ | |
=⌉ | |
¦-) as opposed to | | |
☺ | |
☹ | |
☻ | |
⍣ | |
⍤ | |
⍥ om nom nom | |
⍨ |
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, { | |
useEffect, | |
createContext, | |
FunctionComponent, | |
useRef, | |
MutableRefObject, | |
useCallback, | |
useContext, | |
useReducer, | |
Reducer, |
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 throttle from 'lodash.throttle'; | |
import React, { Dispatch, SetStateAction, useContext } from 'react'; | |
import WasRenderedContext from '../contexts/WasRenderedContext'; | |
type Key = 'darkMode' | 'tasks' | 'email' | 'version'; | |
type DarkMode = boolean; | |
interface TaskText { | |
leaves: Array<{ text: 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
export const validateEmailAndPassword = (validate, fields) => validate(fields) | |
.prop('email') | |
.required() | |
.email() | |
.prop('password') | |
.required() | |
.simplePassword() | |
.promise; |
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
/* @flow */ | |
import React from 'react'; | |
import { DayOfWeek, LocalDate, TemporalAdjusters } from 'js-joda'; | |
import { FormattedDate } from 'react-intl'; | |
import { ValidationError } from '../../common/lib/validation'; | |
import { connect } from 'react-redux'; | |
import { fields } from '../../common/lib/redux-fields'; | |
import { orderCourse } from '../../common/courses/actions'; | |
import { | |
Block, |
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
<TextInput | |
multiline | |
// value={value} | |
defaultValue={value} | |
onChange={this.handleChange} | |
placeholderTextColor={placeholderTextColor} | |
placeholder={intl.formatMessage(messages.placeholder)} | |
ref={this.inputRef} | |
style={[ | |
theme.styles.editorTextInput, |
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
# https://github.com/este/este/wiki/GraphQL | |
# https://www.prisma.io/features/data-modeling/ | |
# The order of types and consistent relations names is probably a pattern. | |
type User { | |
id: ID! @unique | |
createdAt: DateTime! | |
updatedAt: DateTime! | |
email: String! @unique |
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
goog.provide 'app.react.App' | |
class app.react.App | |
###* | |
@param {app.Routes} routes | |
@param {app.react.Header} header | |
@param {app.react.Footer} footer | |
@param {app.react.pages.Home} home | |
@param {app.react.pages.EditSong} editSong |
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
// @flow | |
import A from './A'; | |
import ErrorPopup from './ErrorPopup'; | |
import Box from './Box'; | |
import Head from 'next/head'; | |
import LoadingBar from './LoadingBar'; | |
import MainNav from './MainNav'; | |
import * as React from 'react'; | |
import SwitchLocale from './SwitchLocale'; | |
import Text from './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
// @flow | |
import * as React from 'react'; | |
import { FormattedMessage } from 'react-intl'; | |
import type { Error as ErrorType } from '../lib/error'; | |
import Text, { type TextProps } from './Text'; | |
export const errorToMessage = (error: ErrorType) => { | |
switch (error.type) { | |
case 'required': | |
return ( |