path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/components/chat-pane.js
johnamiahford/slack-clone
'use strict'; import React from 'react'; class ChatPane extends React.Component { render() { return ( <div className="ChatPane"> <div className="container"> <h2>Hey There!</h2> </div> </div> ); } } export default ChatPane;
src/components/TodoApp.js
bofa/react-education
import React from 'react'; // import todos from '../todos'; // import TodoApp = from './components/smart/TodoAppContainer'; // import IndexPage = from './components/smart/IndexPageContainer'; import { List } from 'immutable'; export default class TodoApp extends React.Component { render() { console.log...
src/component/ToDoListWithFlux/TodoFooter.react.js
lyc-chengzi/reactProject
/** * Created by liuyc14 on 2016/9/26. */ import React from 'react'; import TodoAction from '../../flux/actions/TodoAction'; let ReactPropTypes = React.PropTypes; export default class TodoFooter extends React.Component{ constructor(props){ super(props); this._onClearCompletedClick = this._onCle...
lib/components/notifications.js
ekmartin/hyperterm
import React from 'react'; import Component from '../component'; import {decorate} from '../utils/plugins'; import Notification_ from './notification'; const Notification = decorate(Notification_); export default class Notifications extends Component { template(css) { return (<div className={css('view')}> ...
tests/components/Header/Header.spec.js
nowavailable/TDAlloyUI
import React from 'react' import { Header } from 'components/Header/Header' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header/>) }) it('Renders a welcome message', () => { c...
generators/app/templates/app/src/components/SOQHighlightable/SOQHighlightable.js
hasura/generator-hasura-web
import React from 'react'; import { connect } from 'react-redux'; import { toggleHighlight } from './Actions'; import SOQuestion from '../SOQuestion/SOQuestion'; class SOQHighlightable extends React.Component { static propTypes = { question: React.PropTypes.shape({ title: React.PropTypes.string.isRequired...
modules/Link.js
Jastrzebowski/react-router
import React from 'react'; var { object, string, func } = React.PropTypes; function isLeftClickEvent(event) { return event.button === 0; } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); } /** * <Link> components are used to create an <a> element t...
src/svg-icons/av/videocam.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideocam = (props) => ( <SvgIcon {...props}> <path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/> </SvgIcon> ); AvVideocam = pure(AvVideocam); Av...
js/views/CalendarPage.js
ecohealthalliance/GoodQuestion
import React from 'react'; import { Text, View, } from 'react-native'; import moment from 'moment'; import Styles from '../styles/Styles'; import Color from '../styles/Color'; import Calendar from '../components/Calendar/Calendar'; import CalendarEvent from '../components/Calendar/CalendarEvent'; import Loading fr...
admin/client/App/shared/Popout/PopoutBody.js
jstockwin/keystone
/** * Render the body of a popout */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, scrollable: React...
src/public/components/tree/index.js
Lunik/tcloud
import React from 'react' import $ from 'jquery' import Path from 'path' import Branch from './branch' export default class Tree extends React.Component { constructor (props) { super(props) this.state = {} this.initState(props) } initState (props) { Object.assign(this.state, { mobile: wi...
src/svg-icons/maps/local-drink.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalDrink = (props) => ( <SvgIcon {...props}> <path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6....
Realization/frontend/czechidm-core/src/content/dashboards/LongRunningTaskDashboard.js
bcvsolutions/CzechIdMng
import React from 'react'; import { connect } from 'react-redux'; import * as Basic from '../../components/basic'; import { SecurityManager, LongRunningTaskManager } from '../../redux'; import RunningTasks from '../scheduler/RunningTasks'; const manager = new LongRunningTaskManager(); const uiKeyPrefix = 'long-running...
frontend/src/components/partners/profile/modals/updateObservationSanction/updateSanctionObservationForm.js
unicef/un-partner-portal
import React from 'react'; import R from 'ramda'; import { reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Grid } from 'material-ui'; import GridColumn from '../../../../common/grid/gridColumn'; import TextFieldForm from '../../../../forms/textFieldForm...
src/routes/private/PanelTools/FilesManager/FilesManager.js
sk-iv/iva-app
import React from 'react'; import {graphql, compose} from 'react-apollo'; import IconButton from '../../../../components/IconButton' import {ChevronRight, Hierarchy, Facets, Hash, Export, TextInput, Magnifier, Plus, Filter, ChevronDown, ChevronLeft, Square, FileUpload, Times, Image, Book} from '../../../../components/S...
packages/vulcan-core/lib/modules/containers/withRemove.js
bengott/Telescope
/* Generic mutation wrapper to remove a document from a collection. Sample mutation: mutation moviesRemove($documentId: String) { moviesEdit(documentId: $documentId) { ...MoviesRemoveFormFragment } } Arguments: - documentId: the id of the document to remove Child Props: - removeMutation(...
src/components/GuitarApp/parts/Fretguide/index.js
jesusGalan/fretboardApp
import React, { Component } from 'react'; import {TransparentDiv} from './styled' import {Row} from 'components/common/Template' class Fretguide extends Component { render() { let frets = [] let x = 0 for (x = 0; x < 12; x++) { frets.push(x) } return ( <Row> {frets.map(th...
test/spec/injectActions.spec.js
mickeyjsx/mickey
/* eslint-disable react/no-multi-comp */ import { expect } from 'chai' import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import TestUtils from 'react-dom/test-utils' import injectActions from '../../src/injectActions' describe('injectActions', () => { class Passthrough ex...
src/svg-icons/maps/add-location.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
src/components/Select.js
aastein/crypto-trader
import React, { Component } from 'react'; import FontAwesome from 'react-fontawesome'; class Select extends Component { constructor(props) { super(props); this.state = { expanded: false, }; } handleExpand = (event) => { event.preventDefault(); this.setState(prevState => ( { expan...
examples/huge-apps/app.js
djkirby/react-router
import React from 'react' import { render } from 'react-dom' import { Router, browserHistory } from 'react-router' import withExampleBasename from '../withExampleBasename' import './stubs/COURSES' const rootRoute = { childRoutes: [ { path: '/', component: require('./components/App'), childRoutes: [ ...
examples/examples/FinancialChartExample.react.js
ericgio/r-d3
import * as d3 from 'd3'; import React from 'react'; import {Axis, Candlestick, Chart, OHLC} from '../../src'; import {getInnerHeight, getInnerWidth, translate} from '../../src/utils'; import ohlcData from '../data/ohlc.csv'; /* example-start */ /** * Adapted from http://bl.ocks.org/andredumas/27c4a333b0e0813e093d ...
src/components/applications/index.js
Menternship/client-web
// @flow import React from 'react'; import { Route } from 'react-router'; import ShowAll from './ShowAll'; export default [<Route path="applications" component={ShowAll} />];
app/javascript/mastodon/components/avatar.js
corzntin/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Avatar extends React.PureComponent { static propTypes = { src: PropTypes.string.isRequired, staticSrc: PropTypes.string, size: PropTypes.number.isRequired, style: PropTypes.object, animate: PropTypes.bool, in...
www/src/App.js
ctnitchie/ec2-dashboard
import React from 'react'; import {ec2Service, eventBus} from './services'; import InstanceInfo from './InstanceInfo'; import autobind from 'react-autobind'; import _ from 'lodash'; export default class App extends React.Component { constructor() { super(); this.state = { instances: [], unfiltere...
src/svg-icons/notification/sms.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/> </SvgIcon> ); NotificationSm...
client/vehicle-finder-spa/src/containers/navbar.js
Del7a/vehicle-finder
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { logout } from '../actions/user'; import NavbarComponent from '../components/navbar'; import { bindActionCreators } from 'redux'; import { Redirect } from 'react-router' class Navbar extends Component { render(){ co...
src/master.js
m2wasabi/team_vote_milkcocoa
/** * Created by m2wasabi on 2016/07/19. */ import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' // components import masterApp from './reduces/masterApp'; import App from './components/master/App'; let store = ...
node_modules/recompose/es/Recompose.js
firdiansyah/crud-req
import React, { Component } from 'react'; import shallowEqual from 'fbjs/lib/shallowEqual'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { createChangeEmitter } from 'change-emitter'; import $$observable from 'symbol-observable'; var getDisplayName = function getDisplayName(Component$$1) { if (...
client/modules/User/pages/UserSignUpPage.js
XuHaoJun/tiamat
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { compose } from 'recompose'; import { hot } from 'react-hot-loader'; import Paper from '@material-ui/core/Paper'; import SignUpForm from '../components/SignUp...
src/components/ResultLoggerView.js
IUnknown68/karma-live-reporter
//============================================================================== import React, { Component } from 'react'; import attachListener from 'attachListener'; import autoScroll from 'autoScroll'; import { SPEC_COMPLETED, BROWSER_START } from 'messages'; //======================================================...
examples/js/column-filter/select-filter.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'Bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) ...
apps/marketplace/components/Brief/Edit/AddSellerListItems.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' const AddSellerListItems = props => { const { onSellerClick, sellers } = props return sellers.map(seller => ( <li key={seller.code}> <a href={`#${seller.code}`} onClick={e => { e.preventDefault() onSellerCli...
fields/types/azurefile/AzureFileColumn.js
ligson/keystone
import React from 'react'; var AzureFileColumn = React.createClass({ renderValue () { var value = this.props.data.fields[this.props.col.path]; if (!value) return; return <a href={value.url} target='_blank'>{value.url}</a>; }, render () { return ( <td className="ItemList__col"> <div className="ItemLis...
src/svg-icons/maps/directions-walk.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsWalk = (props) => ( <SvgIcon {...props}> <path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-...
example/src/components/SpacedSpan.js
ethanselzer/react-image-magnify
import React from 'react'; export default function SpacedSpan({ className, children }) { return ( <span className={className}> {' '}{children}{' '} </span> ); }
admin/client/App/screens/Home/index.js
brianjd/keystone
/** * The Home view is the view one sees at /keystone. It shows a list of all lists, * grouped by their section. */ import React from 'react'; import { Container, Spinner } from '../../elemental'; import { connect } from 'react-redux'; import Lists from './components/Lists'; import Section from './components/Secti...
index.android.js
Hey2Li/RNGD
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Main from './app/main/GDMain' export default class RNGD extends Component { render() { return ( ...
components/index_section_02.js
MonkingStand/MS-blog-site-v3.0
import React from 'react'; class IndexSection02 extends React.Component { render() { const css_tag_p = { marginBottom: 20, fontWeight : 300, textAlign : 'center' }; return ( <section id="main_content"> ...
docs/src/app/components/pages/components/FlatButton/ExampleComplex.js
pomerantsev/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import ActionAndroid from 'material-ui/svg-icons/action/android'; const styles = { exampleImageInput: { cursor: 'pointer', position: 'absolute', top: 0, bottom: 0, right: 0, ...
src/js/tabscontrolled/index.js
HBM/md-components
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' class TabsControlled extends React.PureComponent { static propTypes = { tabs: PropTypes.array } static defaultProps = { tabs: [ 'germany', 'spain', 'sweden' ] } state = { dire...
src/js/components/icons/base/PlatformUnixware.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
lib/editor/components/editors/LogicalVariableForm.js
jirokun/survey-designer-js
/* eslint-env browser */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Panel, Button, Glyphicon, Form, Col, FormControl } from 'react-bootstrap'; import classNames from 'classnames'; import { List } from 'immutable'; import * as EditorActions from '../../actions'; class Logi...
src/components/GuestsTable/GuestsTable.js
joyvuu-dave/comeals-ui-react
// rendered by Guests import React from 'react' import classes from './GuestsTable.scss' // Schema import type { GuestsSchema } from '../../redux/modules/Guests' import type { ResidentsSchema } from '../../redux/modules/Residents' type Props = { ui: { veg_checkbox_disabled: boolean, remove_button_disabled: ...
packages/bonde-admin/src/storybook/forms/createForm.spec.js
ourcities/rebu-client
import React from 'react' import { expect } from 'chai' import { shallow } from 'enzyme' import { subscribe, createForm } from './createForm' describe('createForm API', () => { describe('subscribe', () => { const callToAction = 'CALL_TO_ACTION' const globalState = {} const globalOwnProps = { widget: { se...
app/components/ShopPage/ShopPage.js
tenhaus/bbwelding
import React from 'react'; import Radium from 'radium'; import _ from 'lodash'; import RetinaImage from 'react-retina-image'; import isRetina from 'is-retina'; import Style from './_ShopPage.style.js'; import Page from '../Page/Page'; import ContentfulEntryStore from '../../stores/ContentfulEntryStore'; import ShopL...
imports/ui/pages/ResetPassword/ResetPassword.js
lazygalaxy/lazybat-seed-meteorjs
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Alert, FormGroup, ControlLabel, Button } from 'react-bootstrap'; import { Accounts } from 'meteor/accounts-base'; import { Bert } from 'meteor/themeteorchef:bert'; import validate from '../../../modules/validate'; class ResetPassword ext...
app/src/GenericTable.js
CovertIII/hledger-node-server
import React from 'react'; import R from 'ramda'; const defaultArray = []; const thStyle = { 'textAlign': 'left', 'verticalAlign': 'bottom', 'padding': '8px 8px 8px 0px', 'borderBottomStyle': 'solid', 'borderBottomWidth': '2px', 'borderColor': 'inherit' }; const Header = ({header = defaultArray}) => ( ...
app/components/navigation/personality/PersonalityLinks.js
VasilyShelkov/Vasily
import React, { Component } from 'react'; import Letter from './Letter'; class PersonalityLinks extends Component { render() { var openCB='{'; var closedCB = '}'; var personalities = ['Developer,','Explorer, ','Early-Adopter, ','Anime-Lover'].map((personality, index) => { var personalityLetters = personal...
app/javascript/mastodon/features/ui/components/tabs_bar.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; import Icon from 'mastodon/components/icon'; import No...
service/client/src/index.js
lwoites/unq-cloudsystems
import Application from './Application'; import './index.css'; import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <Application></Application>, document.getElementById('root') );
packages/material-ui-icons/src/VideogameAsset.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let VideogameAsset = props => <SvgIcon {...props}> <path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1....
docs/app/Examples/modules/Search/index.js
vageeshb/Semantic-UI-React
import React from 'react' import Types from './Types' import Variations from './Variations' const SearchExamples = () => ( <div> <Types /> <Variations /> </div> ) export default SearchExamples
app/components/Link/index.js
minhnhat09/scalable-react
/** * * Link * */ import React from 'react'; import styles from './styles.css'; function Link({link}) { return ( <div className={styles.link}> <div className={styles.votingContainer}> <div className={styles.votingCount}> {link.voteCount} </div> </div> <div className...
components/Input/stories.js
insane-ux/rebulma
// @flow import React from 'react' import { storiesOf } from '@kadira/storybook' import Label from 'components/Label' import Input from './' storiesOf('Input', module).add('all', () => ( <div className="box"> <Label>default</Label> <Input /> <Label>small</Label> <Input theme={{ input: 'is-small' }} ...
tools/template/index/container/index.js
SteamerTeam/steamer-react
import React, { Component } from 'react'; import Connect from '../connect/connect'; import { } from 'page/common/constants/cgiPath'; import { } from '../constants/constants'; import './index.less'; class Wrapper extends Component { constructor(props, context) { super(props, context); this.state = {}; } c...
tp-react/src/App.js
detienne11/imie
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Test from './Test'; class App extends Component { constructor(props){ super(props); console.log("App : constructor"); console.log("App: props", props); } componentWillMount(){ console.log("App : componen...
public/js/cat_source/es6/components/icons/Icon3Dots.js
matecat/MateCat
import React from 'react' const Icon3Dots = () => { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="5 5 32 32"> <g fill="#fff" fillRule="evenodd" transform="translate(9 9)"> <circle cx="12.5" cy="2.5" r="2.5" /> <circle cx="12.5" cy="21.5" r="2.5" /> <circle cx="12.5" cy="...
templates/rubix/rubix-bootstrap/src/Button.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import classNames from 'classnames'; import RButton from 'react-bootstrap/lib/Button'; var expectedTypes = ["success", "warning", "danger", "info", "default", "primary", "link"]; function isBtnOfType(type) { for (var i = 0; i < expectedTypes.length; i++) { if (expectedTypes[i] === ty...
src/routes/UIElement/search/index.js
cuijiaxu/react-front
import React from 'react' import { Search } from '../../../components' import { Table, Row, Col, Card } from 'antd' const SearchPage = () => <div className="content-inner"> <Row gutter={32}> <Col lg={8} md={12}> <Card title="默认"> <Search /> </Card> </Col> <Col lg={8} md={12}> <C...
app/react-icons/fa/maxcdn.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaMaxcdn extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m39.5 17.3l-3.7 17h-7.5l4-18.6q0.3-1.2-0.3-1.9-0.6-0.8-1.9-0.8h-3.8l-4.5 21.3...
app/javascript/mastodon/components/intersection_observer_article.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import scheduleIdleTask from '../features/ui/util/schedule_idle_task'; import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; // Diff these props in the "unrendered" state const updateOnPropsForUnrendered = ['id', 'index', 'listLength', 'c...
test/PageHeaderSpec.js
snadn/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageHeader from '../src/PageHeader'; describe('PageHeader', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <PageHeader> <strong>Content</str...
src/layouts/index.js
matchilling/com-matchilling
import React from 'react' import { Container } from 'react-responsive-grid' import Fullscreen from './../components/fullscreen/' import { rhythm, scale } from './../utils/typography' // Import typefaces import 'typeface-montserrat' import 'typeface-merriweather' import './prism.css' import './util.css' export defau...
src/components/SideBarNavigation.js
tofuness/Toshocat
import React from 'react'; import { Link } from 'react-router'; const SideBarNavigation = () => { return ( <div className="sidebar-navigation"> <div className="sidebar-navigation-label"> Main </div> <div className="sidebar-navigation-link"> <Link to="/animelist" activeClassName=...
src/js/components/plan/PlanFilesTab.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat 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 to...
src/components/FAQ/List/List-story.js
Tarabyte/foodlr-web
import React from 'react' import { storiesOf } from '@kadira/storybook' import List from './List' const questions = [ { question: 'sdfsdf', answer: '<p>sdfsddsffd</p>', id: '54dbb245f08e85d01b3ef0ec' }, { question: 'fds', answer: '<p>sdfsdfsdffsfdsd</p>', id: '54dbaf16f08e85d01b3ef0eb' ...
src/js/components/Dashboard.js
varmais/spteefu
import React from 'react'; import Header from './Header'; import Sidebar from './Sidebar'; import AlbumList from './AlbumList'; import ArtistStore from '../stores/ArtistStore'; import ArtistService from '../services/ArtistService'; import AlbumStore from '../stores/AlbumStore'; import AlbumService from '../services/Alb...
app/containers/HomePage/index.js
rhenderson07/react-lightning-talk
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/index.js
azimitina/post-list-redux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Route, Switch } from 'react-router-dom' import promise from 'redux-promise' import reducers from './reducers' import PostsIndex from './com...
src/components/base/NotFoundPage.js
GHImplementationTeam/FrontEnd
import React from 'react'; const NotFoundPage = () => ( <div> <div> 404 Page Not Found </div> </div> ); export default NotFoundPage;
docs/app/Examples/elements/Label/Types/LabelExampleImageColored.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleImage = () => ( <div> <Label as='a' color='blue' image> <img src='http://semantic-ui.com/images/avatar/small/veronika.jpg' /> Veronika <Label.Detail>Friend</Label.Detail> </Label> <Label as='a' col...
blueocean-material-icons/src/js/components/svg-icons/image/rotate-right.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageRotateRight = (props) => ( <SvgIcon {...props}> <path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 ...
app/components/FacetList/index.js
interra/data-generate
import React from 'react'; import PropTypes from 'prop-types'; import List from 'components/List'; import ListItem from 'components/ListItem'; import LoadingIndicator from 'components/LoadingIndicator'; import SearchListItem from 'containers/SearchListItem'; import H3 from './H3'; import LI from './LI'; import StyledA...
src/client/spinner.js
alihalabyah/hacker-menu
import React from 'react' export default class Spinner extends React.Component { render () { return ( <div className='spinner'> Loading... </div> ) } }
src/BootstrapMixin.js
tannewt/react-bootstrap
import React from 'react'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const BootstrapMixin = { propTypes: { /** * bootstrap className * @private */ bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES), /** * Style variants * @type {("...
src/svg-icons/editor/border-style.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderStyle = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/> </SvgIcon> ); E...
src/Pages/LandingPage.js
ashwinath/personal-website-2.0
import React from 'react'; const LandingPage = () => ( <div id="landing" className="col-md-9 main-section center-vertical-parent"> <div id="landing-content" className="center-vertical"> <h1>I bring ideas to life with code.</h1> </div> </div> ); export default LandingPage;
frontend/blueprints/dumb/files/__root__/components/__name__/__name__.js
qurben/mopidy-jukebox
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/index.js
lucaslago/baratinho-frontend
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import createLogger from 'redux-logger' import thunkMiddleware from 'redux-thunk' import App from './components/App' import Home from './scene...
consoles/my-joy-instances/src/containers/navigation/breadcrumb.js
yldio/joyent-portal
import React from 'react'; import paramCase from 'param-case'; import get from 'lodash.get'; import { Link } from 'react-router-dom'; import { Margin } from 'styled-components-spacing'; import { Breadcrumb, BreadcrumbItem } from 'joyent-ui-toolkit'; export default ({ match }) => { const instance = get(match, 'param...
node_modules/react-router/es6/Link.js
rekyyang/ArtificalLiverCloud
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) {...
yycomponent/locale-provider/LocaleProvider.js
77ircloud/yycomponent
import React from 'react'; import { LocaleProvider as _LocaleProvider } from 'antd'; class LocaleProvider extends React.Component{ constructor(props){ super(props); } render(){ return (<_LocaleProvider {...this.props}/>); } } export default LocaleProvider
src/routes/Login.js
Anteoy/lionreact
import React from 'react'; import { connect } from 'dva'; import styles from './Login.css'; // import PnoteIndex from '../components/login/Login'; function Login() { return ( <div className={styles.normal}> {/* extra={<PnoteIndex />}*/} test </div> ); } function mapStateToProps() { return {}...
src/svg-icons/communication/screen-share.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationScreenShare = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56...
src/components/NotFoundPage.js
Dynatos/personal-website
import React from 'react'; //import { Link } from 'react-router'; import { Link } from "react-router-dom"; import NavBar from './NavBar/NavBar'; const NotFoundPage = () => { return ( <div> <NavBar/> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div>...
app/javascript/mastodon/components/loading_indicator.js
salvadorpla/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
src/components/views/delegateProfile/components/Sidebar.js
LiskHunt/LiskHunt
import React from 'react'; import Description from './Description'; import BannerWrap from './BannerWrap'; import HeaderCard from './HeaderCard'; const Sidebar = () => { return ( <div id="sidebar" className="column is-one-quarter"> <BannerWrap /> <HeaderCard /> <Description /> </div> ); ...
modules/client.js
Scarysize/browserify-code-split
import React from 'react'; import { match, Router } from 'react-router'; import { render } from 'react-dom'; import { createHistory } from 'history'; import routes from './routes/RootRoute'; const { pathname, search, hash } = window.location; const location = `${pathname}${search}${hash}`; // calling `match` is simpl...
src/utils/CustomPropTypes.js
IveWong/react-bootstrap
import React from 'react'; const ANONYMOUS = '<<anonymous>>'; const CustomPropTypes = { isRequiredForA11y(propType){ return function(props, propName, componentName){ if (props[propName] === null) { return new Error( 'The prop `' + propName + '` is required to make ' + componentName + ' ...
blueocean-material-icons/src/js/components/svg-icons/av/games.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvGames = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); AvGames.displayName = 'AvGames'; AvGames.muiName = 'SvgIcon'; export...
plugins/Files/js/components/downloadlist.js
NebulousLabs/Sia-UI
import PropTypes from 'prop-types' import React from 'react' import TransferList from './transferlist.js' import { List } from 'immutable' const DownloadList = ({ downloads, onDownloadClick, onClearClick }) => ( <div className='downloads'> <h3> Downloads </h3> <TransferList transfers={downloads} onTransferCl...
src/svg-icons/av/snooze.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSnooze = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9...
examples/real-world/containers/DevTools.js
tappleby/redux
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w"> <LogMonitor /> ...
src/lib/components/D3/ScatterPlotUI.js
as-me/Adapter
import "d3chart"; import React from 'react'; class D3ScatterPlot extends React.Component { constructor(props) { super(props); this.sessionData = props.sessionData; this.hook = props.hook; this.state = this.sessionData.getSessionStateValue(); this.initialize = this.initialize...
client/components/CodeEditor/index.js
Elektro1776/Project_3
import React, { Component } from 'react'; import LanguageDropdown from './Language_Dropdown'; import EditorField from './Code_Editor'; class CodeEditorParent extends Component { state = { currentLanguage: 'javascript' }; whatIsOurState(propVal) { this.setState({ currentLanguage: propVal }); } render() { ...
app/routes/notFound/index.js
wojciech-panek/study-group-6-redux
import React from 'react'; import { IndexRoute } from 'react-router'; import { NotFound } from './notFound.component'; export default ( <IndexRoute component={NotFound} /> );
src/components/examples/constructorFunc.js
Jguardado/ComponentBase
import React, { Component } from 'react'; /** * Class respresenting a Constructor Function * @constructor */ export default class Contructor extends Component { constructor(props) { super(props); /** intializing the state of the component */ this.state = { /** Anything assigned in the state obj...
app/assets/javascripts/NewNodeWidget/Section/NodeTypeSelect.js
sozialhelden/wheelmap
import React from 'react'; import sortBy from 'lodash.sortby'; import Form from '../../common/Form'; import I18n from '../../common/I18n'; import { Category, NodeType } from '../../common/models'; import { immutableMapOf } from '../../common/propTypes'; const { func, instanceOf, string } = React.PropTypes; class Nod...
tp-3/sebareverso/src/components/pages/about/AboutPage.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import Paper from 'material-ui/Paper'; import '../../app.scss'; import {Card, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; class AboutPage extends React.Component { constructor(props) { super(props); this.state = { expanded: false, }; } handle...