path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/@ui/Icon/icons/Pin.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M11.83 2C8 2 4 4.96 4 9.8... |
node_modules/react-navigation/lib-rn/views/Header/HeaderTitle.js | jiangqizheng/ReactNative-BookProject | import React from 'react';
import { Text, View, Platform, StyleSheet, Animated } from 'react-native';
const AnimatedText = Animated.Text;
const HeaderTitle = ({ style, ...rest }) => <AnimatedText numberOfLines={1} {...rest} style={[styles.title, style]} accessibilityTraits="header" />;
const styles = StyleSheet.cre... |
admin/client/components/PopoutList.js | efernandesng/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutList = React.createClass({
displayName: 'PopoutList',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
},
render () {
let className = classnames('PopoutList',... |
src/home/Records.js | zhangxin840/mobile-env | import React, { Component } from 'react';
import _ from 'lodash';
import { database } from './database';
import { browsers, devices } from './model';
import { Table } from './Table';
var getDefaultCases = function(){
var i, j;
var cases = {};
for (i in devices) {
cases[i] = {}
for (j in browsers) {
... |
src/components/about-us/utils/lottie.js | twreporter/twreporter-react | import lottie from './lottie-light-min'
import PropTypes from 'prop-types'
import React from 'react'
export default class Lottie extends React.Component {
componentDidMount() {
const {
options: { loop, autoplay, animationData, rendererSettings, segments },
eventListeners,
} = this.props
this... |
blueocean-material-icons/src/js/components/svg-icons/content/report.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentReport = (props) => (
<SvgIcon {...props}>
<path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"/>
</SvgI... |
src/app/components/team/ChangeUserRole.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { FormattedMessage } from 'react-intl';
import { commitMutation, graphql, createFragmentContainer } from 'react-relay/compat';
import RoleSelect from './RoleSelect';
import { can } from '../Can';
import Extern... |
app/app.js | andry-baka/dapur-ngebul-app | import React from 'react';
import {
DrawerNavigator,
StackNavigator
} from 'react-navigation';
import {withRkTheme} from 'react-native-ui-kitten';
import {AppRoutes} from './config/navigation/routesBuilder';
import * as Screens from './screens';
import {bootstrap} from './config/bootstrap';
import track from './con... |
src/app/containers/Home/Home.js | MarcusKolman/www | import React, { Component } from 'react';
import Form from 'muicss/lib/react/form';
import Input from 'muicss/lib/react/input';
import Checkbox from 'muicss/lib/react/checkbox';
import Button from 'muicss/lib/react/button';
import Container from 'muicss/lib/react/container';
import './home.scss';
class Home extends C... |
src/components/common/svg-icons/action/play-for-work.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPlayForWork = (props) => (
<SvgIcon {...props}>
<path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/>
</SvgIcon>
);
ActionPlayForWork ... |
app/main.js | quanxi613/react-webpack | import React from 'react';
import ReactDOM from 'react-dom';
import Hello from './component.jsx';
main();
function main() {
ReactDOM.render(<Hello />, document.getElementById('app'));
}
|
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/more.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationMore = (props) => (
<SvgIcon {...props}>
<path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm... |
cheesecakes/plugins/users-permissions/admin/src/components/InputSearchContainer/index.js | strapi/strapi-examples | /**
*
* InputSearchContainer
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import { findIndex, has, includes, isEmpty, map, toLower } from 'lodash';
import cn from 'classnames';
import PropTypes from 'prop-types';
import Label from 'components/Label';
import InputSearchLi from 'compon... |
src/Parser/DemonologyWarlock/Modules/Talents/ShadowyInspiration.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
const... |
blueocean-material-icons/src/js/components/svg-icons/action/view-list.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionViewList = (props) => (
<SvgIcon {...props}>
<path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/>
</SvgIcon>
);
ActionViewList.displayName = 'ActionViewList';
ActionViewList.muiName = 'SvgI... |
client/components/Index.js | EstebanFuentealba/prueba2 | import React from 'react';
import Reflux from 'reflux';
import ListUser from './ListUser';
import CreateUser from './CreateUser';
import reactMixin from 'react-mixin';
import appActions from './../actions';
import userStore from './../stores/userStore';
export default class Index extends React.Component{
constructor... |
DemoApp/lib/date-item/index.js | andyfen/react-native-UIKit | import React from 'react';
import {
Text,
} from 'react-native';
import moment from 'moment'
const DateItem = ({ timestamp, color, marginLeft, fontSize }) => (
<Text style={{ color, marginLeft, fontSize }}>
{ moment(timestamp).fromNow() }
</Text>
);
DateItem.defaultProps = {
color: '#222',
marginLeft: ... |
packages/starter-scripts/fixtures/kitchensink/template/src/features/syntax/OptionalChaining.js | chungchiehlun/create-starter-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';
function load() {
return [
{ id: 1, name: '1' },
... |
src/index.js | bokuweb/react-motion-menu | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MenuItem from './item';
import MenuButton from './button';
export default class MotionMenu extends Component {
static propTypes = {
margin: PropTypes.number.isRequired,
type: PropTypes.oneOf(['horizontal', 'vertical', 'circ... |
scripts/components/Header.js | LulzAugusto/catch-of-the-day | /*
Header
<Header/>
*/
import React from 'react';
var Header = React.createClass({
render: function() {
return (
<header className="top">
<h1>
Catch
<span className="ofThe">
<span className="of">of</span>
... |
demo/bar.js | joelburget/d4 | import React from 'react';
import {scaleLinear} from 'd3-scale';
import preData from 'dsv?delimiter=\t!../data/bar.tsv';
const width = 960;
const height = 500;
// coerce value to number
const data = preData.map(({name, value}) => ({name, value: +value}));
const maxDatum = Math.max(...data.map(datum => datum.value));... |
examples/shared-root/app.js | stanleycyang/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the url,
when routes have no pa... |
test/test_helper.js | CalinoviciPaul/react | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
website/core/SnackPlayer.js | alin23/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/components/shareAStory.js | sanoofp/fcc-res | import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import './../assets/flow-text.css';
class ShareAStory extends Component{
render(){
return(
<div className="container">
<div className="ro... |
src/Header.js | parkjoon/trivia-aficionados | import React from 'react';
export default class Header extends React.Component {
constructor(props) {
super(props);
this.state = {
logoColor: '#fff'
}
}
render() {
return (
<header id="header" className="header-narrow header-semi-transparent" data-p... |
ReactJS/exam/exam/src/App.js | Martotko/JS-Web | import React, { Component } from 'react';
import { Route, Switch, withRouter } from 'react-router-dom';
import PrivateRoute from './components/common/PrivateRoute'
import Header from './components/common/Header';
import RegisterPage from './components/Auth/RegisterPage';
import LoginPage from './components/Auth/LoginPa... |
src/index.js | KCreate/DeferedContainerList | import React, { Component } from 'react';
class DeferedContainerList extends Component {
constructor(...args) {
super(...args);
// Merge props and state
this.state = Object.assign({}, this.props, {
applied: true,
});
}
componentDidMount() {
// Show the... |
src/components/Step/Step.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
import * as styles from './styles';
import StepGroup from './StepGroup';
/**
* Step represents a step of a process. Simply create `<Step>` components inside a container `<Step.Group>` and numbers will
* automatically be assigned. Assign `complete` state ... |
packages/material-ui-icons/src/Highlight.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Highlight = props =>
<SvgIcon {...props}>
<path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z" />
</SvgIcon>;
Highlight... |
egghead.io/react_fundamentals/lessons/05-owner-ownee/App.js | andrisazens/learning_react | // https://jsbin.com/yixosu/edit?js,output
import React from 'react';
class App extends React.Component {
constructor(){
super();
this.state = { txt: ''}
this.update = this.update.bind(this)
}
update(e){
this.setState({txt: e.target.value})
}
render(){
return (
<div>
<Widget ... |
test/e2e/redux/simple_redux.js | opbeat/opbeat-react | import '../opbeat-e2e'
import { setUserContext, setExtraContext } from '../../../dist/opbeat-react'
import { createOpbeatMiddleware } from '../../../dist/opbeat-react/redux'
import React from 'react'
import { createStore, applyMiddleware, combineReducers } from 'redux'
import thunk from 'redux-thunk'
import ReactDOM f... |
src/Parser/HolyPriest/Modules/Spells/Sanctify.js | mwwscott0/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import Module from 'Parser/Core/Module';
class Sanctify extends Module {
casts = 0
hits = 0
on_byPlayer_heal(event) {
const spellId = e... |
frontend/src/components/eois/details/overview/selectionCriteria.js | unicef/un-partner-portal | import React from 'react';
import R from 'ramda';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import HeaderList from '../../../common/list/headerList';
import PaddedContent from '../../../common/paddedContent';
import { selectCfeiDetails } ... |
app/components/Terminal.js | AlmightyLobsters/CanSat2017.App | import React from 'react';
import { connect } from 'react-redux';
import fs from 'fs';
import { join } from 'path';
import store from '../store';
const exportData = (e) => {
fs.writeFile(join('C:\\Users\\Adalbert\\Desktop', 'CanSat2017Output.csv'),
'TIME,TEMPERATURE,PRESSURE,HUMIDITY,LATITUDE,LATITUDE_ORIE... |
react/gameday2/components/NoWebcasts.js | tsteward/the-blue-alliance | import React from 'react'
import RaisedButton from 'material-ui/RaisedButton'
export default () => (
<div className="no-webcasts-container">
<h1>No webcasts found</h1>
<p>Looks like there aren't any events with webcasts this week. Check on The Blue Alliance for upcoming events!</p>
<RaisedButton
... |
node_modules/react-router/es/Router.js | nockgish/gish | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
CaraCoroa/index.ios.js | michelmarcondes/ReactNativeStudies | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import App from './app';
export default class CaraCoroa extends Component {
render() {
return (
<App />
);
}
}
AppRegistry.registerComponent('CaraCoroa', () => CaraCoroa);
|
client/src/components/home/HomePage.js | adityasharat/react-readable | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as actions from '../../actions/PostActions';
import SinglePost from '../post/SinglePost';
class HomePage extends Component {
static propTypes = {
posts: PropTypes.array
}
componentD... |
src/components/Children.js | pauloliver/react-tldr | import React from 'react';
import Box from './Box';
const Children = (props) => (
<Box>
<h3>Child element</h3>
<code>
Hutt jango hutt binks leia lars. Mon naboo chewbacca mara twi'lek antilles. Hutt solo anakin mandalorians anakin. Luke maul antilles ventress. Binks organa lars sebulba yoda alderaan h... |
components/GlobalTooltip.js | react-community/native-directory | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { StyleSheet, css } from 'glamor/aphrodite';
import { keyframes } from 'glamor';
import { TOOLTIP_WIDTH, TOOLTIP_ARROW_SIZE } from '../common/constants';
class GlobalTooltip extends React.Component {
static... |
src/components/About/About.js | alexpalombaro/reactjs | import './About.scss';
import React from 'react';
import TLDR from '../TLDR'; //eslint-disable-line no-unused-vars
import AppActions from '../../actions/AppActions.js';
import AppStore from '../../stores/AppStore.js';
class About extends React.Component {
constructor(props) {
super(props);
this... |
components/tagPosts.js | lukewalt/buzzpoint | 'use strict';
import {
Text,
View,
TextInput,
ListView,
Image,
ActivityIndicator,
} from 'react-native';
import React, { Component } from 'react';
import styles from '../styles/styles.js';
import axios from 'axios';
import zoneCalc from './_zone-calc';
export default class TagPosts extends Component {
... |
imports/ui/components/loading.js | scimusmn/map-stories | import React from 'react';
export const Loading = () => (
<div className="spinner"></div>
);
|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js | g3r4n/create-esri-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';
function load() {
return Promise.resolve([
{ id: 1,... |
app/javascript/mastodon/features/community_timeline/components/column_settings.js | imomix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingText from '../../../components/setting_text';
const messages = defineMessages({
filter_regex: { id: 'home... |
src/js/react/app.js | mandricore/react-vue2-apollo | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { applyRouterMiddleware, Router, Route, routes, browserHistory, hashHistory } from 'react-router';
import { ApolloProvider } from 'react-apollo';
import App from './components/App/App';
import Home from './components/Home/Home'... |
project/src/scenes/Admin/Articles/ArticleListing/components/ArticleListHead/ArticleListHead.js | strues/boldr | /* @flow */
import React from 'react';
import { Heading } from '@boldr/ui';
import styled from 'styled-components';
const ListHeader = styled.div`
padding-left: 20px;
padding-bottom: 1em;
`;
const ArticleListHead = () => {
return (
<ListHeader>
<Heading type="h4">All Articles</Heading>
</ListHeader... |
web/src/Record.js | Novemser/InMemoryTelecomService | /**
* Created by kevin on 12/11/2016.
*/
import React from 'react';
import {Table, TableBody, TableFooter, TableHeader, TableHeaderColumn, TableRow, TableRowColumn}
from 'material-ui/Table';
import FlatButton from 'material-ui/FlatButton';
const styles = {
table : {
minWidth: '835px',
overflo... |
app/containers/NotFoundPage/index.js | athmangude/react-d3-test-drive | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
react-router-demo/lessons/14-whats-next/modules/routes.js | zhangjunhd/react-examples | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './App'
import About from './About'
import Repos from './Repos'
import Repo from './Repo'
import Home from './Home'
module.exports = (
<Route path="/" component={App}>
<IndexRoute component={Home}/>
<Route path="/repos... |
lib-module-node7-dev/browser.js | turacojs/fody | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _jsxFileName = 'browser.jsx';
/* eslint react/no-render-r... |
information/blendle-frontend-react-source/app/modules/item/containers/StickySharingContainer.js | BramscoChill/BlendleParser | import React from 'react';
import { platformHasApp } from 'helpers/openApp';
import { isMobile } from 'instances/browser_environment';
import DesktopStickySharing from './DesktopStickySharingContainer';
import MobileStickySharingContainer from './MobileStickySharingContainer';
const StickySharingContainer = () =>
is... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | brownbathrobe/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js | hzy87email/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import { MessageContentTypes } from 'constants/ActorAppConstants';
import MessageActionCreators from 'actions/MessageActionCreators';
... |
src/client/admin/index.js | AlexanderKapelyukhovskiy/rcn.io | import React from 'react'
import Component from 'react-pure-render/component'
import { Link } from 'react-router'
export default class AdminIndex extends Component {
render() {
return (
<div className="AdminIndex">
<h1>Admin Tools</h1>
<ul>
<li><Link to={'/admin/events/create-id'... |
app/javascript/flavours/glitch/features/status/components/action_bar.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from 'flavours/glitch/components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from 'flavours/glitch/containers/dropdown_menu_container';
import { defineMessages, injectIntl } from '... |
src/firebaseUtils.js | davidascher/gambier | import React from 'react'
import { init } from "firebase-3-react";
init({
apiKey: "AIzaSyCkKd8YNg1AC-cvLVneHS0ZeshP-e9UFpo",
authDomain: "gambier-630d6.firebaseapp.com",
databaseURL: "https://gambier-630d6.firebaseio.com",
storageBucket: "gambier-630d6.appspot.com",
})
import firebase from 'firebase';... |
app/react-icons/fa/file-word-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaFileWordO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m35.8 8.5q0.6 0.6 1 1.7t0.5 1.9v25.8q0 0.8-0.6 1.5t-1.6 0.6h-30q-0.9 0-1.5... |
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/dragoverlay.js | patel344/Mr.Miner | import React from 'react'
const DragOverlay = () => (
<div className="drag-overlay">
<span>
<i className="fa fa-cloud-upload fa-3x" />
<h3>Drag to Upload</h3>
</span>
</div>
)
export default DragOverlay
|
stories/Switch.stories.js | react-materialize/react-materialize | import React from 'react';
import { storiesOf } from '@storybook/react';
import Switch from '../src/Switch';
const stories = storiesOf('Components/Switch', module);
stories.addParameters({
info: {
text: `Switches are special checkboxes used for binary states such as on / off`
}
});
stories.add('Switch', () =... |
src/svg-icons/notification/event-available.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventAvailable = (props) => (
<SvgIcon {...props}>
<path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ... |
js/AppNavigator.js | d3ming/kronos |
import React, { Component } from 'react';
import { StatusBar } from 'react-native';
import { connect } from 'react-redux';
import { Drawer } from 'native-base';
import { Router, Scene } from 'react-native-router-flux';
import { closeDrawer } from './actions/drawer';
import Login from './components/login/';
import Ho... |
packages/material-ui-icons/src/LocalDrink.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.33-11H5.67l-.44-4h13.53l-.43 4z" /></g>
, 'Loca... |
src/react/shared/tabbar-context.js | framework7io/Framework7 | import React from 'react';
const TabbarContext = React.createContext({
tabbarHasLabels: false,
});
export { TabbarContext };
|
src/common/components/pages/HomePage/index.js | gocreating/express-react-hmr-boilerplate | import React from 'react';
import PageLayout from '../../layouts/PageLayout';
import PageHeader from 'react-bootstrap/lib/PageHeader';
import './styles.scss';
import './styles.css';
const HomePage = (props) => (
<PageLayout className="rwd-background">
<PageHeader>Express-React-HMR-Boilerplate</PageHeader>
<p... |
src/svg-icons/image/brightness-3.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness3 = (props) => (
<SvgIcon {...props}>
<path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z"/>
</SvgIcon>
);
I... |
src/board.js | regcole/ReactTicToe | /**
* Created by reggiecole on 7/7/17.
*/
import React from 'react';
// Define a Square on the board
function Square(props) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}
export default class Board extends React.Component {
render... |
src/About.js | MaxLinCode/tardy-HackIllinois-2017 | import React from 'react'
export default class About extends React.Component {
render() {
return (
<div>This is the about page</div>
);
}
}
|
packages/material-ui-icons/src/PriorityHigh.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PriorityHigh = props =>
<SvgIcon {...props}>
<circle cx="12" cy="19" r="2" /><path d="M10 3h4v12h-4z" />
</SvgIcon>;
PriorityHigh = pure(PriorityHigh);
PriorityHigh.muiName = 'SvgIcon';
export default... |
src/interface/others/ItemHealingDone.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { formatPercentage, formatNumber } from 'common/format';
class ItemHealingDone extends React.PureComponent {
static propTypes = {
amount: PropTypes.number.isRequired,
approximate: PropTypes.bool,
greaterThan: PropTypes.bool,
};
sta... |
src/svg-icons/maps/local-offer.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalOffer = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86... |
react-boilerplate/app/containers/App/index.js | Sakuyakun/Yorha-Experiment | /**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import styled from 'styled-components';
import { Switch, Route } from 'react-router-dom';
import HomePage from 'containers/... |
front-end/src/screens/Search.js | AuthEceSoftEng/npm-miner | import React, { Component } from 'react';
import { BeatLoader } from 'react-spinners';
import { Link } from 'react-router-dom';
import queryString from 'query-string'
import axios from 'axios';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faTimesCircle, faCheckCircle } from '@fortawesome/fr... |
src/Day.js | elationemr/react-big-calendar | import PropTypes from 'prop-types';
import React from 'react';
import dates from './utils/dates';
import TimeGrid from './TimeGrid';
import { navigate } from './utils/constants';
class Day extends React.Component {
static propTypes = {
date: PropTypes.instanceOf(Date).isRequired,
};
render() {
let { dat... |
demo/redux/index.js | zjruan/zjruan.github.io | /* eslint-disable semi */
import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './containers/App'
import todoApp from './reducers';
/* eslint-enable semi */
let store = createStore(todoApp);
let rootElement = document.g... |
frontend/src/admin/common/DeleteButton.js | rabblerouser/core | import React from 'react';
import styled from 'styled-components';
import IconButton from './IconButton';
const StyledDeleteButton = styled(IconButton)`
&::after {
content: "\\f1f8";
font-family: FontAwesome;
}
`;
const DeleteButton = ({ confirmMessage, onDelete, children }) => {
const onClick = () => {... |
app/components/Home.js | lhache/katalogz | // @flow
import React, { Component } from 'react';
import styles from './Home.css';
import CopyForm from './CopyForm';
export default class Home extends Component {
render() {
return (
<div>
<div className={styles.container} data-tid="container">
<div className={styles.logoHolder}></div>
... |
src/svg-icons/editor/format-align-left.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignLeft = (props) => (
<SvgIcon {...props}>
<path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignLeft = pure(EditorFormatAlignL... |
packages/react/src/components/molecules/ListingTable/ListingTable.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import ListingTable from './index';
import ListingTableDocs from './ListingTable.md';
export const ListingTableExample = (args) => <ListingTable {...args} />;
ListingTableExample.storyName = 'Default';
ListingTableExample.args = {
rows... |
src/svg-icons/device/gps-not-fixed.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsNotFixed = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7... |
src/app/index.js | lzsheng/react-ChinaAreaSelector | import React from 'react'
import { render } from 'react-dom'
import { Router, hashHistory } from 'react-router'
import routes from './routes/index'
render(
<Router history={hashHistory} routes={routes}></Router>,
document.getElementById('app')
)
|
packages/material-ui-icons/src/WbIncandescent.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.69 6 6 6s6-2.69 6-6c0-2.22-1.21-4.15-3-5.19zm5 4.19v... |
docs/app/Examples/elements/Header/Content/HeaderExampleImageProp.js | clemensw/stardust | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleImageProp = () => (
<Header
as='h2'
image='http://semantic-ui.com/images/icons/school.png'
content='Learn More'
/>
)
export default HeaderExampleImageProp
|
src/components/Loader/Loader.js | austinknight/ui-components | // Basic Button component
import React from 'react';
import styled, { keyframes } from 'styled-components';
import {
colors,
renderThemeKeyOrDefaultValue,
} from '../styles';
const bounce = keyframes`
0%, 80%, 100% {
-webkit-transform: scale(0);
transform: scale(0); }
40% {
-webkit-transf... |
src/Collapse/ItemArrow.js | szchenghuang/react-mdui | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import ClassNames from 'classnames';
import Icon from '../Icon';
class ItemArrow extends React.Component {
render() {
const {
className,
children,
materialIcon,
...restProps
} = this.props;
const clx =... |
src/async-syntax-highlighter.js | conorhastings/react-syntax-highlighter | import React from 'react';
import highlight from './highlight';
export default options => {
const {
loader,
isLanguageRegistered,
registerLanguage,
languageLoaders,
noAsyncLoadingLanguages
} = options;
class ReactAsyncHighlighter extends React.PureComponent {
static astGenerator = null;
... |
examples/simple/components/App.js | browniefed/react-scroll-monitor | import React from 'react';
var ScrollHack = require('./ScrollHack');
class App extends React.Component {
render() {
return (
<div>
<ScrollHack names={["1","2","3","4"]} />
</div>
);
}
}
module.exports = App |
js/jqwidgets/demos/react/app/datatable/dataexport/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.excelExport.on('click', () => {
... |
mobile/activities/Home/components/Operation.js | weirdsoft/coopcon | import React from 'react'
import moment from 'moment'
import { connect } from 'react-redux'
import { compose, flattenProp, setDisplayName } from 'recompose'
import { StyleSheet, View } from 'react-native'
import { SimpleLineIcons } from '@expo/vector-icons'
import { Text, TouchableRipple } from 'react-native-paper'
imp... |
node_modules/react-router/es6/withRouter.js | qingege/react_draft | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import invariant from 'invariant';
import React from 'react';... |
src/svg-icons/maps/local-drink.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDrink = (props) => (
<SvgIcon {...props}>
<path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.... |
docs/src/sections/MenuItemSection.js | pombredanne/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 MenuItemSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<... |
templates/rubix/meteor/meteor-example/imports/common/sidebar.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import {
Sidebar, SidebarNav, SidebarNavItem,
SidebarControls, SidebarControlBtn,
LoremIpsum, Grid, Row, Col, FormControl,
Label, Progress, Icon,
SidebarDivider
} from '@sketchpixy/rubix';
import { Link, withRouter } from 'react-router';
@withRouter
class ApplicationSidebar exten... |
src/components/Root.js | kjirou/battle-reversi | import { Component } from 'flumpt';
import React from 'react';
import scenes from './scenes';
export default class Root extends Component {
render() {
const SceneComponent = scenes[this.props.sceneId];
const sceneElement = React.createElement(SceneComponent, {
key: this.props.sceneId,
root: th... |
src/svg-icons/action/assignment-late.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentLate = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-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-6 15h-2v-2h2v2zm0... |
test/test_helper.js | Pochwar/ReduxSimpleStarter | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
node_modules/google-map-react/develop/markers/ReactiveMarker.js | ClaaziX/foodshare | import React from 'react';
import compose from 'recompose/compose';
import SimpleMarker from './SimpleMarker';
import stream2Props from '../utils/stream2Props';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/do';
import 'rxjs/add/operator/scan';
import 'rxjs/add/operator/di... |
src/components/positions/position-item.js | sunpietro/LeagueManager | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
class PositionItem extends Component {
redirectToPosition() {
browserHistory.push(`/position/${this.props.position.id}`);
}
render() {
const position = this.props.position;
const componentClass... |
src/svg-icons/action/rounded-corner.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoundedCorner = (props) => (
<SvgIcon {...props}>
<path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.