path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
tests/react_children/fun.js
claudiopro/flow
// @flow /** * Pun intended. */ import React from 'react'; type Data = { foo: number, bar: number, }; type Fn = (Data) => number; class Fun extends React.Component<{children: Fn}, void> {} class FunOptional extends React.Component<{children?: Fn}, void> {} class Obj extends React.Component<{children: Data}, ...
vendor/bundle/gems/rwr-view_helpers-0.2.0/spec/rails4_dummy_app/app/react/components/Spongebob.js
kamillamagna/NMF_Tool
import React, { Component } from 'react'; import { imagePath } from 'rwr-view-helpers'; const Spongebob = ({ alt, size }) => { const sizePostfix = size > 1 ? `@${size}x` : ''; return <img alt={alt} src={imagePath(`spongebob${sizePostfix}.png`)} /> }; export default Spongebob;
src/components/Instruction.js
makoto/blockparty
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; export default class Instruction extends React.Component { constructor(props) { super(props); this.state = { open: false }; } ...
test/integration/client-navigation/pages/head-duplicate-default-keys.js
BlancheXu/test
import React from 'react' import Head from 'next/head' export default () => ( <div> <Head> {/* this will not render */} <meta charSet='utf-8' key='charSet' /> {/* this will override the default (same key as the default) */} <meta charSet='iso-8859-5' key='charSet' /> {/* this will ...
cerberus-dashboard/src/components/SafeDepositBoxSettings/SafeDepositBoxSettings.js
Nike-Inc/cerberus
/* * Copyright (c) 2020 Nike, inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
stories/containers/profilepage.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import ProfilePage from 'containers/Profile/ProfilePage' import { Provider } from '../Provider' import { Window } from '../helpers' storiesOf('Containers.ProfilePage', module) .addParameters({ info: { disable: true } }) .addDecorator(story => <...
src/server.js
prathamtandon/portfolio
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import _ from 'lodash'; import fs from 'fs'; import path from 'path'; import express from 'express'; import React from 'react'; import './core/Dispatcher'; import './stores/AppStore'; import db from './core/Database'; imp...
[4]. Project/DianShang/Component/More/SJMore.js
knightsj/RN_Demo
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableOpacity, Platform, ScrollView } from 'react-native'; var CommonCell = require('../Common/SJCommonCell'); var More = React.createClass({ render() { return ( <View style={styles.container}...
views/components/FormInputDateUi.js
gvaldambrini/madam
import React from 'react'; // A form input presentational component which includes a datepicker. export default React.createClass({ propTypes: { handleChange: React.PropTypes.func.isRequired, name: React.PropTypes.string.isRequired, label: React.PropTypes.string.isRequired, value: React.PropTypes.st...
app/javascript/mastodon/features/list_timeline/index.js
pso2club/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnBackButton from '../../co...
src/svg-icons/editor/space-bar.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; EditorSpaceBar.muiName ...
src/components/LoadingCircleSpin/LoadingCircleSpin.js
k2data/k2-react-components
import React from 'react' const LoadingCircleSpin = () => ( <div className='loading' /> ) export default LoadingCircleSpin
app/routes/NotFound/components/NotFoundView.js
ming-soon/mern-starter
import React from 'react' const NotFoundView = () => ( <h2>Not Found</h2> ) export default NotFoundView
docs/src/components/usage-example.js
adamrneary/nuclear-js
import React from 'react' import { Reactor, Store, toImmutable } from 'nuclear-js' import Code from './code' const storeCode = `import { Reactor, Store, toImmutable } from 'nuclear-js' import React from 'react' const reactor = new Reactor({ debug: true }); reactor.registerStores({ typeFilter: Store({ getInitia...
src/containers/Field.js
luvago/react-forms
import React from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; import { acChangeField, validateField, acSetValidateState, acInitField, acSetMounted } from '../actions/FormActions'; class Field extends React.Component { componentDidMount() { if (!this.props.isInitialized) { if (t...
packages/examples/regithub/components/presentation/profile/profile-input.js
siddharthkp/reaqt
import React from 'react' import styled from 'styled-components' import Card from '../library/card' import Input from '../library/input' import A from '../library/anchor' import Button from '../library/button' import Logo from '../common/logo' const ProfileInput = styled(Card)` text-align: center; box-sizing: bord...
app/components/App.js
tanysaur/crappy-birds
import React from 'react'; import Header from './Header'; import Footer from './Footer'; class App extends React.Component { render() { return ( <div> <Header/> {this.props.children} <Footer/> </div> ); } } export default App;
examples/row-dnd/src/index.js
react-tools/react-table
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
Components/Button.js
cemuyarhub/ReactToDoList
import React, { Component } from 'react'; class Button extends Component { constructor(props) { super(props); // Set initial state of component this.state = { isEnabled: true, }; } render() { return ( <div> <bu...
app-reflux/components/app.js
Orientsoft/borgnix-cloud-ide
import React from 'react' import ProjectActions from '../actions/project-actions' import Projects from './projects' class App extends React.Component { constructor(props) { super(props) this.state = { } } componentDidMount() { ProjectActions.listProjects() } render() { return ( <...
src/client.js
retrixe/Area51
import fs from 'fs' import path from 'path' import React from 'react' import send from 'koa-send' import Router from '@koa/router' // eslint-disable-line no-unused-vars import Files from './client/files' import Login from './client/login' import theme from './client/theme' import ReactDOMServer from 'react-dom/server' ...
src/parser/monk/brewmaster/modules/features/AgilityValue.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import STAT, { getClassNameColor, getName } from 'parser/shared/modules/features/STAT'; import Events, { EventType } from 'parser/core/Events'; import StatTracker from 'parser/shared/modules/StatTracker'; import SPELLS from 'co...
src/svg-icons/action/copyright.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCopyright = (props) => ( <SvgIcon {...props}> <path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-...
app/javascript/mastodon/features/favourited_statuses/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 { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
ui/src/main/js/components/UpdateSettings.js
medallia/aurora
import moment from 'moment'; import React from 'react'; import { isNully } from '../utils/Common'; export default function UpdateSettings({ update }) { const settings = update.update.instructions.settings; return (<div> <table className='update-settings'> <tbody> <UpdateStrategy strategy={setti...
src/admin/containers/ToolbarContainer.js
firescribe/firescribe
import React from 'react'; class ToolbarContainer extends React.Component { render() { const { primary2Color } = this.context.muiTheme.palette; console.log(this.context.muiTheme.palette.primary2Color); return ( <div style={{ background: primary2Color }}> <div sty...
client/routes/Route.js
nickeblewis/wordpress-experiment
import React from 'react'; import { IndexRoute, Route, Redirect } from 'react-router'; import ViewerQuery from './ViewerQuery'; import AppContainer from '../components/App/AppContainer'; import PostContainer from '../components/Post/PostContainer'; import SignupComponent from '../components/Signup/SignupComponent'; im...
src/components/PasswordInput/PasswordInput.js
ThomasBem/ps-react-thomasbem
import React from 'react'; import PropTypes from 'prop-types'; import ProgressBar from '../ProgressBar'; import EyeIcon from '../EyeIcon'; import TextInput from '../TextInput'; /** Password input with integrated label, quality tips, and show password toggle. */ class PasswordInput extends React.Component { construct...
client/src/head/styleSheets.js
pahosler/freecodecamp
import React from 'react'; const styleSheets = [ // bootstrap v3.3.7 <link href='/bootstrap3/css/bootstrap.min.css' rel='stylesheet' /> ]; export default styleSheets;
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_02/finished/src/index.js
yevheniyc/Autodidact
import C from './constants' import React from 'react' import { render } from 'react-dom' import routes from './routes' import sampleData from './initialState' import storeFactory from './store' import { Provider } from 'react-redux' const initialState = (localStorage["redux-store"]) ? JSON.parse(localStorage["redu...
src/app/views/userProfile.js
webcoding/reactui-starter
import _ from 'lodash'; import React from 'react'; import Reflux from 'reflux'; import { State, Link } from 'react-router'; import { Button } from 'react-bootstrap'; import userActions from 'actions/user'; import meActions from 'actions/me'; import userProfileStore from 'stores/userProfile'; import userRecipesStore f...
src/views/atoms/language-buttons/language-buttons.js
Metaburn/doocrate
import React from 'react'; import './language-buttons.css'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const LanguageButtons = ({ changeLanguage, i18n }) => { const enClassNames = classNames('notranslate button-as-link', { disabled: i18n.language === 'en', }); const heClassName...
assets/js/src/App.js
nathandao/ginatra
import React from 'react'; class App extends React.Component { render() { return ( <div className="wrapper"> { this.props.children } </div> ); } } export default App;
src/containers/MenubarContainer.js
drakang4/creative-project-manager
import React from 'react'; import { withRouter } from 'react-router-dom'; import Menubar from '../components/Menubar'; const MenubarContainer = withRouter(Menubar); export default MenubarContainer;
app/templates/src/screens/Index/index.js
quasipedia/generator-neopolitan
/*eslint-disable no-unused-vars*/ import React from 'react'; /*eslint-enable no-unused-vars*/ import { Route, DefaultRoute } from 'react-router'; import Layout from './components/layout/layout'; import Index from './components/index/index'; export default ( <Route name='App' path='/' handler={Layout}> // Place s...
packages/material-ui-icons/src/OndemandVideo.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let OndemandVideo = props => <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z" /> </SvgIcon>; Ond...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js
crod93/googlePlacesEx-react-native
import React, { Component } from 'react'; class Foo extends Component { render() {} }
fields/types/select/SelectFilter.js
asifiqbal84/keystone
import React from 'react'; import { Checkbox, FormField, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/src/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; var SelectFilter = React.createClass({ getInitia...
web/src/components/ConfigEditor.js
sliceofcode/dogbot
import React from 'react' import styled from 'styled-components' import { lighten } from 'polished' import AceEditor from 'react-ace' import 'brace/mode/yaml' import 'brace/theme/twilight' import 'brace/theme/dawn' const StyledAceEditor = styled(AceEditor).attrs((props) => ({ theme: props.theme.name === 'dark' ? 'tw...
src/svg-icons/av/volume-mute.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeMute = (props) => ( <SvgIcon {...props}> <path d="M7 9v6h4l5 5V4l-5 5H7z"/> </SvgIcon> ); AvVolumeMute = pure(AvVolumeMute); AvVolumeMute.displayName = 'AvVolumeMute'; AvVolumeMute.muiName = 'SvgIcon'...
src/svg-icons/device/storage.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceStorage = (props) => ( <SvgIcon {...props}> <path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/> </SvgIcon> ); DeviceStorage = pure(DeviceStorage); DeviceS...
src/components/About/index.js
trebor/tsomi
// @flow import React from 'react' import * as fp from 'lodash/fp' import config from '../../config' import { SubjectId } from '../../types' require('./main.css') type AboutProps = { goBack: Function, focusPerson: SubjectId => void, } const About = ({ goBack, focusPerson }: AboutProps) => { const heading = Re...
elements/Polygon.js
msand/react-native-svg
import React from 'react'; import Path from './Path'; import Shape from './Shape'; import extractPolyPoints from '../lib/extract/extractPolyPoints'; export default class Polygon extends Shape { static displayName = 'Polygon'; static defaultProps = { points: '', }; setNativeProps = props => { const { ...
src/components/Account/CirculationHistory/CircOptIn/PolicyInfo/index.js
ndlib/usurper
import React from 'react' import styles from './style.module.css' const PolicyInfo = () => ( <ul className={styles.circPolicy}> <li>The Hesburgh Libraries values your privacy and the confidentiality of your borrowing records and checkout history.</li> <li>No borrower information is released to third parties...
src/components/Main.js
dmonroy/appui
require('normalize.css'); require('styles/App.css'); import React from 'react'; let yeomanImage = require('../images/yeoman.png'); class AppComponent extends React.Component { render() { return ( <div className="index"> <img src={yeomanImage} alt="Yeoman Generator" /> <div className="noti...
src/containers/weather_list.js
Viggiecc/React_Redux
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMapComp from '../components/google_map_component'; class WeatherList extends Component { // constructor(props) { // super(props); // } renderWeather(cityData) { const nam...
web/src/routes/register/Register.js
kriasoft/Web-App-Boilerplate
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
mdc-112/complete/TopAppBar.js
material-components/material-components-web-codelabs
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import {MDCTopAppBarFoundation, MDCFixedTopAppBarFoundation, MDCShortTopAppBarFoundation} from '@material/top-app-bar'; export default class TopAppBar extends React.Component { foundation_ = null; constructor(prop...
docs/theme/ThemeSwitch.js
nikgraf/belle
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'belle'; export default React.createClass({ contextTypes: { location: PropTypes.object, }, _onSwitchTheme(name) { window.location.hash = `${this.context.location.pathname}\?theme=${name}`; window.location.reload()...
app/imports/ui/client/components/TasksDependencies/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; import { Session } from 'meteor/session'; import { createContainer } from 'meteor/react-meteor-data'; import { Collections } from '../../../../api/common/collections.js'; import {Meteor} from 'meteor/meteor'; import DependenciesList from './DependenciesList.js'; import OrderL...
src/components/SaveButton/SaveButton.js
joyvuu-dave/comeals-ui-react
/* @flow */ // rendered by Datebox import React from 'react' import classes from './SaveButton.scss' import classNames from 'classnames' type Props = { ui: { hidden: boolean, disabled: boolean, value: string }, persistMealAsync: Function }; export class SaveButton extends React.Component<void, Props...
src/containers/Root.js
abachuk/quotes
import React from 'react' import { Provider } from 'react-redux' import { Router } from 'react-router' export default class Root extends React.Component { static propTypes = { history: React.PropTypes.object.isRequired, routes: React.PropTypes.element.isRequired, store: React.PropTypes.object.isRequired ...
server/sonar-web/src/main/js/apps/code/components/Component.js
vamsirajendra/sonarqube
import React from 'react'; import ComponentName from './ComponentName'; import ComponentMeasure from './ComponentMeasure'; import ComponentDetach from './ComponentDetach'; const Component = ({ component, coverageMetric, onBrowse }) => ( <tr> <td className="thin nowrap"> <span className="spacer-righ...
exercise-07/src/components/PokemonPage.js
learnapollo/pokedex-react
import React from 'react' import { withRouter } from 'react-router' import { graphql } from 'react-apollo' import gql from 'graphql-tag' import { filter } from 'graphql-anywhere' import PokemonCard from './PokemonCard' import PokemonCardHeader from './PokemonCardHeader' class PokemonPage extends React.Component { ...
app/components/App.js
EstebanFuentealba/t13
import React from 'react'; import { StyleSheet, Text, View, Image, Navigator } from 'react-native'; import { connect } from 'react-redux'; import T13Navigator from './T13Navigator'; import Intro from './Intro'; var styles = StyleSheet.create({ container: { flex: 1, }, }); class App extends React.Com...
lib/ui/components/QuickEdit/QuickEdit.js
500tech/bdsm
import React from 'react'; import get from 'lodash/get'; import values from 'lodash/values'; import assign from 'lodash/assign'; import HttpStatus from 'http-status-codes'; import API from 'api'; import UIState from 'ui/states/UIState'; import { connectToState } from 'ui/states/connector'; import MocksState from 'ui/st...
stories/data/DataUtil.js
tidepool-org/viz
/* * == BSD2 LICENSE == * Copyright (c) 2017, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
src/DatePicker/basic/DateTable.js
yurizhang/ishow
import React from 'react' import PropTypes from 'prop-types'; import {default as Component} from '../../Common/plugs/index.js'; //提供style, classname方法 import { toDate, getFirstDayOfMonth, getDayCountOfMonth, getWeekNumber, getStartDateOfMonth, DAY_DURATION, SELECTION_MODES, deconstructDate, hasClass...
public/app/index.js
threepears/react_todo
import React from 'react'; import { render } from 'react-dom'; import App from 'components/app'; render(<App />, document.getElementById('app'));
src/components/Onboarding/index.js
topguru/React-Equiaction
import React, { Component } from 'react'; import { Text, View, Image, TouchableHighlight } from 'react-native'; import styles from './style'; import { images, metrics } from '../../theme'; import Swiper from 'react-native-swiper'; import { Actions } from 'react-native-router-flux'; const Onboarding = () => ...
app/jsx/add_people/components/people_search.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
app/container/Cart.js
yandan66/react-native-maicai
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, Dimensions, TouchableOpacity } from 'react-native'; import { TabNavigator } from 'react-navigation'; import CartHeader from '../components/Header/CartHeader'; let screenWidth = Dimensions .get('window') .width; export default class C...
src/lib/components/AxisDropZone.react.js
jackparmer/react-plotly-dnd-editor
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { DropTarget } from 'react-dnd'; import Box from './Box.react.js'; import {xAxisDropStyle, yAxisDropStyle} from './editorConstants'; const axisZoneTarget = { drop(props, monitor) { props.onDrop(monitor.getItem()); }, ...
src/routes/transcripts/index.js
goldylucks/adamgoldman.me
import React from 'react' import axios from 'axios' import Transcripts from './Transcripts' import Layout from '../../components/Layout' const title = 'Transcripts' const description = 'Transcripts and notes of sessions with clients' async function action({ path }) { const { data } = await axios.get('/api/posts/t...
src/plugins/blockquote.js
MaxKelsen/ory-slate-plugin
/* eslint-disable prefer-reflect, default-case, react/display-name */ import BlockquoteIcon from 'material-ui-icons/FormatQuote' import React from 'react' import createBlockquotePlugin from 'slate-edit-blockquote' import { makeTagNode, ToolbarButton } from '../helpers' import Plugin from './Plugin' import type { Props...
examples/universal/server.js
ariporad/redux
import path from 'path'; import Express from 'express'; import qs from 'qs'; import React from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import counterApp from './reducers'; import App from './containers/App'; import { fetchCounter } from './api/counter'; const app = Express...
src/Interpolate.js
JimiHFord/react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
lib/BackgroundRippleAnimation.js
timomeh/react-native-material-bottom-navigation
import React from 'react' import PropTypes from 'prop-types' import { Animated, Dimensions, Platform } from 'react-native' import * as easings from './utils/easing' export default class BackgroundRippleAnimation extends React.PureComponent { static propTypes = { containerWidth: PropTypes.number.isRequired, ...
frontend/src/components/partners/profile/overview/undata/partnerUnDataOverview.js
unicef/un-partner-portal
import R from 'ramda'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import React, { Component } from 'react'; import Divider from 'material-ui/Divider'; import Button from 'material-ui/Button'; import Paper from 'material-ui/Paper'; import Collaps...
examples/counters/src/utils/devTools.js
Trimma/react-redux-isolate
import DockMonitor from 'redux-devtools-dock-monitor'; import Inspector from 'redux-devtools-inspector'; import LogMonitor from 'redux-devtools-log-monitor'; import React from 'react'; import { createDevTools } from 'redux-devtools'; const DevTools = createDevTools( <DockMonitor defaultIsVisible={true} toggleVisi...
example/RNApp/app/components/Loading/Loading.js
DesignmanIO/react-native-meteor-redux
import React from 'react'; import { View, ActivityIndicator } from 'react-native'; import styles from './styles'; const Loading = (props) => { return ( <View style={styles.container}> <ActivityIndicator animating size={props.size} {...props} /> </View> ); }; Loading.pro...
src/App.js
cpojer/hextrapolate
/** * Copyright 2003-present Greg Hurrell. All rights reserved. * Licensed under the terms of the MIT license. * * @flow */ 'use strict'; import DIGITS from './DIGITS'; import DynamicField from './DynamicField.react'; import React from 'react'; import type Value from './Field.react'; import Field from './Field.r...
src/views/Components/SocialButtons/SocialButtons.js
Cruis-R/GestionOutil
import React, { Component } from 'react'; class SocialButtons extends Component { render() { return ( <div className="animated fadeIn"> <div className="row"> <div className="col-12"> <div className="card"> <div className="card-header"> <strong>Soc...
packages/giu/src/inputs/selectCustom.js
guigrpa/giu
// @flow import React from 'react'; import { merge } from 'timm'; import classnames from 'classnames'; import { KEYS, UNICODE, NULL_STRING, IS_IOS, IS_MOBILE_OR_TABLET, } from '../gral/constants'; import { createShortcut, registerShortcut, unregisterShortcut, } from '../gral/keys'; import type { Choice...
modules/Redirect.js
tmbtech/react-router
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './URLUtils'; import { falsy } from './PropTypes'; var { string, object } = React.PropTypes; export var Redirect = React.createClass({ statics: { createRouteF...
src/user-accounts/UserAccountsMobile.js
nazaninreihani/binary-next-gen
import React from 'react'; import MobilePage from '../containers/MobilePage'; import UserAccountsContainer from './UserAccountsContainer'; export default (props) => ( <MobilePage> <UserAccountsContainer {...props} /> </MobilePage> );
jenkins-design-language/src/js/components/material-ui/svg-icons/device/bluetooth-connected.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBluetoothConnected = (props) => ( <SvgIcon {...props}> <path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L...
wrappers/yaml.js
kepatopoc/gatsby-starter-clean
import React from 'react' import yaml from 'js-yaml' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
src/components/Reject/Reject.stories.js
joshwcomeau/react-collection-helpers
/* eslint-disable react/prop-types */ import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Reject from '../Reject'; storiesOf('Reject', module) .add('default', () => ( <Reject collection={[ { id: 'a', name: 'apple', inStock: false }, { id: 'b', name: 'banana', ...
client/src/components/App.js
ArnaultNouvel/webmail4dev
import React, { Component } from 'react'; import MailList from "../containers/MailList" import MailDetails from "../containers/MailDetails"; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import GitHubIcon fro...
src/svg-icons/image/image.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageImage = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImageImage = p...
src/routes.js
BrettHoyer/fatwithfriends
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
app/javascript/mastodon/features/notifications/components/notification.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { injectIntl, FormattedMessage } from 'react-intl'; ...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ...
packages/react/src/components/molecules/FooterLinks/index.js
massgov/mayflower
/** * FooterLinks module. * @module @massds/mayflower-react/FooterLinks * @requires module:@massds/mayflower-assets/scss/02-molecules/footer-links * @requires module:@massds/mayflower-assets/scss/01-atoms/sidebar-heading */ import React from 'react'; import PropTypes from 'prop-types'; import SidebarHeading from '...
client/src/components/log-viewer/Pagination.js
peachy-manasis/log-file-viewer
import React from 'react' import { Button, ButtonGroup } from 'reactstrap'; const Pagination = ({resetSearch, prevPage, nextPage, lastPage}) => { return ( <div className="Pagination-container"> <ButtonGroup> <Button size="lg" onClick={resetSearch()}>&#xab;</Button> ...
app/js/LoadSceneButton.js
andreagoulet/callmyreps
import React, { Component } from 'react'; import { Dimensions, View, Text, TouchableHighlight } from 'react-native'; import { Button } from 'react-native-material-ui'; windowWidth = Dimensions.get('window').width; const LoadSceneButton = ({ sceneId, text }) => { return ( <View style={{ marginVertical: 8 }}> ...
app/javascript/mastodon/features/ui/components/column.js
WitchesTown/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
information/blendle-frontend-react-source/app/modules/stories/components/LoadingPlaceholders/index.js
BramscoChill/BlendleParser
import React from 'react'; import classNames from 'classnames'; import { number, bool, node } from 'prop-types'; import StoryTilePlaceholder from './StoryTilePlaceholder'; import CSS from './style.scss'; function LoadingPlaceholders({ numberOfPlaceholders, numberOfLoadedTiles, hideLoadingState, isLoading, ch...
src/svg-icons/image/audiotrack.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAudiotrack = (props) => ( <SvgIcon {...props}> <path d="M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/> </SvgIcon> ); ImageAudiotrack = p...
app/packs/src/components/chemscanner/containers/MainContentContainer.js
ComPlat/chemotion_ELN
import React from 'react'; import { connect } from 'react-redux'; import MainContent from '../components/MainContent'; import { removeFile } from '../actions/fileActions'; const MainContentContainer = props => <MainContent {...props} />; const mapStateToProps = state => ({ files: state.get('files'), }); const ma...
examples/js/keyboard-nav/enter-to-edit-with-nav-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/client/components/EditButton.js
dgrcode/FCC-Voting-App
import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; const EditButton = (props) => { const poll = props.poll; const user = props.user; if (user && poll.owner === user._id) { return <Link to={`/poll/${poll._id}/edit`}><button className="btn btn-default">Edit<...
src/client.js
hiEven/HackNTUClient
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
src/components/Pagination/Pagination.js
renegens/blog
// @flow strict import React from 'react'; import classNames from 'classnames/bind'; import { Link } from 'gatsby'; import { PAGINATION } from '../../constants'; import styles from './Pagination.module.scss'; type Props = { prevPagePath: string, nextPagePath: string, hasNextPage: boolean, hasPrevPage: boolean ...
src/admin/containers/reports.js
foundersandcoders/sail-back
import React from 'react' import { connect } from 'react-redux' import { GiftAidReport, DelivererReport, OverdueReport, EmailBouncedReport, NumbersReport, MembershipReport } from './member_analysis.js' import { PayingIn, NonCheque } from './payment_reports.js' import { deliverers_tab, list_120_overdue, change_tab, ge...
blog/src/Article/Article.js
Robert2333/kilakila-react
import React from 'react' import Url from '../URL/Url.js' export default class Article extends React.Component{ state={article:""} //http://localhost:8080/myBlog/GetConcrete?id=${this.props.match.params.id componentDidMount = () => { //fetch请求 var state = this; fetch(`${Url.getArticl...
cheesecakes/admin/admin/src/components/Official/index.js
strapi/strapi-examples
/* * * Official * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import styles from './styles.scss'; function Official(props) { return ( <button className={styles.wrapper} style={props.style}> <i className="fa fa-star" /> <FormattedM...
src/components/CardLists/ListHeader.js
Minishlink/DailyScrum
// @flow import React, { Component } from 'react'; import { StyleSheet, View } from 'react-native'; import { Text } from '../../components'; import appStyle from '../../appStyle'; import { roundToDecimalPlace } from '../../services/MathService'; export default class ListHeader extends Component<Props> { shouldCompon...
src/modules/home/routes/index.js
CtrHellenicStudies/Commentary
import React from 'react'; import { Route } from 'react-router'; import HomeLayout from '../layouts/HomeLayout'; export default ( <Route exact path="/" component={HomeLayout} /> );