path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
public/js/components/tabs.js
victorgan/yasp
import React from 'react'; import Tabs from 'material-ui/lib/tabs/tabs'; import Tab from 'material-ui/lib/tabs/tab'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; export default class TabsExampleControlled extends React.Component { construct...
reactviews/src/alert.js
yvesago/dioc
import React from 'react'; import { useMediaQuery } from '@material-ui/core'; import { List, Datagrid, TextField, DateField, EditButton, Edit, SimpleForm, Filter, TextInput, SelectInput, RichTextField, SimpleList } from 'react-admin'; import RichTextInput from 'ra-input-rich-text'; import { withStyles } from '@...
src/components/Timer/Timer.js
Angular-Toast/habitat
import React, { Component } from 'react'; import { Constants, Audio } from 'expo'; import { View, Text, Image, TouchableOpacity, StyleSheet, Picker, Button } from 'react-native'; import * as Progress from 'react-native-progress'; import axios from 'axios'; // import convertDate from '../Frontend/convertDate' export de...
tests/site2/code/partial.js
dominikwilkowski/cuttlebelle
import PropTypes from 'prop-types'; import React from 'react'; /** * The Partial component for the default layout of partials */ const Partial = ({ _body, title }) => ( <article> { title && <h2>{ title }</h2> } <div>{ _body }</div> </article> ); Partial.propTypes = { /** * title: Partial title */ titl...
webapp/app/components/EditUser/Form/Groups/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component groups form page edit user // import React from 'react'; import { ControlLabel, FormGroup, Col } from 'react-bootstrap'; import RadioGroup from 'components/RadioGroup'; import styles from 'components/EditUser/styles.css'; /* eslint-disable react/prefer-stateless-function */ export default class EditUs...
frontend/js/components/ecosystems/Header.js
Code4HR/okcandidate-platform
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AppLogo from './../organisms/AppLogo'; import { toggleSidebarVisibility } from './../../redux/actions/ui-actions'; class Header extends Component { toggleSidebarVisibility() { this.props.dispatch(toggleSidebarVisibili...
node_modules/react-router/es6/Redirect.js
xuan6/admin_dashboard_local_dev
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
frontend/src/Settings/ImportLists/ImportListExclusions/ImportListExclusion.js
geogolem/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import ConfirmModal from 'Components/Modal/ConfirmModal'; import { icons, kinds } from 'Helpers/Props'; import translate from 'U...
client/src/modules/Overview.js
showmethewei/tuna-io
import React from 'react'; export default React.createClass({ render() { return ( <div>Dashboard overview</div> ); }, });
src/components/Media/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import Link from 'components/Interactive/Link' const Media = ({ data }) => { if (!data) { return null } return ( <div className='media'> { data.map((entry) => { return ( <Link key={entry.fields...
node_modules/react-bootstrap/es/NavbarToggle.js
geng890518/editor-ui
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 ...
packages/starter-scripts/fixtures/kitchensink/template/src/features/syntax/NullishCoalescing.js
chungchiehlun/create-starter-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, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return [ { id: 1, name: '1' }, ...
js/ClientApp.js
jimmynono/cocktail-app
import React from 'react' import { render } from 'react-dom' import { BrowserRouter, Match } from 'react-router' import Landing from './Landing' import Search from './Search' import Client from './Contentful' import '../public/stylesheets/app.scss' import CocktailRecipe from './CocktailRecipe' // import cocktails from ...
client/modules/expense/components/.stories/expense_edit.js
BitSherpa/expensius
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import ExpenseEdit from '../expense_edit.jsx'; storiesOf('expense.ExpenseEdit', module) .add('default view', () => { return ( <ExpenseEdit /> ); })
app/components/Players/AddPlayer.js
bplabombarda/hockeyatx.com
import React from 'react'; require('./addPlayer.scss'); class AddPlayer extends React.Component { handleSubmit() { const newPlayer = { name: this.refs.playerName.getDOMNode().value, email: this.refs.playerEmail.getDOMNode().value, reply: true }; this.pro...
src/svg-icons/action/account-box.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
src/svg-icons/action/thumb-down.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbDown = (props) => ( <SvgIcon {...props}> <path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.5...
src/routes/game/index.js
L2D22/RPS
/** * 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 Game from '../../c...
cdap-ui/app/cdap/services/WizardConfigs/ArtifactUploadWizardConfig.js
caskdata/cdap
/* * Copyright © 2016 Cask Data, Inc. * * 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 t...
client/src/components/dashboard/messaging/compose-message.js
ronniehedrick/scapeshift
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { fetchRecipients, startConversation } from '../../../actions/messaging'; const form = reduxForm({ form: 'composeMessage', validate, }); function validate(formProps) { const err...
src/components/Credits/Credits.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import settings from '../../globals/js/settings'; const { prefix } = settings; /** Credits are mostly used when a photo need a source attribution. */ const Credits = ({ children, className, info, ...other }) => { con...
assets/jqwidgets/demos/react/app/treegrid/columnicons/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.expandRow(2); } render () { let employees = [{ "EmployeeID": 1, "FirstName": ...
app/javascript/mastodon/components/display_name.js
PlantsNetwork/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, }; render () { const displayNameHtml = { __html: this.props.account.get('display_name_ht...
demo/src/components/App/components/Footer/Footer.js
CoreFiling/react-autosuggest
import styles from './Footer.less'; import React from 'react'; import Link from 'Link/Link'; const Footer = () => ( <div className={styles.container}> <div> {'Crafted with love by '} <Link className={styles.link} href="https://twitter.com/moroshko" underline={false} > ...
react/features/reactions/components/web/ReactionsMenu.js
gpolitis/jitsi-meet
// @flow /* eslint-disable react/jsx-no-bind */ import { withStyles } from '@material-ui/styles'; import clsx from 'clsx'; import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { createReactionMenuEvent, createToolbarEvent, sendAnalytics } from '../../../analytics';...
src/index.js
nnnoel/graphql-apollo-resource-manager
import React from 'react'; import { render as renderToDOM } from 'react-dom'; import Root from './Root'; renderToDOM(<Root />, document.getElementById('root'));
tests/Rules-maxLength-spec.js
RMSAuto/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
frontend/teg-web-ui/src/printer/common/frame/components/ErrorMessage.js
tegh/tegh-daemon
import React from 'react' export default ({ message }) => ( <aside> {message} <style jsx> {` aside { padding: 1.5em; font-size: 14px; color: white; background-color: red; } `} </style> </aside> )
src/components/new-file-dialog/index.js
stevegood/stringer
import React from 'react' import { Dialog, FlatButton } from 'material-ui' const NewFileDialog = (props) => { return ( <Dialog title='Create New File' modal={false} open={props.open} onRequestClose={props.onRequestClose}> Create new content... </Dialog> ) } export default N...
lib/ui/example/client/preview.js
enjoylife/storybook
import React from 'react'; const mainStyle = { padding: 10, fontFamily: 'arial', }; export default class Preview extends React.Component { constructor(globalState) { super(); this.state = {}; this.globalState = globalState; this.globalState.on('change', (kind, story) => { if (this.mounted...
client/app/components/question/index.js
zex713/crypto-test
// @flow import React, { Component } from 'react'; import './style.css' export default class Question extends Component { constructor(props){ super(props); this.state = { q: { question: 'Hello, world!', answer1: 'AABBBAABAAABABAABABAABBABBABAAABBABBAAAAABABAAAABB', answer2: 'AA...
src/Root.js
mirimCZ/letscode-gql
import React from 'react' import ApolloClient, { createBatchingNetworkInterface, ApolloProvider } from 'react-apollo' import { BrowserRouter, Route, Switch, Link } from 'react-router-dom' import ListPage from './ListPage' import DetailPage from './DetailPage' const networkInterface = createBatchingNetworkInterface({ ...
src/components/UserRole/index.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import upperCaseFirst from 'upper-case-first'; import RoleColor from '../RoleColor'; const enhance = translate(); const UserRole = ({ t, roleName, }) => ( <RoleColor component="div" className="UserRole" rol...
src/js/Components/Common/EditOptions.js
mattgordils/DropSplash
import React, { Component } from 'react'; import 'sass/components/common/editable'; import InlineSVG from 'svg-inline-react/lib'; import Button from 'Components/Common/Button'; import SettingsIcon from 'assets/icons/settings-icon'; import CheckIcon from 'assets/icons/check'; import DeleteIcon from 'assets/icons/tras...
client/react/frontpage/components/Pagination.js
uclaradio/uclaradio
// Pagination.js // Pagination component import React from 'react'; import './Pagination.scss'; /** Reusable pagination @prop maxPages: limit of pages based on data @prop setPageNumber: set current page * */ const Pagination = React.createClass({ getInitialState() { return { pageNumber: this.props.pageNu...
webApp/src/Components/BroadcastLiveViewSC.js
s-law/silent-disco
import React from 'react'; // CLIENTID import SC_Client from '../../server/config/apiKeys'; // COMPONENTS import BroadcastSCEntry from './BroadcastSCEntry.js'; import BroadcastQueueEntry from './BroadcastQueueEntry.js'; import BroadcastPlayedEntry from './BroadcastPlayedEntry.js'; import BroadcastAudioPlayer from './...
app/components/Restart.js
LetSpotify/letspotify-client
import React, { Component } from 'react'; import styles from './Restart.styl'; export default class Home extends Component { constructor(props) { super(props); } render() { return ( <div className={styles.container}> <div className={styles.restart}> <span>Please open Spotify th...
src/InputBase.js
HorizonXP/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import FormGroup from './FormGroup'; import Glyphicon from './Glyphicon'; class InputBase extends React.Component { getInputDOMNode() { return React.findDOMNode(this.refs.input); } getValue() { if (this.props.type === 'static') { retu...
demo/index.js
namespace-ee/react-calendar-timeline
import React from 'react' import ReactDOM from 'react-dom' import 'react-calendar-timeline-css' import App from './app' const render = AppToRender => { ReactDOM.render(<AppToRender />, document.getElementById('root')) } render(App) if (module.hot) { module.hot.accept('./app', () => { const NextApp = require(...
src/components/UserText.js
baskoroi/mrkdwn
import React, { Component } from 'react'; import './UserText.css'; class UserText extends Component { handleChange(event) { this.props.onChange(event.target.value); } render() { return ( <textarea onChange={this.handleChange.bind(this)} classNa...
client/src/components/landing/landing.js
AuggieH/GigRTC
import React from 'react'; import { Component } from 'react'; import RaisedButton from 'material-ui/lib/raised-button'; import { Link } from 'react-router'; import SignInModal from '../modals/userSigninModal'; import StreamsUL from '../streamsList/listOfStreams'; let artistButton = { 'margin-top': "45px", 'margin-...
js/app.js
chentsulin/relay-chat
import React from 'react'; import ReactDOM from 'react-dom'; import {Router} from 'react-router'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Routes from './routes'; import ReactRouterRelay from 'react-router-relay'; ReactDOM.render( <Router history={new BrowserHistory()} createEleme...
src/mui/detail/TabbedShowLayout.js
azureReact/AzureReact
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Tabs, Tab } from 'material-ui/Tabs'; const divStyle = { padding: '0 1em 1em 1em' }; class TabbedShowLayout extends Component { constructor(props) { super(props); this.state = { value: 0, }; ...
examples/replace.js
threepointone/glamor
// import React from 'react' import { StyleSheet } from '../src/sheet' let sheet = new StyleSheet() sheet.inject() sheet.insert('arbit { color: blue; }') sheet.insert('.abc { color: green; }') let tack = sheet.insert('.xyz { color: red; }') sheet.insert('.abc { color: yellow; }') sheet.insert('.abc { color: white; }')...
src/svg-icons/action/loyalty.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLoyalty = (props) => ( <SvgIcon {...props}> <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86....
NavigationReact/sample/hotloader/Person.js
grahammendick/navigation
import React from 'react'; import { NavigationBackLink } from 'navigation-react'; export default ({ person }) => ( <div> <NavigationBackLink distance={1}> Person Search </NavigationBackLink> <div> <h2>{person.name}</h2> <div className="label">Date of Birt...
app/components/NotFound.js
alubbe/redux-blog-example
import styles from './../global.styl'; import React from 'react'; import CSSModules from 'react-css-modules'; @CSSModules(styles) export default class NotFound extends React.Component { render() { return ( <div styleName="wrapper"> <h1>Not Found</h1> </div> ); } }
src/svg-icons/image/edit.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageEdit = (props) => ( <SvgIcon {...props}> <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/> ...
src/index.js
JC-Orozco/BlocksIDE
// Copyright 2016 Juan Carlos Orozco // Licensed under the Apache License, Version 2.0 (the "License"); // https://github.com/JC-Orozco/BlocksIDE import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; Rea...
src/index.js
odincov/biguniverse-tools
import React from 'react'; import { render } from 'react-dom'; import Root from './containers/Root'; import { createHistory } from 'history'; const history = createHistory(); render( <Root history={history} />, document.getElementById('root') );
src/utils/domUtils.js
zanjs/react-bootstrap
import React from 'react'; import canUseDom from 'dom-helpers/util/inDOM'; import getOwnerDocument from 'dom-helpers/ownerDocument'; import getOwnerWindow from 'dom-helpers/ownerWindow'; import contains from 'dom-helpers/query/contains'; import activeElement from 'dom-helpers/activeElement'; import getOffset from 'd...
src/routes/App/components/HomeScreen/HomeScreen.js
nobt-io/frontend
import React from 'react'; import styles from './HomeScreen.scss'; import EmptyNobtPlaceholder from '../EmptyNobtPlaceholder/index'; import { FontIcon } from 'react-toolbox-legacy/lib/font_icon'; import NobtFAB from '../NobtFAB'; import NobtItButtonTheme from './NobtItButtonTheme.scss'; import { Button } from 'react-to...
src/mixins/style-propable.js
chrismcv/material-ui
import React from 'react'; import {mergeStyles, mergeAndPrefix} from '../utils/styles'; /** * This mixin isn't necessary and will be removed soon. DO NOT USE! * * All internal components that use this mixin should be switched to the * `styleUtils` that this mixin now wraps. Notice the method signature of * the `p...
src/components/Translate/Translate.react.js
RMCoder198/chat.susi.ai
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import UserPreferencesStore from '../../stores/UserPreferencesStore'; import de from './de.json'; import am from './am.json'; import zh from './zh.json'; import es from './es.json'; import hi from './hi.json'; import fr from './fr.json'; impo...
src/icons/LocalParkingIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class LocalParkingIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M26 6H12v36h8V30h6c6.63 0 12-5.37 12-12S32.63 6 26 6zm.4 16H20v-8h6.4c2.21 0 4 1.79 4 4s-1.79 4-4 4z"...
src/svg-icons/image/picture-as-pdf.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePictureAsPdf = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 ...
src/components/InlineCheckbox/InlineCheckbox.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import { settings } from 'carbon-components'; import mergeRefs from '../../too...
Agiil.Web.Client/src/pages/NewTicket.Index.js
csf-dev/agiil
//@flow import React from 'react'; import ReactDOM from 'react-dom'; import { getElementById, getElementByIdMandatory } from 'util/dom'; import { LabelChooser } from 'components/labels/LabelChooser'; import getStore from 'app/getStore'; import type { AnyStore } from 'util/redux/AnyStore'; import { Provider } from 'reac...
app/components/Home.js
BeAce/react-babel-webpack-eslint-boilerplate
import React, { Component } from 'react'; class Home extends Component { constructor() { super(); this.state = { name: 'React', ticking: 0, }; } onClick = (e) => { e.preventDefault(); this.setState({ ticking: this.state.ticking + 1, }); } render() { return ( ...
src/svg-icons/editor/short-text.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShortText = (props) => ( <SvgIcon {...props}> <path d="M4 9h16v2H4zm0 4h10v2H4z"/> </SvgIcon> ); EditorShortText = pure(EditorShortText); EditorShortText.displayName = 'EditorShortText'; EditorShortText...
src/parser/shared/modules/features/RaidHealthTab/TabComponent/index.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Panel from 'interface/others/Panel'; import Graph from './Graph'; const Mana = ({ parser }) => ( <Panel title="Raid health" explanation="The stacked health of your raid to give an idea of the healing intensity. Most progression raid figh...
packages/react-scripts/template/src/index.js
pdillon/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
frontend/src/app/containers/HomePage/HomePageWithAddon.js
mozilla/idea-town-server
/* eslint-disable */ // @flow import classnames from 'classnames'; import { Localized } from 'fluent-react/compat'; import React, { Component } from 'react'; import Banner from '../../components/Banner'; import Copter from '../../components/Copter'; import EmailDialog from '../../components/EmailDialog'; import Experi...
developers.diem.com/src/components/docs/BlogRedirect/index.js
libra/libra
import React from 'react'; export default () => { if (typeof window !== 'undefined') { const slug = location.pathname.slice(location.pathname.lastIndexOf('/')+1); window.location = 'https://diem.com/en-US/blog/' + slug; } return null; };
src/index.js
syvzies/recipe-recommender
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Switch, Route } from 'react-router-dom'; import reduxThunk from 'redux-thunk'; import reducers from './reducers'; import Home from './compon...
src/scripts/Pwg.js
pixelkritzel/pwg_react
import React, { Component } from 'react'; import { Pwform } from './PWForm'; import { Pwresult } from './PWResult'; import { ServiceList } from './ServiceList'; // import './styles/style.scss'; export class Pwg extends Component { constructor(props) { super(props); this.state = { isPasswortGenerated: ...
src/index.js
happypeter/sketch-with-css
import React from 'react'; import App from './App'; require("./main.scss"); React.render(<App />, document.getElementById('root'));
examples/src/components/Virtualized.js
millerized/react-select
import React from 'react'; import VirtualizedSelect from 'react-virtualized-select'; const DATA = require('../data/cities'); var CitiesField = React.createClass({ displayName: 'CitiesField', getInitialState () { return {}; }, updateValue (newValue) { this.setState({ selectValue: newValue }); }, render ...
app/components/LoadingIndicator/index.js
itimofeev/hustlesa-ui
import React from 'react'; import styles from './styles.css'; function LoadingIndicator() { return ( <div> <div className={styles['sk-fading-circle']}> <div className={styles.skCircle}></div> <div className={styles['sk-circle2']}></div> <div className={styles['sk-circle3']}></div> ...
src/page/waiqin/RemarkPage.js
KmKm007/oa
import React from 'react' import { connect } from 'react-redux' import createHistory from 'history/createHashHistory' import actions from '../../Redux/actions' import MenuHeaderContainer from '../../containers/MenuHeaderContainer' import RemarkContainer from '../../containers/waiqin/RemarkContainer' const history = cr...
src/index.js
ikovic/filterAppReact
import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import store from './store/store'; import Container from './components/container/container'; render( <Provider store={store}> <Container/> </Provider>, document.getElementById('root') );
src/components/loader.js
alexcurtis/react-fbpage
'use strict'; import React from 'react'; import Radium from 'radium'; import Spinner from 'spin.js'; @Radium class Loader extends React.Component { constructor(props){ super(props); } componentDidMount(){ this.spinner = new Spinner(this.props.config); if(this.props.loading){ this.r...
client/index.js
rockchalkwushock/photography-frontend
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { IntlActions, IntlProvider } from 'react-redux-multilingual'; import { AppContainer } from 'react-hot-loader'; import Root from './Root'; import { store } from './redux'; import { translations } from './module...
app/javascript/mastodon/features/community_timeline/components/column_settings.js
ambition-vietnam/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import SettingText from '../../../components/setting_text'; const messages = defineMessages({ filter_regex: { id: 'home...
addons/themes/big-picture/layouts/Blog.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import scrollToElement from 'scroll-to-element'; class Blog extends React.Component { constructor(props){ super(props) this....
src/Grid.js
jontewks/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Grid = React.createClass({ propTypes: { /** * Turn any fixed-width grid layout into a full-width layout by this property. * * Adds `container-fluid` class. */ fluid...
src/components/GithubButton/GithubButton.js
simonghales/mapping
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
src/components/basics/BasicComponentStories.js
timLoewel/sites
import React from 'react'; import {storiesOf, action, linkTo} from '@kadira/react-native-storybook'; import CenterView from './CenterView'; import RoundThumbnail from './RoundThumbnail'; const profileImage = require('../../assets/images/avatar2016.jpg'); storiesOf('Basics', module) .addDecorator(getStory => ( <...
src/components/Register.js
jamez14/jams-tweeter
import React from 'react'; import RegisterForm from './RegisterForm'; import UserApi from '../api/userApi'; class RegisterUser extends React.Component { constructor(props) { super(props); this.state = { user: { name: '', handle: '', location: '' }, errors: {} };...
src/lib/markers/implementations/shared.js
namespace-ee/react-calendar-timeline
import React from 'react' /** * Baseline styles to get the marker to render correctly */ const criticalStyles = { position: 'absolute', top: 0, bottom: 0, width: '2px', backgroundColor: 'black', // by default, pointer events (specifically click) will // "pass through". This is added so that CursorMark...
example/src/app.js
narendrashetty/react-geosuggest
/* global google */ import React from 'react'; import ReactDOM from 'react-dom'; import Geosuggest from '../../src/Geosuggest'; var App = React.createClass({ // eslint-disable-line /** * Render the example app * @return {Function} React render function */ render: function() { var fixtures = [ {...
examples/Position.js
BespokeInsights/react-overlays
import React from 'react'; import Position from 'react-overlays/Position'; import Button from 'react-bootstrap/lib/Button'; const OverlayStyle = { position: 'absolute' }; const OverlayInnerStyle = { margin: 5, backgroundColor: '#555', borderRadius: 3, color: 'white', padding: '2px 5px' }; const CalloutS...
Frontend/src/components/app.js
mayk93/SentimentAnalysis
import React from 'react'; import {Component} from 'react'; import ClassificationApp from '../containers/classification_app'; import ClassificationAppJumbotron from '../components/classification_app_jumbotron'; import ClassificationAppFooter from '../components/classification_app_footer'; export default class App ex...
app/containers/LanguageProvider/index.js
GeorgeZhukov/react-todo
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/ClickToEditTime.js
amiklosi/scheduling
import React from 'react' import Select from 'react-select' import {codeToTime, pad, timeToCode, days} from './date-utils' import styles from './ClickToEditTime.scss' import onClickOutside from 'react-onclickoutside' class ClickToEditTime extends React.Component { constructor(props) { super(props) let idx ...
node_modules/@shoutem/animation/src/animations/FadeIn.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { Animated, View } from 'react-native'; import { DriverShape } from '../drivers/DriverShape'; /* * FadeIn Component adds fade in effect to its children components. * Connect it to an animation driver and pass the input range to animate it. * e.g.: * ... * const driv...
src/main.js
samsch/basic-react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('app') );
client/modules/app/components/.stories/account_login.js
kjetilge/mantra-material-ui-kickstarter
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import AccountLogin from '../AccountLogin/Wrapper'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; //Hoe to get this to context ? import Formsy from 'formsy-...
src/index.js
bcsteidl/amigo-alerta
'use strict' import React from 'react' import {render} from 'react-dom' import {AppContainer} from 'react-hot-loader' import App from './app' const renderApp = (NextApp) => { render( <AppContainer> <NextApp/> </AppContainer>, document.querySelector('[data-js="app"]')) } renderApp(App) if (mo...
app/javascript/mastodon/features/list_editor/index.js
mosaxiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
nailgun/static/views/cluster_page_tabs/nodes_tab_screens/edit_node_disks_screen.js
eayunstack/fuel-web
/* * Copyright 2015 Mirantis, Inc. * * 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 ...
web/demo/client/src/index.js
yinweiwen/study
/** * User: liuxinyi/liu.xinyi@free-sun.com.cn * Date: 2015/12/24 * Time: 16:52 * */ 'use strict'; import React from 'react'; import { render } from 'react-dom'; import App from './app'; import { LocaleProvider } from 'antd'; import zh_CN from 'antd/lib/locale-provider/zh_CN'; render(( <LocaleProvider locale...
packages/material-ui-icons/src/NotificationsPaused.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let NotificationsPaused = props => <SvgIcon {...props}> <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.93 6 11v5l-...
js/rendererjs/disabledplugin.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' import { shell } from 'electron' const containerStyle = { display: 'flex', alignItems: 'center', justifyContent: 'center', flexDirection: 'column', backgroundColor: '#C6C6C6', width: '100%', height: '100%' } const errorLogStyle = { height: '...
classic/src/scenes/mailboxes/src/Scenes/AppWizardScene/AppWizardScene.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { withStyles } from '@material-ui/core/styles' import AppWizardSceneContent from './AppWizardSceneContent' import { RouterDialog, RouterDialogStateProvider } from 'wbui/RouterDialog' const styl...
src/basic/Picker.android.js
chaitanya0bhagvan/NativeBase
/* @flow */ import React, { Component } from 'react'; import { Picker } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; export default class PickerNB extends Component { render() { return ( <Picker ref={c =>...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
verniy6462/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAccount, unmuteAccount, } from '../../../actions/accounts'; import { me...
app/containers/FeaturePage/index.js
jdelatorreitrs/react-boilerplate
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
stories/ui/Badge.js
tsl143/addons-frontend
/* @flow */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import Badge from 'ui/components/Badge'; import type { Props as BadgeProps } from 'ui/components/Badge'; import { createChapters } from '../utils'; const label = 'Hello Badge'; cons...
imports/ui/pages/ArchiveViewPageNew/ArchiveViewPageNew.js
jamiebones/Journal_Publication
/* eslint-disable */ import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col , Alert , Button , Label , Table } from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; import { Capitalize , capAllFirstLetter , sumMeUp , AuthorRank } from '../../../modules/utilities'; import { ViewOn...