path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/introduction/index.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ReactSwipeableViews from 'react-swipeable-views'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { closeOnboarding } from '../../actions/onboarding'; import screenHell...
client/src/components/Game/modals/ResultsModal.js
patteri/slave-cardgame
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, Button, ControlLabel, Table } from 'react-bootstrap'; import './style.css'; const formatPlayerName = player => player.name + (player.isCpu ? ' (CPU)' : ''); const ResultsModal = ({ show, onHide, results }) => ( <Modal className="Slave-mo...
FE/src/logout.js
xil-se/Xilventory
import React from 'react'; import { withRouter } from 'react-router'; import { ProgressBar, Panel, Grid, Row, Col } from 'react-bootstrap'; import auth from './auth'; var Logout = withRouter( React.createClass({ componentDidMount() { setTimeout(() => { auth.logout(() => { this...
saga/seata-saga-statemachine-designer/ggeditor/components/ItemPanel/Item.js
seata/seata
import React from 'react'; import withGGEditorContext from '@common/context/GGEditorContext/withGGEditorContext'; class Item extends React.Component { constructor(props) { super(props); this.bindEvent(); } handleMouseDown = () => { const { type, size, shape, model } = this.props; if (this.page...
src/svg-icons/device/dvr.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDvr = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 ...
src/routes/index.js
enrique7mc/messages
import React from 'react'; import { render } from 'react-dom'; import App from '../components/App'; import Chat from '../components/Chat'; import Login from '../components/Login'; // import ChatStore from '../stores/ChatStore'; import firebase from '../services/firebaseService'; import { Router, Route, IndexRoute, brow...
client/analytics/components/partials/filter/filterItems/RouteList.js
Haaarp/geo
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { sideBar } from './../../../../actions'; import { ListGroupItem } from 'react-bootstrap'; import { PopupTypes } from './../../../../constants'; import FormWrap from 'konux/common/components/FormWrap';...
src/Main Pages/Clipped/index.js
millerman86/CouponProject
import React from 'react'; import FilterLink from './FilterLink' import {VisibilityFilters} from '../../Redux/actions'; import {connect} from 'react-redux'; const Header = () => ( <p> Show: {" "} <FilterLink filter={VisibilityFilters.SORT_PRODUCTS}> By Product </FilterLink> {" | "} <Fi...
demo/static/js/node_modules/react-widgets/lib/Listbox.js
OmegaDroid/django-jsx
"use strict"; // import React from 'react'; // import cn from 'classnames'; // import TimeoutMixin from './mixins/TimeoutMixin'; // import PureRenderMixin from './mixins/PureRenderMixin'; // import PopupScrollToMixin from './mixins/PopupScrollToMixin'; // import RtlParentContextMixin from './mixins/RtlParentContextMix...
src/ButtonToolbar.js
coderstudy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); ...
src/svg-icons/action/settings.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettings = (props) => ( <SvgIcon {...props}> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l...
src/containers/Launch/LaunchView.js
OlivierVillequey/hackathon
/** * Launch Screen * - Shows a nice loading screen whilst: * - Preloading any specified app content * - Checking if user is logged in, and redirects from there * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes...
src/components/Column.js
lesniakania/react-native-draggable-board
import React from 'react'; import { View, ListView } from 'react-native'; class Column extends React.Component { constructor(props) { super(props); this.state = { dataSource: this.dataSourceWithItems([]) }; } componentWillMount() { this.props.rowRepository.addListener(this.props.colu...
src/components/App.js
madjid-asa/github_users_browser
import React, { Component } from 'react'; import {connect} from 'react-redux'; import logo from '../logo.svg'; import '../App.css'; import { Grid, Row, Col } from 'react-bootstrap'; import UsersList from './UsersList'; import UserDetail from './UserDetail'; class App extends Component { render() { var usersList...
src/pages/js/LoginPage.js
ucev/chatroom
import React from 'react'; import BasePage from './BasePage'; import '../css/LoginPage.css'; import MyAction from '../../state/action'; class Login extends BasePage { constructor(props) { super(props); this.state = { login: true }; this.changeState = this.changeState.bind(this); this.confirm = this....
Libraries/Components/WebView/WebView.ios.js
satya164/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...
ajax/libs/react-instantsearch/4.1.0/Dom.js
jdh8/cdnjs
/*! ReactInstantSearch 4.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ===...
Realization/frontend/czechidm-core/src/content/scheduler/ScheduleTasks.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import moment from 'moment'; import _ from 'lodash'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from ...
node_modules/react-router/es6/Link.js
SlateRobotics/slate-website
'use strict'; 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) {...
docs/app/Examples/elements/Image/Groups/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ImageTypesExamples = () => ( <ExampleSection title='Groups'> <ComponentExample title='Size' description='A grou...
test/helpers/shallowRenderHelper.js
lordbaby/react-gallery
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/svg-icons/device/signal-wifi-3-bar.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3Bar = (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="M3.53 10.95l8.46 10.54.0...
src/components/H/H3.js
Bandwidth/shared-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import get from 'extensions/themeGet'; import userSpacing from 'extensions/userSpacing'; import Skeleton from 'skeletons/Skeleton'; const LINE_HEIGHT = 1.25; const H3 = styled.h3.withConfig({ displayName: 'H3' })` ...
pages/demos/dialogs.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/demos/dialogs/dialogs.md'; function Page() { return ( <MarkdownDocs markdown={markdown} demos={{ 'p...
dva/user-dashboard/src/components/Users/UserModal.js
imuntil/React
import React from 'react'; import styles from './UserModal.less' import { Modal, Form, Input } from 'antd' const FormItem = Form.Item class UserModal extends React.Component { constructor (props) { super(props) this.state = { visible: false } } showModalHandler = e => { if (e) e.preventDef...
src/svg-icons/file/folder-open.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderOpen = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/> </SvgIcon> ); FileFolderOpen = pure(F...
src/app/containers/Hints.js
lmcjt37/kulor-reactify
import React from 'react'; import Dialog from 'react-toolbox/lib/dialog'; import themedHints from '../theme/themedHints'; export default class Hints extends React.Component { constructor(props) { super(props); } getContent() { let array = this.props.dialogs.helphints.text; return ...
src/components/Bookmark/Bookmark.js
TobiasTimm/marked-it
import React from 'react'; import PropTypes from 'prop-types'; import { ListItem, ListItemText, ListItemSecondaryAction } from 'material-ui/List'; import styled from 'styled-components'; import { withTheme } from 'material-ui/styles'; import { rem } from 'polished'; import Avatar from 'material-ui/Avatar'; import...
src/Notie.js
vkbansal/react-notie
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; const defaultState = () => ({ visible: false, locked: false, yesBtnText: 'Yes', noBtnText: 'No' }); export default class Notie extends Component { static defaultProps = { ttl: 5000, ...
app/components/Page/PageTitle.js
barbalex/kapla3
import React from 'react' import PropTypes from 'prop-types' import { FormGroup, FormControl } from 'react-bootstrap' import { observer, inject } from 'mobx-react' import compose from 'recompose/compose' import withHandlers from 'recompose/withHandlers' import styled from 'styled-components' const Container = styled.d...
src/controls/List/Component/index.js
jpuri/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { getFirstIcon } from '../../../utils/toolbar'; import { Dropdown, DropdownOption } from '../../../components/Dropdown'; import Option from '../../../components/Option'; import './styl...
src/js/components/Split.js
odedre/grommet-final
// (C) Copyright 2014-2016 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 { smallSize } from '../utils/Responsive'; const CLASS_ROOT = CSSClassnames....
client/src/transforms/FormAction/ownerAwareUnpublish.js
open-sausages/silverstripe-assets-gallery
/* global confirm */ import React from 'react'; import i18n from 'i18n'; const ownerAwareUnpublish = (FormAction) => (props) => { const originalOnclick = props.onClick; const newProps = { ...props, onClick(e, nameOrID) { const { owners } = props.data; let message = null; if (owners && par...
src/client/components/App.js
elbracht/portfolio
/* @flow */ import React from 'react'; const App = () => ( <React.Fragment> <h1>Portfolio</h1> <div>Hallo, mein Name ist Alexander Elbracht</div> </React.Fragment> ); export default App;
src/GameOver.js
liuxiaole/2048-react
import React from 'react'; import './GameOver.css'; export default function GameOver ({onNewGame}) { return <div className="game-over"> <h1 className="title">Game Over!</h1> <button onClick={onNewGame}>Try Again</button> </div>; }
src/roles/notifs/GetItemFailNotif.js
dash-/netjumpio-tabs-web
/// // Dependencies /// import React, { Component } from 'react'; import FailRetryNotif from '../../elements/FailRetryNotif'; import * as actions from '../actions'; /// // View /// class GetItemFailNotifView extends Component { /// // Rendering /// renderMessage(action, userMessage) { return ( 'Retrievi...
packages/material-ui-icons/src/ViewCarousel.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z" /></g> , 'ViewCarousel');
src/originReduxCombineReducer/originReduxCombineReducer.js
JackZhangXL/react-redux
import React, { Component } from 'react'; import { createStore, compose } from 'redux'; import { Button, Alert } from 'antd'; import 'antd/dist/antd.css'; import reducer from './reducers/index'; import actions from './actions/index'; import './originRedux.pcss'; const store = createStore(reducer, compose( window.d...
react/apidocs/apidocs.js
fangeugene/the-blue-alliance
import React from 'react' import ReactDOM from 'react-dom' import ApiDocsFrame from './ApiDocsFrame' import './apidocs.less' const swaggerUrl = document.getElementById('swagger_url').innerHTML ReactDOM.render( <ApiDocsFrame url={swaggerUrl} />, document.getElementById('content') )
src/svg-icons/communication/phonelink-lock.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkLock = (props) => ( <SvgIcon {...props}> <path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ...
example/src/screens/Actions.js
snapme/react-native-navigation
import React from 'react'; import { StyleSheet, ScrollView } from 'react-native'; import Row from '../components/Row'; class Actions extends React.Component { constructor(props) { super(props); this._fab = false; this._rightButton = null; this._contextualMenu = false; this._toggleTabs = 'shown'...
src/svg-icons/content/inbox.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> <...
client/modules/Discussion/components/ChildDiscussionForm/ChildDiscussionForm.js
XuHaoJun/tiamat
import React from 'react'; import PropTypes from 'prop-types'; import { shouldComponentUpdate } from 'react-immutable-render-mixin'; import DiscussionForm from '../DiscussionForm'; import Ajv from 'ajv'; import rootDiscussionSchema from './schema.json'; import { loadSchema } from '../../../JSONSchema/JSONSchemaAction...
src/Wizard/components/Steps.js
nkiateam/polestar-antd
import React from 'react'; import { Steps as AntSteps } from 'antd'; class Steps extends React.Component { constructor(props) { super(props); this.state = {}; } render() { const { stepPosition, stepWidth, ...props } = this.props; ...
src/routes/index.js
Schubidu/gambling-block
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import CoreLayout from 'layouts/CoreLayout'; import GameView from 'views/GameView'; import PlayersView from 'views/PlayersView'; export default ( <Route path='/' component={CoreLayout}> <IndexRoute component={PlayersView}/> <Route p...
src/views/routes.js
roth1002/react-redux-universal-hot-example
import React from 'react'; import {Route} from 'react-router'; import App from 'views/App'; import Home from 'views/Home'; import Widgets from 'views/Widgets'; import About from 'views/About'; import Login from 'views/Login'; import NotFound from 'views/NotFound'; export default ( <Route component={App}> <Route ...
src/svg-icons/file/cloud-off.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudOff = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-...
examples/ChartsExplorer/components/Radar.js
Jpadilla1/react-native-ios-charts
import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import { RadarChart } from 'react-native-ios-charts'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'stretch', backgroundColor: 'transparent' } }); export default...
packages/wix-style-react/src/NestableList/Item.js
wix/wix-style-react
import React from 'react'; import { findDOMNode } from 'react-dom'; import { DragSource, DropTarget } from 'react-dnd'; import { getEmptyImage } from 'react-dnd-html5-backend'; import itemTypes from './itemTypes'; import { getValuesByKey, hoverAboveItself } from './utils'; import { NestableListContext } from './Nestabl...
app/javascript/mastodon/features/list_adder/index.js
gol-cha/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 { setupListAdder, resetListAdder } from '...
src/pages/moduleHomePage/recentPublish/RecentPublish.js
HeliumLau/Hoop-react
import React from 'react'; import ArticleList from 'components/ArticleList.js'; export default class RecentPublish extends React.Component { constructor(props) { super(props); this.state = { articlelist: [ { title: '惊!安东尼签约火箭竟只为他!', ...
src/js/components/reminder/test-page.js
daniel-madera/pijs
import React from 'react' import { observer, inject } from 'mobx-react' import { Col, Grid, Row, Button, Table, Form } from 'react-bootstrap' import { SimpleInput, GlyphButton } from '../others/form' import TestItem from './test-item' @inject('reminderStore') @observer export default class TestPage extends React.Com...
src/svg-icons/communication/screen-share.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationScreenShare = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56...
src/components/tablePrices/presentation/TPTop.js
edu-affiliates/promo_calculators
'use strict'; import React from 'react'; import {connect} from 'react-redux' import {changeLevel, fetchService} from '../../../store/actions' class TPTop extends React.Component { constructor(props) { super(props); } cutLevelName(levelName) { // if (levelName === 'Undergraduate (1st and...
client/kit/views/ssr.js
Bartekus/FuseR
/* eslint-disable react/no-danger, no-return-assign, no-param-reassign */ // Component to render the full HTML response in React // ---------------------- // IMPORTS import React from 'react'; import PropTypes from 'prop-types'; // ---------------------- const Html = ({ head, html, scripts, window, css }) => ( <h...
docs/app/Examples/elements/List/Variations/ListExampleSizes.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleSizes = () => { const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive'] return ( <div> {sizes.map(size => ( <div key={size}> <List divided horizontal size={size}> <...
src/js/components/hello.js
MiladNazeri/stockHelper
import React from 'react'; export default class InvoiceLineItems extends React.Component { constructor(props){ super(props); this.state = { } } render() { return ( <div> <InvoiceLineItemsView /> </div> ); } } class LineIt...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
HasanSa/hackathon
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
app/react/components/service/EditService.js
NikaBuligini/whistleblower-server
// @flow import React from 'react'; import { connect } from 'react-redux'; import Input from '../Input'; import Autocomplete from '../Autocomplete'; import { updateService } from '../../actions'; import { ServicePropType } from '../../propTypes'; import type { Service, EditServiceForm } from '../../actions/types'; imp...
src/parser/mage/frost/modules/checklist/Component.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import Requirement from 'parser/shared/modules/...
docs/src/app/components/pages/get-started/Installation.js
frnk94/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import installationText from './installation.md'; const Installation = () => ( <div> <Title render={(previousTitle) => `Installation - ${previousTitle}`} /> <MarkdownElement text={insta...
components/Tag/index.js
insane-ux/rebulma
// @flow import React from 'react' import cn from 'classnames' const Tag = ({ className, children, }: { className?: string, children?: any, }) => ( <span className={cn('tag', className)} > {children} </span> ) Tag.defaultProps = { className: undefined, children: null, } export default Tag
src/internals/doContramap.js
xaviervia/react-dream
import React from 'react' import compose from 'recompose/compose' import getDisplayName from 'recompose/getDisplayName' import isReferentiallyTransparentFunctionComponent from '../isReferentiallyTransparentFunctionComponent' // doContramap : (a -> Props) -> Component -> Component export default propsPreprocessor => Co...
servers/app/client/src/app.js
staxmanade/sample-pouch-couch-databaseperuser
import React from 'react'; import ReactDOM from 'react-dom'; import PouchDB from "pouchdb"; import AuthService from './AuthService.js'; import config from './config.js'; import RegistrationForm from './RegistrationForm.js'; import LoginForm from './LoginForm.js'; import LoginStatus from './LoginStatus.js'; import Test...
site/withTemplate.js
romelperez/romelperez.com
import React from 'react'; import { ThemeProvider, createTheme, SoundsProvider, createSounds } from 'arwes'; import createAppTheme from './createAppTheme'; import Template from './components/Template'; const resources = { background: { small: '/static/img/background-small.jpg', medium: '/static/img/...
src/containers/Match.js
byronsha/open_dota
import React from 'react' import {connect} from 'react-redux' import {Container, Grid} from 'semantic-ui-react' import MatchNav from '../components/match/MatchNav' import GraphsSubNav from '../components/match/GraphsSubNav' import Loader from '../components/Loader' import {fetchMatchDetails} from '../actions/api' clas...
src/svg-icons/editor/functions.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFunctions = (props) => ( <SvgIcon {...props}> <path d="M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"/> </SvgIcon> ); EditorFunctions = pure(EditorFunctions); EditorFunctions.displayName = 'EditorFunctions...
src/js/components/roles/AvailableRoleInput.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
docs/app/Examples/collections/Grid/Variations/GridExampleColoredColumn.js
Rohanhacker/Semantic-UI-React
import _ from 'lodash' import React from 'react' import { Grid } from 'semantic-ui-react' const colors = [ 'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black', ] const GridExampleColoredColumn = () => ( <Grid columns={5} padded> {colors.map(color...
src/routes/home/Home.js
chaudhryjunaid/chaudhryjunaid.com
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
renderer/components/action-bar/record-button.js
wulkano/kap
import electron from 'electron'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {connect, CropperContainer} from '../../containers'; import {handleKeyboardActivation} from '../../utils/inputs'; class RecordButton extends React.Component { state = {} com...
news/routes/Show/components/Author.js
FreeCodeCampQuito/FreeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import ArticleMeta from '../../../components/ArticleMeta'; const propTypes = { article: PropTypes.shape({ author: PropTypes.objectOf(PropTypes.string) }) }; const styles = ` .author-block { display: flex; ...
Frontend/src/index/icon_btns.js
zsefvlol/threedegrees
"use strict"; import React from 'react'; import { render } from 'react-dom'; import { Link } from 'react-router' export class Goback extends React.Component { render() { return ( <div {...this.props}> <Link to="/users"> <svg onClick={this.clickHandle} widt...
entry_types/scrolled/package/src/frontend/StructuredData.js
tf/pageflow
import React from 'react'; export function StructuredData({data}) { return ( <script type="application/ld+json" dangerouslySetInnerHTML={{__html: JSON.stringify(data)}} /> ); }
client/gatsby-browser.js
pahosler/freecodecamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import { createStore } from './src/redux/createStore'; import AppMountNotifier from './src/components/AppMountNotifier'; import GuideNavigationContextProvider from './src/contexts/GuideNavigationContex...
frontend/component/TopicList.js
ghkk/node_dataguru
import React from 'react'; import {Link} from 'react-router'; import {getTopicList} from '../lib/client'; export default class TopicList extends React.Component { constructor(props){ super(props); this.state ={}; } componentDidMount(){ this.updateList({ tags: this.prop...
client/containers/ItemData/index.js
DarkHorseJP/RPGScenarist
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { createStructuredSelector } from 'reselect' import { FormattedNumber } from 'react-intl' import { ListGroup, ListGroupItem } from 'react-bootstrap' import { makeSelectMapId } from 'redux/modules/map' export clas...
example/browser.js
textioHQ/draft-wysiwyg
import 'babel-polyfill'; import Example from './container'; import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <Example />, document.getElementById('target') );
client/src/App.js
fxlemire/graphql-react-tutorial
import React from 'react'; import { BrowserRouter, Link, Switch, Route } from 'react-router-dom'; import { ApolloClient, ApolloProvider, createNetworkInterface, toIdValue } from 'react-apollo'; import { SubscriptionClient, addGraphQLSubscriptions } from 'subscriptions-transport-ws'; import ChannelDetails from './Compon...
docs/src/NotFoundPage.js
deerawan/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage="" /> <PageHeader title="404" subT...
react-flux-mui/js/material-ui/src/svg-icons/editor/functions.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFunctions = (props) => ( <SvgIcon {...props}> <path d="M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"/> </SvgIcon> ); EditorFunctions = pure(EditorFunctions); EditorFunctions.displayName = 'EditorFunctions...
example/App/index.js
in-flux/in-flux
import React from 'react'; import PropTypes from 'prop-types'; import {locationHistory, locationHash, actions, href, isActive} from '../../src'; import {createStore} from './store'; const store = createStore(); if (process.env.HISTORY === 'HASH') { // When publishing to GitHub Pages we cannon use HTML5 history na...
ui/src/js/backOffice/transformTrees/TransformTreesPage.js
Dica-Developer/weplantaforest
import axios from 'axios'; import React, { Component } from 'react'; import createFilterOptions from 'react-select-fast-filter-options'; import VirtualizedSelect from 'react-virtualized-select'; import IconButton from '../../common/components/IconButton'; import Notification from '../../common/components/Notification';...
packages/icons/src/md/maps/NearMe.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdNearMe(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <polygon points="42 6 6 21.07 6 23.04 19.67 28.34 24.97 42 26.94 42" /> </IconBase> ); } export default MdNearMe;
examples/src/components/SelectedValuesField.js
javier-garcia-anfix/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 SelectedValuesField = React.createClass({ displayName: 'SelectedValuesField', propTypes: { allowCreate: React.PropTy...
index.android.js
pandiaraj44/react-native-datepicker-dialog
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, } from 'react-native'; import { DatePickerDialog } from './main-index' import moment from 'moment'; export defaul...
src/components/Feedback/Feedback.js
patrickkillalea/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
client/components/AboutProfile.js
rickyeh/nimblecode
import React, { Component } from 'react'; class AboutProfile extends Component { render() { return ( <div className="col-md-3"> <h3 className="about-names">{this.props.name}</h3> <div className="img-container"><img className="about-img" src={this.props.image}></img> </div> <...
app/main.js
wojciech-panek/study-group-6-redux
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import React from 'react'; import ReactDOM from 'react-dom'; // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import { AppContainer } from 'react-hot-load...
src/index.js
webcom-components/react-card-scroll
import React from 'react' import ReactDOM from 'react-dom' import throttle from 'lodash/throttle' import s from './styles.scss' import {getOffset, getMaxOffset} from './offset' const defaultWidths = { card: 0, container: 0 } let CardScroll = React.createClass({ getDefaultProps(){ return { ...
src/utils/ValidComponentChildren.js
dozoisch/react-bootstrap
// TODO: This module should be ElementChildren, and should use named exports. import React from 'react'; /** * Iterates through children that are typically specified as `props.children`, * but only maps over children that are "valid components". * * The mapFunction provided index will be normalised to the compone...
ReactNative/node_modules/react-navigation/src/views/Header/HeaderBackButton.js
tahashahid/cloud-computing-2017
import React from 'react'; import { I18nManager, Image, Text, View, Platform, StyleSheet, } from 'react-native'; import TouchableItem from '../TouchableItem'; class HeaderBackButton extends React.PureComponent { static defaultProps = { pressColorAndroid: 'rgba(0, 0, 0, .32)', tintColor: Platform...
imports/ui/components/WelcomeContent/WelcomeContent.js
hwillson/meteor-solr-demo
import React from 'react'; const WelcomeContent = () => ( <div className="welcome-content"> <h1>Meteor Solr Search Demo</h1> <p> Welcome to the Meteor Solr search demo! </p> <div className="welcome-get-started clearfix"> <div className="pull-left hidden-xs"> <i className="fa fa-in...
app/pages/prescription/reviewFormStep.js
tidepool-org/blip
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import { FastField, useFormikContext } from 'formik'; import { Box, Flex, BoxProps } from 'rebass/styled-components'; import bows from 'bows'; import compact from 'lodash/compact'; import find from 'lodash/find'; i...
src/routes/user/Modal.js
zhouchao0924/SLCOPY
import React from 'react' import PropTypes from 'prop-types' import { Form, Input, InputNumber, Radio, Modal, Cascader } from 'antd' import city from '../../utils/city' const FormItem = Form.Item const formItemLayout = { labelCol: { span: 6, }, wrapperCol: { span: 14, }, } const modal = ({ item = {...
client/Containers/App/index.js
TemaTarasov/diplom
import React from 'react'; import Component from '../../Component'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import { Header } from '../../Components'; import { Home } from './Home'; import { NotFound } from '../NotFound'; export class App extends Component { render() { retur...
src/button/index.js
twilson63/t63
import React from 'react' import combine from '../lib/combine-string-lists' import R from 'ramda' export default props => { const className = combine( "f6 link dim br1 ph3 pv2 mb2 dib white bg-black", props.className) // className={className} const newProps = R.merge(props, { className: className }) ...
src/components/DateEvent.js
OSWeekends/EventPoints
import React, { Component } from 'react'; import './DateEvent.css'; class DateEvent extends Component { render() { const date = new Date(this.props.date); const weekDay = date .toLocaleString('es-es', { weekday: 'short' }) .toUpperCase() .substr(0, 3); const monthDay = date.getDate(); ...
src/components/Template/Navigation.js
ishwarsawale/ishwarsawale.github.io
import React from 'react'; import { Link } from 'react-router-dom'; import Hamburger from './Hamburger'; import routes from '../../data/routes'; // Websites Navbar, displays routes defined in 'src/data/routes' const Navigation = () => ( <header id="header"> <h1 className="index-link"> {routes.filter((l) =...
assets/javascripts/kitten/components/graphics/icons-next/cog-icon-next/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' export const CogIconNext = ({ color, title, ...props }) => ( <svg width="23" height="23" viewBox="0 0 23 23" xmlns="http://www.w3.org/2000/svg" {...props} > {title && <title>{title}</title>} <path d="M11.222 15.046a4.037...