path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/client/src/routes/activities/index.js
uprisecampaigns/uprise-app
import React from 'react'; import EditActivities from 'scenes/EditActivities'; import Layout from 'components/Layout'; import { setRole } from 'actions/PageNavActions'; export default { path: '/settings/activities', action({ store }) { store.dispatch(setRole('user')); return { title: 'Activities',...
imports/ui/components/surveyBuilder/SectionItemForm.js
ctagroup/home-app
import React from 'react'; import AutoForm from 'uniforms-bootstrap3/AutoForm'; import AutoField from 'uniforms-bootstrap3/AutoField'; import RuleField from '/imports/ui/components/surveyBuilder/formFields/RuleField'; import { SectionDefinitionSchema } from '/imports/api/surveys/definitionSchemas'; export default clas...
docs/app/Examples/views/Statistic/Content/StatisticExampleLabels.js
mohammed88/Semantic-UI-React
import React from 'react' import { Statistic } from 'semantic-ui-react' const StatisticExampleLabels = () => ( <div> <Statistic> <Statistic.Value>2,204</Statistic.Value> <Statistic.Label>Views</Statistic.Label> </Statistic> <Statistic> <Statistic.Value value='2,204' /> <Statistic...
app/assets/scripts/views/ambassadors.js
openaq/openaq.org
'use strict'; import React from 'react'; import createReactClass from 'create-react-class'; import testimonials from '../../content/testimonials.json'; import AmbassadorCardDetails from '../components/ambassador-card'; /* * create-react-class provides a drop-in replacement for the outdated React.createClass, * see ...
src/svg-icons/navigation/expand-more.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationExpandMore = (props) => ( <SvgIcon {...props}> <path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/> </SvgIcon> ); NavigationExpandMore = pure(NavigationExpandMore); NavigationExpandMore.displayN...
app/app.js
svangordon/latrones-cli
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/js/components/icons/base/CircleInformation.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
examples/UploadFromCameraRoll/index.ios.js
aroth/react-native-uploader
'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, NativeModules, DeviceEventEmitter, ActivityIndicator, CameraRoll, TouchableOpacity, Modal, } from 'react-native'; var RNUploader = NativeModules.RNUploader; class UploadFromCameraRoll ex...
app/javascript/mastodon/features/list_editor/index.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
src/js/App.js
vbence86/giftassistant-client
import React, { Component } from 'react'; import { Platform, View } from 'react-native'; import Orientation from 'react-native-orientation'; import Menu from './components/Menu'; import SplashPage from './pages/SplashPage'; import LoginPage from './pages/LoginPage'; import PersonalQuestionsPage from './pages/PersonalQu...
src/routes.js
ChrisWhiten/react-rink
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './pages/App'; import NotFoundPage from './pages/NotFoundPage.js'; import LoginPage from './pages/LoginPage'; import ProfilePage from './pages/ProfilePage'; import Booking from './containers/BookingContainer'; import BookingIte...
front-end/src/header/index.js
surbina/devaluometro
import React from 'react'; import './index.css'; export default function() { return( <div className="header"> <h1>Devaluometro</h1> <h2>Una historia del dolar</h2> </div> ); }
src/components/line.js
Helabs/handup-web
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { graphql, compose } from 'react-apollo'; import gql from 'graphql-tag'; import update from 'immutability-helper'; import LineSpot from './line_spot'; import MainButton from './main_button'; class Line extends Component { compon...
examples/builder/FormBuilder.js
peterox/react-redux-form
import React from 'react'; import { Field, Control, Form, actions, track, } from 'react-redux-form'; import { connect } from 'react-redux'; import uniqueId from 'lodash/uniqueId'; import get from 'lodash/get'; const controlMap = { text: <input type="text" /> }; const createField = () => ({ id: uniqueId(...
components/svg/Arrowdown.js
jkling38/carbon
import React from 'react' export default () => ( <svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"> <path fill="#fff" fillRule="evenodd" d="M93.7890633,17.6396882 L97.4926052,14.0851393 C97.6061243,13.9716202 97.7196417,13.9716202 97.8331608,14.0851393 L98.4929872...
src/components/PageNotFound.js
MartinP-C/my-site
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { location: PropTypes.object.isRequired, }; export default function PageNotFound({ location }) { return ( <p> Page not found - the path, {location.pathname}, did not match any React Router routes. </p> ); } Pag...
node_modules/rc-dialog/es/DialogWrap.js
ZSMingNB/react-news
var __assign = this && this.__assign || Object.assign || function (t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } } return t; }; import React from 'react'; imp...
docs/src/MediaPage.js
15lyfromsaturn/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import store from './store'; import Samples from './Samples'; import mediaBox from '../../examples/MediaBox'; import sliders from '../../exam...
docs/app/Examples/elements/Rail/Variations/RailExampleAttachedInternal.js
vageeshb/Semantic-UI-React
import React from 'react' import { Image, Rail, Segment } from 'semantic-ui-react' const RailExampleAttachedInternal = () => ( <Segment> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> <Rail attached internal position='left'> <Segment>Left Rail Content</Segment> </Rail> ...
node_modules/react-icons/io/social-markdown.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoSocialMarkdown = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.5 7.5c1.4 0 2.5 1.1 2.5 2.5v20c0 1.4-1.1 2.5-2.5 2.5h-30c-1.4 0-2.5-1.1-2.5-2.5v-20c0-1.4 1.1-2.5 2.5-2.5h30z m-12.8 20v-15h-4.4l-3.3 5.3-3.2-5.3h-4.4v15h4...
src/cms/preview-templates/page-preview.js
saegeullee/saegeullee.github.io
// @flow strict import React from 'react'; import type { Entry, WidgetFor } from '../../types'; type Props = { entry: Entry, widgetFor: WidgetFor }; const PagePreview = ({ entry, widgetFor }: Props) => { const body = widgetFor('body'); const title = entry.getIn(['data', 'title']); return ( <div classNa...
stories/components/syntacticProposition.js
scientific-tool-set/HermeneutiX-react
import React from 'react'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import { storiesOf, action } from '@kadira/storybook'; import 'bootstrap/dist/css/bootstrap.min.css' import '../../style/style.css'; import rootReducer from '../../src/reducers'; import LanguageModel from '../../sr...
src/pages/keyControl/index.js
SmiletoSUN/react-redux-demo
import React, { Component } from 'react'; import classnames from 'classnames'; import './style'; import { Left, Center } from './child'; // TODO: 发现一个BUG,我也不知道是不是bug const KeyControlIOC = (TargetComponent) => { class KeyControlComponent extends Component { static defaultProps = { isFocus: false, }; ...
app/static/js/components/children/StudentCal.js
NordicSHIFT/NordicSHIFT
//StudentCal.js import React, { Component } from 'react'; import BigCalendar from 'react-big-calendar'; import axios from 'axios'; import moment from 'moment'; import 'react-big-calendar/lib/css/react-big-calendar.css'; function convertEvent(event) { return { title: "Shift", start: new Date(event.start),...
assets/jqwidgets/demos/react/app/grid/bindingtoarray/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let data = new Array(); let firstNames = [ 'Andrew', 'Nancy', 'Shelley', 'Regina', 'Yoshi', 'Anto...
client/pc/src/components/Admin/StudentAdmin.js
CongYunan/course_attendance
// 加载 React 相关组件 import React, { Component } from 'react'; // 加载 AntD 相关组件 import { Button, notification, Spin, Modal, Form, Input, Select } from 'antd'; // 加载自定义组件 import CommonTable from '../CommonTable'; // 加载自定义工具集 import { checkMapData } from '../../tools/Check'; // 加载 React-Redux 组件 import { connect } from 'react...
src/svg-icons/editor/bubble-chart.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBubbleChart = (props) => ( <SvgIcon {...props}> <circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/> </SvgIcon> ); EditorBubbleChart = pure(EditorBub...
app/components/ListItem/index.js
douglasguerrero/Test
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
react-apollo/src/components/InputErrors/index.js
strapi/strapi-examples
import React from 'react'; import PropTypes from 'prop-types'; import { isEmpty, map } from 'lodash'; import cn from 'classnames'; import './styles.css'; function InputErrors(props) { const divStyle = Object.assign({ display: 'block' }, props.style); return ( <div> {map(props.errors, (error, key) => { ...
assets/jqwidgets/demos/react/app/treegrid/filtering/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { setTimeout(() => { this.refs.myTreeGrid.expandRow(32); this.refs.myTreeGrid.expandRow(112)...
templates/rubix/redux/redux-example/src/components/Todo.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { withRouter } from 'react-router'; import { Col, Row, Grid, Icon, Button, Checkbox, ButtonGroup, } from '@sketchpixy/rubix'; @withRouter export default class Todo extends React.Component { toggleCompletion() { let { _id } = this.props.todo; let { dispatch, ac...
src/components/Account/Transactions/txDetails.js
ChronoBank/ChronoWAVES
import React from 'react'; import {Grid, Row, Col} from 'react-flexbox-grid-aphrodite'; import moment from 'moment'; import {Table, TableBody, TableRow, TableRowColumn} from 'material-ui/Table' import {green400, amber400} from 'material-ui/styles/colors'; import {assetValueToString} from '../../../domain/utility'; imp...
src/js/components/icons/base/More.js
odedre/grommet-final
/** * @description More SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prope...
src/components/common/svg-icons/action/view-module.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewModule = (props) => ( <SvgIcon {...props}> <path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/> </SvgIcon> ); ActionViewModule = pure(ActionViewModule)...
example/index.ios.js
xxsnakerxx/react-native-social-auth
import React from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, Modal, } from 'react-native'; import SocialAuth from 'react-native-social-auth'; const beatifyJsonStr = (json) => { return json.replace(/,/g, ',\n\n') .replace(/{/g, '{\n\n') .replace(/}...
packages/@lyra/components/src/menus/DefaultMenu.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import styles from 'part:@lyra/components/menus/default-style' import Ink from 'react-ink' import enhanceWithClickOutside from 'react-click-outside' import classNames from 'classnames' class DefaultMenu extends React.Component { static propTypes = { on...
src/components/Elastic/Elastic.js
askd/animakit
import ElasticDemo from 'components/ElasticDemo/ElasticDemo'; import Section from 'components/Section/Section'; import Intro from 'components/Intro/Intro'; import Usage from 'components/Usage/Usage'; import Article from 'components/Article/Article'; import React from 'react'; const Elastic = () => <div> <Secti...
projects/ILAFB-admin-fe/src/pages/goods/detials.js
AidanDai/graduation-design
import 'react-hot-loader/patch' import React from 'react' import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' import Detials from './detials.page' let ele = document.querySelector('#content') ReactDOM.render( <AppContainer> <Detials/> </AppContainer>, ele ) if (module.hot) { modul...
static/src/js/components/PageHeader.js
enginyoyen/blackcrystal
import React from 'react'; const PageHeader = React.createClass({ render() { return ( <div className="bs-docs-header" id="content"> <div className="container"> <h1>{this.props.title}</h1> <p>{this.props.subTitle}</p> </div> </div> ); } }); export default Pag...
app/containers/NotFoundPage/index.js
MaleSharker/Qingyan
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
src/components/icons/EmailRepliedIcon.js
austinknight/ui-components
import React from 'react'; const EmailRepliedIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2...
addons/docs/src/frameworks/react/__testfixtures__/8428-js-static-prop-types/input.js
storybooks/storybook
import React from 'react'; import PropTypes from 'prop-types'; // eslint-disable-next-line react/prefer-stateless-function export default class Test extends React.Component { static propTypes = { /** * Please work... */ test: PropTypes.string, }; render() { return <div>test</div>; } } e...
src/Link.js
lzcmaro/react-ratchet
import React from 'react'; // import ReactDOM from 'react-dom'; import classNames from 'classnames'; import ratchetUtils from './utils/ratchetUtils'; // import Ajax from './utils/ajax'; // import getContainer from './utils/getContainer'; // import ownerDocument from './utils/ownerDocument'; // import {transform} from ...
src/svg-icons/hardware/headset-mic.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadsetMic = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/> ...
app/react-icons/fa/plus-circle.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaPlusCircle extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6...
docs/src/app/components/pages/components/LinearProgress/ExampleDeterminate.js
pomerantsev/material-ui
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; export default class LinearProgressExampleDeterminate extends React.Component { constructor(props) { super(props); this.state = { completed: 0, }; } componentDidMount() { this.timer = setTimeout(() => thi...
src/routes/error/index.js
benbenye/react-on-react-start-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import App from '../../componen...
src/graphql/fetcher.js
neontribe/gbptm
import React from 'react'; import { GraphQLClient } from 'graphql-request'; import { isAuthenticated, getAccessToken } from '../Auth'; const API_ENDPOINT = '/api'; const fetcher = (query, variables) => { const graphQLClient = new GraphQLClient(API_ENDPOINT); if (isAuthenticated()) { const token = getAccessTo...
examples/IconPrefixesInput.js
mattBlackDesign/react-materialize
import React from 'react'; import Input from '../src/Input'; import Row from '../src/Row'; import Icon from '../src/Icon'; export default <Row> <Input s={6} label="First Name" validate><Icon>account_circle</Icon></Input> <Input s={6} label="Telephone" validate type='tel'><Icon>phone</Icon></Input> </Row>;
src/containers/home/Home.js
CyberThugs/JavaScript-Applications-Team-Project
import React, { Component } from 'react'; import './home.css'; export default class Home extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col-md-6 col-md-offset-3"> <h1>Home</h1...
src/platform/user/profile/vap-svc/components/AddressField/address-schemas.js
department-of-veterans-affairs/vets-website
import React from 'react'; import ADDRESS_DATA from 'platform/forms/address/data'; import cloneDeep from 'platform/utilities/data/cloneDeep'; import { ADDRESS_FORM_VALUES, USA } from '@@vap-svc/constants'; // Regex that uses a negative lookahead to check that a string does NOT contain // things like `http`, `www.`, ...
src/svg-icons/image/exposure-plus-2.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposurePlus2 = (props) => ( <SvgIcon {...props}> <path d="M16.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-1.46-.18-.44-...
src/components/Form.js
StK88/react-redux-test
import React from 'react'; import { connect } from 'react-redux'; import { addText } from '../actions'; import classNames from 'classnames'; let Form = ({ dispatch }) => { let input; return ( <div> <form className="form" onSubmit={ e => { e.preventDefault(); if(!input.v...
frontend/src/Movie/Index/Menus/MovieIndexViewMenu.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import MenuContent from 'Components/Menu/MenuContent'; import ViewMenu from 'Components/Menu/ViewMenu'; import ViewMenuItem from 'Components/Menu/ViewMenuItem'; import { align } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; func...
templates/rubix/redux/redux-example/src/common/sidebar.js
jeffthemaximum/jeffline
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/GameHistory.js
jniemann66/react-chessdiagram
import React, { Component } from 'react'; import ReactTable from 'react-table'; import 'react-table/react-table.css'; import PropTypes from 'prop-types'; class MovetextViewer extends Component { shouldComponentUpdate(nextProps) { if (this.props.rows.length !== nextProps.rows.length || this.props.halfMove !...
src/js/components/Chart/stories/Labelled.js
HewlettPackard/grommet
import React from 'react'; import { Box, Chart, Text } from 'grommet'; const LabelledChart = ({ color, label, value }) => ( <Box flex={false} basis="xsmall" align="center" gap="small"> <Chart bounds={[ [0, 2], [0, 400], ]} type="bar" values={[{ value: [1, value] }]} ...
src/routes/Artists/components/Artists.js
altarit/cloudpolis-react
import React from 'react' import PropTypes from 'prop-types' import {Link} from 'react-router-dom' import './Artist.scss' import Input from '../../../components/Input' export class Artists extends React.Component { static propTypes = { filteredArtists: PropTypes.arrayOf(PropTypes.object).isRequired, fetchin...
src/components/loading.js
TedtheDev/Tic-Tac-Toe
import React, { Component } from 'react'; class LoadingIcon extends Component { componentDidMount() { let svg = new Snap('.svg-main'); function animateMe() { svg.clear(); let rect1 = svg.rect(20, 20, 25, 25); let rect2 = svg.rect(45, 20, 25, 25); let rect3 = svg.rect(20, 45, 25, 25);...
src/dub-step.js
infiniteluke/dub-step
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { callAll, unwrapArray, getSign } from './utils'; /** * # DubStep * <h1 align="center"> * dub-step 🕺🏽 * </br> * <img src="https://user-images.githubusercontent.com/1127238/30524706-690c72e0-9bad-11e7-9feb-4c76f572bdfc.png...
www/main.js
gnetsys/OnsenUIv2-React-PhoneGap-Starter-Kit
import React from 'react'; import ReactDOM from 'react-dom'; import ons from 'onsenui'; import { Page, Tabbar, Tab, Navigator } from 'react-onsenui'; import Home from './components/Home'; import Dialogs from './components/Dialogs'; import Forms from './components/Forms'; import Animations from './components...
app/javascript/mastodon/features/compose/components/text_icon_button.js
rutan/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.s...
docs/app/Examples/views/Feed/Content/FeedExampleImageLabel.js
koenvg/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const FeedExampleImageLabel = () => ( <Feed> <Feed.Event> <Feed.Label> <img src='http://semantic-ui.com/images/avatar/small/elliot.jpg' /> </Feed.Label> <Feed.Content> You added Elliot Fu to the group <a>Coworker...
packages/icons/src/md/communication/DialerSip.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdDialerSip(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M34 6h-2v10h2V6zm-4 4h-4V8h4V6h-6v6h4v2h-4v2h6v-6zm6-4h6v6h-4v4h-2V6zm4 4V8h-2v2h2zm0 21c-2.49 0-4.89-.4-7.14-1.14-.69-.22-1.48-.06-2.03.49l-4.4 4....
src/index.js
exseed/exseed
// ==================== // Packages and modules // ==================== // native packages import path from 'path'; import fs from 'fs'; import http from 'http'; // vendor packages import express from 'express'; import Waterline from 'waterline'; import React from 'react'; import ReactDOMServer from 'react-dom/server...
app/components/Header/index.js
samanshahmohamadi/react-boilerplate-ballyhoo
import React from 'react'; import {FormattedMessage} from 'react-intl'; import A from './A'; import Img from './Img'; import Button from '../Button'; import H3 from '../H3'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.jpg'; import messages from './messages'; impor...
fields/types/password/PasswordColumn.js
frontyard/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var PasswordColumn = React.createClass({ displayName: 'PasswordColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
app/Components/SignIn/SignIn.js
martinvarelaaaa/tintina
import React from 'react'; import PropTypes from 'prop-types'; import { TouchableOpacity, StatusBar } from 'react-native'; import { KeyboardAwareScrollView, } from 'react-native-keyboard-aware-scroll-view'; import LinearGradient from 'react-native-linear-gradient'; import { TextButton } from '../Atoms/Text'; import...
examples/full-example/src/isomorphic/variations/bucket_A/components/button.js
yahoo/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import React from 'react'; var count = 0; class Button extends React.Component { render() { return ( <button {...this.props}> {this.props.children} A#...
src/components/BingoCard.js
rahimrahman/reactnative-Bingo
import React, { Component } from 'react'; import { View, Text, TouchableWithoutFeedback } from 'react-native'; import { connect } from 'react-redux'; import BackgroundTimer from 'react-native-background-timer'; import { createBingoCard, bingoCellStatusInit, bingoCellValues, bingoCheck } from './BingoEngine'; import { b...
lib/withData.js
djhi/dpc
import React from 'react'; import PropTypes from 'prop-types'; import { ApolloProvider, getDataFromTree } from 'react-apollo'; import initApollo from './initApollo'; export default ComposedComponent => class withData extends React.Component { static propTypes = { serverState: PropTypes.object.i...
js/components/checkbox/index.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, CheckBox, Text, Left, Right, Body } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; class NHCheckbox extends...
src/views/ProgressBar.js
prashantpawar/blockapps-js-tutorial
import React from 'react' import './ProgressBar.scss' import ClassNames from 'classnames' import { Link } from 'react-router' export class ProgressBar extends React.Component { static defaultProps = { totalSteps: 4, currentStep: 1, finalStep: false } static propTypes = { totalSteps...
src/index.js
tltowles/westeebits
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App.jsx'; ReactDOM.render(<App />, document.getElementById('root'));
client/src/components/Header/components/Login.js
otavioarc/freeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from '@freecodecamp/react-bootstrap'; import { Link } from 'gatsby'; import './login.css'; function Login({ children, ...restProps }) { return ( <Link to='/signin'> <Button {...restProps} bsStyle='default' ...
src/helpers/connectData.js
dieface/react-redux-universal-hot-example
import React, { Component } from 'react'; import hoistStatics from 'hoist-non-react-statics'; /* Note: When this decorator is used, it MUST be the first (outermost) decorator. Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods. */ export default function connectData(fetchData, fe...
simul/app/components/register.js
sf-red-pandas-2016/simul-react-native
import React, { Component } from 'react'; import { StyleSheet, Text, View, TextInput, TouchableHighlight, } from 'react-native'; import I18n from 'react-native-i18n' class Register extends Component{ constructor() { super(); this.state = { name: "", username: "", location: "", ...
app/javascript/mastodon/features/notifications/index.js
ambition-vietnam/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
blueocean-material-icons/src/js/components/svg-icons/action/feedback.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionFeedback = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); ActionFeedback.displayName = 'ActionFeedback'; ActionFeedba...
src/index.js
liuxiaole/2048-react-redux
import React from 'react'; import ReactDOM from 'react-dom'; import Game from './components/Game'; import './index.css'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import rootReducer from './reducers'; /* eslint-disable no-u...
src/routes/property/Property.js
medevelopment/updatemeadmin
import React from 'react'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import axios from 'axios'; import PropTypes from 'prop-types'; import s from './Property.css'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import PropertyDetails from './PropertyDetails'; import PropC...
docs/src/app/components/pages/components/Stepper/HorizontalLinearStepper.js
ruifortes/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Horizontal steppers are ideal when the contents of one step depend on an earlier step. * Avoid using long step ...
src/pages/404.js
ThoughtAtWork/Website
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
webpack/scenes/Subscriptions/SubscriptionsPage.js
ares/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Immutable from 'seamless-immutable'; import { translate as __ } from 'foremanReact/common/I18n'; import { isEmpty, isEqual } from 'lodash'; import { Grid, Row, Col } from 'patternfly-react'; import ModalProgressBar from 'foremanReact/c...
src/svg-icons/maps/streetview.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsStreetview = (props) => ( <SvgIcon {...props}> <path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d...
stories/ModalLoading.stories.js
maputnik/editor
import React from 'react'; import ModalLoading from '../src/components/ModalLoading'; import {action} from '@storybook/addon-actions'; import {Wrapper} from './ui'; import {withA11y} from '@storybook/addon-a11y'; export default { title: 'ModalLoading', component: ModalLoading, decorators: [withA11y], }; export...
src/svg-icons/device/signal-wifi-2-bar.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M4.79 12.52l7.2 8.98H12l...
test/unit/testHelper.js
Chandransh/hackerearth-challenge-page
import jq from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import createHistory from 'history/lib/createBrowserHistory'; import {...
app/components/LoadingIndicator/index.js
gitlab-classroom/classroom-web
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
app/javascript/mastodon/features/account/components/action_bar.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenu from '../../../components/dropdown_menu'; import Link from 'react-router-dom/Link'; import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } from 'react-intl'; ...
src/routes/customConfig/CustomConfig.js
macdja38/pvpsite
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import deepmerge from 'deepmerge'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './CustomConfig.css'; import ServerMenu from '../../components/ServerMenu'; import CustomServerMenu from '../../components/menuI...
src/js/components/CheckboxList/CheckboxList.js
Dwardmr/Hearthpedia
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; import styles from './style.css'; export default class CheckboxList extends React.Component{ render(){ const inlineStyles = { checkboxIcon:{ marginRight: "5px", } } const checkboxes = this.props.arrayList.map((cItem, i) => <Ch...
ajax/libs/react-instantsearch/4.1.2/Dom.js
tholu/cdnjs
/*! ReactInstantSearch 4.1.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
examples/confirming-navigation/app.js
taion/rrtr
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link } from 'rrtr' const App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/dashboard" activeClassName="active">Dashboard</Link></li> <li><Link to="/form" ac...
fields/types/money/MoneyField.js
kwangkim/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'MoneyField', valueChanged (event) { var newValue = event.target.value.replace(/[^\d\s\,\.\$€£¥]/g, ''); if (newValue === this.props.value) return; this.props.onChange(...
edwin/client/static/js/utils/ControllerComponent.js
mythmon/edwin
import React from 'react'; import Immutable from 'immutable'; /** * Base for components that need to use stores, and want autobinding. * @class */ export default class ControllerComponent extends React.Component { constructor(props) { super(props); this.state = {}; for (let name of this.autoBind) { ...
demo/component/AreaChart.js
sdoomz/recharts
import React from 'react'; import { changeNumberOfData } from './utils'; import { AreaChart, Area, XAxis, YAxis, Tooltip, CartesianGrid, Brush, ReferenceArea, ReferenceLine, ReferenceDot, ResponsiveContainer } from 'recharts'; const data = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400 }, { name: 'Page B', uv...
src/pages/sorting/Merge/Merge.js
hyy1115/react-redux-webpack3
import React from 'react' class Merge extends React.Component { render() { return ( <div>Merge</div> ) } } export default Merge
node_modules/react-color/src/components/chrome/ChromePointerCircle.js
ottomajik/react-demo
'use strict'; /* @flow */ import React from 'react'; import ReactCSS from 'reactcss'; export class ChromePointerCircle extends ReactCSS.Component { classes(): any { return { 'default': { picker: { width: '12px', height: '12px', borderRadius: '6px', boxShado...
src/components/TagManager/TagManager.js
labzero/lunch
import PropTypes from 'prop-types'; import React from 'react'; import TagManagerItemContainer from '../TagManagerItem/TagManagerItemContainer'; const TagManager = ({ tags }) => { if (!tags.length) { return ( <p> Once you add tags to restaurants, come back to this page and you&#39;ll be able...