path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/material-ui/src/List/ListItemSecondaryAction.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = { root: { position: 'absolute', right: 4, top: '50%', transform: 'translateY(-50%)', }, }; function ListItemSecondaryAction(props...
src/Parser/Hunter/BeastMastery/Modules/Traits/Thunderslash.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from "common/SpellIcon"; import SpellLink from 'common/SpellLink'; import ItemDamageDone from 'Main/ItemDamageDone'; class Thunderslash ...
examples/todomvc/containers/TodoApp.js
TallerWebSolutions/redux-devtools-gentest-plugin
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
src/svg-icons/maps/map.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMap = (props) => ( <SvgIcon {...props}> <path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ...
src/time-travel/TimeTravelList.js
wuxinwei240/React-Bacon-Timetravel-Example
import React, { Component } from 'react'; import h from 'react-hyperscript'; import Bacon from 'baconjs'; export default class TimeTravelList extends Component { componentWillMount() { var state$ = Bacon.combineTemplate({ actions: this.props.timetravel.actions$, states: this.props.t...
src/svg-icons/device/battery-charging-80.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging80 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11...
src/SafeAnchor.js
bbc/react-bootstrap
import React from 'react'; import createChainedFunction from './utils/createChainedFunction'; /** * Note: This is intended as a stop-gap for accessibility concerns that the * Bootstrap CSS does not address as they have styled anchors and not buttons * in many cases. */ export default class SafeAnchor extends React...
src/components/Forms/InputComponent.js
dziksu/songs-manager
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactHtmlParser from 'react-html-parser'; class InputRenderComponent extends Component { constructor(props) { super(props); this.input = this.input.bind(this); } input() { const { input: { name, value, onChan...
src/front/app/common/components/buttons/BackButton.js
travel-and-help/start-kit
import React from 'react'; import IconButton from './IconButton'; import { hashHistory } from 'react-router'; const BackButton = ({ lightness }) => ( <IconButton iconName={'back'} iconSize={24} iconClassName={`icon_${lightness}`} clickHandler={hashHistory.goBack} /> ); BackButt...
src/components/Camera.js
neontribe/spool
import React, { Component } from 'react'; import captureVideoFrame from 'capture-video-frame'; import _ from 'lodash'; import Grid from './Grid'; import Button from './Button'; import CountdownClock from './CountdownClock'; import PageOverlay from './PageOverlay'; import TouchIcon from './TouchIcon'; import styles fr...
src/js/components/cardView.js
jesseokeya/bigechs
import React from 'react'; import './css/styles.css' class CardView extends React.Component { constructor(props) { super(props); this.state = { info: props.info }; } render() { return ( <div className="col-md-6 col-lg-3"> <div classNa...
src/components/app.js
ronaldofs/starterkit-electron-react-es6
import React from 'react'; import ReactDOM from 'react-dom'; import Main from './main/Main.js'; const remote = window.require('remote'); let container = document.createElement('div'); document.body.appendChild(container); ReactDOM.render(<Main />, container);
src/components/SettingsManager/Links.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import withProps from 'recompose/withProps'; import { translate } from 'react-i18next'; import Button from '@material-ui/core/Button'; import LicenseIcon from '@material-ui/icons/Copyright'; import GithubIcon from './GithubIcon'; const enhance = translate(...
docs/app/Examples/modules/Embed/States/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const EmbedStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Active' description='An...
src/pages/graph/Findbridges/Findbridges.js
hyy1115/react-redux-webpack2
import React from 'react' class Findbridges extends React.Component { render() { return ( <div>Findbridges</div> ) } } export default Findbridges
src/routes.js
Alex-Just/gymlog
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; import App from './components/App'; // import CounterApp from './containers/CounterApp'; import GymlogApp from './containers/GymlogApp'; export default ( <Route path="/" component={App}> <IndexRoute component={GymlogApp}/> ...
src/shared/components/form/form.js
sethbergman/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './form.css'; const Form = ({ className, children }) => { const classes = classNames({ [`${styles.form}`]: true, [`${className}`]: className }); return ( <form className={classes}> ...
src/containers/PhotoPage.js
nickeblewis/walkapp
/** * Component that lists all Posts */ import React from 'react' import { graphql } from 'react-apollo' import gql from 'graphql-tag' // import { Link } from 'react-router' import { withRouter } from 'react-router' import { CloudinaryContext, Transformation, Image } from 'cloudinary-react' class PhotoPage extends R...
src/TabPane.js
herojobs/react-bootstrap
import React from 'react'; import deprecationWarning from './utils/deprecationWarning'; import Tab from './Tab'; const TabPane = React.createClass({ componentWillMount() { deprecationWarning( 'TabPane', 'Tab', 'https://github.com/react-bootstrap/react-bootstrap/pull/1091' ); }, render() { ...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/web.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvWeb = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/> </SvgIcon> ); AvWeb.displayName = 'AvWeb'; AvWeb.muiName =...
manoseimas/compatibility_test/client/app/ResultsView/Sidebar.js
ManoSeimas/manoseimas.lt
import React from 'react' import { connect } from 'react-redux' import { subscribe } from 'subscribe-ui-event' import { FacebookShare, ManoBalsas } from '../../components' import styles from '../../styles/views/results.css' class Sidebar extends React.Component { static propTypes = { fractions: React.Prop...
packages/core/src/icons/components/Pause.js
iCHEF/gypcrete
import React from 'react'; export default function SvgPause(props) { return ( <svg width="1em" height="1em" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" clipRule="evenodd" d="M187.6 500c.2-172.5 14...
src/components/jog.js
DarklyLabs/LaserWeb4
/** * Jog module. * @module */ // React import React from 'react' import { connect } from 'react-redux'; import keydown, { Keys } from 'react-keydown'; import { PanelGroup, Panel, ProgressBar} from 'react-bootstrap'; import { setSettingsAttrs } from '../actions/settings'; import { setWorkspaceAttrs } from '../act...
client/src/components/header/index.js
OpenChemistry/materialsdatabank
import React, { Component } from 'react'; import { withStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Button from '@material-ui/core/Button'; import Hidden from '@material-ui/core/Hidden'; import IconButton from '@material-ui/core/IconButton'; import Toolbar from '@mat...
react/src/routes.js
aaronbini/mile-tracker
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/home/HomePage'; import AboutPage from './components/about/AboutPage'; import CoursesPage from './components/course/CoursesPage'; import ManageCoursePage from './components/...
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Radio.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/shared/js/components/D3Axis.js
datalocale/dataviz-finances-gironde
import React from 'react'; export default function D3Axis({ tickData, className, onSelectedAxisItem }){ return React.createElement('g', {className: ['d3-axis', className].filter(x => x).join(' ')}, tickData.map(({id, transform, line: {x1, y1, x2, y2}, text: {x, y, dx, dy, anchor='middle', t}, classNam...
src/components/icons/CallMadeIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const CallMadeIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none"/> <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/> </svg> ); exp...
src/components/form/FormField.js
shrimpliu/shradmin
import React from 'react'; import PropTypes from 'prop-types'; const FormField = () => ( <span></span> ); const formItemLayout = { labelCol: { lg: { span: 3 }, xs: { span: 24 }, sm: { span: 4 }, }, wrapperCol: { lg: { span: 6 }, xs: { span: 24 }, sm: { span: 12 }, }, }; FormField.pr...
src/js/rectangle.js
garygao12580/react_photo_wall
import React from 'react' import '../css/rectangle.less' class Rectangle extends React.Component { constructor(props) { super(props); } render() { let {item, offsetX, onLabelClick} = this.props; let className = item.active ? "active-rectangle" : "normal-rectangle"; let step...
docs/src/sections/ResponsiveEmbedSection.js
Lucifier129/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ResponsiveEmbedSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
src/js/LoadingPage.js
ludonow/ludo-beta-react
import React from 'react'; import { browserHistory } from 'react-router'; import RefreshIndicator from 'material-ui/RefreshIndicator'; import axios from './axios-config'; // override material ui style const style = { container: { alignItems: 'center', display: 'flex', height: 'calc(100vh -...
es/utils/react-if.js
cvdlab/react-planner
import React from 'react'; import PropTypes from 'prop-types'; /** * @return {null} */ export default function If(_ref) { var condition = _ref.condition, style = _ref.style, children = _ref.children; return condition ? Array.isArray(children) ? React.createElement( 'div', { style: style }, ...
app/javascript/mastodon/features/ui/components/column_subheading.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
src/Parser/DemonHunter/Havoc/Modules/Spells/Momentum.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } fro...
docs/app/Examples/collections/Message/Variations/MessageExampleNegative.js
shengnian/shengnian-ui-react
import React from 'react' import { Message } from 'shengnian-ui-react' const MessageExampleNegative = () => ( <Message negative> <Message.Header>We're sorry we can't apply that discount</Message.Header> <p>That offer has expired</p> </Message> ) export default MessageExampleNegative
examples/cra-kitchen-sink/src/stories/force-rerender.stories.js
storybooks/storybook
import React from 'react'; import { forceReRender } from '@storybook/react'; import { Button } from '@storybook/react/demo'; let count = 0; const increment = () => { count += 1; forceReRender(); }; export default { title: 'Force ReRender', }; export const DefaultView = () => ( <Button type="button" onClick={...
src/components/input/autocomplete-text/consult.js
KleeGroup/focus-components
import React from 'react'; function AutocompleteTextConsult({ label, name, type, value }) { return ( <div label={label} name={name} type={type}> {value} </div> ); } export default AutocompleteTextConsult;
src/js/components/postList.js
blaketarter/react-lobsters
import React from 'react'; import Post from './post'; export default class PostList extends React.Component { render() { const postNodes = this.props.posts.map(function(post) { post = post.toJS(); return ( <Post { ...post } key={post.shortId} /> ); }); return ( <ul c...
app/components/Transcribe/UserForm.js
taggun/app-benchmark
/* eslint-disable react/no-array-index-key */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import styles from './Transcribe.css'; const internals = {}; internals.renderData = item => { if (!item || !item.confidenceLevel) { return ''; } if (moment...
src/scenes/home/scholarshipApplication/success/success.js
miaket/operationcode_frontend
import React from 'react'; import { Link } from 'react-router-dom'; import Section from 'shared/components/section/section'; import FormButton from 'shared/components/form/formButton/formButton'; import styles from './success.css'; const Success = () => ( <Section title="Success!" theme="white"> <span className=...
src/shared/element-react/dist/npm/es6/src/slider/Slider.js
thundernet8/Elune-WWW
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import { Component, PropTypes } from '../../libs'; import InputNumber from '.....
app/components/WhyStart.js
gidich/votrient-kiosk
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './WhyStart.css'; export default class WhyStart extends Component { render() { return ( <div className={styles.container}> <Link to="/" className={styles.home}></Link> <Link to="/ThankYou" ...
frontend/src/components/common/grid/customGridColumn.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import Grid from 'material-ui/Grid'; import { withStyles } from 'material-ui/styles'; /** Custom grid column based on flexbox * - used instead of materia-ui one to avoid strange spacing * issues when multiple grid columns being nested in each other * cu...
src/templates/categories-list-template.js
bapti/blog
// @flow strict import React from 'react'; import { Link } from 'gatsby'; import kebabCase from 'lodash/kebabCase'; import Sidebar from '../components/Sidebar'; import Layout from '../components/Layout'; import Page from '../components/Page'; import { useSiteMetadata, useCategoriesList } from '../hooks'; const Categor...
geonode/monitoring/frontend/monitoring/src/components/atoms/hr/index.js
francbartoli/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
app/redux/router.js
andreipreda/coconut
import React from 'react'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { Wrap, Header } from './../wrap'; const NotFound = () => <div>Route not found</div>; export const AppRouter = () => <Router history={browserHistory}> <Route path="/" component={Wrap}> <IndexRoute...
src/index.js
madi031/ReactRouterBlog
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import { createStore, applyMiddleware } from 'redux'; import promise from 'redux-promise'; import PostsIndex from './components/posts_index'; import Post...
src/ServiceList.js
CanopyTax/sofe-inspector
import React from 'react'; import formStyles from './Form.style.css'; import buttonStyles from './Button.style.css'; export default function ServiceList({services, updateService, deleteService, renameService}) { return (services && services.length) ? <div style={{height: '240px', overflow: 'auto', marginBottom: '16px...
src/containers/Home/FormActions.js
oPauloChaves/controle-frotas
import React from 'react' import Row from 'react-bootstrap/lib/Row' import Col from 'react-bootstrap/lib/Col' import Button from 'react-bootstrap/lib/Button' import Glyphicon from 'react-bootstrap/lib/Glyphicon' import FormGroup from 'react-bootstrap/lib/FormGroup' import InputGroup from 'react-bootstrap/lib/InputGroup...
src/svg-icons/social/sentiment-neutral.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentNeutral = (props) => ( <SvgIcon {...props}> <path d="M9 14h6v1.5H9z"/><circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C1...
src/index.js
surongaukeys/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/svg-icons/navigation/arrow-drop-down-circle.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDownCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/> </SvgIcon> ); NavigationArrowDropDownCircle =...
docs/pages/home.js
n7best/react-weui
import React from 'react'; import FontAwesome from 'react-fontawesome'; import './home.less'; //import { Button } from 'react-weui'; const Home = () => ( <div className="App__preview background--canvas flex-center"> <div className="App__preview--none"> <FontAwesome name="weixin" size="4x" /> <p>Hello...
src/index.js
ianwcarlson/react-components
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
react-router-nb/react-router/examples/pinterest/app.js
zhangfaliang/learnReact
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, IndexRoute, Link } from 'react-router' import withExampleBasename from '../withExampleBasename' const PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekitten.com/610/610' }...
00-todo-lab4/src/TodoList.js
iproduct/course-node-express-react
import React from 'react'; const TodoList = ({todos, ...rest}) => { return ( <ul className="list-group"> { todos.map(todo => (<li>{todo.text} - {todo.status}</li>)) } </ul> ); } export default TodoList;
server/sonar-web/src/main/js/apps/overview/main/timeline.js
vamsirajendra/sonarqube
import d3 from 'd3'; import React from 'react'; import { LineChart } from '../../../components/charts/line-chart'; const HEIGHT = 80; export class Timeline extends React.Component { filterSnapshots () { return this.props.history.filter(s => { let matchBefore = !this.props.before || s.date <= this.props...
V2-Node/esquenta.v2/UI/src/views/Base/Tables/Tables.js
leandrocristovao/esquenta
import React, { Component } from 'react'; import { Badge, Card, CardBody, CardHeader, Col, Pagination, PaginationItem, PaginationLink, Row, Table } from 'reactstrap'; class Tables extends Component { render() { return ( <div className="animated fadeIn"> <Row> <Col xs="12" lg="6"> ...
pages/404.js
ivygong/irc
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { config } from 'config'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; export default class NotFound extends Component { render () { return ( <div className="page page--not-found"> ...
src/components/logout_button.js
Helabs/handup-web
import React from 'react'; import { connect } from 'react-redux'; import { graphql, compose } from 'react-apollo'; import gql from 'graphql-tag'; import { SetCurrentUserId, SetCurrentUserToken } from '../actions'; function LogoutButton({ currentUserId, getUserQuery, SetCurrentUserId, SetCurrentUserToken }) { if (!c...
packages/mcs-lite-ui/src/TabItem/TabItem.example.js
MCS-Lite/mcs-lite
import React from 'react'; import PropTypes from 'prop-types'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import { action } from '@storybook/addon-actions'; import TabItem from '.'; class StatefulTabItems extends React.Component { static propTypes = { items: P...
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
TimurTarasenko/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
codes/chapter03/webpack2/demo13/app/components/Welcome.js
atlantis1024/react-step-by-step
/** * Created by Zhang Peng on 2017/6/8. */ import React from 'react'; class Clock extends React.Component { constructor(props) { super(props); this.state = { date: new Date().toLocaleDateString() }; this.click = this.click.bind(this); } click() { // 动态引入import() import('moment') .th...
src/routes/ConnectedDevices/components/ConnectedDevicesSpeeds.js
liuyaoao/omnyiq-sc1-server-render
import React from 'react'; import {getSpeedsChartData} from './ConnectedDevicesChartData'; import TimeSelectionTab from '../../../components/TimeSelectionTab'; var ConnectedDevicesSpeeds = React.createClass({ getInitialState:function(){ return{ } }, componentDidMount:function(){ let _this = this; ...
js/cards/MarkDownCard/MarkDownCard.js
Learnone/ShanghaiTechAPP
import React, { Component } from 'react'; import { View } from 'react-native'; import { Container, Content, CardItem, Text } from 'native-base'; import Markdown from 'react-native-simple-markdown'; import { connect } from 'react-redux'; import { FlipCard } from '../../cards'; import styles from './styles'; const mar...
packages/ui/src/components/uploadAttendance.js
she-smashes/thehub
/** * @author Thenmozhi Subramaniam * @name EventDetails * @desc renders event details component */ import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import {Link} from 'react-router-dom'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, ...
react/src/browser/app/components/View.js
janprasil/mi-vmm-product-quality-rating
/* @flow */ import React from 'react'; import { Base } from 'rebass'; const View = (props: Object) => ( <Base {...props} is="div" /> ); export default View;
client/src/components/FocusedCrawling.js
ViDA-NYU/domain_discovery_tool_react
import React, { Component } from 'react'; import { Col, Row} from 'react-bootstrap'; // From https://github.com/oliviertassinari/react-swipeable-views import Terms from './Terms'; import ScaleBar from './ScaleBar'; import { InputGroup, FormControl , DropdownButton} from 'react-bootstrap'; import RaisedButton from 'mate...
components/Deadline/components/List/List.js
yabeow/sinhvienuit
import React from 'react'; import PropTypes from 'prop-types'; import { FlatList, RefreshControl } from 'react-native'; import { View } from 'native-base'; import Deadline from './Item'; import EmptyList from '../../../EmptyList'; import { ANDROID_PULL_TO_REFRESH_COLOR } from '../../../../config/config'; const sortDea...
js/BaseComponents/ThemedMaterialIcon.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
src/components/Main.js
Amous-th/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import {findDOMNode} from 'react-dom'; //获取图片相关的数据 var imageDatas = require('../data/imageDatas.json'); //利用自执行函数,将图片信息转成图片URL路径信息 imageDatas = (function getImageURL(imageDataArr) { for(var i = 0,j=imageDataArr.length;i<j...
src/frontend/src/components/DonorDetailPage.js
open-austin/influence-texas
import React from 'react' import { useParams } from 'react-router-dom' import { useQuery } from '@apollo/react-hooks' import { gql } from 'apollo-boost' import Typography from '@material-ui/core/Typography' import PaginatedList, { ShortLoadingListBody } from './PaginatedList' import { formatMoney, getDebugQuery } from ...
packages/core/__deprecated__/Project/Project.js
romelperez/arwes
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import AnimationComponent from '../Animation'; import FrameComponent from '../Frame'; import WordsComponent from '../Words'; import HeadingComponent from '../Heading'; // TODO: // - Add a 'featured' prop to highligh item. exp...
docs/app/Examples/modules/Dropdown/Content/DropdownExampleLabel.js
clemensw/stardust
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleLabel = () => ( <Dropdown text='Filter' floating labeled button className='icon'> {/* <i class="filter icon"></i> */} <Dropdown.Menu> <Dropdown.Header icon='tags' content='Filter by tag' /> <Dropdown.Divid...
components/Form/Select/Select.story.js
NGMarmaduke/bloom
import React from 'react'; import { storiesOf, action } from '@storybook/react'; import { withKnobs, boolean } from '@storybook/addon-knobs'; import Select from './Select'; import Option from './Option'; import icons from '../../Icon/icons'; const stories = storiesOf('FormComponents', module); stories.addDecorator(w...
node_modules/redbox-react/examples/react-hot-loader-example/index.js
hnikupet/dddhackaton
import React from 'react' import App from './components/App' const root = document.getElementById('root') React.render(<App />, root)
src/components/Layout/SearchDrawer/AdvancedSearch/DateField/presenter.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' const DateField = (props) => { // Create list of days const days = [(<option id={`${props.id}Day_00`} key={`${props.id}Day_00`}>Day</option>)] for (let i = 1; i <= 31; i++) { const id = `${props.id}${props.formatID(i, 'Day')}` days.push(<option...
docs/src/pages/components/tables/CustomPaginationActionsTable.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/...
app/assets/scripts/components/map-options.js
orma/openroads-vn-analytics
import React from 'react'; import { getContext } from 'recompose'; import T, { translate } from './t'; const MapOptions = ({ layer, language, handleLayerChange, handleShowNoVpromms }) => ( <div className='panel options-panel'> <div className='panel__body'> <form className='form'> <div classNam...
docs/app/Examples/elements/Icon/IconSet/IconExampleAccessibility.js
ben174/Semantic-UI-React
import React from 'react' import { Grid, Icon } from 'semantic-ui-react' const IconExampleAccessibility = () => ( <Grid columns='5' doubling> <Grid.Column> <Icon name='wheelchair' /> <p>wheelchair</p> </Grid.Column> <Grid.Column> <Icon name='asl interpreting' /> <p>asl interpretin...
src/svg-icons/hardware/phone-iphone.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneIphone = (props) => ( <SvgIcon {...props}> <path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1...
ui/src/main/js/components/UpdateStateMachine.js
rdelval/aurora
import React from 'react'; import StateMachine from 'components/StateMachine'; import { addClass } from 'utils/Common'; import { UPDATE_STATUS } from 'utils/Thrift'; import { getClassForUpdateStatus } from 'utils/Update'; export default function UpdateStateMachine({ update }) { const events = update.updateEvents; ...
app/javascript/mastodon/features/account_gallery/components/media_item.js
im-in-space/mastodon
import Blurhash from 'mastodon/components/blurhash'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; import { autoPlayGif, displayMedia, useBlurhash } from 'mastodon/initial_state'; import { isIOS } from 'mastodon/is_mobile'; import PropTypes from 'prop-types'; import React from 'react...
src/components/foundation/original/FoundationOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './FoundationOriginal.svg' /** FoundationOriginal */ function FoundationOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'FoundationOri...
src/components/Home/index.js
chavisclark/chavisclark.github.io
import React from 'react'; import Button from '../Button'; import { Link } from 'react-router'; import Helmet from 'react-helmet'; import styles from './styles.css'; function Home() { return ( <article className={styles.padding}> <Helmet title="Chavis Clark | Digital Nomad & Fullstack Web De...
examples/src/components/CustomRenderField.js
mcanthony/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomRenderField = React.createClass({ displayName: 'CustomRenderField', propTypes: { delimiter: React.PropTypes.st...
src/results/ResultsList.react.js
codeforamerica/citybook
import React, { Component } from 'react'; import Alert from 'react-bootstrap/lib/Alert'; import LoadingSpinner from '../LoadingSpinner.react.js'; import Result from './Result.react.js'; import '../../styles/loading-spinner.scss'; export default class ResultsList extends Component { constructor(){ super(); } ...
src/navigation/auth.js
banovotz/WatchBug2
/** * Auth Scenes * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { Scene, ActionConst } from 'react-native-router-flux'; // Consts and Libs import { AppConfig } from '@constants/'; // Scenes import Authenticate from '@containers/auth/Authen...
src/server/index.js
vesparny/widget
'use strict'; const env = process.env.NODE_ENV || 'development'; import http from 'http'; import path from 'path'; import cors from 'cors'; import React from 'react'; import Router from 'react-router'; import FluxComponent from 'flummox/component'; import Flux from '../shared/Flux'; import routes from '../shared/rout...
packages/material-ui-icons/src/Laptop.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z" /></g> , 'Laptop');
blueocean-material-icons/src/js/components/svg-icons/image/filter-9.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilter9 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM15 5h-2c-1.1 0-2 .89-2 2v2c0 1.11.9 2 2 2h2v2h-4v2h4c1.1 0...
docs/src/pages/layout/hidden/BreakpointOnly.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import { withStyles } from 'material-ui/styles'; import Paper from 'material-ui/Paper'; import Hidden from 'material-ui/Hidden'; import withWidth from 'material-ui/utils/withWidth'; import Typography from 'material-u...
server/sonar-web/src/main/js/components/shared/checkbox.js
abbeyj/sonarqube
import React from 'react'; export default React.createClass({ propTypes: { onCheck: React.PropTypes.func.isRequired, initiallyChecked: React.PropTypes.bool, thirdState: React.PropTypes.bool }, getInitialState() { return { checked: this.props.initiallyChecked || false }; }, componentWillRec...
frontend/app/components/Form/FormRelatedPictures.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' // import Text from 'components/Form/Common/Text' // NOTE: importing the non-wrapped provide() version import FormRelatedPicture from 'components/Form/FormRelatedPicture' import { getIndexOfElementById, removeItem, moveItemDown, moveItemUp } from 'components...
app/component/AddFriend.js
icalF/piye-kabare
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, StyleSheet, Text, TextInput, TouchableHighlight, View } from 'react-native'; import styles from '../style/FormStyles'; export default class AddFriend extends Component { constructor(props) { super(props); this.s...
src/components/form/index.js
WHCIBoys/nitpik-web
import React from 'react'; function Form({ children, handleSubmit }) { return ( <form onSubmit={(e) => { e.preventDefault(); if (document.activeElement) { document.activeElement.blur(); } handleSubmit(); }}> { children } </form> ); } Form.propTyp...
src/lib/components/SecondExample.js
thepixelninja/react-component-test
import React from 'react'; import './SecondExample.scss'; const SecondExample = () => ( <div className="SecondExample"> <p className="SecondExample-text"> Based on Facebook's {'\u00A0'} <a className="SecondExample-link" target="_blank" rel="noopener noreferrer" href="h...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js
iamdoron/create-react-app
/** * 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. */ import Rea...
src/index.js
straku/react-workshop
import injectTapEventPlugin from 'react-tap-event-plugin' injectTapEventPlugin() import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import MuiTheme from './components/MuiTheme/MuiTheme' import App from './components/App/App' import store from './store' import './styles...