path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/sims/sims-structure.js
FranckCo/Operation-Explorer
import React, { Component } from 'react'; import SortableTree from 'react-sortable-tree'; import FileExplorerTheme from 'react-sortable-tree-theme-file-explorer'; import { getDataTree, getAttrId } from 'utils/tree-utils'; import 'react-sortable-tree/style.css'; import './sims-structure.css'; const updateMas = (data, m...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-outline-modal.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin} from '../common/common.js'; import {Modal} from './bricks.js'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin ], //@@viewOff:mixins //@@viewOn:statics statics: { tagName: 'UU5.Bricks.Out...
packages/components/src/List/Toolbar/ColumnChooserButton/ColumnChooser/ColumnChooserRow/ColumnChooserRow.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import Label from './RowLabel'; import Checkbox from './RowCheckbox'; import cssModule from '../ColumnChooser.scss'; import { getTheme } from '../../../../../theme'; const theme = getTheme(cssModule); const ColumnChooserRow = ({ children, className }) => ...
src/index.js
dmfarcas/dragomirna-biking
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/app/containers/widgets/QuickEmail.js
ucokfm/admin-lte-react
import React from 'react'; const QuickEmail = () => ( <div className="box box-info"> <div className="box-header"> <i className="fa fa-envelope"></i> <h3 className="box-title">Quick Email</h3> <div className="pull-right box-tools"> <button type="button" className="bt...
packages/xo-web/src/common/form/number.js
vatesfr/xo-web
import PropTypes from 'prop-types' import React from 'react' import { injectState, provideState } from 'reaclette' import decorate from '../apply-decorators' // it provide `data-*` to add params to the `onChange` const Number_ = decorate([ provideState({ initialState: () => ({ displayedValue: '', }), ...
src/index.js
calebeno/LearnReduxTakeTwo
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; // store configuration import configureStore from './store/configureStore'; // import css import './index.css'; // import react router import { Router, browserHistory } from 'react-router'; import { syncHistoryWithSto...
client/app/scenes/home.js
kirinami/portfolio
import React from 'react'; import Navbar from '../components/navbar'; import Header from '../components/header'; import Footer from '../components/footer'; import { projects } from '../data'; export default function Home() { return ( <div className="home--component"> <Navbar/> <He...
packages/reactor/src/renderWhenReady.js
sencha/extjs-reactor
import React from 'react'; const launchQueue = []; /** * Higher order function that returns a component that waits for a ExtReact to be ready before rendering. * @param {class} Component * @return {class} */ export default function renderWhenReady(Component) { return class ExtReactRenderWhenReady extends Re...
packages/reactor-kitchensink/src/examples/Trees/Tree/Tree.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Tree } from '@extjs/ext-react'; import data from './data'; export default class TreeExample extends Component { store = Ext.create('Ext.data.TreeStore', { rootVisible: true, root: data }) render() { return ( <Tree stor...
src/components/user/index.js
abhijitrakas/react-redux-setup
import React from 'react' import { connect } from 'react-redux'; import AddUserForm from './add'; import * as userActions from '../../actions/users/createUsers'; import Table from '../common/table/Table'; class Users extends React.Component { constructor(props) { super(props); this.formSubmit = thi...
portfolio/src/index.js
BeshoyHindy/BeshoyHindy.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/ClothingElement.js
shaunsaker/real-dope
import React from 'react'; import { Button } from 'react-bootstrap'; export default class ClothingElement extends React.Component { static get propTypes() { return { clothing: React.PropTypes.object }; } render() { return ( <div className="clothingElement flex-hz flex-space-b...
code/workspaces/web-app/src/components/stacks/PaginationControlTextField.js
NERC-CEH/datalab
import React from 'react'; import TextField from '@material-ui/core/TextField'; import { makeStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import theme from '../../theme'; const useStyles = makeStyles(() => ({ pageNumberInput: { maxWidth: '3em', margin: 0, }, })); const Pag...
src/index.js
abasallo/to-do-front
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import thunk from 'redux-thunk' import injectTapEventPlugin from 'react-tap-event-plugin' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import ro...
node_modules/react-bootstrap/es/Clearfix.js
acalabano/get-committed
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 ...
client/src/components/timepicker.js
euqen/spreadsheet-core
'use strict'; import React from 'react'; import $ from 'jquery'; import 'timepicker'; export default class TimePicker extends React.Component { render() { return ( <div className="input-group bootstrap-timepicker timepicker"> <input id="timepicker" classN...
frontend/src/Movie/Index/Posters/MovieIndexPosters.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Grid, WindowScroller } from 'react-virtualized'; import Measure from 'Components/Measure'; import MovieIndexItemConnector from 'Movie/Index/MovieIndexItemConnector'; import dimensions from 'Styles/Variables/dimensions'; import getInd...
projects/twitch-web/src/components/Streams.js
unindented/twitch-x
import React from 'react' import TopStreams from '../containers/TopStreams' export default function Streams () { return ( <TopStreams limit={25} columns={5} /> ) }
static/src/components/Home/index.js
dom-o/hangboard-helper
import React from 'react'; export const Home = () => <section> <div className="container text-center"> <h1>Hello</h1> </div> </section>;
app/javascript/mastodon/components/modal_root.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import 'wicg-inert'; import { createBrowserHistory } from 'history'; import { multiply } from 'color-blend'; export default class ModalRoot extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { ...
src/components/App.js
sjackson212/A6DotCom
/** * 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/index.js
mweststrate/mobservable-reactive2015-demo
import ReactDOM from 'react-dom'; import React from 'react'; import {observable, asReference} from 'mobx'; import {observer} from 'mobx-react'; import store from './stores/domain-state'; import Canvas from './components/canvas'; const storeInstance = observable(asReference(store)); let storeInstanceId = 0; // forces ...
1-react-basics/src/index.js
mariusz-malinowski/tutorial-react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
src/DatePicker.js
buildo/react-semantic-datepicker
import React from 'react'; import moment from 'moment'; import t from 'tcomb'; import { props } from 'tcomb-react'; import { format, valueLink, skinnable } from './utils'; import { Value, Mode } from './utils/model'; import DayPicker from './daypicker/DayPicker'; import MonthPicker from './monthpicker/MonthPicker'; imp...
src/components/Navigation/Navigation.js
onelink-translations/react-localization
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import { defineMessages, For...
src/svg-icons/action/euro-symbol.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEuroSymbol = (props) => ( <SvgIcon {...props}> <path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 ...
src/views/NotFoundView/NotFoundView.js
Grobim/eggheadReduxTutorial
import React from 'react'; import { Link } from 'react-router'; export class NotFoundView extends React.Component { render () { return ( <div className='container text-center'> <h1>This is a demo 404 page!</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ); } } ...
project/List11/lthree.js
DangrMiao/House
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class lthree extends Component { render() { return ( <View style={styles.contain...
src/server/server-side-render.js
jukkah/comicstor
import React from 'react'; import { renderToString } from 'react-dom/server'; import { StaticRouter } from 'react-router-dom'; import { createStore } from 'redux' import getMuiTheme from 'material-ui/styles/getMuiTheme' import getStore from './store' import Routes from '../client/Routes'; const assets = require(proce...
src/svg-icons/action/settings-input-svideo.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputSvideo = (props) => ( <SvgIcon {...props}> <path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h...
docs/src/app/components/pages/components/GridList/Page.js
barakmitz/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 gridListReadmeText from './README'; import gridListExampleSimpleCode from...
app/jsx/theme_editor/RangeInput.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/appReact/components/Map/LeftNav.js
devmessias/brasillivre
import React from 'react'; import ChainBroken from 'react-icons/lib/fa/chain-broken'; import Marker from 'react-icons/lib/fa/map-marker'; import Fire from 'react-icons/lib/fa/fire'; import Edit from 'react-icons/lib/md/edit'; import {Action} from './../../actions/Action.js'; class LeftNav extends React.Component { ...
src/js/components/Users.js
bryanjacquot/theme-designer-capstone
import React, { Component } from 'react'; import Section from 'grommet/components/Section'; import Anchor from 'grommet/components/Anchor'; import Meter from 'grommet/components/Meter'; import Pdf from 'grommet/components/icons/base/DocumentPdf'; export default class Users extends Component { constructor() { su...
client/react/panel/inputs/ConfirmationButton.js
uclaradio/uclaradio
// UserEditableDateTimeField.js import React from 'react'; import { Button, ButtonGroup } from 'react-bootstrap'; /** * Allows user to confirm a button submission * * @prop confirm: text to display on button when confirming * @prop submit: text to display on button when submitting * @prop onSubmit -> function(): ...
src/routes/study/ballots/index.js
Skoli-Code/DerangeonsLaChambre
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Ballots from './Ballots'...
frontend/src/Wanted/CutoffUnmet/CutoffUnmet.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import FilterMenu from 'Components/Menu/FilterMenu'; import ConfirmModal from 'Components/Modal/ConfirmModal'; import PageContent from 'Components/Page/PageContent'; import P...
react/LanguageIcon/LanguageIcon.iconSketch.js
seekinternational/seek-asia-style-guide
import React from 'react'; import LanguageIcon from './LanguageIcon'; export const symbols = { 'LanguageIcon': <LanguageIcon /> };
public/src/js/components/buckets/comp-bucketCreation.js
asarode/learn-buckets
import React from 'react'; import LinkInput from './comp-linkInput'; import BucketActions from '../../actions/actions-buckets'; import { Navigation } from 'react-router'; class BucketCreation extends React.Component { constructor(props) { super(props); this.state = { title: '', description: '', ...
examples/with-flow/pages/contact.js
BlancheXu/test
// @flow import React from 'react' import Page from '../components/Page' export default () => ( <Page title='Contact us'> <div>Contact</div> </Page> )
src/svg-icons/image/filter-none.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterNone = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> </SvgIcon> ); Ima...
src/svg-icons/communication/chat-bubble-outline.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChatBubbleOutline = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/> </SvgIcon> ); CommunicationChatBubbleOutl...
lib/Components/DailyCard/DailyCard.js
francylang/weathrly
import React from 'react'; import './DailyCard.css'; const DailyCard = props => { return ( <div className="card" key={props.tenDayKey}> <h2 className="day">{props.dayTime}</h2> <i className={`wi wi-wu-${props.dayIcon} dailyWeatherIcons`}></i> <h2 className="dayCondition">{props.dayCondition}</h...
src/components/FooterBar/GuestFooterContent.js
u-wave/web
import React from 'react'; import { useDispatch } from 'react-redux'; import { useTranslator } from '@u-wave/react-translate'; import Button from '@mui/material/Button'; import { openLoginDialog, openRegisterDialog } from '../../actions/DialogActionCreators'; import { toggleSettings } from '../../actions/OverlayActionC...
MobileApp/MessageHub/components/searchViews/SearchItem.js
FresnoState/mobilestudentintranet
import React, { Component } from 'react'; import { View, Text, Dimensions } from 'react-native'; import {Icon} from 'native-base'; const { width, height } = Dimensions.get('window'); export default class SearchItem extends Component { constructor(props) { super(props); } render() { ...
app/Resources/static-src/app/common/component/multi-input/input-group.js
richtermark/SMEAGOnline
import React, { Component } from 'react'; import { trim } from '../../unit'; import { send } from '../../server'; import Options from './options'; import postal from 'postal'; export default class InputGroup extends Component { constructor(props) { super(props); this.state = { itemName: "", searc...
src/header/Header.js
ericyd/surfplot-ui
'use strict'; import React from 'react'; import Nav from './Nav'; import './Header.scss'; export default function Header (props) { return ( <header className='header'> <img src='img/open_surface.svg' className='header__logo' alt='Surf Plot JS logo' /> <Nav /> </header> ...
src/components/Forms/GameSearch.js
Franco84/pubstomp
import React, { Component } from 'react'; import {Field, reduxForm} from 'redux-form' import {Button} from 'react-bootstrap' class GameSearch extends Component { renderField(field) { const { meta: {touched, error} } = field const className = `form-group ${touched && error ? 'has-danger' : ''}` return ( ...
src/Navbar/Navbar.js
kashjs/muszoo-react
import React from 'react'; import PropTypes from 'prop-types'; import {TapAnimationContent} from '../TapAnimation/TapAnimation'; export class MZNavbar extends React.Component { render() { let className = 'mz-navbar ' + this.props.className; return <nav className={className}>{this.props.children}</n...
src/decorators/withViewport.js
HereIsJohnny/issuetracker
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
assets/jqwidgets/demos/react/app/complexinput/exponentialnotation/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxComplexInput from '../../../jqwidgets-react/react_jqxcomplexinput.js'; import JqxExpander from '../../../jqwidgets-react/react_jqxexpander.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; import JqxDropDownList from '../.....
app/components/landing/RatesXL/index.js
vkurzweg/aloha
/** * * Rates * */ import React from 'react'; // import styled from 'styled-components'; import { Card, CardActions, CardMedia, CardTitle, CardText } from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import { Link } from 'react-router'; import Btn from 'components/landing/Btn'; import { Image }...
modules/gui/src/widget/keybinding.js
openforis/sepal
import {add, remove} from './keybindings' import {compose} from 'compose' import {connect} from 'store' import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' class Keybinding extends React.Component { constructor(props) { super(props) this.createKeybinding() co...
blueprints/smart/files/__root__/containers/__name__.js
Rkiouak/react-redux-python-stocks
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render() { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const ...
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleScrolling.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' import { getOptions } from '../common' const DropdownExampleScrolling = () => ( <Dropdown placeholder='Select choice' scrolling options={getOptions(15)} /> ) export default DropdownExampleScrolling
src/svg-icons/content/add-box.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/> </SvgIcon> ); ContentAddBox = pu...
src/js/components/MuiButton.js
Robert-W/immutable-flux-todo
/*eslint-disable no-unused-expressions */ import ReactDOM from 'react-dom'; import React from 'react'; let timeoutDuration = 1500, timer; //- Base Styles let buttonStyles = { display: 'inline-block', position: 'relative', cursor: 'pointer' }; let muiClickStyle = (type) => { let style = { position: 'a...
fixtures/nesting/src/modern/lazyLegacyRoot.js
mosoft521/react
import React from 'react'; import {useContext, useMemo, useRef, useState, useLayoutEffect} from 'react'; import {__RouterContext} from 'react-router'; import {ReactReduxContext} from 'react-redux'; import ThemeContext from './shared/ThemeContext'; let rendererModule = { status: 'pending', promise: null, result:...
client/app/scripts/components/node-details.js
paulbellamy/scope
import debug from 'debug'; import React from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { Map as makeMap } from 'immutable'; import { clickCloseDetails, clickShowTopologyForNode } from '../actions/app-actions'; import { brightenColor, getNeutralColor, getNodeColorDark }...
src/Toast/testkit/Toast.js
nirhart/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; import Toast from '../Toast'; import ReactTestUtils from 'react-addons-test-utils'; import $ from 'jquery'; const byDataHook = hook => `[data-hook|="${hook}"]`; const toastDriverFactory = ({element}) => { const $component = $(element); const styleStrin...
docs/src/app/components/pages/components/Dialog/Page.js
igorbt/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 dialogReadmeText from './README'; import DialogExampleSimple from './Exam...
App/index.android.js
DupK/dashboard-epitech
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React from 'react'; import { AppRegistry } from 'react-native'; import Main from './src/features/main'; import monitorNetworkConnection from './src/shared/NetworkConnection'; //observe any network changes and let ui react a...
src/components/BoardSettings.js
rhernandez-applaudostudios/tic-tac-toe
import React from 'react'; function BoardSettings({ onInputChange, status, createGame, size}) { return ( <div className="settings"> <div className="settings-label"> Select the size of the board: <input type="number" min="3" max="15" step="1" ...
app/packs/src/components/generic/GenericElDropTarget.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import uuid from 'uuid'; import { DropTarget } from 'react-dnd'; import Aviator from 'aviator'; import { Tooltip, OverlayTrigger, Popover } from 'react-bootstrap'; import UIStore from '../stores/UIStore'; const handleSampleClick = (type, id)...
modules/IndexLink.js
meraki/react-router
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
client/src/app/routes/forms/jcrop/components/OptionRadio.js
zraees/sms-project
import React from 'react' import {connect} from 'react-redux' import {setOptions} from '../actions/options' import OptionRadioBtn from './OptionRadioBtn' const mapStateToProps= (state, props)=>({ label: props.label, options: props.options, group: props.group, checked: props.checked }); const mapDispa...
blueocean-material-icons/src/js/components/svg-icons/editor/vertical-align-top.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorVerticalAlignTop = (props) => ( <SvgIcon {...props}> <path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/> </SvgIcon> ); EditorVerticalAlignTop.displayName = 'EditorVerticalAlignTop'; EditorVerticalAlignTop.muiName = 'SvgIcon'; export...
src/client/get-router.js
Restuta/rcn.io
import React from 'react' import { Router, browserHistory } from 'react-router' import { Provider } from 'react-redux' import configureStore from 'shared/configure-store.js' import { syncHistoryWithStore } from 'react-router-redux' import routes from './routes' import analytics from 'utils/analytics' const store = con...
app/imports/ui/components/DocumentEditor.js
ericvrp/GameCollie
/* eslint-disable max-len, no-return-assign */ import React from 'react'; import PropTypes from 'prop-types'; import { FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import documentEditor from '../../modules/document-editor.js'; export default class DocumentEditor extends React.Component { c...
examples/huge-apps/routes/Course/components/Course.js
upraised/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
hosted-demo/src/index.js
learnapollo/pokedex-react
import React from 'react' import ReactDOM from 'react-dom' import Pokedex from './components/Pokedex' import PokemonPage from './components/PokemonPage' import AddPokemonCard from './components/AddPokemonCard' import { Router, Route, browserHistory, IndexRedirect } from 'react-router' import ApolloClient, { createNetwo...
react/features/toolbox/components/ToolbarButton.web.js
KalinduDN/kalindudn.github.io
/* @flow */ import React from 'react'; import { connect } from 'react-redux'; import { translate } from '../../base/i18n'; import UIUtil from '../../../../modules/UI/util/UIUtil'; import AbstractToolbarButton from './AbstractToolbarButton'; import { getButtonAttributesByProps } from '../functions'; declare var APP...
app/javascript/mastodon/components/status_content.js
TheInventrix/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; const MAX_HEIGHT = 642; // 20px * 32 (+ 2px...
app/javascript/mastodon/features/list_editor/components/search.js
sylph-sin-tyaku/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'; import Icon from...
packages/react-vis/src/plot/series/horizontal-bar-series.js
uber-common/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...
components/Roster.js
cindytung/calwtcrew
import React from 'react'; import '../css/Roster.scss'; const Roster = ({ rosterName, names, sides, years, hometowns, majors }) => ( <div className="roster-container"> <header> <h1>{rosterName}</h1> </header> <div className="column-container"> <div className="roster__column"> <h3>Nam...
app/src/components/PartyLevelHeader.js
open-austin/budgetparty
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedNumber } from 'react-intl'; import { constants } from '../config/constants'; const getSign = (number) => { let sign = ''; if (number.percentChange > 0) { sign = '+'; } else if (number.percentChange < 0) { sign = '-'; } ...
app/components/steps/ProcessingScreen.js
rolandaugusto/react-atm-simulator
import React from 'react'; import styles from './../../App.css'; export default class ProcessingScreen extends React.Component { constructor(props) { super(props); } render() { return ( <div className={styles.bap}> {this.props.message} </div> ...
src/routes.js
TeamOculus/theater
import React from 'react'; import {Route, IndexRoute } from 'react-router'; import App from './components/app'; import Home from './components/home'; import Theater from './components/theater'; import Space from './components/space'; import Eightbit from './components/eightbit'; import City from './components/city'; i...
pages/api/bottom-navigation.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './bottom-navigation.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/StatsCarousel1/index.js
DuckyTeam/ducky-components
import LabelStatistics from '../LabelStatistics'; import LabelHorisontal from '../LabelHorisontal'; import classNames from 'classnames'; import Spacer from '../Spacer'; import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles.css'; function StatsCarousel1(props) { return ( ...
src/components/controlbar/ControlBar.js
Tomczik76/gradus-ad-parnassum-front-end
import React, { Component } from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; export default class ControlBar extends Component { render() { return ( <Navbar> <Nav> <NavItem eventKey={1} href="#">Link</NavItem> <NavItem eventKey...
src/divider/Divider.js
martinezguillaume/react-native-elements
import React from 'react'; import { View, StyleSheet } from 'react-native'; import colors from '../config/colors'; import ViewPropTypes from '../config/ViewPropTypes'; let styles = {}; const Divider = ({ style }) => <View style={[styles.container, style && style]} />; Divider.propTypes = { style: ViewPropTypes.s...
f2e/src/js/compoents/mockMap/mockMap.js
NyaaFinder/nyaacat
/** * Created by john on 15/10/25. */ // 一个组件是一个模块,自己带有自己的样式 import React from 'react'; import AppActions from'../../actions/AppActions'; import AppStore from'../../stores/AppStore'; import '../map/map.less'; var mockMap = React.createClass({ getInitialState: function() { return {}; }, componen...
src/components/ECharts/lineChart.js
joe-sky/flarej
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { registerComponent } from 'nornj'; import EChartsEnhance from './EChartsEnhance'; import 'echarts/lib/chart/line'; import template from './ECharts.t.html'; class LineChart extends Component { static propTypes = { type: PropType...
src/components/Home.js
slkjse9/slkjse9.github.io
import React from 'react'; // import GithubForm from './forms/github/GithubForm'; // import BlogRecent from './forms/blog/RecentList'; import GithubRecent from './forms/github/RecentList'; import Dashboard from './forms/Dashboard'; class Home extends React.Component { render() { return ( <div className="c...
src/shared/components/BalanceTotal/index.js
rvboris/financebutler
import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { get } from 'lodash'; import MoneyFormat from '../MoneyFormat'; const BalanceTotal = ({ total, currencyId }) => ( <MoneyFormat sum={total} currencyId={currencyId} /> ); BalanceTotal.propTypes = { ...
src/routes/PortfolioRoute/components/PortfolioRoute.js
easingthemes/notamagic
import React from 'react'; import Gallery from 'components/Gallery'; import Parallax from 'components/Paralax'; import Achievement from 'components/Achievement'; export const PortfolioRoute = () => ( <div> <Parallax /> <Gallery /> <Achievement /> </div> ) export default PortfolioRoute
docs-ui/components/form-old-fields.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import {Form as LegacyForm, PasswordField, BooleanField} from 'app/components/forms'; export default { title: 'Core/Forms/Old/Fields', }; export const _PasswordField = withInfo({ text: 'Password input', propTablesExclude: [LegacyForm], ...
dev/js/page/home.js
WALLE729/react_webpack
'use strict'; import React from 'react' import ReactDOM from 'react-dom' import Listhome from './../components/homeList.js' import "../../css/common/base.css" // import "../../css/common/bootstrap.css" import "../../css/page/home.less" ReactDOM.render( <Listhome />, document.getElementById('home') );
examples/browser/create-splunk-react-app/src/index.js
splunk/splunk-sdk-javascript
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want your app to work offline and load f...
website/src/components/title.js
explosion/spaCy
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import Button from './button' import Tag from './tag' import { OptionalLink } from './link' import { InlineCode } from './code' import { H1, Label, InlineList, Help } from './typography' import Icon from './icon' import c...
IQMail_App/src/components/common/Header.js
victorditadi/IQApp
import React from 'react'; import { Text, View } from 'react-native'; const Header = (props) => { const { textStyle, viewStyle } = styles; return ( <View style={viewStyle}> <Text style={textStyle}>{props.headerText}</Text> </View> ); }; const styles = { viewStyle: { backgroundColor: '#F8F8F...
node_modules/react-bootstrap/es/Accordion.js
WatkinsSoftwareDevelopment/HowardsBarberShop
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PanelGroup from '...
app/javascript/mastodon/features/standalone/community_timeline/index.js
PlantsNetwork/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { refreshCommunityTimeline, expandCommunityTimeline, } from '../../../actions/timelines'; import Column from '../../../components/...
src/containers/DevTools.js
juanda99/react-redux-material-ui
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-x' changePositionKey='ctrl-q' > <LogMonitor /> </Dock...
src/components/Menu/Menu.js
MarynaHapon/Data-root-react
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Menu.css'; import Navigation from '../Navigation' import Link from '../Link'; import logoUrl from './logo-small.svg'; class Menu extends React.Component { render() { return ( <div className={s.root}...
app/javascript/mastodon/features/notifications/components/column_settings.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
src/svg-icons/communication/business.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationBusiness = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2...