path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/content/ContentBody.js
entria/entria-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { VIEWPORT } from '../Responsive'; const Wrapper = styled.div` padding: 20px; @media(min-width: ${VIEWPORT.MEDIUM}px) { padding: 40px; } `; const ContentBody = ({ style, children }) => <Wrapper ...
src/components/Elements/ProjectCTA/index.js
jmikrut/keen-2017
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import Arrow from '../../Icons/Arrow'; import './ProjectCTA.css'; class ProjectCTA extends Component { render() { const originalClasses = "project-cta"; const additionalClasses = this.props.color; const classes = additionalC...
example/src/example.js
MartinWillitts/re-bulma
import React, { Component } from 'react'; import { Button, Columns, Column, Addons, Group, FormHorizontal, ControlLabel, Input, Textarea, Select, Label, Checkbox, Table, Td, Th, Tr, Tbody, Thead, Tfoot, Title, Subtitle, Box, Icon, Radio, Tabs, TabGroup, Tab, Tag, ...
demo/examples/Popover.js
OnsenUI/react-onsenui
import React from 'react'; import MyToolbar from './MyToolbar'; import { Page, Button, Popover } from '../../src/index.js'; export default class extends React.Component { constructor(props) { super(props); this.state = {isOpen: false}; this.showClick = this.showClick.bind(this); this.getTarge...
actor-apps/app-web/src/app/components/ActivitySection.react.js
greatdinosaur/actor-platform
import React from 'react'; import classNames from 'classnames'; import { ActivityTypes } from 'constants/ActorAppConstants'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import ActivityStore from 'stores/ActivityStore'; import ActivityHeader from 'components/activity/ActivityHeader.react'; im...
src/Containers/Loading/Loading.js
rahulp959/airstats.web
import React from 'react' import './Loading.scss' import loadinganim from './loading.gif' class Loading extends React.Component { render () { return ( <div className='loading'> <img src={loadinganim} alt='Loading animation...' /> <h3>Loading...</h3> </div> ) } } export default ...
node_modules/react-bootstrap/es/Pagination.js
xuan6/admin_dashboard_local_dev
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-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/src/app/components/pages/components/Divider/ExampleList.js
ichiohta/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import {List, ListItem} from 'material-ui/List'; import MobileTearSheet from '../../../MobileTearSheet'; const DividerExampleList = () => ( <MobileTearSheet height={250}> <List> <ListItem insetChildren={true} primaryText="Janet Perkins B...
src/routes/home/index.js
jhlav/mpn-web-app
/** * 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 Home from './Home'; i...
docs/src/layouts/wrapper.js
chrisclarke1977/nuclear-js
import React from 'react' import { BASE_URL } from '../globals' const PRISM_PATH = BASE_URL + 'assets/js/prism.js' const CSS_PATH = BASE_URL + 'assets/css/output.css' const JS_PATH = BASE_URL + 'app.js' const GA_SCRIPT = `(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[])...
src/Card.js
hcjk/react-pasta
import React from 'react' import Base from './Base' const Card = (props) => ( <Base {...props} className='card' baseStyle={{ border: 'solid 1px #ddd', borderRadius: 4, padding: 20 }} /> ) export default Card
examples/counter/containers/App.js
madole/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-...
docs/app/Examples/elements/Container/Types/ContainerExampleText.js
koenvg/Semantic-UI-React
/* eslint-disable max-len */ import React from 'react' import { Container, Header } from 'semantic-ui-react' const ContainerExampleText = () => ( <Container text> <Header as='h2'>Header</Header> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa stron...
src/__mocks__/svgComponentMock.js
creditornot/wolt-web-common
import React from 'react'; module.exports = (props) => React.createElement('div', props);
src/svg-icons/image/photo-album.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoAlbum = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/> </Sv...
scripts/Observer.js
jamieholliday/scrum-poker
'use strict'; import React from 'react'; var Observer = React.createClass({ propTypes: { onToggleObserver: React.PropTypes.func }, handleClick: function () { this.props.onToggleObserver(); }, render() { return ( <button onClick={this.handleClick}>Toogle</button> ); } }); export default Observer;
spec/root.js
showings/react-toolbox
/* global VERSION */ import 'normalize.css'; import React, { Component } from 'react'; import { Layout, Panel, NavDrawer } from '../components/layout'; import AppBar from '../components/app_bar'; import ButtonToolbox from '../components/button'; import Autocomplete from './components/autocomplete'; import AppBarTest ...
src/pages/404.js
phoomparin/phoom.in.th
import React from 'react' import Layout from '../layout' const NotFoundPage = () => ( <Layout> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundPage
admin/client/components/MobileNavigation.js
Redmart/keystone
import React from 'react'; import Transition from 'react-addons-css-transition-group'; var MobileListItem = React.createClass({ displayName: 'MobileListItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropTypes.string.isRequired, }, render () { r...
client/components/Filter/Filter.js
Mignon-han/issue-processing
import React, { Component } from 'react'; import { Panel } from 'react-bootstrap'; import Progressbar from '../Utils/Progressbar'; import ImageExhibition from '../ImageList/ImageExhibition'; import FilteredList from '../Common/FilteredList'; class Filter extends Component { constructor (props) { super(props); th...
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Navbar.js
jmanday/Master
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/components/TextInputBEM/TextInputBEM.js
chadacious/ps-react-chadacious
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInputBEM({htmlId, name, label, type = "text", required = false, onChange, p...
src/components/Dashboard/Dashboard.js
Jotakuun/github-charts
import React from 'react'; import styles from './Dashboard.css'; import RadarChart from '../RadarChart/RadarChart'; import RepoCard from '../RepoCard/RepoCard'; import { connect } from 'react-redux'; import { apiHost, fetchRepoData } from '../../helpers'; import { getReposInfo, removeRepo } from '../../store/actions'; ...
src/components/Dashboard/LeftMenu.js
RegOpz/RegOpzWebApp
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Link } from 'react-router'; import custom from '../../../js/custom'; import { connect } from 'react-redux'; import { actionLeftMenuClick, } from '../../actions/LeftMenuAction'; import TenantLeftMenu from './TenantLeftMenu'; import Ma...
lib/addons/connect-to-stores.js
zapier/nano-flux
import React from 'react'; const exists = (obj) => { return obj !== null && typeof obj !== 'undefined'; }; export default (Component, storeKeys, stateFn) => { const checkFluxProp = (props) => { if (!exists(props.flux)) { throw new Error('Must pass flux object on props for connectToStores.'); } ...
web/src/components/overview/index.js
caicloud/cyclone
import React from 'react'; import moment from 'moment'; import { Spin, Card, Statistic, Row, Col } from 'antd'; import { inject, observer } from 'mobx-react'; import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from 'recharts'; import PropTypes from 'prop-types'; @inject('dashboard') ...
src/page/CardPage.js
jerryshew/react-uikits
import React, { Component } from 'react'; import {CN, TitleBlock} from '../util/tools'; import {NS, COLORS} from '../constant'; import CodeView from './CodeView'; const makeCard = (cn='card') => { return ( <div className={cn}> <div className={CN('image')}> <img src="http://braav...
pootle/static/js/shared/mixins/ModelFormMixin.js
phlax/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import _ from 'underscore'; im...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
esschul/udp.github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
App.js
tomtom92/GreatCircles
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class App extends React.Component { render() { return ( <View style={styles.container}> <Text>Open up App.js to start working on your app!</Text> <Text>Changes you make will automatically reload...
docs/app/Examples/elements/Container/Types/ContainerExampleContainer.js
mohammed88/Semantic-UI-React
/* eslint-disable max-len */ import React from 'react' import { Container } from 'semantic-ui-react' const ContainerExampleContainer = () => ( <Container> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et magnis di...
src/media/js/addon/containers/reviewUpdates.js
mozilla/marketplace-content-tools
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {fetch} from '../actions/reviewUpdates'; import {reviewerSearch} from '../actions/search'; import AddonReview from '../components/review'; import {addonPageSelector} from '../selectors/addon'; export clas...
packages/mcs-lite-landing-web/src/components/SVG/SVGOpenCode1.js
MCS-Lite/mcs-lite
/** * svgtoreact * * @author Michael Hsu */ import React from 'react'; export default function SVGOpenCode1(props) { return ( <svg width={58} height={70} viewBox="0 0 58 70" {...props}> <g> <path d="M37.898 1h-34.888c-1.11 0-2.01.899-2.01 1.992v63.183c0 1.1.892 1.992 2.003 1.992h51.3...
src/routes/NotFound/NotFound.js
simonvpe/borrkoll-react
import React from 'react' import { browserHistory } from 'react-router' const goBack = (e) => { e.preventDefault() return browserHistory.goBack() } export const NotFound = () => ( <div> <h4>Page not found!</h4> <p><a href='#' onClick={goBack}>&larr; Back</a></p> </div> ) export default...
docs/src/app/pages/components/Avatar/Page.js
GetAmbassador/react-ions
import React from 'react' import PropsList from 'private/modules/PropsList' import docs from '!!docgen!react-ions/lib/components/Avatar/Avatar' import CodeExample from 'private/modules/CodeExample' import styles from 'private/css/content' import ExampleAvatar from './ExampleAvatar' import exampleAvatarCode from '!raw!....
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
blackle/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from '../../../components/permalink'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import IconButton from '../../../...
src/containers/Order/Order.js
unam3/oshop
import React from 'react'; import { render } from 'react-dom'; import { connect, Provider } from 'react-redux'; import OrderWrapper from '../../components/OrderWrapper/OrderWrapper.js'; import { createStore, combineReducers } from 'redux'; import { ConnectedCart } from '../Cart/Cart.js'; import cartReducer, { initial...
src/svg-icons/device/wallpaper.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWallpaper = (props) => ( <SvgIcon {...props}> <path d="M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-...
pootle/static/js/shared/components/Tabs.js
unho/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import { PureRenderMixin } from...
src/svg-icons/action/face.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFace = (props) => ( <SvgIcon {...props}> <path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-...
src/components/Contact/ContactIcons.js
ishwarsawale/ishwarsawale.github.io
import React from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import data from '../../data/contact'; const ContactIcons = () => ( <ul className="icons"> {data.map((s) => ( <li key={s.label}> <a href={s.link}> <FontAwesomeIcon icon={s.icon} /> </a> ...
tests/lib/rules/vars-on-top.js
crazy4groovy/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...
packages/shared/forks/Scheduler.umd.js
Simek/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; const { ...
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_04/finished/src/routes.js
yevheniyc/Autodidact
import React from 'react' import { Router, Route, IndexRoute, hashHistory } from 'react-router' import { App, Whoops404 } from './components' import SkiDayCount from './components/containers/SkiDayCount' import AddDayForm from './components/containers/AddDayForm' import SkiDayList from './components/containers/SkiDayLi...
examples/js/manipulation/demo.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import InsertRowTable from './insert-row-table'; import DeleteRowTable from './delete-row-table'; import StrictSearchTable from './strict-search-table'; import SearchTable from './search-table'; import ColumnFilterTable from './filter-table'; import MultiSearchTable fr...
src/app.js
heroinedor/tictactoe
import React from 'react'; import ReactDOM from 'react-dom'; import Game from './component/game' ReactDOM.render( <Game />, document.getElementById('container') );
node_modules/react-router/es6/Lifecycle.js
lzm854676408/big-demo
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
client/routes/views/Rectangles/RectanglesCreateForm.js
alecksmart/interviewtask-react
/* * Project: interviewtask-react * File: client/routes/views/Rectangles/RectanglesCreateForm.js * * Author: Alexander Missa * * Description: */ import React from 'react'; import { connect } from 'react-redux'; import { createRectangle, clearAllRectangles } from './../../../actions/actionCreators'; import Rectan...
src/components/AppHeader.js
JacksonBates/pair-frontend
import React from 'react'; import FccIcon from './FccIcon'; import Header from './Header'; const AppHeader = props => { return ( <div className="App-header"> <Header >{props.headerText}<FccIcon /> {props.appName}</Header> </div> ) }; export default AppHeader;
app/javascript/mastodon/features/status/components/detailed_status.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...
src/components/common/table/Row.js
abhijitrakas/react-redux-setup
import React from 'react'; import Th from './Th'; import { generate } from 'randomstring'; const Row = (props) => { let data = []; let count = 999; const v = props.titles; for (let i in v) { data[count] = v[i]; count++; } return <tr key={ generate(7) }>{data.map((title, i) => <Th key={ generate(8) } data={ti...
app/javascript/flavours/glitch/features/local_settings/page/index.js
vahnj/mastodon
// Package imports import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; // Our imports import LocalSettingsPageItem from './item'; // * * * * * * * * * * * * * * * * * * ...
stories/components/iconCard/index.js
OperationCode/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import IconCard from 'shared/components/iconCard/iconCard'; storiesOf('shared/components/iconCard', module) .add('Default', () => ( <IconCard title="Title" fontAwesomeIcon="FaRoad" /> )) .add('With subText', () => ( ...
client/App.js
SwanCourses/example-app
/** * Root Component */ import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import IntlWrapper from './modules/Intl/IntlWrapper'; // Import Routes import routes from './routes'; // Base stylesheet require('./main.css'); export default function A...
fields/types/cloudinaryimage/CloudinaryImageColumn.js
naustudio/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var CloudinaryImageColumn = React.createClass({ displayName: 'CloudinaryImageCo...
client/analytics/components/partials/filter/popUps/FilterItemYAxelList.js
Haaarp/geo
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {analytics} from './../../../../actions'; import ToggleButtonList from 'konux/common/components/ToggleButtonList'; import { ChartType, AxelType } from './../../../../constants'; class YAxelList extends Reac...
src/router.js
planlodge/soundmix
import React from 'react'; import { BrowserRouter as Router, Route, Redirect, Switch } from 'react-router-dom'; import Navigation from './components/layouts/Navigation'; import ScrollToTop from './components/helpers/ScrollToTop'; import Home from './components/containers/Home'; import Hot from './comp...
src/app/views/oils.js
nazar/soapee-ui
import React from 'react'; import DocMeta from 'react-doc-meta'; import GridOil from 'components/gridOil'; export default React.createClass( { render() { document.title = 'Soapee - Oils'; return ( <div id="oils"> <DocMeta tags={ this.tags() } /> <GridO...
public/jspm_packages/npm/react-router@2.0.0/es6/Link.js
nayashooter/ES6_React-Bootstrap
/* */ "format cjs"; '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 _objectWithoutPr...
app/components/PageTemplate/index.js
vlastoun/picture-uploader-crud
import React from 'react'; import PropTypes from 'prop-types'; import Form from 'components/Form'; import Paper from 'material-ui/Paper'; const paperStyle = { padding: '2em', }; /* eslint-disable react/prefer-stateless-function */ class PageTemplate extends React.Component { render() { return ( <Form mai...
src/components/Todo.js
gsans/todo-react
import React from 'react' import classnames from 'classnames' export default class Todo extends React.Component { state = { complete: this.props.todo.complete, } render () { return ( <li className={classnames({ complete: this.state.complete })} onClick={e => { this.props.toggleT...
src/js/modules/App.js
fredyagomez/reactjs-D3-V4-grommet
import React from 'react'; import NavLink from './NavLink'; import Header from 'grommet/components/Header'; import Menu from 'grommet/components/Menu'; import Image from 'grommet/components/Image'; import Footer from 'grommet/components/Footer'; export default class App extends React.Component { render() { ...
src/components/ArtboardSection.js
vsmode/pixels
import React from 'react'; import styled from 'styled-components'; import Artboard from './Artboard'; import Layer from './Layer'; import Cursor from './Cursor'; const LayerShadow = styled.div` position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; box-shadow: 0 0 48px 8px rgba(0, 0, 0, ...
presentation/1-technique.js
alex-fournier/conference-react-lyra-network
import React from 'react' import {Slide, Heading, Text, Appear, CodePane, List, ListItem} from 'spectacle' import CodeSlide from 'spectacle-code-slide' export default [ <Slide key='1-0'> <Heading textColor='secondary' fit caps> Point technique </Heading> </Slide>, <Slide key='1-1-1-0'> <Text te...
blueprints/dumb/files/__root__/components/__name__/__name__.js
bingomanatee/ridecell
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
product/client/src/components/rating.js
abhishekpathak/recommendation-system
import React, { Component } from 'react'; import Rater from 'react-rater'; import 'react-rater/lib/react-rater.css'; class Rating extends Component { constructor(props) { super(props); this.state = { id: this.props.id, total: 5, rating: this.props.rating, }; this.handleClick = t...
examples/huge-apps/app.js
jamiehill/react-router
import React from 'react'; import { Router } from 'react-router'; import stubbedCourses from './stubs/COURSES'; var rootRoute = { component: 'div', childRoutes: [{ path: '/', component: require('./components/App'), childRoutes: [ require('./routes/Calendar'), require('./routes/Course'), ...
src/components/WhatWeOffer/WhatWeOffer.js
Anshul-HL/blitz-windermere
import React, { Component } from 'react'; import { Col, Row } from 'react-bootstrap'; export default class WhatWeOffer extends Component { render() { const styles = require('./WhatWeOffer.scss'); return ( <Row className = {styles.offerWrapper}> <Col md={2} xs={6}> <div className ={st...
frontend/src/components/Post/index.js
moyuyc/isomorphic-blog
/** * Created by Moyu on 16/10/21. */ import {Link} from 'react-router' import React from 'react' import {Map} from 'immutable' import {renderFrame, positiveHashCode} from "../../common/utils"; class Post extends React.Component { shouldComponentUpdate(nextProps, nextState, nextContext) { return !Map(th...
admin/client/components/Popout/PopoutList.js
suryagh/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutList = React.createClass({ displayName: 'PopoutList', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, }, render () { const className = classnames('PopoutList...
src/parser/shaman/shared/azerite/SereneSpirit.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS/index'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import ItemHealingDone from 'interface/others/ItemHealingDone'; /** ...
examples/todomvc/index.js
lina/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} ...
frontend/src/frontpage/components/course-item.js
OptimusCrime/youkok2
import React from 'react'; export const CourseItem = ({ course, additional }) => ( <li className="list-group-item"> <a href={course.url} > <strong>{course.courseCode}</strong>&nbsp;&mdash;&nbsp; {course.courseName} </a>&nbsp;{additional} </li> );
app/components/couchdb_error.js
ffclassic/janclassic
import React from 'react' export default class CouchDBError extends React.Component { render() { return <h1>CouchDB says {this.props.error.toString()}</h1> } }
node_modules/react-bootstrap/es/Table.js
yeshdev1/Everydays-project
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/public/index.js
Lunik/tcloud
import React from 'react' import ReactDOM from 'react-dom' import 'material-components-web/dist/material-components-web.css' import App from './components/app' //import registerServiceWorker from './registerServiceWorker' import './style/theme' ReactDOM.render(<App />, document.getElementById('root')) //registerServ...
src/routes/about/index.js
louisukiri/react-starter-kit
/** * 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 Layout from '../../co...
tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js
donaldpipowitch/TypeScript
//// [tsxNotUsingApparentTypeOfSFC.tsx] /// <reference path="/.lib/react16.d.ts" /> import React from 'react'; function test<P>(wrappedProps: P) { let MySFC = function(props: P) { return <>hello</>; }; class MyComponent extends React.Component<P> { render() { return <>hello</>...
src/panels/run/RunCluster.js
Kitware/HPCCloud
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import deepClone from 'mout/src/lang/deepClone'; import style from 'HPCCloudStyle/ItemEditor.mcss'; import theme from 'HPCCloudStyle/Theme.mcss'; import client from '../../network'; import SchedulerConfig from '.....
src/components/d3components/CalendarCell.js
nbuechler/studious-display
import React from 'react'; import ReactDOM from 'react-dom'; import d3 from 'd3'; import _ from 'underscore'; export default class Bar extends React.Component { constructor (props) { super(props); this.state = {}; } _handleClick(d) { console.log(d); localStorage.setItem('reflectionDate', d.date)...
js/components/Sidebar/SidebarContentHeader.react.js
ryantang333/dashboard-prototype
import React, { Component } from 'react'; import { connect } from 'react-redux'; const SidebarContentHeader = () => { return ( <div className="sidebar-content-header"> PAGES </div> ); }; // Which props do we want to inject, given the global state? const select = (state) => ({ data: state }); // Wra...
src/app/components/player-artwork-follow.js
pashist/soundcloud-like-player
import React from 'react'; import {connect} from 'react-redux'; import * as actions from '../actions'; export class PlayerArtworkFollow extends React.Component { componentWillReceiveProps() { this.props.dispatch(actions.fetchFollowingsIfNeeded()); } render() { if (!this.props.track) { ...
src/svg-icons/action/flight-takeoff.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightTakeoff = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-....
packages/material-ui-icons/src/LocalLibrary.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z" /></g> , 'LocalLibrary');...
renderer/components/CreateMenu.js
markmarcelo/reactide
import React from 'react'; import PropTypes from 'prop-types'; const CreateMenu = ({ id, createMenuHandler }) => { return ( <div className="create-menu"> <button className="create-button" onClick={createMenuHandler.bind(null, id, 'file')}>Create File</button> <button className="create-button" onClick...
src/main.js
JohanGustafsson91/React-JWT-Authentication-Redux-Router
import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import makeRoutes from './routes'; import Root from './containers/Root'; import co...
client/src/nav/Header.js
flyrightsister/boxcharter
/* * Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved. * * This file is part of BoxCharter. * * BoxCharter 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, ...
local-cli/templates/HelloNavigation/App.js
frantic/react-native
'use strict'; /** * This is an example React Native app demonstrates ListViews, text input and * navigation between a few screens. * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import HomeScreenTabNavigator from './views...
src/components/Pokeball.js
jwinut/poke
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchMonster,fetchThrow } from '../actions/index'; import { Link } from 'react-router'; import { getValueFromCookie } from '../components/Cookie'; class Pokeball extends Component { state = { isThrow:false ...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
alessandrostone/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
public/src/components/Modal/Modal.react.js
hugonasciutti/Challenge
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { FlatButton, CircularProgress, Dialog, RaisedButton } from 'material-ui'; import { findShotById, openModal, closeModal, getUser, getLike, postLike, deleteLike } from '../../actions/index'; import styles from '....
react/exercises/part_05/src/components/ContactForm.js
jsperts/workshop_unterlagen
import React from 'react'; import PropTypes from 'prop-types'; import './ContactForm.css'; function ContactForm({ onCancel }) { return ( <form className="contact-form"> <div className="row"> <div className="col-xs-6"> <div className="form-group"> <label htmlFor="name">Name:</...
components/navigation/Navigation.js
rubenmoya/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { NAVIGATION } from '../identifiers'; import InjectButton from '../button/Button'; import InjectLink from '../link/Link'; const factory = (Button, Link) => { const Navig...
src/routes/chat/components/index.js
chaoming56/react-blog
import React from 'react' import io from 'socket.io-client' const socket = io('wss://tofun.selfcoding.cn/anonymous-chat/123') export default class ChatIndex extends React.Component { componentDidMount() { socket.emit('222', (msg) => { console.log(msg) }) } render() { r...
static/src/js/pages/Jobs.js
enginyoyen/blackcrystal
import React from 'react'; import NavMain from '../components/navigation/NavMain'; import PageFooter from '../components/PageFooter'; import PageHeader from '../components/PageHeader'; import { jobsURI } from '../utils/Config' import { Link } from 'react-router'; import prettyCron from 'prettycron'; import {Grid, Row,...
src/components/navbar/burger_menu.js
obie-obie-oh/obie
import React from 'react' import BurgMenu from 'react-burger-menu' const Menu = BurgMenu.slide import links from './links' import _ from 'lodash' import { Link } from 'react-router' const BurgerMenu = () => { return ( <Menu> <ul className="burger-menu"> {_.map(links, (link, name) => ( <l...
src/MobileStepper/MobileStepper.js
AndriusBil/material-ui
// @flow weak // @inheritedComponent Paper import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import Paper from '../Paper'; import { capitalizeFirstLetter } from '../utils/helpers'; import { LinearProgress } from '../Progre...
react-flux-mui/js/material-ui/src/svg-icons/action/update.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionUpdate = (props) => ( <SvgIcon {...props}> <path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.5...
src/containers/NotFound.js
wzolleis/fitness_aws_react_client
import React from 'react'; import './NotFound.css'; export default () => ( <div className="NotFound"> <h3>Sorry, page not found!</h3> </div> );
src/icons/SignalWifi4BarIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class SignalWifi4BarIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24.02 42.98L47.28 14c-.9-.68-9.85-8-23.28-8S1.62 13.32.72 14l23.26 28.98.02.02.02-.02z"/></svg>;} ...