path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/containers/weather_list.js
swallville/React-ReduxExample
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMap from '../components/google_map'; class WeatherList extends Component { renderWeather(cityData){ const weat = cityData.list.map((data) => data.weather.map((rain) => rain.descr...
dashboard/app/actions/appActions.js
tlisonbee/cerberus-management-service
import React from 'react' import { hashHistory } from 'react-router' import axios from 'axios' import * as constants from '../constants/actions' import * as cms from '../constants/cms' import * as mSDBActions from '../actions/manageSafetyDepositBoxActions' import * as modalActions from '../actions/modalActions' import ...
src/components/Fridge.js
FrozenTear7/student-life-organizer
import React from 'react' import { connect } from 'react-redux' import { updateFridgeItem, fridgeItemResetEdit } from '../actions/fridgeActions' import renderField from './renderField' import { reduxForm, Field, reset } from 'redux-form' import {positiveNumber, required} from '../utils/validateForm' const submitFridge...
pages/api/paper.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './paper.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/view/components/ticket/TicketBook.js
Danny-Robinson/bt-bingo
import React from 'react'; import Ticket from './Ticket'; // const book = this.props.book // const { book } = this.props export default ({ book, cursor, colour }) => ( <div> { book.map((ticket, index) => <Ticket key={`ticket${index}`} name={`Ticket ${index + 1}`} rows={ticket} cursor={cursor} colour={...
src/containers/Example.js
WapGeaR/react-redux-boilerplate-auth
import React from 'react' import {BreadCrumbs, PageHeading} from 'template/layout' export default class Example extends React.Component { render() { return( <div className="page-content"> <BreadCrumbs childs={[ {name: 'Dashboard', url: '/'}, {name: 'Example page...
js/react/es6-react/app.js
Pearyman/webexamples
import React from 'react'; class App extends React.Component { constructor(){ super(); this.state={ txt:'this is the state text', cat:0 } } update(e){ this.setState({txt: e.target.value}) } render() { return ( <div> <input type="text...
techCurriculum/ui/solutions/4.7/src/components/CardForm.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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...
actor-apps/app-web/src/app/components/common/Banner.react.js
lstNull/actor-platform
import React from 'react'; import BannerActionCreators from 'actions/BannerActionCreators'; class Banner extends React.Component { constructor(props) { super(props); if (window.localStorage.getItem('banner_jump') === null) { BannerActionCreators.show(); } } onClose = () => { BannerActionC...
src/svg-icons/av/high-quality.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHighQuality = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1....
client/desktop/app/components/teacher/classes/ClassData/LessonData.js
shanemcgraw/thumbroll
import React from 'react'; import api from '../../../../utils/api'; import moment from 'moment'; class LessonData extends React.Component { constructor(props){ super(props); this.state = { lessonId: this.props.params.lessonId, lessonName: this.props.location.state.lessonName, className: thi...
src/App.js
nickscaglione/frontend-articles-mic
import React, { Component } from 'react'; import './App.css'; import Table from './components/TableComponent' class App extends Component { render() { return ( <div className="App"> <Table /> </div> ); } } export default App;
src/svg-icons/action/assessment.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssessment = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); ActionA...
blueocean-material-icons/src/js/components/svg-icons/action/motorcycle.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionMotorcycle = (props) => ( <SvgIcon {...props}> <path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2 5-5c0-2.65-1.97-4.77-4.56-4.97zM...
examples/js/expandRow/manage-expanding.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; produ...
src/docs/examples/PasswordInput/ExampleAllFeatures.js
StudentOfJS/ps-react-rod
import React from 'react'; import PasswordInput from 'ps-react-rod/PasswordInput'; /** All features enabled */ class ExampleAllFeatures extends React.Component { constructor(props) { super(props); this.state = { password: '' }; } getQuality() { const length = this.state.password.length; ...
example/index.ios.js
AidenMontgomery/react-native-swiping-row
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, ListView, Text, View } from 'react-native'; import TableRow from 'react-native-swiping-row'; import Icon from 'react-native-vector-icons/FontAwesome'; export...
newclient/scripts/components/admin/detail-view/admin-entities-summary/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
docs/src/sections/OverlaySection.js
mmarcant/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function OverlaySection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <A...
client/src/routes/IndexPage.js
ZevenFang/react-meteor-todomvc
import React, { Component } from 'react'; import TodoItem from '../components/TodoItem'; import Meteor, {createContainer} from 'react-web-meteor'; let Todo = Meteor.collection('todo'); class IndexPage extends Component { constructor(props){ super(props); this.state = { filter: 'All' } } addT...
src/shared/components/SelectInput/index.js
rvboris/finalytics
import React from 'react'; import Select from 'react-select'; import { defineMessages, injectIntl } from 'react-intl'; import './style.css'; const messages = defineMessages({ notFoud: { id: 'component.selectInput.notFound', description: 'Not found message', defaultMessage: 'Not found', }, }); const S...
app/src/js/containers/action_buttons/ToggleDevToolsButton.js
Robert-Frampton/lexicon-customizer
import React from 'react'; import {connect} from 'react-redux'; import Button from '../../components/Button'; import {toggleDevTools} from '../../actions/preview'; const mapDispatchToProps = (dispatch, ownProps) => { return { onClick: (e) => { dispatch(toggleDevTools()); } }; }; const ToggleDevToolsButton =...
app/javascript/mastodon/features/ui/components/modal_root.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Base from '../../../components/modal_root'; import BundleContainer from '../containers/bundle_container'; import BundleModalError from './bundle_modal_error'; import ModalLoading from './modal_loading'; import ActionsModal from './actions_modal'; imp...
src/svg-icons/file/create-new-folder.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCreateNewFolder = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"/> </Svg...
wail-ui/loadingScreens/firstTime/containers/layout.js
N0taN3rd/wail
import React from 'react' import PropTypes from 'prop-types' import { namedPure } from '../../../util/recomposeHelpers' import Header from '../../shared/header' import { Card, CardHeader, CardMedia, CardText } from 'material-ui/Card' import ProgressSteps from '../components/progress/progressSteps' import ProgressMessag...
src/apps/storefront/src/components/header/index.js
Kevnz/shopkeep
import React, { Component } from 'react'; class Header extends Component { render() { return ( <div> <header> <a href="#" className="logo">Shopkeep</a> <button>Home</button> <span>|</span> <button>About</button> <button>Contact</button> <b...
docs/src/components/Header/Header.js
bmatthews/haze-lea
/** * 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 withStyles from 'isom...
src/client/Spinner.js
JiLiZART/tmfeed-menu
import React from 'react' export default class Spinner extends React.Component { render () { return ( <div className='spinner'> Загрузка... </div> ) } }
src/Facts.js
RafaelCosman/alchemistsSolver
import _ from 'lodash' import React from 'react' import {Text} from 'react-native' import {potions, potionsInverted, ingredients, alchemicals, correctnessOpts} from './Enums.js' import {MyIcon} from './MyIcon.js' import {mixInWorld} from './Logic.js' class Fact { updatePrior(weightedWorld) { throw new Error("...
app/javascript/components/ui/LoadingSpinner.js
avalonmediasystem/avalon
/* * Copyright 2011-2022, The Trustees of Indiana University and Northwestern * University. 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/LICENS...
client/src/Components/oldMasterForm/WorkPrefs.js
teamcrux/EmploymentOptions
import React from 'react'; import { Field } from 'redux-form'; const WorkPrefs = () => { return ( <div className="section"> <div> <label htmlFor="fulltime">Full time</label> <Field name="fulltime" id="fulltime" component="input" type="checkbox"/> <label htmlFor="parttime">Part time<...
opwen_statuspage/src/PingStats.js
ascoderu/opwen-cloudserver
import React from 'react'; import PropTypes from 'prop-types'; import { Card, Icon, List, Statistic, notification } from 'antd'; import axios from 'axios'; import Grid from './Grid'; const colors = { success: '#3f8600', failure: '#cf1322', }; class PingStat extends React.Component { state = { pingTimeMillis...
tests/react_children/view.js
MichaelDeBoey/flow
// @flow import React from 'react'; type ReactNodeWithoutString = | void | null | boolean | React$Element<any> | Array<ReactNodeWithoutString>; // NOTE: This is intentionally `Array<T>` and // not `Iterable<T>` because `strings` are // `I...
modules/indexableFolder/client/routes/indexableFolder.client.menu.js
dimitriaguera/playlist-app
/** * Created by Dimitri Aguera on 21/09/2017. */ import React from 'react'; import { NavLink } from 'react-router-dom'; export const menuItems = [ { component: () => ( <NavLink to="/music" activeClassName="nav-selected"> Folder </NavLink> ), menuId: 'main' } ];
fields/types/email/EmailColumn.js
vokal/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
src/svg-icons/navigation/more-vert.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMoreVert = (props) => ( <SvgIcon {...props}> <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"...
app/utils/injectReducer.js
ninjaref/ninjaref
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './reducerInjectors'; /** * Dynamically injects a reducer * * @param {string} key A key of the reducer * @param {function} reducer A reducer that will be injected * ...
src/components/App.js
Plop3D/sandbox
import React from 'react' import ReactDOM from 'react-dom' import {injectGlobal} from 'styled-components' import { Lights, Sky, VRScene, LeftController, RightController, Fingers, Camera, Primitives, LoginBox, Shapes } from 'components' class App extends React.Component { constructor(props) { ...
react-fundamentals-es6/lessons/14-build-compiler/main.js
3mundi/React-Bible
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
test/regressions/tests/Menu/LongMenu.js
lgollut/material-ui
import React from 'react'; import IconButton from '@material-ui/core/IconButton'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/MenuItem'; import MoreVertIcon from '@material-ui/icons/MoreVert...
js/components/pages/HomePage.react.js
wuyuanyi135/react-template
/* * HomePage * This is the first thing users see of our App */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Grid, Row, Col } from 'react-bootstrap'; import RecentImport from '../components/RecentImport.react.js'; import RecentApplicant from '../components/RecentApplican...
src/pages/index.js
thijsvdv/gatsby-test
import React from 'react' import { compose } from "recompose" import { withScriptjs, withGoogleMap, GoogleMap, Marker, } from "react-google-maps" // import Link from 'gatsby-link' import styled from 'styled-components' import Contact from './form' // import Execution from './slides/execution' // import Focus f...
src/styles/muiThemeable.js
manchesergit/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import getMuiTheme from './getMuiTheme'; let DEFAULT_THEME; function getDefaultTheme() { if (!DEFAULT_THEME) { DEFAULT_THEME = getMuiTheme(); } return DEFAULT_THEME; } export default function muiThemeable() { return (Component) => { const...
js/src/index.js
outeredge/edge-magento-module-menu
import AppContainer from './containers/AppContainer'; import React from 'react'; import ReactDOM from 'react-dom'; const $root = document.getElementById('root'); ReactDOM.render(<AppContainer menu_id={$root.getAttribute('data-menu-id')} token={$root.getAttribute('data-token')} />, $root);
test/test_helper.js
dertnius/React.Beginner
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
cubetracker-app/src/Cards.js
sandorw/cubetracker
import React from 'react'; import {render} from 'react-dom'; import Button from 'react-bootstrap/lib/Button'; export default class Cards extends React.Component { render() { return ( <Button>Cards</Button> ); } }
src/components/widgets/displayableComponent.js
abbr/ShowPreper
import React from 'react' import classNames from 'classnames' let _ = require('lodash') let DisplayableComponent = class extends React.Component { render() { const { component, container, onSelectedWidgetUpdated, idx, onScaleMouseDown, onRotateMouseDown, onKillMouseDown,...
app/assets/javascripts/react/views/My/WorkflowEdit.js
Madek/madek-webapp
import React from 'react' import f from 'active-lodash' import cx from 'classnames' import currentLocale from '../../../lib/current-locale' const UI = require('../../ui-components/index.coffee') import SubSection from '../../ui-components/SubSection' import ResourceThumbnail from '../../decorators/ResourceThumbnail.cj...
src/components/WalletBackup.js
jhkmjnhamster/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { action, computed, observable } from 'mobx' import { inject, observer } from 'mobx-react' import { Button, Input, message } from 'antd' import { remote } from 'electron' import { join, sep } from 'path' import { dataPath } from '../utilities/co...
src/interface/others/DeathRecap.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Slider from 'rc-slider'; import 'rc-slider/assets/index.css'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Icon from 'common/Icon'; import { formatDuration, formatNumber, formatPercentage } from 'common/...
scripts/PianoRoll.js
stevenpetryk/midi-scorer
import React from 'react' import Immutable from 'immutable' import moment from 'moment' import NotePress from './NotePress' const SCALE_VALUE = 25.0 export default React.createClass({ propTypes: { startTime: React.PropTypes.any, notePresses: React.PropTypes.arrayOf(React.PropTypes.arrayOf(React.PropTypes.i...
src/components/DeveloperMenu.ios.js
jacktuck/registr
import React from 'react'; import * as snapshot from '../utils/snapshot'; import { TouchableOpacity, ActionSheetIOS, StyleSheet } from 'react-native'; /** * Simple developer menu, which allows e.g. to clear the app state. * It can be accessed through a tiny button in the bottom right corner of the screen. * ...
src/static/utils/requireAuthentication.js
SeaItRise/SeaItRise-webportal
import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; export default function requireAuthentication(Component) { class AuthenticatedComponent extends React.Component { static propTypes = { isAuthenticated: React.PropTypes.bool.isRequired, ...
src/svg-icons/image/color-lens.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorLens = (props) => ( <SvgIcon {...props}> <path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4...
examples/src/components/CustomOption.js
naturalatlas/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
app/javascript/mastodon/components/column_back_button_slim.js
WitchesTown/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import ColumnBackButton from './column_back_button'; export default class ColumnBackButtonSlim extends ColumnBackButton { render () { return ( <div className='column-back-button--slim'> <div role='button' tabIndex='0' onClic...
app/javascript/mastodon/features/lists/components/new_list_form.js
ashfurrow/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
app/components/layout/newProject/TrackSelector.js
communicode-source/communicode
import React from 'react'; import PropTypes from 'prop-types'; import styles from './../../../assets/css/pages/createProject.scss'; class TrackSelector extends React.Component { constructor(props) { super(props); this.props = props; } handleTrackSelect(e) { if(e.target.value === 'S...
examples/cra-ts-essentials/.storybook/preview.js
storybooks/storybook
import React from 'react'; export const decorators = [ (StoryFn, { globals: { locale = 'en' } }) => ( <> <div>{locale}</div> <StoryFn /> </> ), ]; export const globalTypes = { locale: { name: 'Locale', description: 'Internationalization locale', defaultValue: 'en', toolbar: {...
src/components/CheckboxLabel.js
devdlx/foxxiee
/** * Copyright 2016 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 appli...
src/client/components/me.js
vacuumlabs/todolist
import Logout from './logout'; import React from 'react'; import auth from './common/auth'; class Me extends React.Component { render() { return ( <div> <p> This is your secret page. </p> <Logout /> </div> ); } } export default auth(Me);
app/javascript/flavours/glitch/features/directory/index.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from 'flavours/glitch/components/column'; import ColumnHeader from 'flavours/glitch/com...
blueocean-material-icons/src/js/components/svg-icons/action/shop-two.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionShopTwo = (props) => ( <SvgIcon {...props}> <path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z"/> ...
src/svg-icons/maps/directions-railway.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRailway = (props) => ( <SvgIcon {...props}> <path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2...
src/components/TimeFilter.js
springload/reusable-d3-charts
import React from 'react'; import Select from 'react-simpler-select'; import Button from '../components/Button'; /** * Time filtering UI, for the user to "zoom in" on a smaller length of time. */ const TimeFilter = ({ availableYears, filterTo, filterFrom, handleChangeFrom, handleChangeTo, resetTimeFilter }) => { ...
information/blendle-frontend-react-source/app/containers/ApplicationContainer.js
BramscoChill/BlendleParser
import i18n from 'instances/i18n'; import Country from 'instances/country'; import ApplicationState from 'instances/application_state'; import Analytics from 'instances/analytics'; import logPerformance from 'helpers/logPerformance'; import BrowserEnvironment from 'instances/browser_environment'; import Settings from '...
app/javascript/mastodon/features/getting_started/components/announcements.js
abcang/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import Icon f...
classic/src/scenes/wbui/SleepableField.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { FormControl, Input, InputLabel, InputAdornment, Checkbox, Grid } from '@material-ui/core' import { withStyles } from '@material-ui/core/styles' const styles = { gridContainer: { marginT...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js
matart15/create-react-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(prefix) { return [ { id: 1, [`${prefi...
containers/AddTodo.js
jpsierens/react-redux-todo
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' const handleInput = (input, onAdd) => { onAdd(input.value) input.value = '' } let AddTodo = ({ onAdd }) => { let input return ( <div> <input ref={node => { input = node }}...
client/knowledge_base_search/src/index.js
watson-developer-cloud/discovery-starter-kit
/* eslint-disable react/jsx-filename-extension */ import 'phantomjs-polyfill-find-index/findIndex-polyfill'; import 'phantomjs-polyfill-find/find-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root'), );
gadget-system-teamwork/src/index.js
TeodorDimitrov89/JS-Web-Teamwork-2017
import React from 'react' import ReactDOM from 'react-dom' import { BrowserRouter } from 'react-router-dom' import './index.css' import App from './App' import registerServiceWorker from './registerServiceWorker' ReactDOM.render( <BrowserRouter> <App /> </BrowserRouter>, document.getElementById('root')) regist...
definitions/npm/styled-components_v3.x.x/flow_v0.104.x-/test_styled-components_v3.x.x.js
flowtype/flow-typed
// @flow import {renderToString} from 'react-dom/server' import styled, { css, ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager } from 'styled-components' import React from 'react' import type { Theme, Interpolation, ReactComponentFunctional, ReactComponentFunctionalUndefined...
src/library/modal/index.js
zdizzle6717/universal-react-movie-app
'use strict'; import React from 'react'; import classNames from 'classnames'; import Animation from 'react-addons-css-transition-group'; export default class Modal extends React.Component { constructor(props, context) { super(props, context); } render() { let containerClasses = classNames({ 'modal-conta...
src/js/components/icons/base/Transaction.js
odedre/grommet-final
/** * @description Transaction SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. *...
actor-apps/app-web/src/app/components/modals/Preferences.react.js
liruqi/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui'; import { KeyCodes } from 'constants/ActorAp...
test/helpers/shallowRenderHelper.js
xbili/iwastetime2
/** * 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'...
admin/client/components/ItemsTableValue.js
stunjiturner/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var ItemsTableValue = React.createClass({ displayName: 'ItemsTableValue', propTypes: { className: React.PropTypes.string, exterior: React.PropTypes.bool, field: React.PropTypes.string, href: React.PropTypes.str...
src/components/index.js
lnrd256/twitter_client
import React, { Component } from 'react'; import {reduxForm} from 'redux-form'; import FormUser from '../containers/form-user'; export default class Index extends Component { render() { return ( <div> <div className="container white login"> <FormUser/> </div> </div> ...
src/components/NotFoundPage.js
rafurr/react-material-ui-components
import React from 'react'; import {Link} from 'react-router'; // Since this component is simple and static, there's no parent container for it. const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export ...
src/components/Footer/FacebookIcon.js
Galernaya20/galernaya20.com
//@flow import React from 'react' import {Svg} from '../Svg/Svg' export const FacebookIcon = (props: Object) => ( <Svg {...props}> <path d="M41,4H9C6.24,4,4,6.24,4,9v32c0,2.76,2.24,5,5,5h32c2.76,0,5-2.24,5-5V9C46,6.24,43.76,4,41,4z M37,19h-2c-2.14,0-3,0.5-3,2 v3h5l-1,5h-4v15h-5V29h-4v-5h4v-3c0-4,2-7,6-7c2.9,0,4...
src/bundles/ApplicationsAdmin/BriefAdminWidget.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import { Provider } from 'react-redux' import { Route, Switch } from 'react-router-dom'; import RegisterComponent from '../../RegisterComponent' import createStore from './redux/create' import BriefEdit from './components/BriefEdit' const BriefAdminWidget = (props) => { const store = cre...
server/frontend/src/components/ManageForm/manageForm.js
cs472-spots/spots
import React from 'react'; class SearchForm extends React.Component { constructor (props) { super(props); this.state = { info: { firstName: '' } } } render() { const { info } = this.props; return ( <div className="row"> {/* Left column */} <div clas...
examples/huge-apps/routes/Grades/components/Grades.js
ryardley/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
docs/src/app/components/pages/components/FontIcon/ExampleIcons.js
ichiohta/material-ui
import React from 'react'; import FontIcon from 'material-ui/FontIcon'; import {red500, yellow500, blue500} from 'material-ui/styles/colors'; const iconStyles = { marginRight: 24, }; const FontIconExampleIcons = () => ( <div> <FontIcon className="material-icons" style={iconStyles}>home</FontIcon> <FontIco...
src/components/views/items/CarouselMixAlbums.js
planlodge/soundmix
import React from 'react'; import {NavLink} from 'react-router-dom'; import OwlCarousel from 'react-owl-carousel'; // Using "Stateless Functional Components" export default function (props) { //console.log("Ps", props); return ( <OwlCarousel items={6} autoplaySpeed={300} ...
src/layouts/PaymentLayout/PaymentLayout.js
bruceli1986/contract-react
import React from 'react' import PaymentToolbar from '../../components/PaymentToolbar' import Nav from '../../containers/basic/Nav' import PaymentFooter from '../../components/PaymentFooter' import '../../styles/layout/paymentlayout.scss' import '../../styles/icon.scss' import { translate } from 'react-i18next' /** 合同...
src/Parser/Druid/Guardian/Modules/Features/AntiFillerSpam.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Mod...
react-router-tutorial/lessons/10-clean-urls/modules/Repo.js
zerotung/practices-and-notes
import React from 'react' export default React.createClass({ render() { return ( <div> <h2>{this.props.params.repoName}</h2> </div> ) } })
src/workflows/visualizer/components/steps/Visualization/Start.js
Kitware/HPCCloud
import React from 'react'; import JobSubmission from '../../../../generic/components/steps/JobSubmission'; // ---------------------------------------------------------------------------- const actionList = [ { name: 'prepareJob', label: 'Start Visualization', icon: '' }, ]; // -------------------------------------...
app/components/Modal/Modal.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import ReactModal from 'react-modal'; import { modalStyle as customStyles } from '../../styles.js'; const Modal = (props) => { const { contentLabel, isOpen, onCloseModal, title, canSubmit, submitForm, cancelBtnLabel, subm...
client/android/app/src/pages/CreateBillboard.js
blusclips/zonaster
import React, { Component } from 'react'; import { AppRegistry,StyleSheet,Text, View,AsyncStorage} from 'react-native'; import { Container, Content, Body, H2, Item, Input, Button, Picker} from 'native-base'; import general from '../styles/general'; import progressDialog from '../../../../src/progressDialog.js'; import ...
tests/lib/rules/vars-on-top.js
Cellule/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
src/partials/footer.js
getinsomnia/insomnia.rest
import React from 'react'; import { menus, site } from '../config'; import Link from '../components/link'; import iconSrc from '../assets/icon.svg'; class Footer extends React.Component { render() { return ( <footer className="footer"> <div className="row"> <div className="col-4"> ...
client/components/router.js
olegccc/10cards
import React from 'react' import {Router, Route, IndexRoute, hashHistory} from 'react-router' import Home from './home' import AddCard from './addCard' import EditSet from './editSet' import EditCards from './editCards' import Layout from './layout' import ManageSets from './manageSets' const router = ( <Router h...
src/svg-icons/action/assignment-turned-in.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 ....
ui/src/frontend/component/Repo.js
Virtustream-OSS/packrat
import React from 'react'; import CInP from './cinp'; import { Table, TableHead, TableRow, TableCell } from 'react-toolbox'; import { Link } from 'react-router-dom'; class Repo extends React.Component { state = { repo_list: [], repo: null }; componentDidMount() { this.update( this.props ); }...
src/components/app/App.js
Miroku87/pogo-raids-organizer
import React, { Component } from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom' import RaidMap from '../raid/RaidMap'; import Header from '../ui/Header'; import RaidInsert from '../raid/RaidInsert'; import RaidChat from '../raid/RaidChat'; import RaidInfo from '../raid/RaidInfo'; import Hel...
src/pages/About/index.js
thisiskylierose/react-boilerplate
// @flow import React from 'react'; // import bootstrap from '../../../styles/bootstrap.less'; const About = (): React$Element<*> => ( <div> <h2>About page</h2> </div> ); export default About;
demo/src/components/App/App.js
moroshko/react-autowhatever
import styles from './App.less'; import React from 'react'; import ForkMeOnGitHub from 'ForkMeOnGitHub/ForkMeOnGitHub'; import Example0 from 'Example0/Example0'; import Example1 from 'Example1/Example1'; import Example2 from 'Example2/Example2'; import Example3 from 'Example3/Example3'; import Example4 from 'Example4/...