path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
admin/src/components/PopoutListItem.js
BlakeRxxk/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutListItem = React.createClass({ displayName: 'PopoutListItem', propTypes: { icon: React.PropTypes.string, iconHover: React.PropTypes.string, iconHoverAlt: React.PropTypes.string, isSelected: React.Prop...
client/index.js
ourvrisrealerthanyours/tanks
import React from 'react'; import ReactDOM from 'react-dom'; import AFRAME from 'aframe'; import extras from 'aframe-extras'; extras.physics.registerAll(); extras.controls.registerAll(); require('aframe-text-component') require('./aframeComponents/spawner'); require('./aframeComponents/click-space-listener'); require...
src/routes/accounts.js
HurtowniaPixeli/pixelcms-client
import React from 'react' import concat from 'lodash/concat' import langPrefix from '~/utils/langPrefix' import Login from '~/components/staticPages/accounts/Login' import SocialAuth from '~/components/staticPages/accounts/SocialAuth' import Register from '~/components/staticPages/accounts/Register' import Activate fr...
app/javascript/mastodon/features/notifications/components/notification.js
pfm-eyesightjp/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 { FormattedMessage } from 'react-intl'; import Perma...
packages/demos/demo/src/components/Client/card.js
garth/cerebral
import React from 'react' import { connect } from '@cerebral/react' import { props, signal, state } from 'cerebral/tags' import Email from '../Email' import Header from './Header' import Phone from '../Phone' export default connect( { item: state`clients.all.${props`itemKey`}`, penClick: signal`clients.penC...
client/src/app/components/todo/components/TodoWidget.js
zraees/sms-project
import React from 'react' import Reflux from 'reflux' import classnames from 'classnames' import JarvisWidget from '../../widgets/JarvisWidget' import TodoStore from '../stores/TodoStore' import TodoActions from '../actions/TodoActions' import TodoList from './TodoList' import TodoForm from './TodoForm' let TodoWidg...
src/screens/SettingsScreen.js
dbyilmaz/jobs
import _ from 'lodash'; import React, { Component } from 'react'; import { View, Text, Image } from 'react-native'; import { connect } from 'react-redux'; import { clearLikedJobs } from '../actions'; import FBLoginView from '../components/FBLoginView'; import {FBLogin, FBLoginManager} from 'react-native-facebook-login...
client/src/components/AdminImageGallery.js
redcom/pinstery
// @flow import type { AdminType } from '../store/CommonStoreTypes'; import React from 'react'; import ReactPaginate from 'react-paginate'; import { slice } from 'ramda'; import styled from 'styled-components'; import { defaultSpaceInBetween } from '../styles/vars'; import { AdminImage } from '../components'; const ...
app/scripts/components/StarHOC.js
henry40408/awesome-stars
import React from 'react' import PropTypes from 'prop-types' import Star from './Star' class StarHOC extends React.Component { static propTypes = { owner: PropTypes.string.isRequired, name: PropTypes.string.isRequired } state = { count: 0, hasError: false, loading: true } get tuple () { return {...
src/browser/main.js
sikhote/davidsinclair
// @flow import type { Action } from '../common/types'; import React from 'react'; import ReactDOM from 'react-dom'; import Root from './app/Root'; import configureFound from './configureFound'; import configureReporting from '../common/configureReporting'; import configureStorage from '../common/configureStorage'; imp...
chrisko-ui/src/App.js
ohmyjersh/chrisko
import React, { Component } from 'react'; import {bindActionCreators} from 'redux'; import { connect } from 'react-redux'; import * as actions from './chrisko'; import {Input, Button, Alert, Spin, Card } from 'antd'; import Logo from './logo.png'; class App extends Component { componentWillMount() { if(this.prop...
CMS/redux/components/presentational/entry-listing.js
BJCheng/cs554-assignments
import React from 'react'; import { connect } from 'react-redux'; import Entry from './entry'; import { Table, TableHeader, TableHeaderColumn, TableBody, TableRow, TableRowColumn } from 'material-ui/Table'; import Action from '../../action'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import Co...
src/components/FuelSavingsTextInput.spec.js
omaracrystal/Crystal-Portfolio-React
import React from 'react'; import {shallow} from 'enzyme'; import FuelSavingsTextInput from './FuelSavingsTextInput'; describe('<FuelSavingsTextInput />', () => { it('should be an input element', () => { const props = { name: 'testName', onChange: jest.fn(), placeholder: 'Type Here', valu...
app/components/about_us.js
bdunams/neo-veg
// Import React import React from 'react'; // Returns Component JSX const AboutUs = () =>{ return( <div id="about-us" className="container"> <div id="about-neoveg" className="container"> <section id="aboutNEOVEG" className="bg-light-gray"> <div className="container"> <div className="row"...
src/components/Tag/Tag.spec.js
andywillis/uws
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import Tag from './index'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render( <BrowserRouter> <Tag txt="tag" /> </BrowserRouter> , div); })...
examples/PropTable.js
HPate-Riptide/react-overlays
import merge from 'lodash/merge'; import React from 'react'; import Label from 'react-bootstrap/lib/Label'; import Table from 'react-bootstrap/lib/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); function getPropsData(componentData, metadata){ let props = componentData.props ...
renderer/components/CreateForm.js
markmarcelo/reactide
import React from 'react'; import PropTypes from 'prop-types'; const CreateForm = ({ createItem }) => { return ( <div className='list-item'> <input className='create-form' onKeyPress={createItem} onClick={(event) => {event.stopPropagation()}} /> </div> ) } CreateForm.propTypes = { createItem: P...
ajax/libs/react-instantsearch/3.3.1/Dom.js
seogi1004/cdnjs
/*! ReactInstantSearch 3.3.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
client/app/components/Topbar/index.js
bryanph/Geist
"use strict" import _ from 'lodash' import React from 'react' import { connect } from 'react-redux' import classNames from 'classnames' import { Link, withRouter } from 'react-router-dom' import QueryLink from 'QueryLink' import AllSearch from '../../containers/AllSearch' import './styles.scss' export const Logo = ...
docs/pages/company/about.js
lgollut/material-ui
import React from 'react'; import TopLayoutCompany from 'docs/src/modules/components/TopLayoutCompany'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'company/about'; const requireDemo = require.context('docs/src/pages/company/about', false, /\.(js|tsx)$/); const requireR...
modules/Navigation.js
flocks/react-router
import React from 'react'; var { object } = React.PropTypes; /** * A mixin for components that modify the URL. * * Example: * * import { Navigation } from 'react-router'; * * var MyLink = React.createClass({ * mixins: [ Navigation ], * handleClick(event) { * event.preventDefault(); * ...
src/svg-icons/av/replay.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/> </SvgIcon> ); AvReplay = pure(AvReplay); AvReplay...
lib/client.js
jekrb/filepizza
import React from 'react' import ReactRouter from 'react-router' import routes from './routes' import alt from './alt' import webrtcSupport from 'webrtcsupport' import SupportActions from './actions/SupportActions' let bootstrap = document.getElementById('bootstrap').innerHTML alt.bootstrap(bootstrap) window.FilePizz...
src/layouts/banner.js
davosolo/davosolo.github.io
import React from 'react' import Banner from './../components/styledBanner' import { Title, TitleLight, Subtitle, Container, PersonalData, AboutContainer, ProfilePicture, LabelColumn, DataColumn, Info, TitleSeparator, RowSeparator, TitleInset, TitleRetro, TitleDeep } from './../components/styledContainer' const Banner...
app/javascript/mastodon/features/report/components/status_check_box.js
Arukas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class StatusCheckBox extends React.PureComponent { static propTypes = { status: ImmutablePropTypes.map.isRequired, checked: PropTypes.b...
app/Components/SignIn/SMSCode/StepOne.js
martinvarelaaaa/tintina
import React, { Component } from 'react'; import { View, Modal } from 'react-native'; import PropTypes from 'prop-types'; import { TextSubTitle, TextInfo } from '../../Atoms/Text'; import TintinaSlogan from '../../Atoms/TintinaSlogan'; import { Button } from '../../Atoms/Button'; import CountryPhoneList from '../../At...
blueocean-material-icons/src/js/components/svg-icons/device/bluetooth-connected.js
jenkinsci/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...
scripts/components/Header.js
ZucchiniZe/react-chat
// Importing the react module so everything works import React from 'react'; class Header extends React.Component { render() { return ( // Nothing special just a bootstrap navbar <nav className='navbar-fixed-fixed-top navbar navbar-default'> <div className='container-fluid'> <div cl...
ajax/libs/react-instantsearch/4.0.0-beta.2/Dom.js
him2him2/cdnjs
/*! ReactInstantSearch 4.0.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
docs/src/examples/elements/Step/Variations/StepExampleEvenlyDividedAnother.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleEvenlyDividedAnother = () => ( <Step.Group widths={2}> <Step active> <Icon name='credit card' /> <Step.Content> <Step.Title>Billing</Step.Title> </Step.Content> </Step> <Step disabled> ...
src/index.js
shp54/cliff-effects
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './utils/registerServiceWorker'; import 'semantic-ui-css/semantic.min.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
app/main.js
AgtLucas/webpack-express-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('root'));
tests/api-react/image/1-Image.js
hcchien/plate
import React from 'react'; import ReactDOM from 'react-dom'; import { Button, Col, Form, FormField, FormInput, FileUpload, Radio, Row } from 'elemental'; import api from '../../../client/lib/api'; const Test = React.createClass({ getInitialState () { return { file: null, dataURI: null, uploadMode: 'fileDa...
src/core/components/types/SetType.js
remy/jsconsole
import React, { Component } from 'react'; import Entry from './EntryType'; import zip from 'lodash/zip'; import flatten from 'lodash/flatten'; class SetType extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { open: props.open, }; } t...
src/components/user/RequestPasswordResetSuccessMessage.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { FormattedMessage, injectIntl } from 'react-intl'; const localMessages = { click: { id: 'success.email', defaultMessage: 'We have emailed you a link to reset your password' }, emailCheck:...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
changjiashuai/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { Pure...
lavalab/html/node_modules/react-bootstrap/es/MediaHeading.js
LavaLabUSC/usclavalab.org
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/svg-icons/action/view-day.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewDay = (props) => ( <SvgIcon {...props}> <path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"/> </SvgIcon> ); ActionViewDay = pure(A...
blueocean-material-icons/src/js/components/svg-icons/image/tag-faces.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageTagFaces = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5...
game-of-life-react-parcel/src/index.js
LandRover/kata
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept() }
tests/components/Counter/Counter.spec.js
anthonyraymond/react-redux-starter-kit
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'components/Counter/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter: 5, ...bindActionCre...
docs/app/Examples/views/Statistic/Types/StatisticExampleGroupColored.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Statistic } from 'semantic-ui-react' const items = [ { label: 'Faves', value: '22' }, { label: 'Views', value: '31,200' }, { label: 'Members', value: '22' }, ] const StatisticExampleGroupColored = () => ( <Statistic.Group items={items} color='blue' /> ) export default Stati...
admin/src/components/PopoutListHeading.js
ligson/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutListHeading = React.createClass({ displayName: 'PopoutListHeading', propTypes: { children: React.PropTypes.node.isRequired, }, render () { let className = classnames('PopoutList__heading', this.props.cl...
src/svg-icons/action/card-giftcard.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardGiftcard = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H...
app/javascript/mastodon/components/load_gap.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); export default @injectIntl class LoadGap extends React.PureComponent { static propTypes...
presentation/index.js
jpoo90/jest-presentation
// Import React import React from 'react'; // Import Spectacle Core tags import { Appear, BlockQuote, Cite, Code, CodePane, Deck, Fill, Fit, Heading, Layout, Link, ListItem, List, Markdown, Quote, Slide, Table, TableRow, TableItem, Text, Image } from 'spectacle'; import CodeSl...
components/KanbanQueue.js
bchoe/React-Kanban
import React from 'react'; class KanbanQueue extends React.Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } } export default KanbanQueue;
docs/src/pages/customization/themes/FontSizeTheme.js
cherniavskii/material-ui
import React from 'react'; import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles'; import Typography from 'material-ui/Typography'; const theme = createMuiTheme({ typography: { // Tell Material-UI what's the font-size on the html element is. htmlFontSize: 10, }, }); function FontSizeTheme()...
server/middleware/render.js
nabil-jazoul/react-starter
import React from 'react' import { renderToString } from 'react-dom/server' import match from 'react-router/lib/match' import RouterContext from 'react-router/lib/RouterContext' import createStore from 'App/store' import createRoutes from 'App/routes' import AppContainer from 'App/containers/AppContainer' const rende...
app/containers/NavContainer.js
waagsociety/tnl-relationizer
import React from 'react'; import { connect } from 'react-redux'; import api from '../utils/api'; import Nav from '../components/Nav'; const NavContainer = React.createClass({ componentWillMount() { this.props.dispatch(api.actions.types()); this.props.dispatch(api.actions.datasets()); }, render() { ...
docs/app/Examples/modules/Dropdown/States/DropdownExampleDisabledItem.js
ben174/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleActive = () => ( <Dropdown text='Dropdown'> <Dropdown.Menu> <Dropdown.Item>Choice 1</Dropdown.Item> <Dropdown.Item disabled>Choice 2</Dropdown.Item> <Dropdown.Item>Choice 3</Dropdown.Item> </Dropdown...
src/index.js
qubed-inc/qubed-io
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './Root'; import 'normalize.css'; import './index.css'; ReactDOM.render( <Root />, document.getElementById('root') );
app/components/CharacterList.js
sahat/newedenfaces-react
import React from 'react'; import {Link} from 'react-router'; import {isEqual} from 'underscore'; import CharacterListStore from '../stores/CharacterListStore'; import CharacterListActions from '../actions/CharacterListActions'; class CharacterList extends React.Component { constructor(props) { super(props); ...
docs/components/home/Home.js
casesandberg/react-color
'use strict' import React from 'react' import reactCSS from 'reactcss' import HomeFeature from './HomeFeature' import HomeDocumentation from './HomeDocumentation' class Home extends React.Component { state = { primaryColor: '#194D33', } handleChange = (primaryColor) => this.setState({ primaryColor }) r...
client/containers/Navbar/Navbar.js
joshjg/explore
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'material-u...
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Experiment/Login/index.js
Zephyrrus/ubb
import React from 'react' import PropTypes from 'prop-types' import Login from './Login' const LoginScreen = () => <Login /> LoginScreen.navigationOptions = () => ({ header: null, }) LoginScreen.propTypes = { navigation: PropTypes.object.isRequired, } export default LoginScreen;
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/ConfigurationOperations/ReadyOperations.js
KlusterKite/KlusterKite
import React from 'react'; import Relay from 'react-relay' import Icon from 'react-fa'; import delay from 'lodash/delay' import Modal from '../Form/Modal' import CreateMigrationMutation from './mutations/CreateMigrationMutation'; import SetObsoleteMutation from './mutations/SetObsoleteMutation'; import './styles.cs...
index.js
fernandoviton/d20-create
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './components/root'; import root from './reducers/root'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import reduxLogger from './middleware/reduxLogger' import { changeSkillRank, changeAbility...
src/app/components/Card/index.js
mahimaag/react-web-boilerplate
import React from 'react'; import style from './style.scss'; const CardActionBarBtnClasses = { Primary: 'primary', Secondary: 'secondary' } /** * Material UI style(code-structure wise) card design. Entire idea behind this is to * make card a re-usable component. */ /** * Represent the content are for the...
ui/src/components/NetworkServerForm.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; class NetworkServerForm extends Component { static contextTypes = { router: React.PropTypes.object.isRequired }; constructor() { super(); this.state = { networkServer: {}, }; this.handleSubmit = this.handleSubmit.bind(this); } component...
src/index.js
r24y/delta-calibration
import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {Router} from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import {useBasename} from 'history'; import configureStore from './store/configureStore'...
src/components/ScaleToggle.js
devoidofgenius/react-weather
import React from 'react'; import '../css/ScaleToggle.css'; class ScaleToggle extends React.Component { toggleTemp() { this.setState({ isFahrenheit: this.state.isFahrenheit ? false : true }); } render() { return ( <label id="toggle"> <input type="checkbox" checked={this.props.is...
dac/ui/src/components/Fields/FieldWithError.js
dremio/dremio-oss
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
src/RadioBoxGroup.js
ship-components/ship-components-checkbox
/** **************************************************************************** * RadioBoxGroup * * @author Isaac Suttell <isaac_suttell@playstation.sony.com> * @file Reusable checkbox component ******************************************************************************/ // Modules import React ...
dev/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
BenSegni/Sean_Thornton
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'));
src/svg-icons/action/swap-horiz.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapHoriz = (props) => ( <SvgIcon {...props}> <path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/> </SvgIcon> ); ActionSwapHoriz = pure(ActionSwapHoriz); ActionSwapHoriz.d...
app/components/Seat/ButtonInvite.js
VonIobro/ab-web
/** * Created by jzobro 20170519 */ /* Replaced by ButtonOpenSeat until Invite process is complete */ import React from 'react'; import { ButtonIcon, ButtonStyle, ButtonText, ButtonWrapper, SeatWrapper, } from './styles'; const ButtonInvite = ({ coords, onClickHandler }) => ( <SeatWrapper className="seat-w...
packages/react/components/list-button.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../ru...
src/library/Dropdown/DropdownContent.js
mineral-ui/mineral-ui
/* @flow */ import React, { Component } from 'react'; import withForwardRef from '../utils/withForwardRef'; import Popper from '../Popover/RtlPopper'; import { DropdownContentWrapper } from './styled'; import type { DropdownContentProps } from './types'; class DropdownContent extends Component<DropdownContentProps> {...
packages/react-vis/src/plot/series/line-series.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/js/components/mobile_list.js
lantuhui/NewsApp-react
/** * Created by lantu on 2017/10/26. */ import React from 'react'; import { Row,Col } from 'antd'; import { Link } from 'react-router-dom'; import axios from 'axios'; export default class extends React.Component { constructor(){ super(); this.state = { news: '' } } ...
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js
owencm/material-ui
import React from 'react'; import ActionHome from 'material-ui/svg-icons/action/home'; import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff'; import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download'; import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as...
src/shared/types/react.js
LorbusChris/react-universally
/* @flow */ // Note: we already have the definitions from // https://github.com/facebook/flow/blob/master/lib/react.js // so the below are merely helpful extensions. import React from 'react'; export type ReactElement = React.Element<any>; export type ReactNode = string | number | ReactElement | Array<ReactElement>...
docs/app/Examples/views/Comment/Variations/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const CommentVariations = () => ( <ExampleSection title='Variations'> <ComponentExample title='Threaded' description...
client/src/CourseItem.js
MOOCFetcher/moocfetcher-appliance
import {CourseActions} from './CourseStore' import React from 'react' export default class CourseItem extends React.Component { static propTypes = { course: React.PropTypes.shape({ name: React.PropTypes.string.isRequired, slug: React.PropTypes.string.isRequired, selected: React.PropTypes.bool ...
src/components/List/ListItem.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; import { Media, MediaContent, MediaIcon } from '../Media'; import { Thumbnail } from '../Thumbnail'; function ListItem(props) { const { active, children, compact, imageSrc, imageWidth, onClick, } = props; const className = c...
content/src/scripts/components/app/StoryTrayItem.js
CaliAlec/ChromeFBStory
import React, { Component } from 'react'; import Popover from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import DownloadIcon from 'material-ui/svg-icons/file/file-download'; import VisibilityIcon from 'material-ui/svg-icons/action/visibility'; class StoryTr...
client/public/src/views/NotFound/NotFound.js
openview2017/openview
import React from 'react' /** * NotFound **/ export default class NotFound extends React.Component { /** * render * @return {ReactElement} markup */ render() { let styles = { color: '#FFFFFF', padding: '10px' }; return ( <h2 style={styles}>Error 404. Page not found..</h2> ) } }
blueocean-material-icons/src/js/components/svg-icons/communication/live-help.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationLiveHelp = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83...
src/components/fieldComponents/CheckBox.js
gearz-lab/react-metaform
import React from 'react'; import Input from 'react-bootstrap/lib/Input'; import GearzMixin from '../mixins/GearzMixin.js'; const CheckBox = React.createClass({ propTypes: { name: React.PropTypes.string.isRequired, value: React.PropTypes.bool, displayName: React.PropTypes.string }, ...
stories/components/label/index.js
tal87/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import Label from 'shared/components/label/label'; storiesOf('shared/components/label', module) .add('Default', () => ( <div style={{ marginTop: '12px', display: 'flex', flexDirection: 'row', justifyCo...
src/Flags/IvoryCoast.js
runjak/css-flags
// @flow import React from 'react'; import LinearFlag from './LinearFlag'; import gradient from '../utils/gradient'; const orange = '#F77F00'; const white = '#FFFFFF'; const green = '#009E60'; export default function IvoryCoast() { return ( <LinearFlag gradient={`to right, ${gradient([orange, green, whit...
app/components/Gallery/index.js
Princess310/react-chat-exp
/** * * ChatHeader * */ import React from 'react'; class Gallery extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div className="pswp" tabIndex="-1" role="dialog" aria-hidden="true"> <div className="pswp__bg"></div> <div className="...
src/components/Link/Link.js
onelink-translations/react-localization
/** * 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-...
packages/gatsby-remark-embed-snippet/src/__tests__/index.js
mingaldrichgan/gatsby
jest.mock(`fs`, () => { return { existsSync: jest.fn(), readFileSync: jest.fn(), } }) const fs = require(`fs`) const Remark = require(`remark`) const plugin = require(`../index`) const remark = new Remark() describe(`gatsby-remark-embed-snippet`, () => { beforeEach(() => { fs.existsSync.mockReset()...
app/javascript/mastodon/features/compose/components/poll_form.js
tateisu/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from 'mastodon/components/icon_butt...
src/__tests__/react-components/test-coverage-summary-table.js
rpl/flow-coverage-report
'use babel'; import React from 'react'; import renderer from 'react-test-renderer'; import {FLOW_COVERAGE_SUMMARY_DATA} from '../fixtures'; import {BASE_DIR} from './common'; const REACT_COMPONENT = `${BASE_DIR}/coverage-summary-table`; test('<FlowCoverageSummaryTable />', () => { const FlowCoverageSummaryTable ...
src/components/DeveloperMenu.js
WWCJSBoulder/DWClient
import React from 'react'; import {View} from 'react-native'; // For tests const DeveloperMenu = () => <View/>; export default DeveloperMenu;
src/app/minibar/packlist/pack/Pack.js
hiubers/pick
import React from 'react' class Pack extends React.Component { render() { return ( <a className="nav-group-item active"> <span className="icon icon-home"></span> </a> ) } } export default Pack
src/docs/components/animate/AnimateScrollExample.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Tiles from 'grommet/components/Tiles'; import Tile from 'grommet/components/Tile'; import Animate from 'grommet/components/Animate'; import Box from 'grommet/components/Box'; import Example from '../.....
assets/jqwidgets/jqwidgets-react/react_jqxlistbox.js
juannelisalde/holter
/* jQWidgets v4.5.4 (2017-June) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export default class JqxListBox extends React.Component { componentDidMount() { let options = this.manageAttributes(); this.create...
app/client/render/client.js
joaquinmag/trackerguias
import React from 'react'; import ReactDOM from 'react-dom'; import Tracker from '../components/tracker/Tracker.jsx'; let trackerGuias = window.trackerGuias || {}; trackerGuias.home = { render: function (couriers) { ReactDOM.render(<Tracker couriers={couriers} />, document.getElementById('home-container')); }...
frontend/src/index.js
aliasfalse/rowboat
import React from 'react'; import ReactDOM from 'react-dom'; require("@babel/polyfill"); function init() { // HMR requires that this be a require() let App = require('./components/app').default; const archive = document.getElementById('archive'); ReactDOM.render(<App />, archive || document.getElementById('app'...
client/src/pages/guide.js
otavioarc/freeCodeCamp
import React from 'react'; import Helmet from 'react-helmet'; import Layout from '../components/layouts/GuideLayout'; function Index() { return ( <Layout> <Helmet> <title>Guide | freeCodeCamp.org</title> <meta content='Short, concise guides and how-tos for the busy developer.' ...
src/components/elements/Button.js
apburnes/allpointsburnes
import React from 'react' import styled from 'styled-components' const Comp = ({ children, className, onClick }) => { return ( <div className={className} onClick={onClick}> {children} </div> ) } const Button = styled(Comp)` padding: ${(props) => (props.padding ? props.padding : '10px')}; border:...
src/index.js
GuroKung/react-redux-starter
import _ from 'lodash'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import SearchBar from './components/search_bar'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; const API_KEY = 'AIzaSyC...
docs/app/Examples/views/Comment/Variations/CommentExampleMinimal.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Comment, Form, Header } from 'shengnian-ui-react' const CommentExampleMinimal = () => ( <Comment.Group minimal> <Header as='h3' dividing>Comments</Header> <Comment> <Comment.Avatar as='a' src='/assets/images/avatar/small/matt.jpg' /> <Comment.Content> ...
client/src/lib/i18n.js
Mailtrain-org/mailtrain
'use strict'; import React from 'react'; import * as ri18n from 'react-i18next'; import {I18nextProvider} from 'react-i18next'; import i18n from 'i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; import mailtrainConfig from 'mailtrainConfig'; import moment from 'moment'; import {convertToFake...
client/src/components/InstructorsPage.js
yegor-sytnyk/contoso-express
import React from 'react'; import _ from 'lodash'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import InstructorList from './instructor/InstructorList'; import * as instructorActions from '../actions/instructorActions'; import * as enrollmentActions from '../actions/enrollmentActions'...
app/javascript/mastodon/features/ui/components/column_subheading.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;