path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
stories/stories/ShowPrompt.js
akiroom/react-bootstrap-dialog
import { action } from '@storybook/addon-actions' import React from 'react' import {Button} from 'react-bootstrap' import Dialog from '../../src/index' export default class ShowPrompt extends React.Component { showTextInput = () => { this.dialog.show({ body: 'Input your message.', prompt: Dialog.Text...
src/Input-number/InputNumber.js
yurizhang/ishow
/* @flow */ import React from 'react'; import PropTypes from 'prop-types'; import { default as Component } from '../Common/plugs/index.js'; import '../Common/css/Input-number.css'; import Input from '../Input'; import { accAdd, accSub } from './util'; export default class InputNumber extends Component { state; c...
src/components/Board/components/Outils/index.js
codex49/icon-generator
import React, { Component } from 'react'; import $ from 'jquery'; import PropTypes from 'prop-types'; import SketchPicker from 'react-color'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import BorderRadius from './components/BorderRadius'; import { showGrid } from '../../../../re...
cli/index.js
jamie-w/es6-bootstrap
import settings from '../settings'; import GLOBALS from './globals'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import axios from 'axios'; import injectTapEventPlugin from 'react-tap-event-plugin'; import App from './app'; import store from './store'; injectTapE...
app/pages/Home.js
anywhy/weidu
'use strict' import React from 'react'; import MediaPlayer from '../components/MediaPlayerView'; class Home extends React.Component { render() { return ( <MediaPlayer background={require('../imgs/play_disc.png')} /> ); } } export default Home;
docs/src/app/components/pages/components/Dialog/ExampleModal.js
spiermar/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * A modal dialog can only be closed by selecting one of the actions. */ export default class DialogExampleModal extends React.Component { sta...
js/App/Components/GeoFence/GeoFenceContainer.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
node_modules/react-bootstrap/es/ModalHeader.js
ASIX-ALS/asix-final-project-frontend
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/client/components/list/overview/ListOverviewDropDown.container.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { ON_USERLISTS_COLLAPSE, ON_USERLISTS_EXPAND } from '../../../redux/list.reducer'; import {createGetUsersSelector} from '../../../redux/users'; import {createGetLists} fro...
modules/RouteContext.js
brandonlilly/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
app/drag-drop/wrapper-component.js
FermORG/FermionJS
import React, { Component } from 'react'; import { DragSource, DropTarget } from 'react-dnd'; import { ItemTypes } from './item-types'; import { dragTarget, dropTarget } from './specification'; import { dragCollect, dropCollect } from './collectors'; // Connect and wrap export default function (Component) { const dn...
js/jqwidgets/demos/react/app/grid/righttoleftlayout/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { datatype: 'xml', datafields: [ { name: 'ShippedDate', ...
src/index.js
hamosapience/ofaas
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; import './styles/styles.scss'; //Yep, that's right. You can import SASS/CSS files too! Webpack will run the associated loader and plug this into the page. import App ...
docs/src/app/components/pages/components/DropDownMenu/Page.js
pradel/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import dropDownMenuReadmeText from './README'; import DropDownMenuSimpleExample ...
Component/Main/Main.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, Image, Navigator, TouchableOpacity } from 'react-native'; var Home = requ...
pkg/interface/publish/src/index.js
ngzax/urbit
import React from 'react'; import ReactDOM from 'react-dom'; import { Root } from '/components/root'; import { api } from '/api'; import { store } from '/store'; import { subscription } from "/subscription"; api.setAuthTokens({ ship: window.ship }); subscription.start(); ReactDOM.render(( <Root /> ), document.qu...
src/views/VLineView.js
tielan/react-native-go
import React from 'react'; import { View, StyleSheet } from 'react-native'; class VLineView extends React.Component { render() { let lineStyle = {}; let _height = this.props.height; let _bgColor = this.props.bgColor; if (_height) { lineStyle.height = _height; ...
BackUp FIrebase/IQApp/src/components/common/Input.js
victorditadi/IQApp
import React, { Component } from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secure }) => { const { inputStyle, labelStyle, containerStyle } = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{label}</Te...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
EgemenErol/angular2
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
extras/chicago-brick-live/editor-server/app/js/app.js
google/chicago-brick
/* Copyright 2019 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
example/examples/LegalLabel.js
phantomlds/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Animated, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; const screen = Dimensions.get('window'); class LegalLabel extends React.Component { static propTypes = { provider: MapView.ProviderProp...
src/js/views/list-details.js
touchstonejs/touchstonejs-starter
import Container from 'react-container'; import React from 'react'; module.exports = React.createClass({ statics: { navigationBar: 'main', getNavigation (props, app) { var leftLabel = props.prevView === 'list-simple' ? 'Simple' : 'Complex'; return { leftArrow: true, leftLabel: leftLabel, leftAct...
front-end/src/components/Contact/Contact.js
andriyspas/fruit-bouquets
import React, { Component } from 'react'; import Map from './Map/Map'; import Notification from '../Notification/Notification'; import ReCAPTCHA from 'react-google-recaptcha'; import { Grid, Row, Col, Form, FormGroup, FormControl } from 'react-bootstrap'; import VisibilitySensor from "react-visibility-sensor"; class C...
app/jsx/shared/components/ConfirmActionButtonBar.js
djbender/canvas-lms
/* * Copyright (C) 2019 - 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...
node-life/build/build/react-native-life/ReactNativeLife/js/Components/ListView/ListView.js
CaMnter/front-end-life
/** * @author CaMnter */ 'use strict'; import React from 'react'; import { Image, ListView, TouchableHighlight, StyleSheet, Text, View, } from 'react-native'; import RNTesterPage from '../../../RNTester/js/RNTesterPage'; let ListViewSimpleExample = React.createClass({ statics: { ...
src/components/Editor/Editor.js
IssaTan1990/antd-admin
import React from 'react' import { Editor } from 'react-draft-wysiwyg' import styles from './Editor.less' import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css' const DraftEditor = (props) => { return (<Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {.....
client/src/core-components/file-uploader.js
ivandiazwm/opensupports
import React from 'react'; import Button from 'core-components/button'; import Icon from 'core-components/icon'; import i18n from 'lib-app/i18n'; class FileUploader extends React.Component { static propTypes = { text: React.PropTypes.string, value: React.PropTypes.object, onChange: React....
src/svg-icons/action/donut-large.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDonutLarge = (props) => ( <SvgIcon {...props}> <path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18....
app/containers/TableContainer.js
orballo/game-of-life
'use strict' import React from 'react' import Table from '../components/Table' import ControlPanel from '../components/ControlPanel' import Controls from '../components/Controls' import Options from '../components/Options' import Info from '../components/Info' import AboutContainer from './AboutContainer' const Table...
src/core/components/icons/NumericBox/NumericBox9plus.js
devteamreims/4me.react
/* eslint max-len: 0 */ import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let NumericBox9plus = (props) => ( <SvgIcon {...props}> <path d="M21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M19,11H17V9H15V11H13V13H15V15H17V13H19V11M10...
src/App.js
cristip/septica
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Hi there! ...
src/js/components/test-editor/words-selector-module-filter.js
daniel-madera/pijs
import React from 'react' import { inject, observer } from 'mobx-react' import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap' @inject('testEditorStore') @observer export default class TestEditor extends React.Component { selectModule = e => { let moduleId = parseInt(e.target.value) let mod...
packages/mineral-ui-icons/src/IconFilter1.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFilter1(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}...
src/containers/Patients/PatientAlcohol.js
yogakurniawan/cerebral-app
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import styles from './Patients.scss'; export default class PatientAlcohol extends Component { handleSubmit = () => { } render() { return ( <div className={'container ' + styles.content}> <Helmet title="Patient Alcoho...
docs/app/Views/PageNotFound.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Segment, Header, Icon } from 'src' const PageNotFound = () => ( <Grid padded textAlign='center' stretched> <Grid.Row columns='equal'> <Grid.Column> <Header as='h1' icon textAlign='center'> <Icon name='game' /> 404 <Header.Subhea...
app/components/PriceList/PriceList.js
cshutchinson/sk
import React, { Component } from 'react'; import Symbol from './Symbol'; export default class PriceList extends Component { constructor(props){ super(props); } render(){ let lastUpdate = new Date(); let symbols = this.props.priceData.map((symbol, index)=>{ lastUpdate = (symbol.last_update); ...
client/app/scripts/components/node-details/node-details-table-node-link.js
kinvolk/scope
import React from 'react'; import { connect } from 'react-redux'; import { clickRelative } from '../../actions/app-actions'; import { trackAnalyticsEvent } from '../../utils/tracking-utils'; import { dismissRowClickProps } from './node-details-table-row'; class NodeDetailsTableNodeLink extends React.Component { co...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/invert-colors.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionInvertColors = (props) => ( <SvgIcon {...props}> <path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6....
docs/src/pages/components/autocomplete/CustomizedHook.js
lgollut/material-ui
/* eslint-disable no-use-before-define */ import React from 'react'; import useAutocomplete from '@material-ui/lab/useAutocomplete'; import NoSsr from '@material-ui/core/NoSsr'; import CheckIcon from '@material-ui/icons/Check'; import CloseIcon from '@material-ui/icons/Close'; import styled from 'styled-components'; c...
react/LightbulbIcon/LightbulbIcon.iconSketch.js
seekinternational/seek-asia-style-guide
import React from 'react'; import LightbulbIcon from './LightbulbIcon'; export const symbols = { 'LightbulbIcon': <LightbulbIcon /> };
src/timeZones/index.js
SodhanaLibrary/react-examples
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './app'; render( <AppContainer><App/></AppContainer>, document.querySelector("#app")); if (module.hot) { module.hot.accept('./app.js', () => { const App = require('./app.js').default; ...
src/index.js
donjar/learn-latex
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import 'katex/dist/katex.min.css'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/transfer/operation.js
bhathiya/test
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/inherits'; import React from 'react'; import Button fro...
src/components/Footer.js
kazazor/coinsmarket
import React from 'react'; import {Typography} from 'material-ui'; import T from 'i18n-react'; import PropTypes from 'prop-types'; import Script from 'react-load-script'; import { withStyles, createStyleSheet } from 'material-ui/styles'; import config from 'config'; const styleSheet2 = createStyleSheet((theme) => ({ ...
tp-3/juan-pablo-gonzalez/src/components/App.js
jpgonzalezquinteros/sovos-reactivo-2017
/* eslint-disable import/no-named-as-default */ import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import WelcomePage from './pages/welcome/WelcomePage'; import NotFoundPage from './pages/notFound/NotFoundPage'; import AboutPage from './pages/about/AboutPage...
dev/js/store/reducers/activeElemReducer.js
artisnull/React-CMS
/* Filename: editorReducer.js Author: Zach Lambert Last Updated: 17 Apr 2017 Description: Handles state for active element editorReducer: activeElement */ import React from 'react'; const defaultElem = { id: 'noneSelected', name: '', content: '', } export const activeElemReducer = (state = {activeElement: default...
example/App.js
ZxMYS/react-twemoji
import React from 'react'; import Twemoji from '../src/Twemoji'; export default class App extends React.Component { render() { return ( <div> <Twemoji options={{ className: 'twemoji' }}> <p>😂😅</p><p>😍😉</p> </Twemoji> <Twemoji noWrapper={true} options={{ className: 'twe...
examples/fixed-position.js
mhink/react-ionize
import React from 'react'; import Ionize from 'react-ionize'; import path from 'path'; import 'index.html'; Ionize.start( <window show file={path.resolve(__dirname, "index.html")} position={[200, 200]} /> );
node_modules/rc-animate/es/ChildrenUtils.js
scaulfield01/HallHorn
import React from 'react'; export function toArrayChildren(children) { var ret = []; React.Children.forEach(children, function (child) { ret.push(child); }); return ret; } export function findChildInChildrenByKey(children, key) { var ret = null; if (children) { children.forEach(function (child) { ...
dist/lib/carbon-fields/assets/js/containers/components/container/nonce.js
ArtFever911/statrer-kit
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; /** * Render the nonce field of the container * * @param {Object} props * @param {Object} props.container * @param {Object} props.container.nonce * @return {React.Element} */ const Contai...
example/examples/FitToSuppliedMarkers.js
Gogowego/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } 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 LATITUDE_DELTA = 0.0922; const...
src/Creatable.js
jacycode/react-select-plus-2
import React from 'react'; import Select from './Select'; import defaultFilterOptions from './utils/defaultFilterOptions'; import defaultMenuRenderer from './utils/defaultMenuRenderer'; const Creatable = React.createClass({ displayName: 'CreatableSelect', propTypes: { // Child function responsible for creating th...
src/components/dialogs/CreateAccountDialog.js
FRCTools/Attendance-Client
import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import TextField from 'material-ui/TextField'; import Toggle from 'material-ui/Toggle'; class Leaderboard extends Component { constructor() { super(); this.state = { ...
app/components/sidebars/main/teams_list/teams_list_item/teams_list_item.js
mattermost/mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React from 'react'; import { Text, TouchableHighlight, View, } from 'react-native'; import Badge from '@components/badge'; import CompassIcon from '@co...
src/Main/Maintainer.js
enragednuke/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from 'common/Wrapper'; const Maintainer = ({ nickname, avatar, github, ...others }) => ( <span key={nickname} className="maintainer-name" data-tip={github ? github : undefined} {...others}> {avatar && <Wrapper><img src={avatar} alt="A...
test/helpers/shallowRenderHelper.js
wangzengkai/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
client/src/components/gate/Gate.js
thewizardplusplus/vk-group-stats
import React from 'react' export default class Gate extends React.Component { static propTypes = { open: React.PropTypes.bool.isRequired, children: React.PropTypes.node.isRequired, } render() { return this.props.open ? this.props.children : null } }
src/client/scenes/App/NotFound/index.js
kettui/webcord-web-app
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './not-found.scss'; class NotFound extends Component { constructor(props) { super(props); } render() { return ( <div className={styles['not-found']}> 404 Page not ...
src/components/ComponentizeContent.stories.js
dlindahl/stemcell
import CssReset from './CssReset' import { text, withKnobs } from '@kadira/storybook-addon-knobs' import React from 'react' import { storiesOf } from '@kadira/storybook' import ComponentizeContent from './ComponentizeContent' import VerticalRhythm from './VerticalRhythm' storiesOf('ComponentizeContent', module) .add...
src/components/TodoFooter/TodoFooter.js
dadish-etudes/react-todo
/** * TodoFooter */ import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './TodoFooter.scss'; import classNames from 'classnames'; import TodoActions from '../../actions/TodoActions'; import TodoConstants from '../../constants/TodoConstants'; import...
docs/src/Router.js
abouthiroppy/scuba
import React from 'react'; import { Route, Router, IndexRoute, useRouterHistory } from 'react-router'; import { createHashHistory } from 'history'; import Container from '../../src'; import Layout from './components/Layout'; import Header from './components/Header'; import Sidebar from './components/Sidebar';...
app/app.js
nguyenduong127/kong-dashboard
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
app/components/common/dropdown/index.js
Vizzuality/forest-watcher
// @flow import type { TextStyle } from 'types/reactElementStyles.types'; import React, { Component } from 'react'; import { View, Text, TouchableOpacity, Platform } from 'react-native'; import ActionSheet from 'react-native-actions-sheet'; import Row from 'components/common/row'; import styles from './styles'; impo...
pre-style/button.js
MicheleBertoli/css-in-js
import React from 'react'; import ReactDOM from 'react-dom'; import './app.scss'; const styles = { container: PreStyle` text-align: center; `, button: PreStyle` background-color: $bgc; //<- Look Sass in my JS :D border: none; border-radius: 5px; outline: none; padding: 20px; width: 32...
src/components/search_bar.js
harshaonhub28/react_training
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } render() { return ( <div> <input value={this.state.term} onChange={event => this.onInputChange(event.target.value)} ...
src/layouts/index.js
psongpin/Personal-Website-v2
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' import Header from '../components/Header' import Footer from '../components/Footer' import 'bootstrap/dist/css/bootstrap.min.css' import '../styles/index.scss' const TemplateWrapper = ({ chil...
src/_wlk/RandomizePlaylistsNotice.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; const message = 'Waitlist Roulette is enabled! A song will be picked from your playlists at random.'; export default () => ( <div className="NextMedia">{message}</div> );
src/modules/schema/components/Definition-schema.js
otissv/graphql-guru-ide
import React from 'react'; import Tree from './Tree-schema'; const Definition = props => <Tree data={props.schema.definition} />; export default Definition;
examples/todomvc/index.js
pabloalonsos/redux-devtools
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
src/GridList/TileSupportText.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const propTypes = { className: PropTypes.string, }; const TileSupportText = ({ className, ...otherProps }) => ( <span className={classnames('mdc-grid-tile__support-text', className)} {...otherProps} /> );...
admin/client/App/screens/Home/components/Section.js
dryna/keystone-twoje-urodziny
import React from 'react'; import getRelatedIconClass from '../utils/getRelatedIconClass'; class Section extends React.Component { render () { const iconClass = this.props.icon || getRelatedIconClass(this.props.id); return ( <div className="dashboard-group" data-section-label={this.props.label}> <div class...
client/app/components/about.js
Terry-Breen/scrappedideas
import React from 'react'; export default class AboutPage extends React.Component { render(){ return ( <div className="container about-container"> <p>AAA</p> </div> ); } }
src/components/common/Input.js
msalem07/LectureRecorder
import React from 'react'; import { Text, TextInput, View } from 'react-native'; export function Input(props){ const { label, value, onChangeText, placeholder, secureTextEntry } = props; const { inputStyle, labelStyle, containerStyle } = styles; return ( <View style={containerStyle}> ...
src/components/InfoEpp.js
vitorgomateus/NotifyMe
/** * Created by VitorMaGo on 03/01/2017. */ import React, { Component } from 'react'; class InfoEpp extends Component { render (){ var nomeEpp= this.props.en; var descricao = this.props.ed; var people = (this.props.ep) ? <p><b>Participantes</b><br/>{this.props.ep}</p> : ""; r...
src/core/Nav/SubNavList/index.js
dlennox24/ricro-app-template
import Collapse from '@material-ui/core/Collapse'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import withStyles from '@material-ui/core/styles/withStyles'; import classNames from 'classnames'; import IconChevronDown from 'mdi-material-ui/ChevronDown'; i...
public/app/components/ui-project-tab/title.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import * as mui from 'material-ui'; import icons from '../icons'; import MainTitle from '../main-title'; const Title = ({ project, activeContent, component, image, window, onTabClosed }) => { let title = project.name; switch(activeContent && activeContent.type) { case...
portfolio-site/src/App.js
dave5801/Portfolio
import React, { Component } from 'react'; import './App.css'; import Home from './scenes/home/home'; class App extends Component { render() { return ( <div className="App"> <Home></Home> </div> ); } } export default App;
src/shared/components/form/formButton/formButton.js
hollomancer/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './formButton.css'; const FormButton = ({ theme, className, onClick, disabled, text }) => { const classes = classNames({ [`${styles.formButton}`]: true, [`${styles[theme]}`]: true, [`$...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
pinfort/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import Immuta...
docs/src/app/components/pages/components/List/ExampleSimple.js
ngbrown/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ContentInbox from 'material-ui/svg-icons/content/inbox'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import ContentSend from 'material-ui/svg-icons/content/send'; ...
src/components/Accordion/index.js
DeveloperLaPoste/protagonist-react
/** * * Accordion * */ import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardBlock, Collapse } from 'reactstrap'; import './styles.css'; export function Accordion(props) { return ( <Card className="Accordion-main"> {props.children} </Card> ); } Accordion...
src/components/app.js
tinkerboyy/react-app
import React, { Component } from 'react'; import BookList from '../containers/book_list'; import BookDetails from '../containers/book_details'; export default class App extends Component { render() { return ( <div> <BookList /> <BookDetails /> </div> ); } }
packages/generator-emakinacee-react/generators/app/templates/static/src/containers/Home/Home.js
emakina-cee-oss/react-cli
import React from 'react'; import classNames from 'classnames'; import { connect } from '@cerebral/react'; import { state } from 'cerebral/tags'; import Button from '../../components/Button/Button'; import flexStyles from '../../styles/modules/flex.module.scss'; import containerStyles from '../../styles/modules/contain...
app/src/components/App.js
zhanglun/fist
import firebase from 'firebase'; let config = { apiKey: "AIzaSyCSCN_fEp4_7xrFDDFJeq7F8A2TMC0TOlc", authDomain: "scorching-heat-5565.firebaseapp.com", databaseURL: "https://scorching-heat-5565.firebaseio.com", storageBucket: "scorching-heat-5565.appspot.com", messagingSenderId: "352659147102" }; firebase.init...
app/packs/src/components/contextActions/ModalImportCollection.js
ComPlat/chemotion_ELN
import React from 'react'; import {Button, ButtonToolbar} from 'react-bootstrap'; import Dropzone from 'react-dropzone'; import UIStore from '../stores/UIStore'; import NotificationActions from '../actions/NotificationActions'; export default class ModalImportCollection extends React.Component { constructor(props) ...
internals/templates/utils/injectSaga.js
kaizen7-nz/gold-star-chart
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {function} saga A r...
examples/cra-kitchen-sink/src/App.js
storybooks/react-storybook
import React from 'react'; import logo from './logo.svg'; import './App.css'; const App = () => ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> </div> <p className="App-intro"> To get started, edit <code>s...
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/4_RankRoomType/RoomTypeLegend/index.js
westoncolemanl/tabbr-web
import React from 'react' import Table, { TableHead, TableCell, TableRow, TableBody } from 'material-ui/Table' import Paper from 'material-ui/Paper' import roomTypeDescriptions from './roomTypeDescriptions' export default () => { return ( <Paper> <Table> <TableHead> <TableRow> ...
ReactApp/styles.js
LavaLabUSC/waitless-frontend
/** * Global App Styles * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, } from 'react-native'; // App Globals import AppConfig from './config'; /* Styles =========================================...
FrontEnd/src/base/bread-crumb/bread-crumb.js
liu599/BlogUpgrade
import React from 'react'; class BreadCrumb extends React.Component { render(){ return(); } } export default BreadCrumb;
react-ui/src/containers/GitHub/GitHub.js
hokustalkshow/find-popular
import React, { Component } from 'react'; import { Nav, Navbar } from 'react-bootstrap'; import SortNavbar from '../../components/SortNavbar/SortNavbar.js' import NavDropdownComponent from '../../components/NavDropdownComponent/NavDropdownComponent.js'; import { bindActionCreators } from 'redux'; import { connect } fro...
gatsby-markdown-personal-website/src/components/Footer/index.js
lrsnider/lrsnider.github.io
import React from 'react'; import Container from 'components/ui/Container'; import * as Styled from './styles'; const Footer = () => ( <Styled.Footer> <Container> <Styled.Links> <Styled.Link href="https://www.linkedin.com/in/lisasjacobson/" rel="noreferrer noopener" target="_blank"> Lin...
examples/real-world/index.js
indigofeather/redux
import 'babel-core/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage from './co...
docs/src/app/components/pages/components/Drawer/ExampleUndocked.js
ichiohta/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerUndockedExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } han...
admin/src/components/PopoutListHeading.js
wustxing/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/lib/NodeInputList.js
lightsinthesky/react-node-graph
import React from 'react'; import NodeInputListItem from './NodeInputListItem'; export default class NodeInputList extends React.Component { onMouseUp(i) { this.props.onCompleteConnector(i); } render() { let i = 0; return ( <div className="nodeInputWrapper"> <ul className="nodeInputList"> {th...
src/components/Logo/Logo.js
denichodev/personal-web
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import logo from '../../resources/svgs/logo.svg'; import './Logo.css'; const Logo = ({ size }) => { return ( <Link to="/"> <img className={`logo-small`} src={logo} alt="Logo" /> </Link> ); }; Logo...
node_modules/react-select/examples/src/components/Creatable.js
ivanhristov92/bookingCalendar
import React from 'react'; import Select from 'react-select'; var CreatableDemo = React.createClass({ displayName: 'CreatableDemo', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string }, getInitialState () { return { multi: true, multiValue: [], options: [ { value: 'R', labe...
assets/js/App.js
bclynch/packonmybike
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> {React.cloneElement(this.props.children)} </div> ); } }
src/components/services/service-section.js
adrienlozano/stephaniewebsite
import React from 'react'; import PageSection from "~/components/page-section"; import Heading from '~/components/heading'; import ServiceList from './service-list'; const ServicesSection = ({services}) => { return ( <PageSection bg="light"> <Heading>Services</Heading> <ServiceList services={s...