path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/app/pages/Home.js
skratchdot/audio-links
import React, { Component } from 'react'; import { Row, Col, Button, Input, Jumbotron, Label, Glyphicon } from 'react-bootstrap'; import { connect } from 'react-redux'; import { setFilterText } from '../actions/filterText'; import { addTag, deleteTag, clearTags } from '../actions/tags'; import allTags from '../../../da...
src/routes/HelloWorld/Component.js
bryanmartin82/react-starter
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as ActionCreators from './actions'; import styles from './styles.css'; import checkmark from 'svg/icons/checkmark.svg'; import Icon from 'components/Icon/Component'; class HelloWorldC...
src/components/InnerLayout/ImageUpload/ImageUpload.js
Venumteam/loafer-front
import React from 'react' // styles import classNames from 'classnames/bind' import styles from './ImageUpload.scss' // constants const avatarPlaceholder = require('../../../../static/user.svg') const cx = classNames.bind(styles) export default class ImageUpload extends React.Component { static propTypes = { use...
fields/types/boolean/BooleanFilter.js
dryna/keystone-twoje-urodziny
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const VALUE_OPTIONS = [ { label: 'Is Checked', value: true }, { label: 'Is NOT Checked', value: false }, ]; function getDefaultValue () { return { value: true, }; } var BooleanFilter = React.createClass({ propTy...
js/components/Nav.js
ShadowZheng/CodingLife
import React from 'react'; import {Link} from 'react-router'; import NavAction from '../actions/NavAction'; import NavStore from '../stores/NavStore'; import $ from '../jquery'; function openNav() { $('#app').addClass('show-nav'); $('#nav-toggle').addClass('uac-close') $('#nav-toggle').addClass('uac-dark')...
__tests__/collection.js
arjunkomath/mjuzik
import 'react-native'; import React from 'react'; import Collection from '../app/components/collection'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Collection /> ); });
jqwidgets/jqwidgets-react/react_jqxtabs.js
UCF/IKM-APIM
/* jQWidgets v5.6.0 (2018-Feb) Copyright (c) 2011-2017 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxTabs extends React.Component { componentDidMount() { let options = this.manageAtt...
src/components/PaginationControls/PaginationControls.stories.js
austinknight/ui-components
import React from "react"; import styled from "styled-components"; import { storiesOf, action } from "@storybook/react"; import PaginationControls from "./PaginationControls"; import { renderThemeIfPresentOrDefault, wrapComponentWithContainerAndTheme, colors } from "../styles"; const Wrapper = styled.div` bac...
containers/SetupScreenContainer.js
sayakbiswas/Git-Blogger
import React from 'react'; import globalVars from '../config/globalVars'; import SetupScreen from '../components/SetupScreen'; import GitHubAPIUtils from '../utils/GitHubAPIUtils'; class SetupScreenContainer extends React.Component { constructor(props) { super(props); } render() { console.log('rendering'); r...
src/components/chat/Chat.js
mBeierl/Better-Twitch-Chat
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import firebase from 'firebase'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { Card, CardTitle, CardText, CardActions } from 'material-ui/Card'; import TextField...
src/svg-icons/av/explicit.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvExplicit = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h4v2h-4v2h4v2H9V7h6v2z"/> </SvgIcon> ); AvExplicit = pure(AvExplic...
app/javascript/client_messenger/gdprView.js
michelson/chaskiq
import React from 'react' import styled from '@emotion/styled' import tw from 'twin.macro' export const Wrapper = styled.div` top: 0px; z-index: 999999; position: fixed; width: 100%; height: 100vh; background: white; //font-size: .92em; //line-height: 1.5em; //color: #eee; ` export const Padder = t...
frontend/src/Components/Menu/FilterMenuContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FilterMenuItem from './FilterMenuItem'; import MenuContent from './MenuContent'; import MenuItem from './MenuItem'; import MenuItemSeparator from './MenuItemSeparator'; class FilterMenuContent extends Component { // // Render ...
src/svg-icons/action/payment.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPayment = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); ActionPay...
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js
hwo411/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; /** * `DatePicker` can be implemented as a controlled input, * where `value` is handled by state in the parent component. */ export default class DatePickerExampleControlled extends React.Component { constructor(props) { super(props)...
test/specs/table/table_row.spec.js
rafaelfbs/realizejs
import React from 'react'; import { TableRow } from 'components/table'; import { assert } from 'chai'; import { mount } from 'enzyme'; describe('<TableRow/>', () => { it('exists', () => { assert(TableRow); }); it('renders with the default props', () => { const renderedTableRow = mount( <table> ...
examples/example2.js
gabrielbull/react-tether2
import React, { Component } from 'react'; import Target from './example2/target'; const style = { position: 'fixed', top: '0px', left: '0px', width: '100%', height: '50px', display: 'flex', justifyContent: 'center' }; class Example2 extends Component { render() { return ( <div style={style}>...
packages/icons/src/md/content/LowPriority.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLowPriority(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M28 9h16v4H28V9zm0 11h16v4H28v-4zm0 11h16v4H28v-4zM4 22c0 7.17 5.83 13 13 13h1v4l6-6-6-6v4h-1c-4.96 0-9-4.04-9-9s4.04-9 9-9h7V9h-7C9.83 9 4 14.83...
app/javascript/mastodon/components/column.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { supportsPassiveEvents } from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, label: PropTypes.string, bindToDoc...
src/svg-icons/communication/chat-bubble.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChatBubble = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/> </SvgIcon> ); CommunicationChatBubble = pure(CommunicationChatBubble)...
src/layouts/PageLayout/PageLayout.js
larsdolvik/portfolio
import React from 'react' import {IndexLink, Link} from 'react-router' import PropTypes from 'prop-types' import './PageLayout.scss' export const PageLayout = ({children}) => ( <div className='container text-center'> <h1>Lars Bendik Dølvik</h1> <IndexLink to='/' activeClassName='page-layout__nav-item--activ...
test/CarouselSpec.js
blue68/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Carousel from '../src/Carousel'; import CarouselItem from '../src/CarouselItem'; describe('Carousel', () => { it('Should show the correct item', () => { let instance = ReactTestUtils.renderIntoDocument( <Carousel acti...
src/components/stories/Gallery.js
neontribe/spool
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { Gallery } from '../Gallery'; import { entries } from './fixtures'; const initialData = { role: { entries: { edges: [] } } }; const entriesData = { role: { entries: { edges: en...
client/components/icons/icon-components/instagram-white.js
HelpAssistHer/help-assist-her
import React from 'react' export default function InstagramWhite(props) { return ( <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-6 -8 229 232" enableBackground="new -6 -8 229 232" xmlSpace="preserve" ...
packages/react-instantsearch-dom/src/components/SearchBox.js
algolia/react-instantsearch
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { translatable } from 'react-instantsearch-core'; import { createClassNames } from '../core/utils'; const cx = createClassNames('SearchBox'); const defaultLoadingIndicator = ( <svg width="18...
docs/app/Examples/modules/Checkbox/States/CheckboxExampleChecked.js
mohammed88/Semantic-UI-React
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleChecked = () => ( <Checkbox label='This checkbox comes pre-checked' defaultChecked /> ) export default CheckboxExampleChecked
src/components/Loading/Loading.js
MinisterioPublicoRJ/inLoco-2.0
import React from 'react' const Loading = ({ layers, showLoader, downloadLoader }) => { let loadingClass = 'module-loading' if (!showLoader && showLoader !== undefined) { loadingClass += ' hidden' } if (downloadLoader && downloadLoader === true) { loadingClass = 'module-loading' }...
node_modules/react-bootstrap/es/MediaRight.js
Technaesthetic/ua-tools
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 ...
app/javascript/components/RoundMap/Map/ReferencePoints/index.js
skyderby/skyderby
import React from 'react' import { useSelector } from 'react-redux' import { selectAssignedReferencePoints } from 'redux/events/round/selectors' import Marker from './Marker' const ReferencePoints = () => { const referencePoints = useSelector(selectAssignedReferencePoints) return ( <> {referencePoints....
test/components/counter.spec.js
TYRONEMICHAEL/recompose
import test from 'tape'; import sinon from 'sinon'; import createDocument from '../utils/createDocument'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import counterFactory from '../../src/components/counter'; function setup() { const document = ...
test/dummy/client/components/posts/record-expanded-content.js
factore/tenon
import React from 'react'; module.exports = (props) => { const editPath = props.record.edit_path; const onDelete = props.onDelete; return ( <div className="record__expanded-content"> <div dangerouslySetInnerHTML={{ __html: props.record.excerpt }} /> <div className="record__expanded-actions"> ...
docs/app/Examples/collections/Table/States/TableExampleWarningShorthand.js
shengnian/shengnian-ui-react
import React from 'react' import { Table } from 'shengnian-ui-react' const tableData = [ { name: undefined, status: undefined, notes: undefined }, { name: 'Jimmy', status: 'Requires Action', notes: undefined }, { name: 'Jamie', status: undefined, notes: 'Hostile' }, { name: 'Jill', status: undefined, notes: un...
src/components/Gauge/Gauge.js
Zoomdata/nhtsa-dashboard-2.2
import styles from './Gauge.css'; import React from 'react'; import GaugeChart from '../GaugeChart/GaugeChart'; const Gauge = ({ name, id, data, max }) => { return ( <div className={styles.root} id={id} > <GaugeChart name={name} ...
src/components/Player/extensions/playerEvents.js
Magics-Group/throw-client
import { throttle } from 'lodash'; import { EventEmitter } from 'events'; import dns from 'dns' import os from 'os' import Promise from 'bluebird' import { remote } from 'electron' import React from 'react' import ReactQR from 'react-qr' import socketIO from 'socket.io' import getPort from 'get-port' con...
src/index.js
hofnarwillie/weather-demo
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import {getWeather} from './actions/weatherActions'; import configureStore from './store/configu...
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js
w01fgang/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import areIntlLocalesSupported from 'intl-locales-supported'; let DateTimeFormat; /** * Use the native Intl.DateTimeFormat if available, or a polyfill if not. */ if (areIntlLocalesSupported(['fr', 'fa-IR'])) { DateTimeFormat = global.Intl...
src/svg-icons/image/slideshow.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSlideshow = (props) => ( <SvgIcon {...props}> <path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageSlideshow = pure(I...
src/ModalDialog.js
andrew-d/react-bootstrap
/*eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ModalDialog = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * A Callback fired when the header closeButton or non-static backdrop ...
react16-feature/src/App.js
wefine/reactjs-guide
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; class Overlay extends Component { constructor(props) { super(props); this.container = document.createElement('div'); document.body.appendChild(this.container); } componentWillUnmount() { document.b...
src/components/DeviceCardComponent.js
hzburki/innexiv-front-end
import React, { Component } from 'react'; import { Panel, Col } from 'react-bootstrap'; import { Link } from 'react-router'; class DeviceCardComponent extends Component { state = { id: this.props.device.id, } onDeviceClick() { this.props.deviceClick(this.state.id); } render() { const { enteries...
src/js/components/Camera.js
deluxe-pig/Aquila
import {Entity} from 'aframe-react'; import React from 'react'; export default props => ( <Entity> <Entity camera="" look-controls="" wasd-controls="" {...props}/> </Entity> );
react/src/SpinnerDonut.js
Chalarangelo/react-mini.css
import React from 'react'; // Module constants (change according to your flavor file) var spinnerDonutClassName = 'spinner-donut'; // Donut Spinner component. export function SpinnerDonut (props){ var outProps = Object.assign({}, props); if (typeof outProps.children !== 'undefined') throw "Error: A 'SpinnerDonut' c...
web/src/js/__tests__/components/ContentView/DownloadContentButtonSpec.js
StevenVanAcker/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import DownloadContentButton from '../../../components/ContentView/DownloadContentButton' import { TFlow } from '../../ducks/tutils' let tflow = new TFlow() describe('DownloadContentButton Component', () => { it('should render correctly', () => {...
src/svg-icons/toggle/star-border.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
main.js
FindEarth/app
import Expo from 'expo' import React from 'react' import { Platform, StatusBar, View } from 'react-native' import { NavigationProvider, StackNavigation } from '@expo/ex-navigation' import { FontAwesome } from '@expo/vector-icons' import Router from './navigation/Router' import cacheAssetsAsync from './utilities/cacheA...
webpack/scenes/Subscriptions/Details/SubscriptionDetailInfo.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'react-bootstrap'; import { translate as __ } from 'foremanReact/common/I18n'; import subscriptionAttributes from './SubscriptionAttributes'; import subscriptionPurposeAttributes from './SubscriptionPurposeAttributes'; const Subscript...
examples/with-relay-modern/lib/RelayProvider.js
arunoda/next.js
import React from 'react' import PropTypes from 'prop-types' // Thank you https://github.com/robrichard // https://github.com/robrichard/relay-context-provider class RelayProvider extends React.Component { getChildContext () { return { relay: { environment: this.props.environment, variable...
src/components/AddProduct.js
ValentinAlexandrovGeorgiev/iStore
import React, { Component } from 'react'; import ajax from 'superagent'; import SERVER_URL from '../config'; class AddProduct extends Component { constructor(props) { super(props); this.state = { message: '', quantity: this.props.quantity }; this.addToBaske...
lib/ui/components/Settings/Settings.js
500tech/bdsm
import React from 'react'; import Frame from 'ui/components/common/Frame'; import { trackEvent } from 'ui/Analytics'; import SettingsState from 'ui/states/SettingsState'; import { connectToState } from 'ui/states/connector'; import ImportSection from 'ui/components/Settings/ImportSection'; import ExportSection from 'ui...
src/components/Helmet.js
radubrehar/evanghelic.ro
import React from 'react'; import Helmet from 'react-helmet'; const TITLE = 'Biserica Cluj - Biserica Creștină după Evanghelie'; const TheHelmet = ({ title, description } = {}) => ( <Helmet> <html lang="ro-RO" /> <title>{title ? title + ' - ' + TITLE : TITLE}</title> <meta name="theme-color" content="#0...
UI/Fields/ListPicker.js
Datasilk/Dedicate
import React from 'react'; import {View, FlatList, StyleSheet, Dimensions, Alert, TouchableHighlight} from 'react-native'; import Text from 'text/Text'; import AppStyles from 'dedicate/AppStyles'; import Textbox from 'fields/Textbox'; import Picker from 'fields/Picker'; import ButtonEdit from 'buttons/ButtonEdit'; impo...
app/react-icons/fa/chain-broken.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaChainBroken extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m11.3 28.4l-5.7 5.7q-0.2 0.2-0.5 0.2-0.3 0-0.5-0.2-0.2-0.2-0.2-0.5t0.2-0...
go-betz/src/components/Bet/index.js
FabioFischer/go-betz
import React from 'react'; import { Card, CardTitle, CardText } from 'material-ui'; class Bet extends React.Component { state = { expanded: false }; render() { const { match, pick, value } = this.props; const { description, teamA, teamB, winner } = match; let expandedDescription = `I bet ${val...
node_modules/react-router/es/IndexRedirect.js
ProjectSunday/rooibus
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.string, object = _React$PropTypes.object; /** * An <IndexRedir...
newclient/scripts/components/config/general/disclosure-type/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
node_modules/rc-table/es/TableCell.js
yhx0634/foodshopfront
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
lib/editor/containers/ImageManagerApp.js
jirokun/survey-designer-js
/* eslint-env browser */ import React, { Component } from 'react'; import $ from 'jquery'; import classNames from 'classnames'; import { List } from 'immutable'; import Spinner from 'react-spinkit'; import ImageManager from '../components/editors/ImageManager'; import '../css/bootstrap.less'; /** * ImageManagerのアプリ ...
src/App.js
GuillaumeRahbari/react-website
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/...
webpack/scenes/ModuleStreams/Details/Profiles/ModuleStreamDetailProfiles.js
mccun934/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'patternfly-react'; import TableSchema from './TableSchema'; const ModuleStreamDetailProfiles = ({ profiles }) => ( <div> <Table.PfProvider columns={TableSchema}> <Table.Header /> <Table.Body rows={profiles} rowKey="...
src/routes/BusinessPage/UDingHuo/index.js
janeluck/red
/** * Created by janeluck on 17/6/19. */ import React from 'react' import {Steps, Button, Form, Input} from 'antd'; import _ from 'lodash' import styles from './index.less' import MappingTable from '../MappingTable' const Step = Steps.Step; const FormItem = Form.Item; const steps = ['企业', '人员', '客户'] // 企业的对应表单项 c...
src/components/Input/__tests__/Input-test.js
birkir/react-typescript-iso-kit
'use strict'; jest.unmock('../Input.js'); import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import Input from '../Input'; describe('Input', () => { const input = TestUtils.renderIntoDocument( <Input value="test" /> ); const inputNode = ReactDOM...
app/javascript/components/collections/list/ButtonCollectionListShowAll.js
avalonmediasystem/avalon
/* * Copyright 2011-2022, The Trustees of Indiana University and Northwestern * University. Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
src/frontend/src/components/counters/RoundCount.js
ziroby/dmassist
import React from 'react'; import './RoundCount.css'; function RoundCount(props) { return ( <div className="RoundCount"> round:&nbsp;{props.round} </div> ); } export default RoundCount;
src/routes.js
transmute-industries/eth-faucet
import React from 'react' import { Route, IndexRoute, Redirect } from 'react-router' import { DEBUG_PATH as DebugRoute, CREATE_FAUCET_PATH as CreateFaucetRoute, NAME_FAUCET_PATH as FaucetRoute, AUTHORIZE_FAUCET_PATH as AuthorizeFaucetRoute } from './constants/paths' import CoreLayout from './layouts/CoreLayou...
services/web/client/containers/search.js
apparatus/mu-app
'use strict' import React from 'react' import {connect} from 'react-redux' import {search} from '../actions/search' import {SearchResult} from '../components/search-result' import { Row, Col, RowCol } from '../components/layout' export const Home = React.createClass({ propTypes: { dispatch: React.PropTypes.func...
src/routes.js
SWTPAIN/react-redux-universal-hot-example
import React from 'react'; import {Route} from 'react-router'; import { App, Home, Widgets, About, Login, RequireLogin, LoginSuccess, Survey, NotFound, } from 'containers'; export default function(store) { return ( <Route component={App}> <Route path="/" component={Hom...
src/svg-icons/maps/local-convenience-store.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalConvenienceStore = (props) => ( <SvgIcon {...props}> <path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z"/> </SvgIcon> ); MapsLocalConvenienceStore = ...
src/components/Header.js
amit-kulkarni/react-food-order
import React from 'react'; export default function Header(props) { return ( <div className="container header"> <div className="row align-items-center py-3"> <div className="col-md-10"> <h3> <i className="fa fa-cutlery mr-3" aria-hidden="true"></i> <span>Order Food<...
src/core/scenes.js
CharlesMangwa/Chloe
/* @flow */ import React from 'react' import { Actions, Scene } from 'react-native-router-flux' import { AdvertScene } from '@Advert/scenes' import { ThemesScene } from '@Themes/scenes' import { ChaptersScene } from '@Chapters/scenes' import { StoryOverviewScene } from '@StoryOverview/scenes' import { StoryScene } fro...
react/src/components/ThumbnailSizes/index.js
sinfin/folio
import React from 'react' import ThumbnailSize from './ThumbnailSize' function ThumbnailSizes ({ file, updateThumbnail }) { const thumbnailSizes = file.attributes.thumbnail_sizes if (!thumbnailSizes) return null const keys = Object.keys(thumbnailSizes) if (keys.length === 0) return null return ( <React...
examples/03 - Basic auth/components/Dashboard.js
Kureev/browserify-react-live
import React from 'react'; import auth from '../vendor/auth'; export default class Dashboard extends React.Component { render() { var token = auth.getToken(); return ( <div> <h1>Dashboard</h1> <p>You made it!</p> <p>{token}</p> </div> ); } }
ext/lib/site/auth-facebook/confirm/component.js
RosarioCiudad/democracyos
import React from 'react' export default () => { const user = window.initialState.authFacebookConfirmUser return ( <div className='container-simple ext-auth-facebook-confirm'> <p className='title'>Ingresar como:</p> <div className='avatar'> <img src={user.avatar} alt={user.displayName} /> ...
test/lists/list-item-spec.js
Syncano/material-ui
import React from 'react'; import ListItem from 'lists/list-item'; import Checkbox from 'checkbox'; import injectTheme from '../fixtures/inject-theme'; import TestUtils from 'react-addons-test-utils'; describe('ListItem', () => { let ThemedListItem; beforeEach(() => { ThemedListItem = injectTheme(ListItem); ...
node_modules/react-router/es6/RoutingContext.js
superKaigon/TheCave
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
JotunheimenPlaces/src/components/Button.js
designrad/Jotunheimen-tracking
import React, { Component } from 'react'; import ReactNative from 'react-native'; const { StyleSheet, Text, View, TouchableOpacity } = ReactNative; /** * Button component */ export default class Button extends Component { /** * Render a Button * @return {jsxresult} result in jsx format */ ren...
lib/ui/src/containers/preview.js
storybooks/react-storybook
import { PREVIEW_URL } from 'global'; import React from 'react'; import { Consumer } from '@storybook/api'; import { Preview } from '../components/preview/preview'; const nonAlphanumSpace = /[^a-z0-9 ]/gi; const doubleSpace = /\s\s/gi; const replacer = match => ` ${match} `; const addExtraWhiteSpace = input => inp...
examples/huge-apps/app.js
axross/react-router
/*eslint-disable no-unused-vars */ import React from 'react' import { createHistory, useBasename } from 'history' import { Router } from 'react-router' import stubbedCourses from './stubs/COURSES' const history = useBasename(createHistory)({ basename: '/huge-apps' }) const rootRoute = { component: 'div', childR...
routes/Statistic/components/DotInfo.js
YongYuH/Ludo
import React from 'react'; import styled from 'styled-components'; import { translate } from 'react-i18next'; import Card from './Card'; import Button from '../../../components/Button'; const ButtonWrapper = styled.div` margin-top: 10px; `; const Wrapper = styled.div` `; const DotInfo = ({ t, }) => ( <Wrapper>...
client/components/Layout/Layout.js
kriasoft/FSharp-Server-Template
/** * ASP.NET Core Starter Kit * * 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 Header from './Header'; import s from './Layout.css'...
src/components/Lottery/Lottery.js
febobo/react-redux-start
import React from 'react' import dynamicIco from '../../static/images/dynamicIco.png' import aboutIco from '../../static/images/aboutIco.png' import classes from '../Lottery/Lottery.scss' import {i18n} from '../../util/i18n' import { getBtcWebsocket , btcWebsocket } from '../../actions/Websocket' import { connect } fro...
src/components/views/globals/NewVersionBar.js
aperezdc/matrix-react-sdk
/* Copyright 2015, 2016 OpenMarket Ltd 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 in writing, sof...
test/TableSpec.js
apisandipas/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Table from '../src/Table'; describe('Table', function () { it('Should be a table', function () { let instance = ReactTestUtils.renderIntoDocument( <Table /> ); assert.equal(React.findDOMNode(instance).nodeName,...
frontend/components/indexComponent.js
yograterol/viperid
import React from 'react'; import { connect } from 'react-redux'; import CodeMirror from './codemirror'; import ViperidPanel from './panel'; import Head from './head'; import configureStore from '../store'; class IndexComponent extends React.Component { render() { return ( <div> <Head /> <d...
app/javascript/mastodon/features/compose/components/poll_button.js
yukimochi/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ add_poll: { id: 'poll_button.add_poll', defaultMessage: 'Add a poll' }, remove_poll: { id: 'poll_button...
app/components/FormInput/index.js
JSSolutions/Perfi
import React from 'react'; import T from 'prop-types'; import { ViewPropTypes } from 'react-native'; import Input from '../Input'; import TouchableItem from '../TouchableItem'; import Text from '../Text'; import s from './styles'; import { colors, dimensions } from '../../styles'; const renderIcon = (icon) => { if ...
_theme/template/Articles.js
ElemeFE/react-amap
import React from 'react'; import Layout from './Layout'; import SideMenu from './Menu/SideMenu'; import PureArticle from './Content/PureArticle'; export default function Article(props) { const pageData = props.pageData; return <Layout route={props.route}> <div id="doc"> <aside id="aside"> <SideM...
src/containers/App.js
ashmaroli/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { HotKeys } from 'react-hotkeys'; import DocumentTitle from 'react-document-title'; import { fetchConfig } from '../ducks/config'; import { fetchMeta }...
src/svg-icons/social/share.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialShare = (props) => ( <SvgIcon {...props}> <path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0...
views/decoration_toggle.js
williara/black-screen
import React from 'react'; export default React.createClass({ getInitialState() { return {enabled: this.props.invocation.state.decorate}; }, handleClick(event) { stopBubblingUp(event); var newState = !this.state.enabled; this.setState({enabled: newState}); this.prop...
docs/src/pages/component-demos/app-bar/ButtonAppBar.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typography'; import Button from 'material-ui/Button'; import IconButton f...
app/javascript/mastodon/features/ui/components/upload_area.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTypes.boo...
src/components/GraphControls.js
chrisfisher/graph-editor
// @flow import React from 'react'; import { connect } from 'react-redux'; import { addNode, deleteNodes, bringNodesToFront, sendNodesToBack, addManyNodes, selectAllNodes, } from '../actions'; const DEFAULT_NODE_WIDTH = 100; const DEFAULT_NODE_HEIGHT = 100; const GraphControls = props => ( <div> <...
src/svg-icons/action/search.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSearch = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
src/index.js
cindyqian/BoardGames
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import ReducerManager from './components/ReducerManager' import {logger, currentAction, asyncDispatchMiddleware, callbackMiddleware} from './components/CommonMiddlewar...
src/containers/Ecommerce/checkout/billing-form.js
EncontrAR/backoffice
import React from 'react'; import Input from '../../../components/uielements/input'; import Select from '../../../components/uielements/select'; import Checkbox from '../../../components/uielements/checkbox'; import InputBox from './input-box'; import IntlMessages from '../../../components/utility/intlMessages'; const...
client/src/entwine/TinyMCE_sslink-file.js
silverstripe/silverstripe-asset-admin
/* global tinymce, editorIdentifier, ss */ import i18n from 'i18n'; import TinyMCEActionRegistrar from 'lib/TinyMCEActionRegistrar'; import React from 'react'; import ReactDOM from 'react-dom'; import jQuery from 'jquery'; import ShortcodeSerialiser from 'lib/ShortcodeSerialiser'; import InsertMediaModal from 'containe...
packages/sandbox/pages/index.js
styled-components/styled-components
import React from 'react'; import styled, { createGlobalStyle } from 'styled-components'; import ButtonExample from '../src/Button.example'; const GlobalStyle = createGlobalStyle` body { font-size: 16px; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-...
src/svg-icons/image/iso.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageIso = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/> ...
src/Accordion.js
pivotal-cf/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
src/ChipsCatalog.js
material-components/material-components-web-catalog
import React, { Component } from 'react'; import ComponentCatalogPanel from './ComponentCatalogPanel.js'; import {MDCChipSet} from '@material/chips/index'; import './styles/ChipsCatalog.scss'; const ChipsCatalog = () => { return ( <ComponentCatalogPanel hero={<ChipsHero />} title='Chips' descr...