path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Textfield.ios.js
Dennitz/Timetable
// @flow import React from 'react'; import { LayoutAnimation, Text, TextInput, TouchableOpacity, View, } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; import defaultLayoutAnimation from '../lib/defaultLayoutAnimation'; import styles from './styles/Textfield.styles.ios'; impo...
react-flux-mui/js/material-ui/src/svg-icons/maps/directions-boat.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBoat = (props) => ( <SvgIcon {...props}> <path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99...
src/components/icons/CalendarAltRegular.js
lmammino/loige.co
import React from 'react' const CalendarAltRegular = props => ( <svg aria-hidden="true" data-prefix="far" data-icon="calendar-alt" className="svg-inline--fa fa-calendar-alt fa-w-14" viewBox="0 0 448 512" width="1em" height="1em" {...props} > <path fill="currentColor" ...
src/components/Grid/Grid.js
flashrecruit/belay
import React from 'react'; class Grid extends React.Component { render() { return ( <div className="grid"> {this.props.children} </div> ); } } export default Grid;
examples/huge-apps/routes/Grades/components/Grades.js
dashed/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
src/modules/FreeBillManager/BillCheck.js
hong1012/FreePay
/** * Created by Administrator on 2016/12/26. */ //ES6 import React from 'react'; import {Button, Select, Table} from 'antd' class View extends React.Component { constructor(props) { super(props); this.closeClick = this.closeClick.bind(this); this.printClick = this.printClick.bind(this...
app/component/quiz/reply/ReplyRadio.js
vagnerpraia/ipeasurvey
import React, { Component } from 'react'; import { ToastAndroid, View } from 'react-native'; import { List, ListItem, Radio, Text } from 'native-base'; import { styles } from './../../../Styles'; const Dimensions = require('Dimensions'); const window = Dimensions.get('window'); export default class ReplyRadio extend...
docs/app/Examples/elements/Segment/Variations/SegmentExampleSizes.js
vageeshb/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleSizes = () => { const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive'] return ( <div> {sizes.map(size => ( <Segment key={size} size={size}> It's a {size} segment </Segm...
src/index.js
xando/commitcoffee
import React from 'react'; import ReactDOM from "react-dom"; import { ResponsiveContext, Grommet } from 'grommet'; import MobileView from './mobile'; import DesktopView from './desktop'; import 'normalize.css'; const theme = { global: { font: { family: 'Inconsolata', size: '14px...
u-tang/client/modules/templates/components/.stories/layout.js
kurapikats/uhackp2p
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import Layout from '../layout.jsx'; storiesOf('templates.Layout', module) .add('default view', () => { return ( <Layout /> ); })
lib/components/MapPolygon.js
tt-sport-mobile/react-native-maps
import PropTypes from 'prop-types'; import React from 'react'; import { ViewPropTypes, } from 'react-native'; import decorateMapComponent, { USES_DEFAULT_IMPLEMENTATION, SUPPORTED, } from './decorateMapComponent'; const propTypes = { ...ViewPropTypes, /** * An array of coordinates to describe the polygon...
src/index.js
LinkedList/react-hot-boilerplate
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
stories/RangeInput.stories.js
algolia/react-instantsearch
import React from 'react'; import { storiesOf } from '@storybook/react'; import { object, number } from '@storybook/addon-knobs'; import { Panel, RangeInput, SearchBox } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('RangeInput', module); stories .add('default', ()...
stories/index.js
tonysyu/scrappyr-app
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import Button from './Button'; import Welcome from './Welcome'; import Scrap from '../scrappyr/static/js/scraps/components/scrap.js' import '../scrappyr/static/sass/main.scss' storiesOf('Welcome', module) .add('to Storybook',...
components/Map/Markers/Marker.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import css from './Marker.css'; const Marker = ({ className, scrollClassName, children, variant }) => ( <div className={ cx(css.root, css[variant], className) }> <div className={ cx(css.scrollContainer, scrollClassName) ...
src/components/Feed/List.js
CoolPodCast/playerDesktop
import React from 'react'; class FeedList extends React.Component { constructor(props) { super(props); } render() { return ( <div></div> ); } } export default FeedList;
webdebugger/src/components/snapshots-container.js
andywer/postcss-debug
import React from 'react' import cx from 'classnames' import Snapshot from './snapshot' const { Component, PropTypes } = React // rollup doesn't resolve that correctly when importing like this const propTypes = { snapshots: PropTypes.array, openSnapshots: PropTypes.object, onSnapshotToggle: PropTypes.func.is...
src/components/Icons/IconPencil.js
chrisxclash/play-midnight
import React from 'react'; import SvgIcon from './SvgIcon'; const IconPencil = props => ( <SvgIcon viewBox="0 0 26 26" {...props}> <path d="M 20.09375 0.25 C 19.5 0.246094 18.917969 0.457031 18.46875 0.90625 L 17.46875 1.9375 L 24.0625 8.5625 L 25.0625 7.53125 C 25.964844 6.628906 25.972656 5.164063 25.0625 4.2...
examples/05 Customize/Handles and Previews/Container.js
tylercollier/react-dnd-demo
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import BoxWithImage from './BoxWithImage'; import BoxWithHandle from './BoxWithHandle'; @DragDropContext(HTML5Backend) export default class Container extends Component { render()...
view/component/course5.js
leechuanjun/TLReactNativeProject
/** * Course 5 * React Native控件之ProgressViewIOS进度条讲解 */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, ProgressViewIOS } from 'react-native'; import Util from '../utils'; class ProgressViewExample extends Component{ constructor() { super() this.stat...
src/components/Cell.js
CharmedSatyr/game_of_life
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import * as c from '../constants/constants'; export default class Cell extends Component { toggle = () => { this.props.toggle(this.props.index); }; render() { return ( <div className={`cell ${this.props.alive ? 'a...
frontend/src/MovieFile/Editor/MovieFileEditorTableContent.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import IconButton from 'Components/Link/IconButton'; import Table from 'Components/Table/Table'; import TableBody from 'Components/Table/TableBody'; import { icons } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; im...
packages/react/src/components/molecules/LinkDropdown/index.js
massgov/mayflower
/** * LinkDropdown module. * @module @massds/mayflower-react/LinkDropdown * @requires module:@massds/mayflower-assets/scss/01-atoms/button-with-icon * @requires module:@massds/mayflower-assets/scss/01-atoms/button-search * @requires module:@massds/mayflower-assets/scss/01-atoms/decorative-link * @requires module:...
components/Bio.js
denovo/pete-richardson.com
import React from 'react' import { config } from 'config' import { rhythm } from 'utils/typography' import { prefixLink } from 'gatsby-helpers' class Bio extends React.Component { render () { return ( <p style={{ marginBottom: rhythm(2.5), }} > <img src={pr...
frontend/components/rss-provider/form.js
apostolidhs/wiregoose
import React from 'react'; import Form from 'react-bootstrap/lib/Form'; import * as FormFactory from '../form/factory.js'; export default class FormGenerator extends React.Component { static propTypes = FormFactory.getFormPropTypes() static defaultProps = FormFactory.getFormDefaultPropTypes() state = { re...
app/javascript/mastodon/features/list_editor/components/search.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists'; import classNames from 'classnames'; const messages ...
client/src/javascript/components/icons/DetailNotAvailableIcon.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class DetailNotAvailableIcon extends BaseIcon { render() { return ( <svg className={`icon icon--clock ${this.props.className}`} viewBox={this.getViewBox()}> <rect y="26.63" width="60" height="6.75" /> </svg> ); ...
client/CommentService.js
lamatyus/react-blog
import React, { Component } from 'react'; import { Link } from 'react-router'; import Stores from './stores/comments.js'; import Actions from './actions/comments.js'; class CommentForm extends Component { submitForm(event) { event.preventDefault(); const target = event.currentTarget; let comments = S...
src/components/views-menu/ViewsMenu.js
kallaspriit/react-base
import React from 'react'; import { Link } from 'react-router-dom'; import changeCase from 'change-case'; import views from '../../views'; const hiddenViews = ['not-found']; export default () => ( <ul className="views-menu"> {Object.keys(views) .filter(viewName => hiddenViews.indexOf(viewName) === -1) .sort(...
jekyll-strapi-tutorial/api/plugins/users-permissions/admin/src/components/PopUpForm/index.js
strapi/strapi-examples
/** * * PopUpForm * */ import React from 'react'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import { capitalize, get, findIndex, isArray, isEmpty, isObject, includes, map, startsW...
pages/events.js
sarahxy/irc
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { config } from 'config'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import Scroll from 'react-scroll'; const Element = Scroll.Element; const scroller = Scroll.scroller; export default class Even...
src/components/common/errorMessage/ErrorMessage.js
TulevaEE/onboarding-client
import React from 'react'; import { PropTypes as Types } from 'prop-types'; import { FormattedMessage } from 'react-intl'; import './ErrorMessage.scss'; const noop = () => null; const ErrorMessage = ({ errors, onCancel, overlayed }) => { const content = ( <div className="card text-center p-4 tv-modal__content"...
app/components/CircledImage/index.js
rapicastillo/beautifulrising-client
/** * * CircledImage * */ import React from 'react'; import styled from 'styled-components'; import Isvg from 'react-inlinesvg'; import { injectIntl } from 'react-intl'; const CircledContainer = styled.div` width: 160px; padding: 20px 0; height: 160px; vertical-align: middle; position: relative; text-align...
client/src/components/admin/dashboard.js
ronniehedrick/scapeshift
import React, { Component } from 'react'; import { Link } from 'react-router'; class AdminDashboard extends Component { render() { return ( <div> Admin navigation goes here. </div> ); } } export default AdminDashboard;
src/app.js
moxiegirl/kitematic
require.main.paths.splice(0, 0, process.env.NODE_PATH); import electron from 'electron'; const remote = electron.remote; const Menu = remote.Menu; // ipcRenderer is used as we're in the process const ipcRenderer = electron.ipcRenderer; import React from 'react'; import metrics from './utils/MetricsUtil'; import templ...
recorder/src/app/view/app.js
zhe0wang/SeleniumRP
import React from 'react'; import {RouteHandler} from 'react-router'; import './app.scss'; import Header from './share/header.js'; import Footer from './share/footer.js'; const App = ({appState, children}) => ( <div> <Header/> {children} <Footer/> </div> ); export default App;
example/comments.js
marmelab/admin-on-rest
import React from 'react'; import { AutocompleteInput, Create, DateField, DateInput, DisabledInput, Edit, EditButton, Filter, List, LongTextInput, ReferenceField, ReferenceInput, Responsive, SelectInput, SimpleList, SimpleForm, TextField, TextInput...
packages/bonde-admin/src/components/data-grid/components/checkbox-col.js
ourcities/rebu-client
import React from 'react' import { ColHOC } from '../hocs' const Checkbox = ({ onChange, checked, ...colProps }) => ( <div {...colProps}> <input type='checkbox' checked={checked} onChange={onChange} /> </div> ) export default ColHOC(Checkbox)
Website/src/components/Header/MobileNavBar.js
ameyjain/WallE-
import React, { Component } from 'react'; import { connect } from 'react-redux' export default class MobileNavBar extends Component { render() { return ( <div> <header id="header" className="alt"> <h1><a href="/">Solid State</a></h1> <nav> <a href="#menu">Menu</a> ...
src/ReduxBlockUi.js
Availity/react-block-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import BlockUi from './BlockUi'; import { register, unregister } from './reduxMiddleware'; class ReduxBlockUi extends Component { constructor(props) { super(props); this.middleware = this.middleware.bind(this); this.blocking ...
src/components/Home/HomeScreen.js
RahulDesai92/PHR
/** * Created by Rahuld on 2017/08/26 */ import React, { Component } from 'react'; import { Text, View, StyleSheet, ActivityIndicator, Image, Alert, ScrollView, KeyboardAvoidingView , TouchableOpacity } from 'react-native'; import { Na...
app/javascript/mastodon/containers/media_gallery_container.js
foozmeat/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import MediaGallery from '../components/media_gallery'; import { fromJS } from 'immutable'; const { localeData, messages } = getLocale(); addLocaleData(locale...
submissions/josepot/src/index.js
staltz/flux-challenge
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.getElementById('root') );
app/components/common/header/index.js
liujia14/mayi
/* name: header desc: 头部导航 author: 俞雅菲 version:v1.0 */ import React from 'react'; import ReactDOM from 'react-dom'; import './../commonCss/index.less'; import ajax from './../ajax/ajax.js'; import './index.less'; import { message } from 'antd'; export default class Header extends React.Component { construct...
src/components/chrome/Chrome.js
Scratch-it/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import { ColorWrap, Saturation, Hue, Alpha, Checkboard } from '../common' import ChromeFields from './ChromeFields' import ChromePointer from './ChromePointer' import ChromePointerCircle from './ChromePointerCircle' import shallowCompa...
src/App/index.js
bolshchikov-public/wazzapp
// @ts-check import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './App.css'; import * as firebase from 'firebase/app'; import ChatShell from '../ChatShell'; import UserManagement from '../UserManagement'; import FilteredChatList from '../FilteredChatList'; class App extends Component ...
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js
salvadorpla/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { changeComposeSensitivity } from 'mastodon/actions/compose'; import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'; const messages = defineMessages({ ...
src/components/pages/about/testimonials.js
adrienhobbs/redux-glow
import React from 'react'; import testimonials from 'constants/data/testimonials'; import TestimonialSlider from 'react-slick'; import styles from './testimonials.css'; const Testimonials = React.createClass({ getInitialState () { return null; }, getTestimonials () { return testimonials.toJS().map((testi...
src/main.js
stranbury/react-miuus
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import makeRoutes from './routes' import Root from './containers/Root' import configure...
src/TaskForm.js
ml7757/To-Do-React
import React from 'react'; import jQuery from 'jquery'; class TaskForm extends React.Component{ constructor(){ super(); this.state = { success: [], errors: [] }; } saveTask(event){ // we prevent the form from doing the default event.preventDefault(); // we need to rename our...
samples/06.recomposing-ui/c.smart-display/src/SpeechInterims.js
billba/botchat
import './SpeechInterims.css'; import { hooks } from 'botframework-webchat'; import React from 'react'; const { useDictateInterims, useSendBoxSpeechInterimsVisible } = hooks; const CustomDictationInterims = () => { const [dictateInterims] = useDictateInterims(); const [speechInterimsVisible] = useSendBoxSpeechIn...
examples/src/components/States.js
f-camacho/react-select
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from 'react-select'; const STATES = require('../data/states'); var StatesField = createClass({ displayName: 'StatesField', propTypes: { label: PropTypes.string, searchable: PropTypes.bool, ...
lib/RadioButton/RadioButton.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import uniqueId from 'lodash/uniqueId'; import { FormattedMessage } from 'react-intl'; import Label from '../Label'; import Asterisk from '../Label/components/Asterisk'; import formField from '../FormField'; import sepa...
src/index.js
dadosto/air-quality
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension' import thunk from 'redux-thunk'; import App from './App'; import { Provider } from 'react-redux' import RootReducer from './reducers'; import ...
src/Table.js
albertojacini/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, getDefaultProps() { ...
docs/src/app/components/pages/components/IconMenu/ExampleSimple.js
ngbrown/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; const IconMenuExampleSimple = () => ( <div> <IconMenu iconB...
ui/web/components/chat.js
Sebi55/whatkindofdeveloperareyou
import React from 'react' import ReactDOM from 'react-dom' import io from 'socket.io-client' import MessageList from './message-list' import Composer from './composer' import ChatSession from './chat-session' import Dropzone from 'react-dropzone' // FIXME: // - Update open to use dropzone // - dropzone hover effect //...
src/components/ToDo/ToDo.js
F-Ruxton/taskata
import React from 'react'; import PropTypes from 'prop-types'; import './ToDo.css'; import TagsBar from '../TagsBar/TagsBar'; import Button from '../Button/Button'; import moment from 'moment'; const ToDo = ({todo, remove, toggleComplete, id, getTagColor}) => ( <div className='todo'> <div className='todo-metadat...
src/stories/components/navbar-fixed-top-sample.js
kemuridama/rectangle
import React from 'react'; import Navbar from '../../components/navbar'; export default class NavbarFixedTopSample extends React.Component { render() { const { onClick } = this.props; const menuList = [ { label: 'Home', onClick: onClick.bind(this), position: 'left' }, ...
src/autocomplete/AutoCompleteView.js
saketkumar95/zulip-mobile
/* @flow */ import React from 'react'; import { View } from 'react-native'; import { MatchResult } from '../types'; import getAutocompletedText from './getAutocompletedText'; import EmojiAutocomplete from './EmojiAutocomplete'; import StreamAutocomplete from './StreamAutocomplete'; import PeopleAutocomplete from './Pe...
assets/search-view/components/TableCell.js
janta-devs/nyumbani
import React, { Component } from 'react'; import { render } from 'react-dom'; import { Link, Router } from 'react-router'; class TableCell extends Component{ render() { const styleIEButton = { lineHeight: '10px', padding: '1px 1px 1px 1px', textTransform: 'unset', }; const...
src/routes/content/link/detail/index.js
muidea/magicSite
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'dva/router' import { Button } from 'antd' import { connect } from 'dva' import styles from './index.less' import { EditableTagGroup } from '../../../../components' const Detail = ({ linkDetail }) => { const { name, url, logo, descript...
src/svg-icons/maps/tram.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTram = (props) => ( <SvgIcon {...props}> <path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h...
packages/material-ui-icons/src/BatteryCharging50.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z" /><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v8.17h2.53L1...
app/Posts/Posts.js
GitBlogger/GitBlogger
import React, { Component } from 'react'; export default class Posts extends Component { render() { return <div>Hellos!!?</div>; } }
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js
ConnectedHomes/create-react-web-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import tiniestCat from './assets/tiniest-cat.jpg'; export default () => ( <img id="feature-image-inclusion...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
migolo/react-router
/*globals COURSES:true */ import React from 'react' class Announcement extends React.Component { render() { let { courseId, announcementId } = this.props.params let { title, body } = COURSES[courseId].announcements[announcementId] return ( <div> <h4>{title}</h4> <p>{body}</p> ...
games/jab/pre-game2/src/scripts/index.js
jabrena/ReactLab
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import helloReducer from './reducers' import App from './components/App' let store = createStore(helloReducer) render( <Provider store={store}> <App />...
front/app/js/components/controls/common/Atoms.js
nudoru/React-Starter-3
import React from 'react'; import styled, {css} from 'react-emotion'; import {color, fontSize, space, width} from 'styled-system'; import {colorList, colors, metrics, modularScale} from "../../../theme/Theme"; // import { withBootStrap, createClassNameFromProps, styleComponentPropTypes } from '../shared/BootStrapHOC'; ...
src/index.js
skeskinen/redux-project-template
/* @flow */ require('./assets/stylesheets/style.styl'); require('es6-promise').polyfill(); import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './stores/store'; import { ReduxRouter } from 'redux-router'; import React from 'react'; const store = configureStore(); re...
src/routes/Sight/components/Sight.js
gabrielmf/SIR-EDU-2.0
import React from 'react' import Slider from 'components/Slider' import TinyMCE from 'react-tinymce' import Paper from 'material-ui/Paper' import { browserHistory } from 'react-router' import { TextField, DatePicker, RaisedButton, FlatButton, MenuItem, Menu, Popover } from 'material-ui'; import {Toolbar, ToolbarGroup, ...
client/bundle.js
EdgeJay/godolist
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactDOMServer from 'react-dom/server'; import MainComponent from './components/MainComponent'; export default (locals) => { return ReactDOMServer.renderToString(<MainComponent />); }; if (typeof(window) !== 'undefined') { ReactDOM...
app/jsx/theme_editor/ThemeEditorModal.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - 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...
src/index.js
lanyulin/react-gallery
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/media/js/addon/components/review.js
mozilla/marketplace-content-tools
import React from 'react'; import {ReverseLink} from 'react-router-reverse'; import {AddonListingForReview} from './listing'; import Search from '../components/search'; import AddonSubnav from '../components/subnav'; import {Page, PageSection} from '../../site/components/page'; import Paginator from '../../site/compon...
openvidu-library-react/src/App.js
OpenVidu/openvidu-tutorials
import React, { Component } from 'react'; import './App.css'; import axios from 'axios'; import OpenViduSession from 'openvidu-react'; class App extends Component { constructor(props) { super(props); this.OPENVIDU_SERVER_URL = 'https://' + window.location.hostname + ':4443'; this.OPENVIDU_S...
app/components/LoadingIndicator/index.js
matteoterrinoni/portfolio
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
src/svg-icons/action/open-in-browser.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInBrowser = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/> </SvgIcon> ); ...
WasteAppMini/js/components/foodwaste/index.js
airien/workbits
import React, { Component } from 'react'; import { Image,View, ListView,Linking,BackAndroid } from 'react-native'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, DeckSwipe...
src/routes/RequestPayment/components/index.js
vijayasankar/ML2.0
import AttachDocumentsForAnaesthetist from './AttachDocumentsForAnaesthetist' import AttachDocumentsForHospital from './AttachDocumentsForHospital' import AttachDocumentsForSpecialist from './AttachDocumentsForSpecialist' import Button from 'react-bootstrap/lib/Button' import Col from 'react-bootstrap/lib/Col' import ...
src/views/metro/MetroHome.js
availabs/kauffman-atlas
/* @flow */ import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import MetroHeader from 'components/metro/MetroHeader' import MetroScores from 'components/metro/MetroScores' import MetroZbp from 'components/metro/MetroZbp' import MetroQcew from 'components/metro/MetroQcew...
step9-redux/node_modules/react-router/es6/IndexRedirect.js
jintoppy/react-training
'use strict'; import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './PropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <Ind...
packages/material-ui-icons/src/VolumeOff.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let VolumeOff = props => <SvgIcon {...props}> <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86...
source/client/index.js
ericelliott/checkin
import React from 'react'; import { render } from 'react-dom'; import createApp from 'shared/components/app'; const App = createApp(React); const props = window.payload || { title: 'Default client title' }; render( <App { ...props } />, document.getElementById('root') );
example/server.js
cloudflare/react-gateway
import express from 'express'; import path from 'path'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import Application from './Application'; const app = express(); app.get('/', (req, res) => { res.send(` <!doctype html> <html lang="en"> <head> <title>React Gatewa...
tests/react_children/view.js
samwgoldman/flow
// @flow import React from 'react'; type ReactNodeWithoutString = | void | null | boolean | React$Element<any> | Array<ReactNodeWithoutString>; // NOTE: This is intentionally `Array<T>` and // not `Iterable<T>` because `strings` are // `I...
app/components/GoalCard.js
DeividasK/my-future-ai
import React from 'react' import ViewButton from 'components/buttons/view' import GoalCardActionsList from 'components/lists/goal-card-actions-list' import GoalCardPartner from 'components/lists/goal-card-partner' export default class GoalCard extends React.Component { render () { const { goal } = this.props ...
node_modules/react-bootstrap/es/Badge.js
FoxMessenger/nyt-react
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 ...
modules/react-router-2.5.2/modules/IndexLink.js
nanyou-environment/enBackEnd
import React from 'react' import Link from './Link' /** * An <IndexLink> is used to link to an <IndexRoute>. */ const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
docs/src/SupportPage.js
dozoisch/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
app/components/Tabs/index.js
Zurico/t7
import React from 'react'; function Tabs(props) { return ( <div>{React.Children.toArray(props.children)}</div> ); } Tabs.propTypes = { children: React.PropTypes.node, }; export default Tabs;
src/modules/Tab/Tab.js
Semantic-Org/Semantic-UI-React
import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { ModernAutoControlledComponent as Component, customPropTypes, getElementType, getUnhandledProps, } from '../../lib' import Grid from '../../collections/Grid/Grid' import GridColumn from '../../collections/Grid/GridColum...
client.js
jeffhandley/fluxible-context
/*global document, window */ import React from 'react'; import debug from 'debug'; import app from './app'; const debugClient = debug('fluxible-context'); const dehydratedState = window.App; // Sent from the server window.React = React; // For chrome dev tool support // expose debug object to browser, so that it ca...
src/routes.js
kennethrithvik/react_redux
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/home/HomePage'; import AboutPage from './components/about/AboutPage'; import CoursesPage from './components/course/CoursesPage'; export default ( <Route path="/" component...
src/components/Form/Form.js
liberium/viomedo-fullstack-demo
import React from 'react' import './style.css' const Form = ({ children, ...rest }) => <form className="form" {...rest}> {children} </form> export default Form
src/components/Communicator/CommunicatorDialog/CommunicatorDialog.container.js
shayc/cboard
import React from 'react'; import { connect } from 'react-redux'; import CommunicatorDialog from './CommunicatorDialog.component'; import { TAB_INDEXES } from './CommunicatorDialog.constants'; import { injectIntl } from 'react-intl'; import shortid from 'shortid'; import API from '../../../api'; import { createCommun...
src/Select.js
cmpis/react-select
/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/react-select */ import React from 'react'; import ReactDOM from 'react-dom'; import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; import defaultArrowRenderer from './utils/de...
src/routes/content/media/List.js
muidea/magicSite
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'dva/router' import { Table, Modal } from 'antd' import { DropOption, EditableTagGroup } from '../../../components' const { confirm } = Modal const List = ({ onDeleteItem, ...tableProps }) => { const handleMenuClick = (record, e) => {...
node_modules/react-router/es/Router.js
FoxMessenger/nyt-react
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
fields/types/select/SelectColumn.js
giovanniRodighiero/cms
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, linkTo: React.Prop...