path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
client/src/index.js
no-stack-dub-sack/alumni-network
/* eslint-disable */ import App from './App'; import React from 'react'; import './styles/index.css'; import thunk from 'redux-thunk'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import rootReducer from './rootReducer'; import { BrowserRouter } from 'react-router-dom'; import { createStore...
modules/__tests__/pushState-test.js
joeyates/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import resetHash from './resetHash' import execSteps from './execSteps' import Router from '../Router' import Route from '../Route' describe('pushState', function () { beforeEach(resetHash) let node beforeEach(function () { node = d...
ajax/libs/react-instantsearch/4.4.2/Connectors.js
joeyparrish/cdnjs
/*! ReactInstantSearch 4.4.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
src/screen/LoggedData/LoggedData.js
wavicles/fossasia-pslab-apps
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { withRouter } from 'react-router-dom'; import { Scrollbars } from 'react-custom-scrollbars'; import IconButton from '@material-ui/core/IconButton'; import CircularProgress from '@material...
src/Label.js
gianpaj/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
src/parser/hunter/shared/modules/talents/Barrage.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import ItemDamageDone from 'interface/others/ItemDamageDone'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import AverageTargetsHit from 'interface/others/AverageTargetsHit'; import { e...
src/pages/Dev.js
thibmaek/thibmaek.github.io
import React from 'react'; import { dependencies, devDependencies } from '../../package.json'; import { PageHelmet } from '../components/helmet/'; const getDependencies = () => [ ...Object.keys(dependencies), ...Object.keys(devDependencies), ].sort(); const Dev = () => { return ( <section> <PageHelme...
content/gocms/src/admin/components/basicComponent/BasicComponent.js
gocms-io/gocms
'use strict'; import React from 'react'; import {connect} from 'react-redux' class BasicComponent extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { } render() { return ( <p className="basic-component">Basic ...
src/TabPane.js
azmenak/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const TabPane = React.createClass({ propTypes: { active: React.PropTypes.bool, animation: React.PropTypes.bool, onAnimateOutEnd: React.PropTypes.func, disabled: ...
tests/routes/Home/components/HomeView.spec.js
dmassaneiro/integracao-continua
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
docs/app/Examples/modules/Rating/Types/RatingExampleStar.js
aabustamante/Semantic-UI-React
import React from 'react' import { Rating } from 'semantic-ui-react' const RatingExampleStar = () => ( <Rating icon='star' defaultRating={3} maxRating={4} /> ) export default RatingExampleStar
react-flux-mui/js/material-ui/src/svg-icons/action/room.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRoom = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.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.5z...
app/containers/TimeLine/index.js
SakuB/Individual_website
import React, { Component } from 'react'; import QueueAnim from 'rc-queue-anim'; import styles from './styles.css'; class TimeLine extends Component { render() { return ( <section className={styles.timeline}> <QueueAnim type="bottom" className={styles.timeline_con}> <div className={style...
web/src/server.js
kriasoft/Web-App-Boilerplate
/** * 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 path from 'path'; import express from 'express';...
lib/bar/BottomBar.js
ebias/react-native-photo-browser
import React from 'react'; import PropTypes from 'prop-types'; import { Image, Text, StyleSheet, TouchableOpacity, View, } from 'react-native'; import { BarContainer, BAR_POSITIONS } from './BarContainer'; const BUTTON_WIDTH = 40; export default class BottomBar extends React.Component { static propTypes...
frontend/src/components/LoginUI/index.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { Col, Container, Row } from 'react-bootstrap'; import querystring from 'querystring'; import { product } from 'config'; import LoginForm from 'components/siteComponents/UserManagementUI/loginFo...
admin/src/page/dashboard.js
grumoon/GruBlog
import React from 'react' export class DashboardPage extends React.Component { constructor(props) { super(props); } render() { return ( <div>仪表盘</div> ) } }
actor-sdk/sdk-web/src/components/search/ToolbarSearch.react.js
ljshj/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { Container } from 'flux/utils'; import classnames from 'classnames'; import { FormattedMessage, FormattedHTMLMessage } from 'react-intl'; import SearchStore from '../../stores/SearchStore'; import SearchAction...
src/Home/index.js
pulse-opensource/pulselabs-homepage
import React from 'react'; import style from './style.css'; export default function() { return ( <div> <p> <div> Hi boys. I'm Tina. Please don't tell Mom and Dad. So I think I'm being attacked by zombies and I start screaming, 'Do you wanna make out?' And I make out with it. I'm out of control. Everythi...
src/scripts/base/img.js
ButuzGOL/constructor
import React from 'react'; import Radium from 'radium'; @Radium export default class Img extends React.Component { static propTypes = { src: React.PropTypes.string.isRequired, alt: React.PropTypes.string, width: React.PropTypes.number, height: React.PropTypes.number }; static defaultProps = { ...
src/components/locator/components/presentational/ResultsListItem.js
mgoodenough/estimator
'use strict'; /* * Module Definition * */ import React from 'react'; import { getClassNames, isEqual } from '../../utils/index'; /* * Class Definition * */ class ResultsListItem extends React.Component { constructor(props) { super(props); this.onClick = props.onClick.bind(null, props.idx); } ...
app/javascript/mastodon/features/list_editor/index.js
honpya/taketodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
src/components/Decorators/Loading.js
alexcurtis/react-treebeard
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; const Loading = styled(({className}) => ( <div className={className}>loading...</div> ))(({style}) => style); Loading.propTypes = { style: PropTypes.object }; export default Loading;
packages/react/src/components/atoms/buttons/ButtonFixedFeedback/index.js
massgov/mayflower
/** * ButtonFixedFeedback module. * @module @massds/mayflower-react/ButtonFixedFeedback * @requires module:@massds/mayflower-assets/scss/01-atoms/fixed-feedback-button */ import React from 'react'; import PropTypes from 'prop-types'; const ButtonFixedFeedback = (props) => ( <div className="ma__fixed-feedback...
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/contact-phone.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationContactPhone = (props) => ( <SvgIcon {...props}> <path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1....
packages/hekla-viewer/src/components/PaneTitle/index.js
andrewjensen/hekla
import React from 'react'; import './PaneTitle.css'; const PaneTitle = (props) => ( <div className="PaneTitle">{props.text}</div> ); export default PaneTitle;
src/svg-icons/social/whatshot.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialWhatshot = (props) => ( <SvgIcon {...props}> <path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17....
app/components/Header/index.js
BartoszBazanski/react-100-pushup-challenge
import React from 'react'; // import { FormattedMessage } from 'react-intl'; import NavBar from './NavBar'; // import HeaderLink from './HeaderLink'; // import messages from './messages'; class Header extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <Nav...
app/javascript/mastodon/components/attachment_list.js
MitarashiDango/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon';...
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
Jaeandroid/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
src/Card/CardContent.spec.js
AndriusBil/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import CardContent from './CardContent'; describe('<CardContent />', () => { let shallow; let classes; before(() => { shallow = createShallow({ untilSelector: 'CardContent' }); ...
app/javascript/mastodon/features/ui/components/list_panel.js
abcang/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchLists } from 'mastodon/actions/lists'; import { connect } from 'react-redux'; import { createSelector } from 'rese...
src/scenes/home/footer/footer.js
tal87/operationcode_frontend
import React from 'react'; import { Link } from 'react-router-dom'; import ScrollUpButton from 'react-scroll-up-button'; import SocialMedia from 'shared/components/socialMedia/socialMedia'; import centerLogo from 'images/icons/Medal-Icon.svg'; import styles from './footer.css'; const Footer = () => ( <div className=...
src/svg-icons/device/nfc.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNfc = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2...
examples/counter/containers/App.js
jquense/redux
import React from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App { render() { return ( <Provider redux={redux}> {() => <Cou...
src/lib/state_tools/connect_root.js
roman01la/f-react-kit
import React from 'react'; import { assocIn } from './atom'; import { fromJS } from 'immutable'; let queries = []; let fetchQueue = []; let id; export function getQueries() { return queries; } export function connectRoot(Component, uri) { return React.createClass({ displayName: `${Component.displayName}::C...
app/javascript/mastodon/features/ui/components/embed_modal.js
increments/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage, injectIntl } from 'react-intl'; import api from '../../../api'; @injectIntl export default class EmbedModal extends ImmutablePureComponent { static propTypes...
wrappers/toml.js
conversataal/conversataal.github.io
import React from 'react' import toml from 'toml-js' import Helmet from 'react-helmet' import { config } from 'config' class TomlWrapper extends React.Component { render () { const data = this.props.route.page.data; return ( <div className="toml-container container"> <He...
docs/app/Examples/elements/Reveal/Types/RevealExampleFade.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleFade = () => ( <Reveal animated='fade'> <Reveal.Content visible> <Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> <Imag...
front/app/js/components/__dev__/Template.js
nudoru/React-Starter-3
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { withBootStrap, getBsClassName } from '../../shared/bsHOC'; import { SIZE, SIZE_MAP, DEVICE_SIZES, STYLE, STATE } from './BsStyles'; class Bar extends React.PureComponent { render() { const El = styled....
src/svg-icons/device/network-cell.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
Libraries/Components/TextInput/TextInput.js
adamjmcgrath/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/common/component/loaderComponent.js
yusinto/movie-time
import React from 'react'; /* * Animated loader using css for those slow rpc calls * */ export default () => <div> <span className="Loader"> <div className="Loader-indicator"> <h1> <span>Loading</span> <span className="Loader-ellipsis"> <span className="Loade...
swiil/src/components/Menu.js
saaqibz/inbev-hackathon
/** * Created by saz on 3/26/17. */ import React, { Component } from 'react'; import {Link} from 'react-router-dom'; import _ from 'lodash'; import './Menu.css'; import Header from './Header'; import Api from './api'; class MenuContainer extends Component { constructor() { super(); this.state ...
client/node_modules/uu5g03/dist-node/bricks/file-viewer.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, Tools} from '../common/common.js'; import Loading from './loading.js'; import Table from './table.js'; import TBody from './table-tbody.js'; import Tr from './table-tr.js'; import Td from './table-td.js'; import Error from './error.js'; import './file-view...
src/client/index.js
yoo2001818/resumegen
import React from 'react'; import { render } from 'react-dom'; import 'whatwg-fetch'; import App from './component/app'; // Since the application is ABSOLUTELY static - there is no other pages, // etc, we can just download the metadata json and be done with it. let state = window.__INITIAL_STATE__; function rerend...
test/CollapsibleNavSpec.js
asiniy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Navbar from '../src/Navbar'; import CollapsibleNav from '../src/CollapsibleNav'; import Nav from '../src/Nav'; import NavItem from '../src/NavItem'; describe('CollapsibleNav', function () { it('Should create div and add collapse...
dashboard/components/Container.js
MEDIGO/laika
import React from 'react' import { node } from 'prop-types' import './Container.css' const Container = ({ children }) => ( <div className='lk-container'>{children}</div> ) Container.propTypes = { children: node } Container.defaultProps = { children: null } export default Container
test/unit/lib/static/components/custom-scripts.js
gemini-testing/html-reporter
import React from 'react'; import CustomScripts from 'lib/static/components/custom-scripts'; describe('<CustomScripts />', () => { it('should render component for scripts', () => { const props = { scripts: [function() {}] }; const component = mount(<CustomScripts {...props} />)...
src/components/Footer/Footer.js
Shalelol/geomapping-schools
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
src/svg-icons/notification/personal-video.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPersonalVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); Notifi...
examples/admin/src/components/Menu/index.js
aranja/tux
import React from 'react' import Link from '../Link' import Logo from '../Logo' import './styles.css' const menuItems = [ { name: 'Home', href: '/' }, { name: 'About', href: '/about' }, { name: 'Try out Tux', href: '/' }, ] const Menu = () => ( <div className="Menu"> <Logo /> <ul className="Menu-list...
src/icons/FlipToFrontIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FlipToFrontIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm4 8v-4H6c0 2.21 1.79 4 4 4zM6 18h4v-4H6v4zm24 24h4v-4h-4v4zm8-36H18c-2.2...
src/svg-icons/communication/call-merge.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMerge = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); CommunicationCallMerge...
client/src/components/utils/ESActions/ESActions.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import Panel from 'react-bootstrap/lib/Panel'; import PostActionButton from '../PostActionButton'; const renderStatusAction = (t, status, onSuccess, onError) => { if ('OK' === status) { return ( <PostA...
src/scenes/home/landing/emailSignup/emailSignup.js
tal87/operationcode_frontend
import React, { Component } from 'react'; import Section from 'shared/components/section/section'; import axios from 'axios'; import PropTypes from 'prop-types'; import config from 'config/environment'; import Form from 'shared/components/form/form'; import FormEmail from 'shared/components/form/formEmail/formEmail'; i...
components/AboutPage.js
arpith/react-router-example
import React from 'react'; class AboutPage extends React.Component { render() { return ( <div> <h1>About me</h1> <p>I code at <a href='https://github.com/arpith'>github.com/arpith</a> and write at <a href='https://medium.com/@arpith'>medium.com/@arpith</a>.</p> <p>I also tweet at <...
Realization/frontend/czechidm-core/src/content/confidentialstorage/ConfidentialStorageValueTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; // import * as Utils from '../../utils'; import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; /** * Table with confidential storage values * * @author Patrik Stlou...
packages/material-ui-icons/src/SignalWifi3BarLock.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-.3-4.9-4-11.6-4z" /><path d="M23 16v-1.5c0-1.4-1.1-2.5-2....
src/Seripap.js
seripap/wedding.seripap.com
import React, { Component } from 'react'; import { render } from 'react-dom'; import { Router, IndexRoute, Route, browserHistory } from 'react-router'; import './sass/bulma.scss'; import Delegate from './components/Delegate'; import Home from './components/Home'; import OurStory from './components/OurStory'; import R...
src/components/Search.js
WhiteBlue/bilibili-react
import React from 'react'; import AMUIReact from 'amazeui-react'; import Lib from '../Lib' var VideoList = React.createClass({ render: function () { var list = this.props.list; var insetList = []; for (var i = 0; i < list.length; i++) { insetList.push({ title: list[i].title, link: ...
src/svg-icons/device/bluetooth.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetooth = (props) => ( <SvgIcon {...props}> <path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46...
examples/src/components/CustomRender.js
mcls/react-select
import React from 'react'; import Select from 'react-select'; import Highlighter from 'react-highlight-words'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setS...
front.end/react/react-tutorial/src/index.js
entrepidea/projects
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'))
src/interface/icons/ViralContent.js
ronaldpereira/WoWAnalyzer
import React from 'react'; // Viral Content by Edwin Prayogi M from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}> <g> <path d="M49.9931641,18.8754883c0.6904297,0,1.25-0.5595703,1.25-1.25V12.5c0-0.6904297-0.559570...
admin/client/App/screens/Item/components/RelatedItemsList/RelatedItemsList.js
Pop-Code/keystone
import React from 'react'; import { Link } from 'react-router'; import { Alert, BlankState, Center, Spinner } from '../../../../elemental'; import DragDrop from './RelatedItemsListDragDrop'; import ListRow from './RelatedItemsListRow'; import { loadRelationshipItemData } from '../../actions'; import { TABLE_CONTROL_C...
app/SearchBar.js
macypa/pikka
import React, { Component } from 'react'; import { View, TextInput, StyleSheet } from 'react-native'; export default class SearchBar extends Component { render() { return ( <View style={styles.container}> <TextInput style={styles.input} p...
src/client/components/kiosk/Timeout/Timeout.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; import {get} from 'lodash'; import {SHORTLIST_CLEAR} from '../../../redux/shortlist.reducer'; export class Timeout extends React.Component { constructor(props) { super(props); // Disable timeout in development this.devmode = !!(get(process...
src/client/components/ProConComponent/ProConPage/PageElements/Menu.js
psu-hci/ReactiveThinker
import React from 'react'; class Menu extends React.Component { render () { return ( <div className="ui inverted menu"> <a className="active item"> Home </a> <div className="right menu"> <a className="ui item"> Logout </a> </div> ...
src/front/components/contextTypes.js
dbkaplun/dbtag
import React from 'react' export default { app: React.PropTypes.shape({render: React.PropTypes.func.isRequired}), // React.PropTypes.instanceOf(require('./App.jsx')) fbRef: React.PropTypes.instanceOf(require('firebase')), history: React.PropTypes.shape({push: React.PropTypes.func.isRequired}), u: React.PropTyp...
app/src/scripts/main.js
vyorkin/assignment
import React from 'react'; import Router from 'react-router'; import FastClick from 'fastclick'; import appRoutes from './routes/app'; import '../styles/main.css'; new Promise((resolve) => { if (window.addEventListener) { window.addEventListener('DOMContentLoaded', resolve); } else { window.attachEvent('...
src/routes.js
fughz/react-redux-example
import React from 'react' import { connect } from 'react-redux' import { Route, IndexRedirect, Redirect, Link } from 'react-router' import Header from './containers/header' import App from './containers/app'; import About from './components/about'; class PageNotFound extends React.Component { render() { return ...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
wmyers/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
app/index.js
Eaternity/eaternity-edb-solution
import React from 'react' import ReactDOM from 'react-dom' import { createStore, applyMiddleware, compose } from 'redux' import createSagaMiddleware from 'redux-saga' import { Provider } from 'react-redux' import { Router, hashHistory } from 'react-router' import { syncHistoryWithStore, routerMiddleware } from 'react-r...
server/sonar-web/src/main/js/apps/project-admin/key/BulkUpdateResults.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/routes/toolViewer/ToolViewer.js
goldylucks/adamgoldman.me
import React from 'react' import { useParams } from 'react-router' import toolsData from '../../tools/tools-data' import MultiStepForm from '../../components/MultiStepForm/MultiStepForm' const ToolViewer = () => { const { tool } = useParams() const toolData = toolsData[tool] return ( <div style={{ ...
dashboard-ui/app/components/dashboardproject/projectname.js
CloudBoost/cloudboost
/** * Created by Darkstar on 12/2/2016. */ 'use strict'; import { saveAppName } from '../../actions'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import React from 'react'; export class ProjectName extends React.Component { static propTypes = { name: PropTypes.any, value: Pr...
src/components/Image/index.js
andywillis/uws
// Dependencies import React from 'react'; import PropTypes from 'prop-types'; import { getDimensions } from '../../lib/device'; // Style import './style.css'; const getResponsiveSrc = (x, src) => { src = src.replace('.jpg', ''); if (x > 1000) return `${src}_c.jpg`; if (x < 380) return `${src}_n.jpg`; return ...
renderer/components/Checkbox.spec.js
mjswensen/themer-gui
import React from 'react'; import renderer from 'react-test-renderer'; import Checkbox from './Checkbox'; describe('Checkbox', () => { it('should render properly', () => { expect(renderer.create( <Checkbox value={ false } label="off" onChange={ () => {} } /> )).toMatchSnap...
src/components/common/Icon.js
kmcarter/karaoke-song-lister
import React from 'react'; import PropTypes from 'prop-types'; const Icon = props => { return <i className={`fa ${props.className}`} />; }; Icon.propTypes = { className: PropTypes.string.isRequired }; export default Icon;
__tests__/components/Title-test.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Title from '../../src/js/components/Title'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Title', () => { i...
src/server/frontend/render.js
langpavel/react-svg-path-editor
import DocumentTitle from 'react-document-title'; import Html from './html.react'; import Promise from 'bluebird'; import React from 'react'; import Router from 'react-router'; import config from '../config'; import immutable from 'immutable'; import initialState from '../initialstate'; import routes from '../../client...
definitions/npm/react-addons-css-transition-group_v15.x.x/test_react-addons-css-transition-group.js
altano/flow-typed
// @flow import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; const shouldWork = () => ( <div> <ReactCSSTransitionGroup transitionName="div" transitionEnterTimeout={500} transitionLeaveTimeout={300}> <div /> </ReactCSSTransitionGroup> ...
src/components/Dropdown/Dropdown.js
dingchaoyan1983/ReactRedux
import React from 'react'; import DropdownTrigger from './DropdownTrigger'; import DropdownList from './DropdownList'; import DropdownItem from './DropdownItem'; import dropdownManager from './DropdownManager'; import css from './drop-down.css'; class Dropdown extends React.Component { static defaultProps = { op...
full/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
marziyeah/Medhacks_admin
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'));
src/app/components/Main.js
sphinxominator/councils-feathers
import React from 'react' import { Route, Switch } from 'react-router-dom' import styled from 'styled-components' import { MeetingsForm, MeetingsList, MeetingsPage } from './Meetings' import { GroupsForm, GroupsList } from './Groups' import ActionButton from './ActionButton' const MeetingsContainer = () => <Conta...
src/components/Footer/Footer.js
chenwydj/AFLS_edusys
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
src/components/LandingHeader/LandingHeader.js
Anshul-HL/blitz-vihanga
import React, { Component } from 'react'; import { IndexLink } from 'react-router'; import Navbar from 'react-bootstrap/lib/Navbar'; import Nav from 'react-bootstrap/lib/Nav'; import { Image, Row, Col } from 'react-bootstrap'; import Scroll from 'react-scroll'; const Link = Scroll.Link; const Events = Scroll.Events; ...
lib/components/notifications.js
rickycodes/hyper
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')}> ...
src/components/LabeledKnob.js
reklawnos/synthesizer
import React from 'react'; import './LabeledKnob.css'; import Knob from './Knob'; const defaultProps = { min: 0, max: 1, step: 'any', }; function LabeledKnob({ label, min, max, step, valueKey, config, onChange, }) { return ( <div> <div className="labeled-knob__label"> {label} ...
packages/material-ui-icons/src/PlaylistPlay.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PlaylistPlay = props => <SvgIcon {...props}> <path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z" /> </SvgIcon>; PlaylistPlay = pure(PlaylistPlay); PlaylistPlay.muiName = 'SvgIcon'; ...
src/components/Navigation/Navigation.js
sammccord/Rhetorizer
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; // eslint-disable-line no-unused-vars import classNames from 'classnames'; import styles from './Navigation.less'; // eslint-disable-line no-unused-vars import withStyles from '../../decorators/withStyles'; // eslint-di...
app/javascript/mastodon/components/__tests__/avatar-test.js
kibousoft/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import Avatar from '../avatar'; describe('<Avatar />', () => { const account = fromJS({ username: 'alice', acct: 'alice', display_name: 'Alice', avatar: '/animated/alice.gif', avatar_static:...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js
liamhu/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; const styled = ([style]) => style .trim() .spli...
webpack/ForemanTasks/Components/TasksTable/formatters/dateCellFormmatter.js
adamruzicka/foreman-tasks
import React from 'react'; import LongDateTime from 'foremanReact/components/common/dates/LongDateTime'; import { translate as __ } from 'foremanReact/common/I18n'; export const dateCellFormmatter = value => ( <LongDateTime seconds date={value} defaultValue={__('N/A')} /> );
src/nuggets/node/client/src/views/Weather/Components/CurrentWind.js
civiclee/Hack4Cause2017
import React from 'react'; import _ from 'lodash'; const CurrentWind = React.createClass({ renderWindspeed(){ return _.isEmpty(this.props.weather.currently.windSpeed) ? '' : `${this.props.weather.currently.windSpeed} mph`; }, render() { const style = { ma...
stories/components/iconCard/index.js
sethbergman/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', () => ( ...
pkg/interface/timer/tile/tile.js
jfranklin9000/urbit
import React, { Component } from 'react'; import classnames from 'classnames'; import api from './api'; import VolumeIcon from './components/volume-icon'; import Flashing from './components/flashing'; const timerLength = 60 * 20000; const outerSize = 234; //size of tile itself const innerSize = 200; //diameter of pom...
lib/creators/createReactComponent/getIndexContent.js
orionsoft/atom
'use babel' const forRN = function(name) { return `import React from 'react' import {View, Text} from 'react-native' import styles from './styles.js' export default class ${name} extends React.Component { static propTypes = { } render () { return ( <View style={styles.container}> <Text>${n...
packages/material-ui-icons/src/ViewModule.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ViewModule = props => <SvgIcon {...props}> <path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z" /> </SvgIcon>; ViewModule = pure(ViewModule); ViewModule.mui...