path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
javascript/src/views/FolderItemImage.js
unclecheese/silverstripe-kickassets
import React from 'react'; import Config from '../stores/Config'; const FolderItemImage = React.createClass({ propTypes: { type: React.PropTypes.oneOf(['image', 'file', 'folder']), iconURL: React.PropTypes.string, title: React.PropTypes.string, extension: React.PropTypes.string }, getInitialState () { ...
modules/Redirect.js
migolo/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should b...
examples/auth/src/components/Profile.js
lore/lore
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import { connect } from 'lore-hook-connect'; import { withRouter } from 'react-router'; export default connect(function(getState, props) { return { user: getState('user.current'), userPermi...
packages/envision-docs/src/components/Footer/index.js
sitevision/envision
import React from 'react'; import Helmet from 'react-helmet'; import PropTypes from 'prop-types'; import Link from '../Link'; const Footer = ({ menuItems }) => { return ( <> <div className="footer-wrapper"> <footer className="footer"> <a href="https://www.sitevision.se/">© ...
test/helpers.js
rapilabs/react-bootstrap
import React from 'react'; import { cloneElement } from 'react'; export function shouldWarn(about) { console.warn.called.should.be.true; console.warn.calledWithMatch(about).should.be.true; console.warn.reset(); } /** * Helper for rendering and updating props for plain class Components * since `setProps` is de...
src/ui/molecule/InterfaceForm/Wires.js
jkubos/tickator-ide
import React from 'react' import {observable} from 'mobx' import {observer} from 'mobx-react' import styles from './style.less' import {UiState} from '~/src/business/UiState' import {Modals} from '~/src/business/Modals' import {Tools} from '~/src/util/Tools' import {WireDefinition} from '~/src/tickator/definition/Wir...
packages/lore-tutorial/templates/es6/step15/src/components/CreateDialog.js
lore/lore
import React from 'react'; import ReactDOM from 'react-dom'; export default class CreateDialog extends React.Component { componentDidMount() { this.show(); } show() { const node = ReactDOM.findDOMNode(this); $(node).modal('show'); } render () { return ( <div className="modal fade" ta...
src/client/components/SearchBoxWidget/SearchBoxWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' import { defineMessages, intlShape, injectIntl } from 'react-intl' import Geosuggest from 'react-geosuggest' import { AutoSuggestBoxWidget } from '../index' import store from '../../redux/store' import { SearchBoxWidget as appConfig } from '../../config/appCon...
src/components/Navigation.js
zebras-filming-videos/streamr-web
import React from 'react' import ProfilePreviewContainer from './auth/ProfilePreviewContainer' import { NavLink } from 'react-router-dom' export default ({ isSignedIn }) => ( <nav role='main'> <ul> <li> <NavLink exact to='/'>Explore</NavLink> </li> { (isSignedIn) ? ( ...
template/app/views/Home/Handler.js
thomasboyt/earthling
import React from 'react'; import {connect} from 'react-redux'; import {updateText} from '../../actions/ExampleActions'; const Home = React.createClass({ requestUpdateText() { this.props.dispatch(updateText('hello redux')); }, render() { return ( <div> <p>{this.props.text}</p> <bu...
fields/types/color/ColorField.js
giovanniRodighiero/cms
import { SketchPicker } from 'react-color'; import { css } from 'glamor'; import Field from '../Field'; import React from 'react'; import { Button, FormInput, InlineGroup as Group, InlineGroupSection as Section, } from '../../../admin/client/App/elemental'; import transparentSwatch from './transparent-swatch'; impo...
src/components/Footer.js
jonniebigodes/freecodecampApiChallenges
import React from 'react' import '../Assets/styleSheets/base.scss' const Footer = () => ( <footer className="footerstyle"> <div className="footerText"> Made by{' '} <a href="https://www.freecodecamp.com/jonniebigodes" target="_noopener" rel="nofollow"> Jonniebigodes ...
src/components/togglecheckbox/Togglecheckbox.js
Convicted202/PixelShape
import './togglecheckbox.styl'; import React, { Component } from 'react'; import classNames from 'classnames'; // this is needed to reference input from label // so we will increase it in constructor to keep unique let id = 0; class ToggleCheckbox extends Component { constructor (...props) { id++; super(.....
src/index.js
blurbyte/money-fetch
// required for redux-saga generatos import 'regenerator-runtime/runtime'; /* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { persistStore } from 'redux-persist'; import createCompressor from 'redux-persist-transform-compr...
app/components/Button.js
live106/todo-for-react-native
import React from 'react'; import PropTypes from 'prop-types'; import { Text, TouchableHighlight } from 'react-native'; import { themable } from '../themes'; const Button = (props) => { const { style, underlayColor, btnTextStyle, disabledStyle, disabled, children, onPress } = props;...
src/page/todo/index.js
xincyang/webpack-demo
import 'react-hot-loader/patch'; import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './components/App.js' import configureStore from './store/configureStore.js' import { AppContainer } from 'react-hot-loader' let store = configureStore() const renderDOM...
local-cli/templates/HelloWorld/index.android.js
gilesvangruisen/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
imports/ui/components/home/HomeGetStarted/HomeGetStarted.js
pletcher/cltk_frontend
import React from 'react'; import WorksList from '/imports/ui/components/works/WorksList'; class HomeGetStarted extends React.Component { render() { return ( <section id="get-started" className="bg-gray" > <div className="container text-center"> <div className="row"> <h2 className="section-title"...
src/components/Button.js
nitrog7/nl-fluid
import React from 'react'; import Component from './Component'; import Icon from './Icon'; import _ from 'lodash'; export default class Button extends Component { static propTypes() { return { children: React.PropTypes.object, ghost: React.PropTypes.bool, loader: React.PropTypes.string, i...
app/app.js
Luandro-com/repsparta-web-app
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; // TODO constrain eslint import/no-unresolved rule to this block // Load the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!./manifest.json'; // eslint-disable-lin...
client/components/UserStatus/Busy.js
VoiSmart/Rocket.Chat
import React from 'react'; import UserStatus from './UserStatus'; const Busy = (props) => <UserStatus status='busy' {...props} />; export default Busy;
src/svg-icons/hardware/tablet-mac.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTabletMac = (props) => ( <SvgIcon {...props}> <path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1...
frontend/react/pages/IndexPage.js
Dishant15/TechIntrest
import React from 'react'; import {Link} from 'react-router'; import {connect} from 'react-redux'; import {loadPinList} from '../actions/pinActions'; import BlockGrid from '../components/BlockGrid'; @connect((store) => { return { fetching: store.pinList.fetching, fetched : store.pinList.fetched, pins : store.p...
public/javascripts/bower/react-tray/lib/components/Tray.js
HotChalk/canvas-lms
import React from 'react'; import ReactDOM from 'react-dom'; import TrayPortal from './TrayPortal'; import { a11yFunction } from '../helpers/customPropTypes'; const renderSubtreeIntoContainer = ReactDOM.unstable_renderSubtreeIntoContainer; export default React.createClass({ displayName: 'Tray', propTypes: { i...
examples/styling/radium/src/components/Profile/index.js
carteb/carte-blanche
import React, { Component } from 'react'; const styles = {}; class Profile extends Component { static propTypes = { avatarUrl: React.PropTypes.string.isRequired, firstName: React.PropTypes.string.isRequired, lastName: React.PropTypes.string, username: React.PropTypes.string.isRequired, bio: Reac...
src/Label.js
JimiHFord/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
client/src/Requests/RequestsPage.js
clembou/github-requests
import React from 'react'; import _ from 'lodash'; import { Grid, PageHeader, ListGroup, Panel } from 'react-bootstrap'; import { Route, Switch, Link } from 'react-router-dom'; import Requests from './Requests'; const findProject = (projects, params) => { return _.find(projects, p => p.organisation === params.organi...
src/interface/icons/Mastery.js
sMteX/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" className="icon" {...props}> <path d="M46.934,26.287c-1.107,0-2.004,0.885-2.004,1.976c0,0.31,0.079,0.599,0.208,0.861l-6.74,4.691 l-0.387-8.422c1.064-0.048,1.914-0.906,1.914-1.967c0-1.091...
examples/async/index.js
arusakov/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
demo/components/ButtonToolbar.js
redux-autoform/redux-autoform
import React from 'react'; import { bool, array } from 'prop-types'; export default class ButtonToolbar extends React.Component { static propTypes = { pristine: bool.isRequired, submitting: bool.isRequired, errors: array.isRequired }; render() { const { pristine, submitting, errors } = this.props; ...
demo/index.js
thoqbk/recharts
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory } from 'react-router'; import App from './container/App'; ReactDOM.render(( <Router history={browserHistory}> <Route path="/" component={App} /> </Router> ), document.getElementById('root'));
fields/types/text/TextFilter.js
brianjd/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormSelect, SegmentedControl, } from '../../../admin/client/App/elemental'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; const MODE_OPTIONS = [ { la...
src/svg-icons/maps/local-pizza.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPizza = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.43 2 5.23 3.54 3.01 6L12 22l8.99-16C18.78 3.55 15.57 2 12 2zM7 7c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm5 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/popover/index.js
bhathiya/test
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
src/svg-icons/device/bluetooth-searching.js
mmrtnz/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...
src/client/assets/js/nodes/outputs/export/node.js
me-box/platform-sdk
import React from 'react'; //import composeNode from 'utils/composeNode'; import Textfield from 'components/form/Textfield'; import Select from 'components/form/Select'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import { formatSchema } from 'utils/utils'; import {configNode} from 'utils/...
frontend/modules/recipe_form/components/IngredientBox.js
rustymyers/OpenEats
import React from 'react' import { injectIntl, defineMessages, } from 'react-intl'; import { TextArea } from '../../common/components/FormComponents' import IngredientGroups from '../../recipe/components/IngredientGroups' import TabbedView from './TabbedView' class IngredientBox extends React.Component { constr...
src/components/Gdzc/StatByYear.js
nagucc/jkef-web-react
'use strict'; import React from 'react'; import accounting from 'accounting'; import {Bar} from 'react-chartjs' import * as actions from '../../redux/actions/gdzc'; class StatByYear extends React.Component { componentWillReceiveProps(nextProps) { // 历年购入资产金额表 let ctx = document.getElementById("yearAmountStat")...
src/app/components/App.js
technics/isomorphic-js
'use strict'; import React from 'react'; /** * The root component of the application. */ class App extends React.Component { constructor(props) { super(props); this.state = {}; } /** * @inheritdoc * @return {boolean} Whether or not the component should update */ shouldComponentUpdate() { ...
src/svg-icons/image/view-comfy.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageViewComfy = (props) => ( <SvgIcon {...props}> <path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-...
src/containers/login/require_auth.js
wunderg/react-redux-express-mongo-starter
import React, { Component } from 'react'; import { connect } from 'react-redux'; export default function(ComponentToCompose) { class Authentication extends Component { static contextTypes = { router: React.PropTypes.object } componentWillMount() { if (!this.props.authenticated) { th...
frontend/js/components/ecosystems/SurveyCreatorOffices.js
Code4HR/okcandidate-platform
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Card from './../atoms/Card'; class SurveyCreatorOffices extends Component { constructor(props) { super(props); } render() { return ( <Card> <pre>Survey Creator Offices</pre> ...
examples/files/react/ternaryEvaluation.js
dabbott/react-express
import React from 'react' import { render } from 'react-dom' function Card({ title, subtitle }) { return ( <div style={styles.card}> <h1 style={styles.title}>{title}</h1> {subtitle ? ( <h2 style={styles.subtitle}>{subtitle}</h2> ) : ( <h3 style={styles.empty}>No subtitle</h3> ...
src/js/index.js
mmagr/gui
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, hashHistory } from 'react-router'; import routes from './routes'; import Gatekeeper from './containers/login/Gatekeeper.js'; import AltContainer from 'alt-container'; import LoginStore from './stores/LoginStore'; // window.$ = require('jq...
client/board.js
carpeliam/kriegspieljs
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import Square from './square'; const ascending = [0, 1, 2, 3, 4, 5, 6, 7]; const descending = [7, 6, 5, 4, 3, 2, 1, 0]; ...
components/menu/index.js
react-material-design/react-material-design
import '@material/menu/dist/mdc.menu.css'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { MDCSimpleMenu } from '@material/menu'; // TODO: Dynamically set selectMenu /** Menu */ class Menu extends Component { static propTypes = { c...
enrolment-ui/src/index.js
overture-stack/enrolment
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { BrowserRouter, Switch } from 'react-router-dom'; import 'bootstrap/dist/css/bootstrap.min.css'; import reportWebVitals from './reportWebVitals'; import { unregister } from './registerServiceWorker'; import ...
src/js/components/soon/index.js
Arlefreak/web_client.afk
import React from 'react'; import PropTypes from 'prop-types'; const Soon = () => ( <div> <article className="glitch"> <span>ALWAYS Ɐ WIP</span> </article> </div> ); export default Soon;
src/index.js
njt1982/google-sites-exporter
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import {Main} from './app/main'; ReactDOM.render( <Main/>, document.getElementById('root') );
website/src/components/PageInput.js
jwngr/sdow
import get from 'lodash/get'; import filter from 'lodash/filter'; import forEach from 'lodash/forEach'; import debounce from 'lodash/debounce'; import axios from 'axios'; import React from 'react'; import Autosuggest from 'react-autosuggest'; import {getRandomPageTitle} from '../utils'; import PageInputSuggestion fro...
src/svg-icons/action/view-module.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewModule = (props) => ( <SvgIcon {...props}> <path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/> </SvgIcon> ); ActionViewModule = pure(ActionViewModule)...
components/label/Detail/Detail.js
Mudano/m-dash-ui
import React from 'react'; import PropTypes from 'prop-types'; import { css } from 'glamor'; import Label from '..'; const detailStyle = css({ fontSize: 13, letterSpacing: 1.6 }); export default class Detail extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, ...
Component/Message/Message.js
outman1992/Taoertao
/** * Created by 58484 on 2016/9/9. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity } from 'react-native'; var Login = require('../Mine/Login'); va...
packages/showcase/app.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, ...
5.ParentChildComunication/src/WelCome.js
hiren2728/ReactDemo
import React from 'react'; export default class WelCome extends React.Component{ constructor(props) { super(props); this.state = { userInput : "" }; } render(){ return <div> <button onClick={this.props.name}>Click Me</button><br/> En...
src/containers/utils/DevTools.js
hannupekka/splitthebill
// @flow import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a m...
examples/todomvc/index.js
paulkogel/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './containers/App' import configureStore from './store/configureStore' import 'todomvc-app-css/index.css' const store = configureStore() render( <Provider store={store}> <A...
assets/jqwidgets/demos/react/app/datatable/showorhidecolumn/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js'; class App extends React.Component { componentDidMount() { this.refs.myListBox.on('checkChange', (ev...
client/src/javascript/components/modals/ModalFormSectionHeader.js
stephdewit/flood
import React from 'react'; class ModalFormSectionHeader extends React.PureComponent { render() { return <h2 className="h4">{this.props.children}</h2>; } } export default ModalFormSectionHeader;
components/form_field.js
runesam/react-redux-next
import React from 'react'; const FormFeild = ({ label, element, input, placeholder, type, meta: { touched, error, warning, invalid } }) => { const CustomTag = element; return ( <div> <div className={`form-group ${touched && invalid ? 'has-danger' : ''}`}> ...
src/Editor/ContentHtml.js
skystebnicki/chamel
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import ThemeService from '../styles/ChamelThemeService'; import RichText from '../Input/RichText'; import EditorToolbar from './EditorToolbar'; /** * Contains both the toolbar and an instance of RichText co...
examples/multiple.js
eternalsky/select
/* eslint no-console: 0 */ import React from 'react'; import Select, { Option } from 'rc-select'; import 'rc-select/assets/index.less'; import ReactDOM from 'react-dom'; const children = []; for (let i = 10; i < 36; i++) { children.push( <Option key={i.toString(36) + i} disabled={i === 10} title={`中文${i}`}> ...
src/Accordion.js
xsistens/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
docs/app/Examples/modules/Popup/Usage/PopupExampleFocus.js
koenvg/Semantic-UI-React
import React from 'react' import { Input, Popup } from 'semantic-ui-react' const PopupExampleFocus = () => ( <Popup trigger={<Input icon='search' placeholder='Search...' />} header='Movie Search' content='You may search by genre, header, year and actors' on='focus' /> ) export default PopupExample...
entry.react.js
raroman/raroman.github.io
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, applyRouterMiddleware, browserHistory } from 'react-router'; import { useScroll } from 'react-router-scroll'; import Index from './index.react.js'; import NoMatch from './no-match.react.js'; import 'tether'; import 'boo...
src/components/button.js
LINKIWI/react-elemental
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { compose, withForwardedRef, withToggleState } from '@linkiwi/hoc'; import Text from 'components/text'; import { colors } from 'styles/color'; import { transitionStyle } from 'styles/transition'; import { KEY_CODE_ENTER } from 'util/co...
src/router/router.js
moxun33/react-mobx-antd-boilerplate
import React from 'react'; import AsyncComponent from 'components/AsyncComponent'; import { Route, Switch } from 'react-router-dom'; const Home = AsyncComponent(() => import('pages/Main/Home')); const Antd = AsyncComponent(() => import('pages/Main/Antd')); const User = AsyncComponent(() => import('pages/Main/User')); ...
tosort/2016/jspm/lib_react_101/index.js
Offirmo/html_tests
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin' // http://www.material-ui.com/ // https://design.google.com/icons/ import Layout from './components/layout/index' import '../../assets/fonts/MaterialIcons/material-icons.css!' import '../../assets/f...
frontend/src/components/frame/components/DrawerContent/components/ListItem.js
jf248/scrape-the-plate
import React from 'react'; import PropTypes from 'prop-types'; import * as PowerPlug from 'lib/react-powerplug'; import { RoutePush } from 'controllers/route-push'; import ListItemPres from './ListItemPres'; ListItem.propTypes = { to: PropTypes.string.isRequired, }; function ListItem(props) { const { to, ...res...
examples/with-heroku/src/server.js
jaredpalmer/razzle
import App from './App'; import React from 'react'; import express from 'express'; import { renderToString } from 'react-dom/server'; const assets = require(process.env.RAZZLE_ASSETS_MANIFEST); const cssLinksFromAssets = (assets, entrypoint) => { return assets[entrypoint] ? assets[entrypoint].css ? assets[entrypo...
src/components/sidebar-menu/index.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program 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, either version 3 of the License, o...
docs/src/app/components/pages/components/Stepper/VerticalLinearStepper.js
xmityaz/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Vertical steppers are designed for narrow screen sizes. They are ideal for mobile. * * To use t...
src/routes/Admin/Position/ListPosition/Position.component.js
kritikasoni/smsss-react
import React from 'react'; import classes from './Position.component.scss'; export const Position = (props) => ( <div> <div className={classes.topic12}> <div className="row"> <div className="col-md-12"> <div className="col-md-6 text-right">{props.name}</div> </div> </div>...
index.android.js
Notificare/notificare-push-lib-react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, FlatList, StyleSheet, Text, Linking, NativeModules, DeviceEventEmitter, TouchableHighlight, PermissionsAndroid, View } from 're...
src/util/file-browser.js
ordinarygithubuser/IDE
import React from 'react'; import { equalsPath } from '../util/common'; const isSelected = (selected, file) => { return selected && equalsPath(selected, file); }; const DirectoryItem = props => { const { file, select, selected, toggle, setContext } = props; const status = file.open ? 'caret-down' : 'caret...
app/assets/javascripts/components/forms/Checkbox.js
Codeminer42/cm42-central
import React from 'react'; const Checkbox = ({ name, onChange, checked, disabled, children, label }) => <label> <input type='checkbox' name={name} checked={checked} disabled={disabled} onChange={onChange} /> { label } { children } </label> export default Checkbox;
src/index.js
ServerChef/serverchef-ui
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import { BrowserRouter as Router } from 'react-router-dom'; ReactDOM.render( <Router> <App /> </Router>, document.getElementById('root') );
src/routes/User/childRoutes.js
Peturman/resume-app
import React from 'react' import { Route } from 'react-router' export default [ <Route path='login' component={require('./view/login').default} />, <Route path='register' component={require('./view/register').default} /> ]
src/components/ControllerUnit.js
wangjinqing123/gallery-by-react
import React from 'react'; export default class ControllerUnit extends React.Component{ constructor(props){ super(props); this.handleClick = this.handleClick.bind(this); this.state = { } } handleClick(e){ if(this.props.arrange.isCenter){ this.props.inverse(); }else{ this.pro...
app/javascript/mastodon/features/compose/components/search_results.js
narabo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/status_container'; import Link from 're...
app/javascript/mastodon/components/loading_indicator.js
pso2club/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
src/slides/007-es7.js
brudil/slides-es6andbeyond
import React from 'react'; import Radium from 'radium'; // import {bindShowHelper} from '../utils'; @Radium export default class TitleSlide extends React.Component { static actionCount = 0; static propTypes = { actionIndex: React.PropTypes.number.isRequired, style: React.PropTypes.object.isRequired } ...
apps/search/bible/ui/src/components/Dropdown.js
lucifurtun/myquotes
import React from 'react' import Select from 'react-select' import { connect } from 'react-redux' import { formChange } from '../redux/filters' import { isObject } from 'lodash' const DropDown = ({ name, options, placeholder, value, dispatch }) => { let preparedValue = null if (isObject(value)) { pre...
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js
berserkertdl/actor-platform
import React from 'react'; import classNames from 'classnames'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import AvatarItem from 'components/common/AvatarItem.react'; class RecentSectionItem extends React.Component { static propTypes = { di...
src/app/Routes.js
imprevo/modular-react-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Route, Switch } from 'react-router-dom'; import PageNotFound from './pages/NotFound'; import asyncComponent from '../asyncComponent'; const Preloader = () => (<span>...</span>); class Routes extends Component { static propTypes...
P/lixil/src/components/Home/AboutSection.js
imuntil/React
import React from 'react' import HomeSection from './HomeSection' import {Row, Col} from 'antd' import './AboutSection.css' function AboutSection() { const title = <img src={require('../../assets/product/aboutUs.png')} alt=""/> const body = ( <div className="about-section"> <Row> <Col xs={24}> ...
example/app.js
wayofthefuture/react-input-moment
require('../src/less/base.less'); require('./app.less'); import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import {InputMoment, BigInputMoment, DatePicker, DatePickerRange, TimePicker} from '../src/index'; class App extends React.Component { constructor(props) { super(pro...
example/examples/PolylineCreator.js
jrichardlai/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
client/src/app/App.js
flyrightsister/boxcharter
/* * Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved. * * This file is part of BoxCharter. * * BoxCharter 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, either version 3 of the License, ...
client/app/components/Toggle/index.js
KamillaKhabibrakhmanova/postcardsforchange-api
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
src/parser/warrior/arms/modules/talents/Skullsplitter.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/Sta...
packages/forms/src/rhf/fields/Input/RHFInput.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import { useFormContext } from 'react-hook-form'; import get from 'lodash/get'; import Input from '../../../widgets/fields/Input'; function RHFInput(props) { const { rules = {}, ...rest } = props; const { errors, register } = useFormContext(); const er...
src/layouts/CoreLayout/CoreLayout.js
MingYinLv/blog-admin
import React from 'react'; import './CoreLayout.scss'; import '../../styles/core.scss'; export const CoreLayout = ({ children }) => ( <div style={{ height: '100%' }}> {children} </div> ); CoreLayout.propTypes = { children: React.PropTypes.element.isRequired, }; export default CoreLayout;
src/App/components/Star.react.js
Rezmodeus/Multiplikation
import React from 'react'; import {Glyphicon} from 'react-bootstrap'; export default React.createClass({ render() { const cls = this.props.filled ? 'star filled' : 'star'; return ( <span className={cls}> {this.props.filled ? <Glyphicon glyph="star"/> : <Glyphicon glyph="star-empty"/>} </span> ) } })...
index.js
ruanyl/g26client
// import css from './static/css/style.css'; import thunkMiddleware from 'redux-thunk'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; import {applyMiddleware, createStore, compose} from 'redux'; import {Provider} from 'react-redux'; import reducers from './reducers/r...
src/components/topic/snapshots/foci/builder/nyttheme/NytThemeSummary.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { FormattedMessage, injectIntl } from 'react-intl'; const localMessages = { intro: { id: 'focus.create.confirm.nytTheme.intro', defaultMessage: 'We will create 5 subtopics:' }, }; const NytThemeSummary = (pr...
src/components/Html.js
bharathbhsp/refactored-funicular
/** * 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-...
src/shared/components/form/formCheckBox/formCheckBox.js
tal87/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './formCheckBox.css'; const FormCheckBox = ({ checkBox, name, value, onChange, label }) => ( <div style={checkBox}> <input type="checkbox" name={name} id={value} value={value} onChange={onChange} ...
src/components/App.js
PedroAlvCha/ud918-readable
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Route, withRouter } from 'react-router-dom'; import NavBarInstance from './NavigationHeader.js'; import ListPostsComponent from './PostList.js'; class App extends Component { render() { const categoryForMe = this.props....
examples/webview_example/src/RootNavigator.js
BranchMetrics/react-native-branch
import React from 'react'; import { YellowBox } from 'react-native'; // disable a warning generated by react-navigation YellowBox.ignoreWarnings([ 'Warning: componentWillReceiveProps', ]); import { createAppContainer, createStackNavigator } from 'react-navigation'; import Article from './Article'; import ArticleLi...