path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
_theme/template/NotFound.js
ElemeFE/react-amap
import React from 'react'; import Layout from './Layout'; export default class NotFound extends React.Component { render() { return <Layout> <div id="notfound"> <img src="https://cloud.githubusercontent.com/assets/3898898/23833528/2e1e198c-0782-11e7-8e13-664b39a29d4b.png" alt=""/> <div clas...
assets/node_modules/react-easy-chart/modules/pie-chart/hybrid/index.js
janta-devs/nyumbani
import React from 'react'; import { scale, layout, svg, select, event as lastEvent, interpolate } from 'd3'; import { createUniqueID, defaultStyles } from '../../shared'; import { createElement } from 'react-faux-dom'; import { Style } from 'radium'; import merge from 'lodash.merge'; const color = scal...
frontend/src/components/login/login.js
unicef/un-partner-portal
import React from 'react'; import Card from '../common/cardLogin'; import LoginForm from './loginForm'; const messages = { title: 'UN Partner Portal', }; const Login = () => ( <Card title={messages.title}> <LoginForm /> </Card> ); export default Login;
packages/material-ui-icons/src/AddCircleOutline.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AddCircleOutline = props => <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8...
server/dashboard/js/components/BenchLog.react.js
machinezone/mzbench
import React from 'react'; import ReactDOM from 'react-dom'; import LogsStore from '../stores/LogsStore'; import MZBenchActions from '../actions/MZBenchActions'; import MZBenchRouter from '../utils/MZBenchRouter'; import BenchLogEntry from './BenchLogEntry.react'; import LoadingSpinner from './LoadingSpinner.react'; im...
src/javascripts/utils.js
aAXEe/online_chart_ol3
/** * @license AGPL-3.0 * @author aAXEe (https://github.com/aAXEe) */ import viewSize from 'screen-size' import React from 'react' import { FormattedMessage } from 'react-intl' export function floatEqual (num1, num2, eps = 0.0001) { if (num1 === num2) return true return Math.abs(num1 - num2) <= eps } export func...
src/components/ReplConsole.js
boneskull/Mancy
import React from 'react'; import _ from 'lodash'; import ReplConsoleStore from '../stores/ReplConsoleStore'; import ReplDOM from '../common/ReplDOM'; import ReplConsoleMessageFilters from './ReplConsoleMessageFilters'; import ReplConsoleHook from '../common/ReplConsoleHook'; export default class ReplConsole extends R...
app/js/components/ui/containers/field.js
blockstack/blockstack-browser
import React from 'react' import PropTypes from 'prop-types' import { StyledField } from '@ui/components/form' import { slugify } from '@ui/common' import AlertCircleIcon from 'mdi-react/AlertCircleIcon' import CheckCircleOutlineIcon from 'mdi-react/CheckCircleOutlineIcon' /* eslint-disable */ class Field extends Reac...
src/scenes/home/families/facts/facts.js
tal87/operationcode_frontend
import React from 'react'; import styles from './facts.css'; import family3 from '../../../../images/Family-3.jpg'; const Facts = () => ( <div className={styles.facts}> <div className={styles.factsList}> <div className={styles.factsHeading}> <h5>The Facts</h5> </div> <ul> <li cl...
src/scenes/home/chapterLeader/chapterLeader.js
hollomancer/operationcode_frontend
import React from 'react'; import Section from 'shared/components/section/section'; const chapterLeaders = () => ( <div> <Section title="Chapter Leaders" theme="white"> <div> <p> Operation Code is looking for volunteer Chapter Leaders to build local communities nationwide! Tell ...
src/svg-icons/action/group-work.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGroupWork = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5...
web-server/v0.4/src/pages/Summary/index.js
k-rister/pbench
import React from 'react'; import { connect } from 'dva'; import { Spin, Tag, Card, List, Typography, Divider } from 'antd'; import { filterIterations } from '../../utils/parse'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import Table from '@/components/Table'; import TableFilterSelection from '@/c...
code/web/node_modules/react-bootstrap/es/DropdownToggle.js
zyxcambridge/RecordExistence
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/layouts/CoreLayout/CoreLayout.js
harijoe/redux-dollar
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) Co...
actor-apps/app-web/src/app/components/common/MessageItem.react.js
Ajunboys/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import memoize from 'memoizee'; import classNames from 'classnames'; import emojify from 'emojify.js'; import hljs from 'highlight.js'; import marked from 'marked'; import emojiCharacters from 'emoji-named-characters'; ...
packages/benchmarks/src/implementations/radium/Dot.js
css-components/styled-components
/* eslint-disable react/prop-types */ import Radium from 'radium'; import React from 'react'; const styles = { root: { position: 'absolute', cursor: 'pointer', width: 0, height: 0, borderColor: 'transparent', borderStyle: 'solid', borderTopWidth: 0, transform: 'translate(50%, 50%)', ...
examples/counter/containers/App.js
mikekidder/redux-devtools
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import thunk from 'redux-...
app/assets/scripts/views/location/metadata.js
openaq/openaq.org
import React from 'react'; import { PropTypes as T } from 'prop-types'; import moment from 'moment'; import { schemas } from 'openaq-data-format'; import config from '../../config'; const locationSchema = schemas.location; export default function Metadata({ loc, loc: { data: { metadata }, }, }) { if (!me...
client/source/js/models/u_groups_m.js
Vladimir37/Planshark
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import {submitting, getData} from '../submitting.js'; import {Waiting, Error, Empty, Menu, Forbidden} from './templates.js'; import toast from '../toaster.js'; import {colorpick} from '../picker.js'; //responses var actions_r = ['Succ...
index.android.js
kilimondjaro/react-native-couchsurfing-app
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class CouchsurfingApp extends Component { render() { return ( <View style={styles.con...
src/client/components/profile/ProfileUpdateUser.component.js
DBCDK/content-first
import React from 'react'; import Spinner from '../general/Spinner/Spinner.component'; import T from '../base/T'; export default class ProfileUpdateUser extends React.Component { onSubmit = e => { const obj = { name: this.state.name, image: this.props.imageId, acceptedTerms: true, over13:...
js/components/loaders/Spinner.ios.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { ActivityIndicatorIOS } from 'react-native'; export default class SpinnerNB extends Component { prepareRootProps() { const type = { height: 80, }; const defaultProps = { style: type, }; return computeProps(this.props, defaultProps...
node_modules/react-color/src/components/sketch-2/Sketch.js
ottomajik/react-demo
'use strict'; /* @flow */ import React from 'react'; import ReactCSS from 'reactcss'; import { Saturation, Hue, Alpha, Checkboard } from '../common'; import SketchFields from './SketchFields'; import SketchPresetColors from './SketchPresetColors'; export class Sketch extends ReactCSS.Component { constructor() { ...
components/Table/Holders/Card/Modifiers/Face.js
mattbajorek/blackJackReact
import React, { Component } from 'react'; import center from './Positions/posFace'; import selector from './Positions/symbol'; class Face extends Component { render() { let symbol = this.props.symbol; let number = this.props.number; // Fixes club positioning issue if (symbol === '\u2663') { center[2]['to...
test/GridSpec.js
pombredanne/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Grid from '../src/Grid'; describe('Grid', () => { it('uses "div" by default', () => { let instance = ReactTestUtils.renderIntoDocument( <Grid /> ); assert.equal(ReactDOM.find...
app/javascript/mastodon/components/timeline_hint.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const TimelineHint = ({ resource, url }) => ( <div className='timeline-hint'> <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ...
test/async-suggestions/AutosuggestApp.js
JacksonKearl/react-autosuggest-ie11-compatible
import React, { Component } from 'react'; import sinon from 'sinon'; import Autosuggest from '../../src/Autosuggest'; import languages from '../plain-list/languages'; import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js'; const getMatchingLanguages = value => { const escapedValue = escapeR...
app/javascript/mastodon/features/public_timeline/index.js
yukimochi/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
components/Deck/ActivityFeedPanel/ActivityItem.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import likeActivity from '../../../actions/activityfeed/likeActivity'; import {formatDate} from './util/ActivityFeedUtil'; import {navigateAction} from 'fluxible-router'; import {connectToStores} from 'fluxible-addons-react'; import cheerio from 'cheerio'; ...
lib/DragContainer.js
deanmcpherson/react-native-drag-drop
import React from 'react'; import { View, PanResponder, Modal, Easing, Animated, TouchableOpacity, TouchableWithoutFeedback, } from 'react-native'; global.Easing = Easing; const allOrientations = [ 'portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right' ]; class DragMod...
blueprints/layout/files/__test__/layouts/__name__Layout.spec.js
dingchaoyan1983/ReactRedux
import React from 'react' describe('(Layout) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
blueprints/view/files/__root__/views/__name__View/__name__View.js
PetrosGit/poker-experiment
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/svg-icons/av/pause-circle-filled.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleFilled = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/> </SvgIcon> ); AvPauseCircleFilled = pure(AvP...
Prac/js/ClientApp.js
JRFrazier/complete-intro-to-react
import React from 'react' import { render } from 'react-dom' import '../public/normalize.css' import '../public/style.css' const App = React.createClass ({ render () { return ( <div className='app'> <div className='landing'> <h1>svideo</h1> <input type='text' placeholder='Search...
node_modules/react-bootstrap/es/Button.js
rblin081/drafting-client
import _Object$values from 'babel-runtime/core-js/object/values'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
packages/material-ui-icons/src/CropSquare.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z" /></g> , 'CropSquare');
src/components/App.spec.js
chrisvogt/teacher-salaries
import React from 'react' import { shallow } from 'enzyme' import App from './App' const setup = () => { return shallow(<App />) } it('renders without crashing', () => { setup() }) it('renders with the correct attributes', () => { const wrapper = setup() const notice = <div className='App' /> expect(wrappe...
src/lens/positive-space/index.js
ethanselzer/react-image-magnify
import React, { Component } from 'react'; import objectAssign from 'object-assign'; import LensPropTypes from '../../prop-types/Lens'; import clamp from 'clamp'; import dataUri from './assets/textured-lens-data-uri'; export default class PositiveSpaceLens extends Component { static propTypes = LensPropTypes s...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/__tests__/ButtonDropdown.spec.js
GoogleCloudPlatform/prometheus-engine
import React from 'react'; import { mount } from 'enzyme'; import { ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem } from '../'; describe('ButtonDropdown', () => { let isOpen; let toggle; beforeEach(() => { isOpen = false; toggle = () => { isOpen = !isOpen; }; }); it('should render a s...
src/MyProfilePage/Team/Team.js
velesin/retroinator
import React from 'react'; import { Link } from 'react-router-dom'; import { Icon, ICONS } from '../../shared'; export function Team({ team }) { return ( <Link to={`/team/${team.$key}`} className="MyProfilePage_Teams_Team"> <Icon>{ICONS.TEAM}</Icon> <div>{team.name}</div> </Link> ); }
src/js/components/Drop/stories/AllNotStretched.js
grommet/grommet
import React from 'react'; import PropTypes from 'prop-types'; import { Box, Drop, Text, ThemeContext } from 'grommet'; const OneDrop = ({ align, target }) => ( <Drop align={align} target={target} stretch={false}> <Box pad="small" /> </Drop> ); OneDrop.propTypes = { align: PropTypes.shape({}).isRequired, ...
src/index.js
sebpearce/cycad-react
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import { App } from './App'; import { Provider } from 'react-redux'; import createBrowserHistory from 'history/createBrowserHistory'; import { store } from './store'; import { saveState } from './loc...
src/assets/icons/check.js
HackArdennes2017/Project06
import React from 'react' export default props => <svg viewBox="0 0 100 125" {...props}> <path d="M47.215 8.002a42.128 42.128 0 0 0-11.063 1.437C13.799 15.43.476 38.522 6.466 60.877c5.99 22.355 29.083 35.677 51.438 29.687 22.355-5.99 35.677-29.082 29.687-51.437a4 4 0 1 0-7.719 2.062c4.871 18.179-5.852 36.7...
src/helpers/__tests__/getDataDependencies-test.js
ThatCheck/AutoLib
import { expect } from 'chai'; import React from 'react'; import { div } from 'react-dom'; import getDataDependencies from '../getDataDependencies'; describe('getDataDependencies', () => { let getState; let dispatch; let location; let params; let CompWithFetchData; let CompWithNoData; let CompWithFetchDa...
src/components/CardSection.js
shabib87/Albums
import React from 'react'; import { View } from 'react-native'; const CardSection = (props) => ( <View style={styles.containerStyle}> {props.children} </View> ); const styles = { containerStyle: { borderBottomWidth: 1, padding: 5, backgroundColor: '#fff', justifyCon...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
gaolichuang/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classnames from 'classnames'; import ActorClient from 'utils/ActorClient'; import confirm from 'utils/con...
internals/templates/app.js
mmaedel/react-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
src/GoalProgressBarGeneral/index.js
christianalfoni/ducky-components
import Typography from '../Typography'; import IconImage from '../IconImage'; import ProgressCircle from '../ProgressCircle'; import LabelSmall from '../LabelSmall'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function GoalProgr...
node_modules/react-bootstrap/es/NavbarHeader.js
firdiansyah/crud-req
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 ...
stories/Durations.js
intljusticemission/react-big-calendar
import React from 'react' import { storiesOf } from '@storybook/react' import moment from 'moment' import { Calendar, Views, DragableCalendar } from './helpers' storiesOf('Event Durations', module) .add('Daylight savings starts', () => { return ( <DragableCalendar defaultView={Views.DAY} m...
app/javascript/mastodon/components/button.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/6_AdjudicatorsPreview/AdjudicatorTable/AdjudicatorDragAndDrop.js
westoncolemanl/tabbr-web
import React from 'react' import ItemTypes from './ItemTypes' import { DragSource } from 'react-dnd' import { connect } from 'react-redux' import withStyles from 'material-ui/styles/withStyles' import AdjudicatorChip from 'containers/Asians/TabControls/_components/AdjudicatorChips/AdjudicatorChip' const styles = them...
awsmobilecognitocustomui/src/components/Loading.js
adrianhall/blog-code
import React from 'react'; import { StyleSheet, View } from 'react-native'; import Spinner from 'react-native-spinkit'; import colors from '../theme/colors'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: col...
src/forms/formElement/formElementUtilsSpec.js
ikanedo/react-redux-simple-validate
import React from 'react'; import Adapter from 'enzyme-adapter-react-16'; import { shallow, configure } from 'enzyme'; import { getFormInputType, getFormElementType, getFormElementRefName } from './formElementUtils'; configure({ adapter: new Adapter() }); describe('FormElementUtils', () => { describe('getForm...
src/App.js
isuruAb/chat.susi.ai
import Blog from './components/Blog/Blog.react'; import ChatApp from './components/ChatApp/ChatApp.react'; import Contact from './components/Contact/Contact.react'; import Devices from './components/Devices/Devices.react'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Logout from './components/Auth/L...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
zomeelee/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import AvatarItem from 'components/common/AvatarItem.react'; var ContactItem = React.createClass({ displayName: 'ContactItem', propTypes: { contact: React.PropTypes.object, onSelect: React.PropTypes.func }, mixins: [PureRende...
src/svg-icons/content/clear.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentClear = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); ContentClear = pure(ContentClea...
src/components_youtube_p/video_detail.js
vikasv/ReactWithRedux
import React from 'react'; const VideoDetail = ({video}) => { if(!video){ return <div>Loading...</div>; } const videoId = video.id.videoId; const url = 'https://www.youtube.com/embed/' + videoId; //Below es6 syntax //const url = `https://www.youtube.com/embed/$(videoId)`; return ( <div class...
src/components/orders/orders_table.js
hojberg/mastering-react
import React from 'react'; import OrderRow from './order_row'; class OrdersTable extends React.Component { render() { const rows = this.props.orders.map((order, i) => { return <OrderRow order={order} key={i} />; }); return ( <table className='orders-table'> <thead> <tr> ...
test/components/SearchResultsComponentTest.js
cised-ca/se-dir-frontend-react
/* eslint-env node, mocha */ /* global expect */ /* eslint no-console: 0 */ 'use strict'; import React from 'react'; import { shallow } from 'enzyme'; import { SearchResultsComponent } from 'components/SearchResultsComponent.js'; describe('SearchResultsComponent', () => { let component; var searchTextProp = 're...
tests/format/misc/flow-babel-only/class_with_generics.js
jlongster/prettier
import React from 'react'; /*:: type Props = { foo?: ?string, bar: number, }; */ /*:: type State = { baz: number }; */ class Component extends React.Component/*:: <Props, State> */ { }
src/internal/Overlay.js
rscnt/material-ui
import React from 'react'; import transitions from '../styles/transitions'; import AutoLockScrolling from './AutoLockScrolling'; function getStyles(props, context) { const {overlay} = context.muiTheme; const style = { root: { position: 'fixed', height: '100%', width: '100%', top: 0, ...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import AvatarOverlay from '../../../components/avatar_overlay'; import DisplayNam...
test/index.spec.js
loggur/provide-id-gen
import 'react-redux-provide/lib/install'; import expect from 'expect'; import React from 'react'; import PropTypes from 'prop-types'; import { Simulate } from 'react-dom/test-utils'; import { renderTest } from 'react-redux-provide-test-utils'; import { Test } from './components/index'; import { idGen } from './provider...
src/test/xy-plot.js
jameskraus/react-vis
// Copyright (c) 2016 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, merge...
app/javascript/mastodon/features/account/components/account_note.js
glitch-soc/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Textarea from 'react-textarea-autosize'; impor...
www/components/Navigation/Navigation.js
DremyGit/dremy-blog
import React from 'react'; import { Link, withRouter } from 'react-router'; import CSSModules from 'react-css-modules'; import styles from './Navigation.scss'; @withRouter @CSSModules(styles) class Navigation extends React.Component { constructor(props) { super(props); this.state = { searchInput: fals...
src/client/course/EditVenturerCourse.js
jmicmoore/merit-badge-university
import React from 'react'; import {connect} from 'react-redux'; import {withRouter} from 'react-router-dom'; import TextArea from "../common/components/TextArea"; import SingleSelect from '../common/components/SingleSelect'; import SimpleList from '../common/components/SimpleList'; import {updateCourse, getCourseById, ...
src/index.js
JasonAForral/quiz-client-json-rpc-react
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 createLogger from 'redux-logger' import App from './containers/App' import reducer from './reducers' import './index.css'; cons...
packages/material-ui-icons/src/PanoramaVertical.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02.2.06.31C5.16 5.82 5.71 8.91 5.71 12c0 3.09-.55 6.18-1...
src/Main.js
connectordb/connectordb-android
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as Actions from './actions'; import { StatusBar, View } from 'react-native'; import FacebookTabBar from './components/FacebookTabBar'; import ErrorBar from './components/ErrorBar'; im...
webpack/scenes/RedHatRepositories/components/RepositorySetRepositories.js
cfouant/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Alert, Spinner } from 'patternfly-react'; import loadRepositorySetRepos from '../../../redux/actions/RedHatRepositories/repositorySetRepositories'; import RepositorySetRepository from './Reposi...
docs/app/Examples/addons/Radio/States/ReadOnly.js
jamiehill/stardust
import React from 'react' import { Radio } from 'stardust' const RadioReadOnlyExample = () => ( <Radio label='This radio is read-only' readOnly /> ) export default RadioReadOnlyExample
src/components/user/avatar-editor.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) 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 License, o...
src/main.js
luigiplr/area51-launcher
import React from 'react' import ReactDOM from 'react-dom' import Framework from './js/components/Framework.react' import webUtil from './js/utils/webUtil' webUtil.disableGlobalBackspace() ReactDOM.render(<Framework />, document.getElementById('app'))
src/components/mail/mailTags.js
EncontrAR/backoffice
import React from 'react'; const tags = [ 'Friend', 'Family', 'Colleague', 'Teachers', 'Students', 'ClassMates', ]; const tagColor = [ '#CD3131', '#74B49B', '#0962EA', '#141829', '#FFCD38', '#61105E', ]; function gettags(mails, filterAttr) { const tags = {}; mails.forEach(mail => { if (...
submissions/masiulis/src/components/components/components/sith-list-item.js
staltz/flux-challenge
import React from 'react'; export default class extends React.Component { static propTypes = { name: React.PropTypes.string, homeworld: React.PropTypes.string, obiPlanet: React.PropTypes.string, } render() { const textColor = this.props.homeworld === this.props.obiPlanet ...
packages/bonde-admin/src/components/navigation/tabs/tab-border.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import classnames from 'classnames' if (require('exenv').canUseDOM) { require('./tab-border.scss') } const TabBorder = ({ children, Component, path, className, isActive, style }) => { const optionalProps = {} if (path) optionalProps.to = path retu...
src/components/Elements/SocialIcons/index.js
jmikrut/keen-2017
import React, { Component } from 'react'; import Facebook from '../../Icons/Facebook'; import LinkedIn from '../../Icons/LinkedIn'; import Dribbble from '../../Icons/Dribbble'; import Behance from '../../Icons/Behance'; import YouTube from '../../Icons/YouTube'; import Medium from '../../Icons/Medium'; import GitHub f...
packages/veritone-react-common/src/components/FilePicker/FileUploader/index.js
veritone/veritone-sdk
import React, { Component } from 'react'; import { noop, startsWith, endsWith } from 'lodash'; import cx from 'classnames'; import Button from '@material-ui/core/Button'; import { DropTarget } from 'react-dnd'; import { string, func, arrayOf, bool, shape, any } from 'prop-types'; import { withStyles } from '@material-u...
src/components/CodeForm.js
MattMcFarland/codepix-client
import React from 'react'; import ajax from 'superagent'; import Select from 'react-select'; import { Expander, Radio } from './partials/Elements'; import { ProtoFormClass, FormErrors } from './partials'; import { codeOptions } from './config'; export class CodeForm extends React.Component { constructor() { su...
src/components/Timetable/TimetableBackground.js
momomods/momomods
import React from 'react'; import _ from 'lodash'; import classnames from 'classnames'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { CELLS_COUNT } from '../../utils/timetable'; import s from './timetable.scss'; // Ref: https://github.com/yangshun/nusmods-v3/tree/master/src/js const Timeta...
src/card.js
joxoo/react-material
import React from 'react'; import { getClassesStatic } from './addons/get-classes'; const Card = (props) => ( <div className={ getClassesStatic('card', props) }> { props.children } </div> ); export default Card;
src/components/common/svg-icons/notification/airline-seat-legroom-normal.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomNormal = (props) => ( <SvgIcon {...props}> <path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1....
src/handleReactRouter.js
nheyn/express-react-router
/** * @flow */ import React from 'react'; import { Router } from 'react-router'; import ReactDOMServer from 'react-dom/server'; import express from 'express'; import { match, RouterContext } from 'react-router'; import getReactRouterRoute from './router-traversal/getReactRouterRoute'; import getExpressRouter from '....
src/core/markers/PolylineMarker.js
mocheer/react-map
import React from 'react'; export const PolylineMarker = React.createClass({ render: function () { var state = this.state; return null; } });
app/containers/LanguageProvider/index.js
fenderface66/spotify-smart-playlists
/* * * 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/index.js
tomorrowshine/cra-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import leaveWord from './containers/leaveWord'; import list from './containers/list/list'; import registerServiceWorker from './registerServiceWorker'; import { Provider } from 'react-redux' import store from './store'; import { Ro...
src/components/Dock/Dock.js
bibleexchange/be-front-new
import React from 'react'; import { createFragmentContainer, graphql, } from 'react-relay/compat'; import { Link } from 'react-router'; import Loading from '../ListWidget/Loading' //import SoundCloudPlayer from './SoundCloudPlayer' import NoteEditor from '../NoteEditor/NoteEditorWidget' import './Dock.scss'; import...
examples/cra/src/components/RandomButton.js
styleguidist/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import sample from 'lodash/sample'; import './RandomButton.css'; /** * Button that changes label on every click. */ export default class RandomButton extends Component { static propTypes = { /** * List of possible labels. */ va...
src/containers/App/index.js
hasibsahibzada/quran.com-frontend
/* eslint-disable react/prefer-stateless-function */ import React, { Component } from 'react'; import * as customPropTypes from 'customPropTypes'; import { metrics } from 'react-metrics'; import { connect } from 'react-redux'; import { asyncConnect } from 'redux-connect'; import Helmet from 'react-helmet'; import Modal...
ui/js/dfv/src/fields/pick/checkbox-select.js
pods-framework/pods
import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; import { PICK_OPTIONS } from 'dfv/src/config/prop-types'; import './checkbox-select.scss'; const CheckboxSelect = ( { htmlAttributes, name, value, options = [], setValue, isMulti, readOnly = false, } ) => { co...
src/Calendar.js
Hanse/react-calendar
import React, { Component } from 'react'; import moment from 'moment'; import PropTypes from 'prop-types'; import cx from 'classnames'; import createDateObjects from './createDateObjects'; export default class Calendar extends Component { static propTypes = { /** Week offset*/ weekOffset: PropTypes.number.is...
src/components/Auth/PrivateRoute.js
dovydasvenckus/time-tracker-web
import React from 'react'; import PropTypes from 'prop-types'; import { Route } from 'react-router-dom'; import { AuthConsumer } from '../../utils/auth/authProvider'; const PrivateRoute = ({ component, ...rest }) => { const renderFn = (Component) => (props) => ( <AuthConsumer> {({ isAuthenticated, signInRe...
src/todo/input.js
corgisamurai/spary_react
import React from 'react' import { Component } from 'react' class TodoInput extends Component { _onAddToDo(){ var newTodo = this.refs.todo.value.trim(); this.props.onAddToDo(newTodo); this.refs.todo.value=""; } _getOnsen(){ axios.post('/api/onsen/list') .then(function (res) { console.log(re...
src/components/Main.js
jerwu/graduationProject
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; //获取图片相关的数据 var imageDatas = require('../data/imageDatas.json'); //利用自执行函数,将图片名信息转成图片URL路径信息 imageDatas=(function genImageURL(imageDatasArr){ for(var i = 0,j = imageDatas.length;i < j;i...
client/src/app/routes/graphs/containers/ChartJs.js
zraees/sms-project
import React from 'react' import request from 'then-request' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import ChartJsGraph from '../../../components/graphs/chartjs/ChartJsGraph' export default class ChartJs extends React.Component { state = {}; componentWillMount() ...
samples/react-redux-patient-demographics-example/src/routes/Patient/Demographics/PatientDemographicsComponent.js
GoTeamEpsilon/angular-to-react-redux
import React from 'react' import { browserHistory } from 'react-router' import Basic from './Basic/BasicComponent' import Contact from './Contact/ContactComponent' class PatientDemographics extends React.Component { constructor() { super() this.TABS = { BASIC: 'basic', CONTACTS: 'contacts' }...
fields/types/color/ColorColumn.js
webteckie/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var ColorColumn = React.createClass({ displayName: 'ColorColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
app/javascript/mastodon/components/icon_button.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; import AnimatedNumber from 'mastodon/components/animated_number'; export default class IconButton extends React.PureComponent { static propTypes = { className: PropTyp...