path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/views/Statistic/Types/StatisticExampleTopLabel.js
clemensw/stardust
import React from 'react' import { Statistic } from 'semantic-ui-react' const StatisticExampleTopLabel = () => ( <div> <Statistic> <Statistic.Label>Views</Statistic.Label> <Statistic.Value>40,509</Statistic.Value> </Statistic> </div> ) export default StatisticExampleTopLabel
src/components/PreviewCompatibleImage.js
liron-navon/liron-navon.github.io
import React from 'react' import PropTypes from 'prop-types' import Img from 'gatsby-image' const PreviewCompatibleImage = ({ imageInfo }) => { const imageStyle = { borderRadius: '5px' } const { alt = '', childImageSharp, image } = imageInfo if (!!image && !!image.childImageSharp) { return ( <Img styl...
packages/@lyra/state-router/src/components/RouterProvider.js
VegaPublish/vega-studio
// @flow import React from 'react' import PropTypes from 'prop-types' import pubsub from 'nano-pubsub' import type {Node} from 'react' import type {Router} from '../types' import type { RouterProviderContext, NavigateOptions, InternalRouter, RouterState } from './types' type Props = { onNavigate: (nextPath: ...
src/components/LoginInput.js
DmitriWolf/atm-challenge
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class LoginInput extends Component { constructor(props) { super(props); this.state = { pin: '', errorMessage: '' } } login() { const pin = this.state.pin; if(pin.length === 4) { this.props.login(p...
src/svg-icons/maps/local-post-office.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPostOffice = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); MapsLocalPostOff...
ressources/docs-builder/app/components/Content.js
absolunet/nwayo
//------------------------------------- //-- Content //------------------------------------- import React from 'react'; import { tree } from '../helpers/generated'; import paths from '../helpers/paths'; import Util from '../helpers/util'; const ROOT = '__root__'; const ERROR404 = '__404__'; const content...
web/components/screens/WaitingForOther/index.fixture.js
skidding/flatris
// @flow import React from 'react'; import { StateMock } from '@react-mock/state'; import { getBlankPlayer } from 'shared/reducers/game'; import { getSampleUser } from '../../../utils/test-helpers'; import WaitingForOther from '.'; const user = getSampleUser(); const curPlayer = getBlankPlayer('1337', user); export ...
packages/bonde-admin-canary/src/scenes/Logged/scenes/Home/components/TrendingMobilizationsGadget/TrendingMobilizationsGadget.js
ourcities/rebu-client
import React from 'react' import { I18n } from 'react-i18next' import { Grid, Cell, Panel } from 'bonde-styleguide' import { Gadget, Queryset } from 'components' import Loading from './Loading' import Filter from './Filter' import trendingMobilizationsQuery from './query.graphql' const TrendingMobilizationsGadget = ({...
src/payWithAli.js
Kennytian/learning-react-navigation
import React, { Component } from 'react'; import { Text, TouchableOpacity, View, } from 'react-native'; import styles from './styles'; class PayWithAli extends Component { static navigationOptions = { title: ({state}) => `支付宝支付`, }; render() { const {navigate, state, goBack} = this.props.navigati...
src/components/Login/Login.js
febobo/react-redux-start
import React from 'react' import {Link} from 'react-router' import classes from './Login.scss' import Strength from '../Strength' import dynamicIco from '../../static/images/dynamicIco.png' import aboutIco from '../../static/images/aboutIco.png' import { Alert , message } from 'antd' import store from 'store' import {i...
src/pages/404.js
drewrawitz/drewrawitz-v2
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
app/javascript/mastodon/components/autosuggest_input.js
musashino205/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
examples/counter-react-redux/containers/App.js
jas-chen/rx-redux
import React, { Component } from 'react'; import { CounterApp } from './CounterApp'; import { createStore, applyMiddleware, combineReducers } from 'rx-redux'; import thunk from 'redux-thunk'; import { Provider } from 'react-redux'; import * as reducers from '../reducers'; const createStoreWithMiddleware = applyMiddlew...
src/containers/play.js
TedtheDev/Tic-Tac-Toe
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Redirect } from 'react-router-dom'; import Chat from './chat'; import TicTacToeGrid from './tic_tac_toe_grid'; class Play extends Component { render() { if(!this.props.isAuthenticated) { return ( <div> ...
vertex_ui/src/components/ColorPicker/Chrome/Chrome.js
zapcoop/vertex
import React from 'react'; import reactCSS from 'reactcss'; import { ColorWrap, Saturation, Hue, Alpha, Checkboard, } from 'react-color/lib/components/common'; import ChromeFields from './ChromeFields'; import ChromePointer from './ChromePointer'; import ChromePointerCircle from './ChromePointerCircle'; exp...
packages/reactor-rest-example/src/index.js
dbuhrman/extjs-reactor
import 'babel-polyfill'; import React from 'react'; import App from './App'; import { launch } from '@extjs/reactor'; launch(<App/>);
src/components/Course/QuizComponent.js
bibleexchange/be-front-new
import React from 'react' class MultipleChoice extends React.Component { render() { let a = this.props.activity; return (<div> <p>{a.body}</p> {a.options.map(function (o, key) { return <label key={key}><input type='radio' name={a.id} value={o.display} />{o.display}<br /></label>; ...
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js
webwlsong/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ContactStore from 'stores/ContactStore'; import ContactActionCreators from 'actions/ContactActionCreators'; import AddContactStore from 'stores/AddContactStore'...
packages/stockflux-components/src/components/buttons/borderless-buttons/app-shortcuts/Chart.js
ScottLogic/StockFlux
import React from 'react'; import { Launchers } from 'stockflux-core'; import ChartIconSmall from '../../../glyphs/small/chart.svg'; import ChartIcon from '../../../glyphs/launcher/chart.svg'; import RoundButton from '../../round-button/RoundButton'; export default ({ symbol, name, small, disabled, onClick, intentsEna...
admin/src/components/SecondaryNavigation.js
asifiqbal84/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; import { Container } from 'elemental'; var SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { className: React.PropTypes.string, children: React.PropTypes.node.isRequired, href: ...
modules/RoutingContext.js
runlevelsix/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' const { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ const RoutingC...
src/components/forms/Bus.js
muiradams/plantogo
import React, { Component } from 'react'; import { TextField } from 'redux-form-material-ui'; import { Field } from 'redux-form'; import { Row, Column } from 'react-cellblock'; // Validation function for redux-form const required = value => value == null || value === '' ? 'Required' : undefined; const style = { erro...
src/routes/Daily/components/DailySingle.js
willthefirst/book-buddy
import React from 'react' import { Link } from 'react-router' import { Row, Col } from 'react-flexbox-grid' import { Form, FormGroup, InputGroup, Image } from 'react-bootstrap' import { reduxForm, Field } from 'redux-form' import LaddaButton, { L, SLIDE_DOWN } from 'react-ladda' import classNames from 'classnames' let...
src/Irinamaps/EditButtons.js
guitarbeard/Irinamaps
import React, { Component } from 'react'; import './EditButtons.scss'; export default class EditButtons extends Component { render() { return ( <div> <button onClick={() => this.props.onMoreInfoClick()} id="more-info" className="edit-button mdl-button mdl-js-button mdl-button--fab" type="button"> ...
V2-Node/esquenta.v2/UI/src/views/Relatorios/Vendas/Lista.js
leandrocristovao/esquenta
import React, { Component } from 'react'; import { Badge, Card, CardBody, CardHeader, Table, Pagination, PaginationItem, PaginationLink } from 'reactstrap'; class Row extends Component { render () { let currencyFormarter = Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }); let dateTimeForma...
src/icons/IosFiling.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosFiling extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256,288c-29.8,0-54.9-20.4-62-48H80v144h176h176V240H318C310.9,267.6,285.8,288,256,288z"></path> <path d="M144,224...
react/features/video-quality/components/VideoQualityLabel.web.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { openDialog } from '../../base/dialog'; import { translate } from '../../base/i18n'; import { IconGauge } from '../../base/icons'; import { Label } from '../../base/label'; import { connect } from '../../base/redux'; import { Tooltip } from '../../base/tooltip'; import { sh...
app/javascript/mastodon/components/icon_button.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import Motion from 'react-motion/lib/Motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; class IconButton extends React.PureComponent { static propTypes = { className: PropTypes.string, title: PropTypes.string.isRequired, icon: PropTypes....
assets/jqwidgets/demos/react/app/grid/virtualpaging/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let data = new Array(); let firstNames = [ 'Andrew', 'Nancy', 'Shelley', 'Regina', 'Yoshi', 'Anto...
src/presentation/MainFrame/MainFrame.js
BenzLeung/private-music-client-web
/** * @file 中间的主要部分 * @author BenzLeung(https://github.com/BenzLeung) * @date 2017/7/9 * Created by JetBrains PhpStorm. * * 每位工程师都有保持代码优雅的义务 * each engineer has a duty to keep the code elegant */ import React from 'react'; import { connect } from 'react-redux'; import './MainFrame.css'; import FilterSongList f...
src/app/routes/dashboard/components/LiveStats.js
backpackcoder/world-in-flames
import React from 'react' import SparklineContainer from '../../../components/graphs/inline/SparklineContainer' import EasyPieChartContainer from '../../../components/graphs/inline/EasyPieChartContainer' import FlotChart from '../../../components/graphs/flot/FlotChart' let LiveStats = React.createClass({ ge...
src/components/Link/styles/NativeALinkImplementation.js
Bandwidth/shared-components
import React from 'react'; export default ({ children, to, // below are just filtering out non-dom props newTab, appearFocused, icon, ...rest }) => ( <a {...rest} href={to}> {children} </a> );
src/containers/Asians/_components/ViewLockedRound/Ballots/SmallBallots/Instance/InstanceTabs.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Tabs, { Tab } from 'material-ui/Tabs' import AppBar from 'material-ui/AppBar' import withStyles from 'material-ui/styles/withStyles' const styles = theme => ({ indicator: { backgroundColor: '#ffffff' } }) export default connect(mapStateT...
client/src/components/Header.js
NicholasAsimov/voting-app
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { IndexLink } from 'react-router'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap'; class Header extends React.Component { r...
src/svg-icons/device/bluetooth-searching.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothSearching = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9...
examples/todos-with-undo/components/App.js
naoishii/ohk2016C
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' import UndoRedo from '../containers/UndoRedo' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> <UndoRedo /> </div> ) e...
src/InputBase.js
lo1tuma/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import FormGroup from './FormGroup'; class InputBase extends React.Component { getInputDOMNode() { return React.findDOMNode(this.refs.input); } getValue() { if (this.props.type === 'static') { return this.props.value; } else if (t...
src/modules/AppRouter.js
Lapanti/golf-scorebook
/*eslint-disable react/prop-types*/ import React from 'react'; import CounterViewContainer from './counter/CounterViewContainer'; import ColorViewContainer from './colors/ColorViewContainer'; import PlayViewContainer from './play/PlayViewContainer'; /** * AppRouter is responsible for mapping a navigator scene to a v...
src/docs/ComponentPage.js
ibenavides/ps-react-ibenavides
import React from 'react'; import PropTypes from 'prop-types'; import Example from './Example'; import Props from './Props'; const ComponentPage = ({component}) => { const {name, description, props, examples} = component; return ( <div className="componentpage"> <h2>{name}</h2> <p>{description}</p...
app/scripts/PlotTypeChooser.js
hms-dbmi/4DN_matrix-viewer
import PropTypes from 'prop-types'; import React from 'react'; // Configs import { TRACKS_INFO, DATATYPE_TO_TRACK_TYPE, AVAILABLE_TRACK_TYPES, } from './configs'; // Utils import { getDefaultTrackForDatatype } from './utils'; // Styles import '../styles/PlotTypeChooser.css'; class PlotTypeChooser extends Reac...
src/docs/examples/HelloWorld/ExampleHelloWorld.js
ebirito/ps-react-ebirito
import React from 'react'; import HelloWorld from 'ps-react-ebirito/HelloWorld'; /** Custom message */ export default function ExampleHelloWorld() { return <HelloWorld message="Pluralsight viewers!" /> }
src/components/CocktailList.js
Jack95uk/HappyHour
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import CocktailCard from './CocktailCard'; const CocktailList = ({ cocktails, search, selectedSpirits }) => { const filterCocktails = (list = [], string, values) => { if (!list) return []; let filteredCockt...
components/PokeDex.js
omero/PokeMap
import React from 'react'; import PokeRecord from './PokeRecord'; export default class PokeDex extends React.Component{ render(){ return <div className="unit-30"> <ul id="pokedex"> { this.props.pokemons.map((pokemon) => { return <PokeRecord name={pokemon.name}/> }) } ...
src/Parser/MistweaverMonk/Modules/Talents/ManaTea.js
Yuyz0112/WoWAnalyzer
// Modified from Original Code by Blazyb and his Innervate module. import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber , formatThousands } from 'common/format'; import Module from 'Parser/Core/Module';...
src/svg-icons/av/replay-5.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay5 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2...
clients/web-client/src/components/IDE/index.js
rlods/CodingChallenge
import React from 'react' import Editor from './Editor' import Output from './Output' import Subject from './Subject' import logo from './logo.png' import { Button } from '../Shared' import './IDE.css' const IDE = props => { if (!props.challenge) { props.logout } return ( <div classNa...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
cybrespace/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandHashtagTimeline } from '../../../actions/timelines'; import { connectHashtagStream } from '../../../actions/streaming'; import Masonry from 're...
src/svg-icons/maps/local-airport.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalAirport = (props) => ( <SvgIcon {...props}> <path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon> ); MapsLocalA...
stories/DropdownLayout/ExampleManyOptions.js
skyiea/wix-style-react
import React from 'react'; import DropdownLayout from 'wix-style-react/DropdownLayout'; const style = { display: 'inline-block', padding: '0 5px', width: '140px', lineHeight: '22px' }; const nodeStyle = { background: 'azure', paddingLeft: '25px' }; const options = [ {id: 0, value: 'Option 1'}, {id: 1...
src/browser/components/Main/SearchRepositoriesForm.js
2rajpx/gitux
import React from 'react' import { Field, reduxForm } from 'redux-form' // Material UI Components import TextField from 'material-ui/TextField' const renderTextField = ({ input, label, meta: { touched, error }, ...custom }) => ( <TextField hintText={label} floatingLabelText={label} errorText={touched &&...
client/src/App.js
stephenwoosley/woosreads
import React from 'react'; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; import Books from "./pages/Books"; import NoMatch from "./pages/NoMatch"; import Nav from "./components/Nav/Nav"; import './App.css'; const App = () => <Router> <div> <Nav /> <Switch> <Route ...
examples/counter/containers/Root.js
dherault/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import configureStore from '../store/configureStore'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> ...
src/js/components/ContentBox/ContentBox.js
soundchain/soundchain-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from './ContentBox.scss'; export default class ContentBox extends Component { static propTypes = { children: PropTypes.node.isRequired, className: PropTypes.string, }; static defaultProps = { className: '' };...
app/components/Widgets/UserWidget.js
longgame/koa-react-demo
'use strict;' import React, { Component } from 'react'; import { LinkedStateMixin } from 'react-addons'; import { History } from 'react-router'; import Reflux from 'reflux'; import { UserStore, UserActions } from '../Widgets'; import template from './UserWidget.rt'; import styles from './UserWidget.scss'; module.ex...
example/src/screens/transitions/sharedElementTransitions/Masonry/Item.js
iotize/react-native-navigation
import React from 'react'; import {StyleSheet, View, Text, Image} from 'react-native'; import {SharedElementTransition} from 'react-native-navigation'; const SHOW_DURATION = 240; const HIDE_DURATION = 200; class Item extends React.Component { static navigatorStyle = { navBarHidden: true, drawUnderNavBar: t...
frontend/src/containers/ExtractWidget/ExtractWidget.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getActiveCollection, getRemoteArchiveStats } from 'store/selectors'; import { getArchives, setExtractable, setAllSourcesOption } from 'store/modules/controls'; import { ExtractWidgetUI } from ...
demos/react/react-native.js
SheetJS/js-xlsx
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ import XLSX from 'xlsx'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, Alert, Image, ScrollView, TouchableWithoutFeedback } from 'react-native'; import { Table, Row, Rows, TableWrapper } from 'react-native-t...
react/src/components/AtomForm/index.js
sinfin/folio
import React from 'react' import { Button, Input } from 'reactstrap' import { isEqual } from 'lodash' import NestedModelControls from 'components/NestedModelControls' import Associations from './Associations' import Fields from './Fields' import MultiAttachments from './MultiAttachments' import SingleAttachments from...
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js
manchesergit/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; /** * `DatePicker` can be implemented as a controlled input, * where `value` is handled by state in the parent component. */ export default class DatePickerExampleControlled extends React.Component { constructor(props) { super(props)...
src/main/resources/public/js/pages/app-install.js
SICTIAM/ozwillo-portal
import React from 'react'; import Slider from 'react-slick'; import ModalImage from '../components/modal-image'; import { buyApplication, fetchAppDetails, fetchAvailableOrganizations, fetchRateApp, unavailableOrganizationToInstallAnApp } from '../util/store-service'; import RatingWrapper from '../co...
tests/react_modules/es6class-proptypes-module.js
AprilArcus/flow
/* @flow */ import React from 'react'; class Hello extends React.Component<void, {name: string}, void> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): React.Element<*> { return <div>{this.props.name}</div>; } } module.exports = Hello;
app/javascript/mastodon/components/column.js
KnzkDev/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import detectPassiveEvents from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, label: PropTypes.string, }; scrollTop (...
components/Footer.js
ViniciusAtaide/edgartccfront
import React from 'react'; export default class Footer { render() { return ( <div style={styles.layout}> <div style={styles.footerText}> Contribute to the <a href='https://github.com/knowbody/redux-react-router-example-app' target='_blank'>project on GitHub</a>. </div> </div...
js/jqwidgets/demos/react/app/scheduler/righttoleft/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { render() { // prepare the data let source = { dataType: 'json', dataFields: [ ...
src/io/ui/components/ChannelList/index.js
rikukissa/chat-client
import React from 'react'; import classNames from 'classnames'; import './index.styl'; import {sortBy, findWhere} from 'lodash'; export default class ChannelList extends React.Component { render() { return ( <div className='channels'> <ul> { sortBy(this.props.channels, 'name') ...
docs/src/app/components/pages/components/Menu/ExampleIcons.js
barakmitz/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye'; import PersonAdd from 'material-ui/svg-icons/social/person-add'; import ContentLink from 'material-ui...
components/SomeHOC/SomeHOC.js
craigbilner/a-sign-youre-different
import React, { Component } from 'react'; import SomeInput from '../SomeInput/SomeInput'; import cloneDeep from 'lodash.clonedeep'; export default class SomeHOC extends Component { constructor(props) { super(props); this.state = { inputValue: 'some default', nestedObj: { inputValue: 'som...
docs/app/Examples/views/Statistic/Types/StatisticExampleGroupInverted.js
clemensw/stardust
import React from 'react' import { Segment, Statistic } from 'semantic-ui-react' const items = [ { label: 'Faves', value: '22' }, { label: 'Views', value: '31,200' }, { label: 'Members', value: '22' }, { label: 'Downloads', value: '3,200' }, { label: 'Likes', value: '10,000' }, ] const StatisticExampleGroup...
demo/app.js
yamill/react-native-orientation
import React, { Component } from 'react'; import { Alert, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import Orientation from 'react-native-orientation'; export default class Demo extends Component { componentWillMount() { const init = Orientation.getInitialOrientation(); this.setState({ ...
site/src/components/Book.js
ishanthukral/ishan.me
import React, { Component } from 'react'; import { Image } from 'react-bootstrap'; class Book extends Component { constructor(props) { super(); this.state = {showModal: false}; this.open = this.open.bind(this); this.close = this.close.bind(this); } close() { this.setState({ showModal: false...
lib-es/components/menu/menu-list.js
bokuweb/re-bulma
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React, { Component } from 'react'; import PropTypes fr...
app.js
devinfountain/portfolio
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; import Location from '....
docs/src/app/components/pages/components/IconButton/ExampleTooltip.js
rhaedes/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; const IconButtonExampleTooltip = () => ( <div> <IconButton iconClassName="muidocs-icon-custom-github" tooltip="bottom-right" tooltipPosition="bottom-right" /> <IconButton iconClassName="muidocs-icon-custom-githu...
src/containers/DevTools/DevTools.js
frankievx/musicblog
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
node_modules/native-base/Components/Widgets/Picker.ios.js
aspanu/threeSeaShells
/* @flow */ 'use strict'; import React from 'react'; import {Picker, Modal} from 'react-native'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import computeProps from '../../Utils/computeProps'; import View from './View'; import Text from './Text'; import List from './List'; import Icon from './Icon'...
src/applications/vre/28-1900/config/chapters/communication-preferences/communicationPreferences.js
department-of-veterans-affairs/vets-website
import React from 'react'; import fullSchema from 'vets-json-schema/dist/28-1900-schema.json'; import { AppointmentPreferencesInformation, VreCommunicationInformation, validateAtLeastOneSelected, } from './helpers'; const titleClasses = 'vads-u-display--inline-block vads-u-margin--0'; const { useEva, useTel...
vendor/htmlburger/carbon-fields/assets/js/containers/components/container/tabbed.js
Apiki/gb-plugin-api
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withProps, withHandlers, lifecycle } from 'recompose'; import { get, map, find, filter, includes, kebabCase } from 'lodash'; /** * The internal dependencies. */ import ContainerTabsNav from 'contain...
client/components/About/AboutPage.js
rkazakov/guardbook
import React from 'react'; import { Link } from 'react-router'; class AboutPage extends React.Component { render() { return ( <div> <h1>About</h1> <p>This is about page...</p> <blockquote> <p><em>Yeah!! Milligram is amazing.</em></p> </blockquote> </div> ...
src/index.js
humaan-ai/mission
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App.jsx'; ReactDOM.render(<App />, document.getElementById('root'));
pages/style/icons.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/style/icons/icons.md'; function Page() { return ( <MarkdownDocs markdown={markdown} demos={{ 'pages...
packages/@vega/feature-due-date/src/EditDateField.js
VegaPublish/vega-studio
// @flow // Connects the FormBuilder with various lyra roles import React from 'react' import Button from 'part:@lyra/components/buttons/default' import {FormBuilderInput} from 'part:@lyra/form-builder' import PatchEvent, {unset} from 'part:@lyra/form-builder/patch-event' export default class EditDate extends React.Pu...
src/menu/index.js
aruberto/react-foundation-components
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import cxBinder from 'classnames/bind'; import includes from 'lodash/includes'; import { SCREEN_SIZES, LARGER_SCREEN_SIZES, CENTER_POSITION, MENU_ALIGNMENTS, FLEX_HORIZONTAL_ALIGNMENTS, } from '../util/constants'; imp...
src/components/Breadcrumb/BreadcrumbItem.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import { settings } from 'carbon-components'; imp...
src/ui/about.js
esvbible/esvbible.github.io
import React from 'react'; import pkg from '../../package.json'; const REPO = pkg.repository.url.replace(/^git\+/, ''); const SMALL_FONT = '0.5rem'; export default () => <div className='fit' style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', margin: '0 1rem',...
src/components/common/svg-icons/image/music-note.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMusicNote = (props) => ( <SvgIcon {...props}> <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/> </SvgIcon> ); ImageMusicNote = pure(ImageMusicNote); ImageM...
src/svg-icons/communication/comment.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationComment = (props) => ( <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Co...
examples/with-freactal/pages/index.js
BlancheXu/test
import React from 'react' import { injectState } from 'freactal' import app from '../components/app' const Index = injectState( ({ state: { ajaxStatus, githubReposList }, effects }) => { const fetchMore = () => effects.fetchGithubReposList( githubReposList.username, githubReposList.page + 1...
modules/gui/src/app/home/body/process/recipe/classification/panels/inputImagery/bandSetSpec.js
openforis/sepal
import {Buttons} from 'widget/buttons' import {getAvailableIndexes} from './opticalIndexes' import {msg} from 'translate' import {mutate} from 'stateUtils' import React from 'react' import _ from 'lodash' export const BandSetSpec = { filter(bandSetSpec, availableBands = []) { return specClass(bandSetSpec)....
modules/useRouterRestoreScroll.js
ryanflorence/react-router-restore-scroll
import React from 'react' import RestoreWindowScroll from './RestoreWindowScroll' const useRouterRestoreScroll = () => ({ renderRouterContext: (child, props) => ( <RestoreWindowScroll restoreWindow={props.router.restoreScroll.restoreWindow} location={props.location} children={child} /> ) ...
v3-7/src/components/HomePage.js
web-seminar/hw-reference
import React, { Component } from 'react'; class HomePage extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col-md-12"> <div className="jumbotron"> <h1>Hi, Welcome Home!</h1> <p><a className="b...
src/v2/components/UI/Buttons/components/FilledButton/index.js
aredotna/ervell
import React from 'react' import styled, { css } from 'styled-components' import { themeGet } from 'styled-system' import chroma from 'chroma-js' import constants from 'v2/styles/constants' import { mixin as buttonMixin } from 'v2/components/UI/GenericButton' const CONTRAST_RATIO = 4.5 const color = props => { co...
src/main.js
dima-bu/b2b.core
import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './store/createStore'; import AppContainer from 'containers/AppContainer'; import Config from 'lib/config'; // ======================================================== // Store Instantiation // ========================================...
src/createSelectable.js
envato/react-selectable-extended
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; const createSelectable = (WrappedComponent) => { class SelectableItem extends React.Component { componentDidMount () { this.context.selectable.register(this.props.selectableKey, ReactDOM.findDOMNode(this)); } ...
src/svg-icons/action/assignment-ind.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentInd = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 ...
packages/idyll-components/src/h5.js
idyll-lang/idyll
import React from 'react'; import GenerateHeaders from './generateHeaders'; class H5 extends React.PureComponent { render() { return <GenerateHeaders size="5" {...this.props} />; } } H5._idyll = { name: 'H5', tagType: 'open', children: ['My Header Size 5'] }; export default H5;
03-mybooks-lab4/src/index.js
iproduct/course-node-express-react
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
assets/painel/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
guisedassari/kairos
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
front-react/src/components/infobar/Loading.js
hexacta/maprop
import React from 'react'; import { connect } from 'react-redux'; import './Loading.css'; let Loading = ({loading}) => { let style = {visibility: loading ? 'visible' : 'hidden'}; return ( <div className="Loading" style={style}> Cargando... </div> ); }; Loading = connect((state) => ({loading: state.map.loadi...
public/src/demo/MoreAboutRefs.js
codelegant/myReact
/** * Author: 赖传峰 * Email: laichuanfeng@hotmail.com * Homepage: http://laichuanfeng.com/ * Date: 2016/7/17 */ import React from 'react'; export default class MoreAboutRefs extends React.Component { componentDidMount(){ this._input.focus(); } render() { return <input ref={ref=>this._input = ref} />;/...
ui/src/pages/PeopleManagePage/IdentifiersEditor/NewRow.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; import { compose, setPropTypes, withState } from 'recompose'; import AddIconButton from 'ui/components/IconButton/AddIconButton'; import CancelIconButton from 'ui/components/IconButton/CancelIconButton'; import IfiEditor fro...