path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/js/components/Lights.js | captDaylight/furniture | import React from 'react';
import THREE from 'three';
// TODO get rid of this
const d = 20;
function Lights(props) {
const { lightPosition, lightTarget } = props;
return (
<group>
<mesh
position={lightPosition}
>
<boxGeometry
width={0.1}
height={0.1}
depth={0.1}
/>
<meshLambe... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateInline.js | claudiopro/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
props: Props;
state: {a: number, b: number, c: number} = {a: 1, b: 2, c: 3};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Compon... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZoneTarget.js | brianjd/keystone | /**
* THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT
* THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON
* - @mxstbr
*/
import React from 'react';
import { DropTarget } from 'react-dnd';
import { setCurrentPage } from '../../actions';
let timeoutID = false;
// drop target
var ItemsTableDragDro... |
src/components/badges/demos/NumberOverText.js | isogon/material-components | import React from 'react'
import { Badge } from '../../../'
export default () => <Badge text="7">Inbox</Badge>
|
src/components/Card/WeatherCard.stories.js | guilhermecvm/react-dribbble-components | import React from 'react'
import { storiesOf } from '@storybook/react'
import IoIosRainyOutline from 'react-icons/lib/io/ios-rainy-outline'
import IoIosSunnyOutline from 'react-icons/lib/io/ios-sunny-outline'
import IoIosPartlySunnyOutline from 'react-icons/lib/io/ios-partlysunny-outline'
import IoIosThunderStormOutlin... |
frontend/src/components/showpicker/ShowPickerItem.js | tanzdervampire/website | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { red500, grey50 } from 'material-ui/styles/colors';
import { ListItem } from 'material-ui/List';
import Avatar from 'material-ui/Avatar';
class ShowPickerItem extends React.Component {
static propTypes =... |
docs/app/Examples/addons/TextArea/Usage/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const TextAreaTypesExamples = () => (
<ExampleSection title='Usage'>
<ComponentExample
title='TextArea'
description='... |
app/jsx/new_user_tutorial/trays/TutorialTrayContent.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleSearchDropdown.js | shengnian/shengnian-ui-react | import React from 'react'
import { Dropdown } from 'shengnian-ui-react'
import { languageOptions } from '../common'
// languageOptions = [ { key: 'Arabic', text: 'Arabic', value: 'Arabic' }, ... ]
const DropdownExampleSearchDropdown = () => (
<Dropdown
button
className='icon'
floating
labeled
i... |
src/index.js | IanChuckYin/IanChuckYin.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App/App';
import { BrowserRouter } from 'react-router-dom';
import * as serviceWorker from './serviceWorker';
import { Provider } from 'react-redux';
import { createStore } from 'redux'
import reducer from '... |
src/components/layout/content/About.js | Gisto/Gisto | import React from 'react';
import styled from 'styled-components';
import { get } from 'lodash/fp';
import { isElectron } from 'utils/electron';
import { gaPage } from 'utils/ga';
import ExternalLink from 'components/common/ExternalLink';
import Anchor from 'components/common/Anchor';
import * as packageJson from '... |
app/assets/scripts/components/tabbed-selector.js | openaq/openaq.org | import React from 'react';
import T from 'prop-types';
import styled from 'styled-components';
import c from 'classnames';
const Wrapper = styled.div`
// Emulated gap: https://coryrylan.com/blog/css-gap-space-with-flexbox
display: flex;
flex-flow: row wrap;
margin: -1rem 0 0 -1rem;
width: calc(100% + 1rem);
... |
src/Router.js | bsy/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
client/modules/Post/__tests__/components/PostCreateWidget.spec.js | mygithub1216/MERN_SelfCar_Dashboard | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
src/js/components/chart/MarkerLabel.js | kylebyerly-hp/grommet | // (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 Props from '../../utils/Props';
import { announce } from '../../utils/Ann... |
server/priv/js/app.js | alinpopa/mzbench | import 'babel-core/polyfill';
import React from 'react';
import MZBenchApp from './components/MZBenchApp.react';
import './utils/MZBenchRouter';
React.render(
<MZBenchApp />,
document.getElementById('mzbench-container')
);
|
src/js/Components/News.js | RoyalSix/myBiolaApp | import React, { Component } from 'react';
import {
Text,
View,
ListView,
TouchableOpacity,
Modal,
Image
} from 'react-native';
import style from 'css';
import WebViewContainer from '../Containers/WebViewContainer';
import * as API from '../API';
import { back_button } from 'assets';
... |
src/components/ui/ChooseSchoolModal.js | notion-app/web | import React from 'react';
import { Button, Nav, Navbar, NavItem, Jumbotron, Grid, Row, Modal, Popover, Tooltip, OverlayTrigger, Thumbnail} from 'react-bootstrap';
import SchoolActions from 'actions/SchoolActions';
import SchoolStore from 'stores/SchoolStore';
import LoginManager from 'util/LoginManager';
import LoginA... |
src/layouts/CoreLayout/CoreLayout.js | sohamnakhare/Market-Movement-Visualization | import React from 'react'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
class CoreLayout extends React.Component {
constructor(props) {
super(props);
}
render(){
return(
<div>
<Header />
<div className='container-fluid'... |
fields/components/columns/ArrayColumn.js | wmertens/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
... |
src/FormControls/Static.js | justinanastos/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import InputBase from '../InputBase';
import childrenValueValidation from '../utils/childrenValueInputValidation';
class Static extends InputBase {
getValue() {
const {children, value} = this.props;
return children ? children : value;
}
ren... |
index.js | terakilobyte/geoff | require('./node_modules/bootstrap/dist/css/bootstrap.min.css');
import React from 'react';
import Button from './public/src/components/Button';
export class App extends React.Component {
constructor(props) {
super(props);
this.state = {
upVotes: 0,
downVotes: 0
};
this.handleVote = this.... |
tests/fake/redux-app/ssr/react.js | koriym/Koriym.ReduxReactSsr | import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import { Provider } from 'react-redux';
global.React = React;
global.ReactDOM = ReactDOM;
global.ReactDOMServer = ReactDOMServer;
global.Provider = Provider;
global.configureStore = configureStore;
|
src/Eventplanner/TimeGrid.js | ctco/rosemary-ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import { findDOMNode } from 'react-dom';
import dates from './utils/dates';
import localizer from './localizer';
import DayColumn from './DayColumn';
import EventRow from './EventRow';
import TimeColumn from './T... |
src/app/Doc.js | DictumMortuum/dictum | /*eslint no-console: "off"*/
import React from 'react'
import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'
import FloatingActionButton from 'material-ui/FloatingActionButton'
import Divider from 'material-ui/Divider'
import FlatButton from 'material-ui/FlatButton'
import FontIcon from 'material-ui/... |
react-roster/src/components/Add-player.js | bjornicus/roster | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button, InputGroup, FormGroup, FormControl, DropdownButton, MenuItem } from 'react-bootstrap';
let nextPlayerId = 0;
const roster = ["Astrid","Cassie","Isabella","Katie","Kiara","Luca","Rylan","Vera Fahrig", "Vera Floberg"];
cla... |
examples/prefixes.js | threepointone/glamor | import React from 'react'
import { placeholder, css } from '../src'
export class App extends React.Component {
render() {
return <input
{...placeholder({ color: 'red' })}
{...css({ display: 'flex' })}
placeholder="some text"
/>
}
}
|
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxwindow.js | dhawal9035/WebPLP | /*
jQWidgets v4.5.0 (2017-Jan)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
let jqxWindow = React.createClass ({
getInitialState: function () {
return { value: '' };
},
componentDidMount: function () {
let options = this.manageAttributes();
... |
index.js | dmsakamoto/start-kit |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
class Root extends Component {
render() {
return <div>Hello</div>;
}
}
ReactDOM.render(<Root />, document.getElementById("root"));
|
packages/reactor-tests/src/index.js | dbuhrman/extjs-reactor | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App'; // app components
import { launch } from '@extjs/reactor';
// include all ExtReact components so we can use them directly in jest tests.
Ext.require('Ext.*');
launch(<App/>, { debug: true }); |
frontend/src/System/Events/LogsTable.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import FilterMenu from 'Components/Menu/FilterMenu';
import PageContent from 'Components/Page/PageContent';
import PageContentBody from 'Components/Page/PageContentBody';
import PageToolbar... |
fields/types/email/EmailColumn.js | suryagh/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var EmailColumn = React.createClass({
displayName: 'EmailColumn',
propTypes: {
col: React.PropTypes.object,
... |
src/svg-icons/communication/phonelink-erase.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkErase = (props) => (
<SvgIcon {...props}>
<path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0... |
src/withWizard.js | americanexpress/react-albus | /*
* Copyright (c) 2017 American Express Travel Related Services Company, 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 ... |
app/javascript/mastodon/features/compose/components/autosuggest_account.js | pointlessone/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class AutosuggestAccount extends Immuta... |
src/js/containers/Root.js | soundchain/soundchain-frontend | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import { store, history } from '~/store';
import Main from './Main';
export default class Root extends Component {
render() {
return (
<Provider store={store}>
<C... |
interface/components/TxHistory/index.js | ethereum/mist | import React, { Component } from 'react';
import { connect } from 'react-redux';
import DappIdenticon from '../DappIdenticon';
import { updateTx, getPriceConversion } from '../../actions';
import TxRow from './TxRow';
class TxHistory extends Component {
constructor(props) {
super(props);
this.state = { show... |
src/sapm/impress-sapm.js | GuillermoParedes/react-impressjs | import React from 'react';
import LogoLaravel from './../../public/images/laravelLogo.png'
import LogoMysql from './../../public/images/mysqlLogo.png'
import WebLogo from './../../public/images/html5jscss.png'
import ScrumLogo from './../../public/images/scrumLogo.png'
import ScrumMesaLogo from './../../public/images/S... |
packages/@lyra/form-builder/src/inputs/TelephoneInput.js | VegaPublish/vega-studio | //@flow
import React from 'react'
import TextInput from 'part:@lyra/components/textinputs/default'
import FormField from 'part:@lyra/components/formfields/default'
import PatchEvent, {set, unset} from '../PatchEvent'
import type {Type, Marker} from '../typedefs'
type Props = {
type: Type,
level: number,
value: ?... |
node_modules/semantic-ui-react/dist/es/elements/List/List.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
client/src/components/Header/index.js | BhaveshSGupta/FreeCodeCamp | import React from 'react';
import Helmet from 'react-helmet';
import stripeObserver from './stripeIframesFix';
import UniversalNav from './components/UniversalNav';
import './header.css';
export class Header extends React.Component {
constructor(props) {
super(props);
this.state = {
displayMenu: fals... |
src/components/custom-components/PlayListCards/PlayListCards.js | ArtyomVolkov/music-search | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
// actions
import * as playlistActions from '../../../actions/playlists';
import * as playerActions from '../../../actions/player';
// Components
import Card from './Card/Card';
// Styles
import './PlayListCard... |
src/svg-icons/action/shop.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionShop = (props) => (
<SvgIcon {...props}>
<path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"/>
</SvgIcon>
);
Action... |
src/components/ui/button.js | xavier-besson/react-playground | import React from 'react';
import Default from 'components/ui/default';
/**
* @class Button
* @extends Default
*/
class Button extends Default {
/**
* Range of validators that can be used to make sure the data you receive is valid
* @type {Object}
*/
static propTypes = {
...Default.propTypes,
type: Re... |
2-conflict/app.js | aruberto/styling-react-components | import React from 'react';
import ReactDOM from 'react-dom';
import Button from './button';
const App = () => (
<div>
<div>
<Button>Everything is normal ....</Button>
<Button error>Oh no, there is an error!</Button>
</div>
</div>
);
ReactDOM.render(<App />, document.getElem... |
app/components/about/About.js | ykforerlang/my-react-redux | import React from 'react'
import { Input } from 'antd'
import styles from './style.less'
const About = () => (
<div className={styles['about-container']}>
<div className={styles['text-container']}>about</div>
<Input />
</div>
)
export default About
|
6.6.3/examples/asyncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e... |
node_modules/@material-ui/core/esm/Toolbar/Toolbar.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles fro... |
examples/huge-apps/routes/Grades/components/Grades.js | schnerd/react-router | import React from 'react'
class Grades extends React.Component {
render() {
return (
<div>
<h2>Grades</h2>
</div>
)
}
}
export default Grades
|
src/routes/home/Home.js | jessiepullaro414/kiwi | /**
* 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-... |
src/components/PageHeader.js | holderdeord/hdo-blog | import PropTypes from 'prop-types';
import React from 'react';
import '../styles/PageHeader.scss';
import '../styles/hdo.scss';
import HDOLogo from '../images/hdo_logo.svg';
import MainMenu from './MainMenu';
const Title = ({ title }) => (
<a href="/">
<h1>{title}</h1>
</a>
);
Title.propTypes = {
title: P... |
packages/ndla-icons/src/common/Pause.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const Pause = props => (
<Icon
viewBox... |
00/index.js | razh/react-intro-fall-2015 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
js/components/blankPage/index.js | allanrabanillo/Usave |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Text, Button, Icon } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
cons... |
src/components/SideBar.js | germtb/react-redux-burguer-menu | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import {Motion, spring} from 'react-motion';
import {connect} from 'react-redux';
import {HoverButton} from './HoverButton';
import {store} from '../store';
const WIDTH = 400;
const sideBarStyle = {
borderRight: '1px solid bl... |
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js | devex-web-frontend/create-react-app-dx | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
MobileApp/App/container/index.js | VowelWeb/CoinTradePros.com | import React, { Component } from 'react';
import {
View,
Text,
StatusBar,
TouchableOpacity
} from 'react-native';
import Components from '../components/index';
export default class Index extends Component {
componentDidMount(){
}
render() {
return(
<View style={{flex:1}}>
<Components />
</View>
... |
src/svg-icons/av/video-call.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoCall = (props) => (
<SvgIcon {...props}>
<path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"/>
</SvgIcon>
)... |
client/App.js | CODEINAE/todoy | /**
* Root Component
*/
import React from 'react';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import IntlWrapper from './modules/Intl/IntlWrapper';
// Import Routes
import routes from './routes';
// Base stylesheet
require('./main.css');
export default function A... |
ui/src/components/MappingRulesTable.js | m3db/m3ctl | // Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
src/react/JSONTree/JSONStringNode.js | cyhunter/redux-devtools | import React from 'react';
import reactMixin from 'react-mixin';
import { SquashClickEventMixin } from './mixins';
import hexToRgb from '../../utils/hexToRgb';
const styles = {
base: {
paddingTop: 3,
paddingBottom: 3,
paddingRight: 0,
marginLeft: 14
},
label: {
display: 'inline-block',
ma... |
src/Spin/CubeGrid.js | lenxeon/react-ui | import React from 'react'
import classnames from 'classnames'
import propTypes from './proptypes'
import _styles from '../styles/spin/_cube-grid.scss'
export default function CubeGrid (props) {
const { size, color, margin } = props
const className = classnames(
props.className,
_styles['cube-grid']
)
... |
app/routes.js | czn574775237/AmazeuiOnReact | import React from 'react';
import { Route } from 'react-router';
import * as AppPage from './pages';
export default (
<Route component={AppPage.AppPage}>
<Route component={AppPage.IndexPage} path="/" />
<Route component={AppPage.ButtonPage} path="/btn" />
</Route>
);
|
client/component/redirect-edit/index.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'i18n-calypso';
import { connect } from 'react-redux';
/**
* Internal dependencies
*/
import TableRow from './table-row';
import RedirectSourceUrl from './source-url';
import RedirectSour... |
src/routes/Dashboard/components/Dashboard.js | TheTorProject/ooni-wui | import React from 'react'
import { Link } from 'react-router'
import { FormattedMessage } from 'react-intl'
import Deck from '../../../components/Deck'
import DeckRunner from './DeckRunner'
import OONILogoImage from '../assets/ooni-logo.svg'
import './Dashboard.scss'
import { BootstrapTable, TableHeaderColumn } from... |
src/components/Admin/AdminStudents/index.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import { Container, Message, MessageHeader, MessageBody, Field, Control, Label, Input } from 'bloomer';
import { Accordion, AccordionItem } from '../../Accordion';
import { apiGet } from '../../../utils/api';
import Student from './Student';
import Loader from '../../Loader';
class AdminStud... |
app/screens/index/index.js | vgno/getroc | import React from 'react';
import Hero from '../../components/hero';
import Highlights from '../../components/highlights';
import Extensions from '../../components/extensions';
import Readmore from '../../components/readmore';
export default class Index extends React.Component {
render() {
return (
... |
src/ModalDialog.js | pivotal-cf/react-bootstrap | /*eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ModalDialog = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* A Callback fired when the header closeButton or non-static backdrop is c... |
fields/types/color/ColorColumn.js | dvdcastro/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var ColorColumn = React.createClass({
displayName: 'ColorColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... |
src/client/main.js | ZeusTheTrueGod/background-geolocation-console | import React from 'react';
import ReactDOM from 'react-dom';
import Viewport from './components/Viewport';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import { loadInitialData } from '~/reducer/dashboard';
import store from './store';
import { BrowserRouter as Router, Rout... |
example/src/App.js | sebinsua/react-redux-simple-modal | import React from 'react'
import { connect } from 'react-redux'
import { ModalSwitcher, openModal } from 'react-redux-simple-modal'
import { ExampleModal, OtherExampleModal } from './modals'
import { EXAMPLE_MODAL, OTHER_EXAMPLE_MODAL } from './modals/constants'
const ExamplePage = ({ openModal }) => (
<div classNa... |
app/components/roster/Racer.js | opensprints/opensprints-electron | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './Racer.css';
const abrValue = (key, value) => {
if (value) {
switch (key.toLowerCase()) {
case 'sex':
return value[0];
case 'level':
return value.slice(0, 3);
default:
retu... |
server/ViewModels/Chart/BubbleChart.js | demyanenko/hutel | import React from 'react';
import PropTypes from 'prop-types';
import { min, max } from 'd3-array';
import { axisBottom, axisLeft } from 'd3-axis';
import { scaleLinear, scaleTime } from 'd3-scale';
import { select } from 'd3-selection';
import { timeFormat } from 'd3-time-format';
import moment from 'moment';
import... |
docs/src/app/components/pages/components/List/ExampleSimple.js | w01fgang/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ContentInbox from 'material-ui/svg-icons/content/inbox';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import ContentSend from 'material-ui/svg-icons/content/send';
... |
actor-apps/app-web/src/app/index.js | hzy87email/actor-platform | import polyfills from 'utils/polyfills'; // eslint-disable-line
import RouterContainer from 'utils/RouterContainer';
import crosstab from 'crosstab';
import React from 'react';
import Router from 'react-router';
import Raven from 'utils/Raven'; // eslint-disable-line
import isMobile from 'utils/IsMobile';
import Reac... |
exercise-0/client-conference-schedule/src/routes.js | nanovazquez/nodeconf-isomorphic-workshop | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Home from './containers/Home';
import Details from './containers/Details';
const routes = (
<Route path="/">
<IndexRoute component={Home}/>
<Route path="/users/:twitter" component={Details} />
</Route>
);
export default ro... |
node_modules/react-icons/ti/th-list.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiThList = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.7 28.3h-11.7c-1.8 0-3.3 1.5-3.3 3.4s1.5 3.3 3.3 3.3h11.7c1.8 0 3.3-1.5 3.3-3.3s-1.5-3.4-3.3-3.4z m0-11.6h-11.7c-1.8 0-3.3 1.5-3.3 3.3s1.5 3.3 3.3 3.3h11.7c1.8 0 3.... |
src/components/Sidebar/Copyright/Copyright.js | colmdoyle/colmdoyle.github.io | // @flow strict
import React from 'react';
import styles from './Copyright.module.scss';
type Props = {
copyright: string
};
const Copyright = ({ copyright }: Props) => (
<div className={styles['copyright']}>
{copyright}
</div>
);
export default Copyright;
|
source/component/button/post.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import {
StyleSheet,
} from 'react-native';
import TimerMixin from 'react-timer-mixin';
import ActionButton from 'react-native-action-button';
import Icon from 'react-native-vector-icons/Ionicons';
import { ComponentStyles, StyleConfig } from '../../style';
const buttons =... |
src/containers/Home/Home.js | jeremiahrhall/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from clien... |
node_modules/react-icons/io/ios-settings.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosSettings = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25 8.1c-0.7 0-1.2 0.6-1.2 1.3s0.5 1.2 1.2 1.2 1.3-0.5 1.3-1.2-0.6-1.3-1.3-1.3z m0-1.2c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5-2.5-1.1-2.5-2.5 1.1-2.5 2.5-2.5z m0 ... |
src/List/Content/ItemTitle/ItemTitle.component.js | Talend/react-talend-components | import React from 'react';
import { Button } from 'react-bootstrap';
const TITLE_MODE_TEXT = 'text';
const TITLE_MODE_INPUT = 'input';
const TITLE_MODE_BUTTON = 'button';
const ESC_KEY = 27;
const ENTER_KEY = 13;
function TitleText({ id, value }) {
return (<div id={id} className="tc-list-item-title-text">{value}</d... |
src/svg-icons/action/system-update-alt.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
public/app/src/components/Col.js | wjwu/blog | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const Col = props => {
const cls = classNames({
[`col-xs-${props.xs}`]: props.xs,
[`col-sm-${props.sm}`]: props.sm,
[`col-md-${props.md}`]: props.md,
[`col-lg-${props.lg}`]: props.lg
});
return (
... |
src/BrushX.js | ornl-sava/vis-react-components | import React from 'react'
import PropTypes from 'prop-types'
import { findDOMNode } from 'react-dom'
import { brushX, select, event as d3Event } from 'd3'
class BrushX extends React.Component {
constructor (props) {
super(props)
this.brushSelection = []
this.brushPhase = ''
}
componentDidMount () {
... |
src/svg-icons/image/crop-square.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropSquare = (props) => (
<SvgIcon {...props}>
<path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/>
</SvgIcon>
);
ImageCropSquare = pure(ImageCropSquar... |
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js | VikingDen/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { Pure... |
src/containers/Home/Home.js | ericnograles/react-for-beginners | import React, { Component } from 'react';
export default class Home extends Component {
render() {
return (
<div className="demo-layout mdl-layout mdl-layout--fixed-header mdl-js-layout mdl-color--grey-100">
<header className="demo-header mdl-layout__header mdl-layout__header--scroll mdl-color--gre... |
public/src/js/index.js | iambrianchan/spotifyplaylist | import React from 'react';
import ReactDOM from 'react-dom';
import ReactGA from 'react-ga';
import createHistory from 'history/createBrowserHistory';
import { BrowserRouter as Router, Route } from "react-router-dom";
import App from './components/app.js';
ReactGA.initialize('UA-89957529-2');
ReactGA.pageview('/');
R... |
shared/components/DemoApp/Header/Logo/index.js | diondirza/react-universally | import React from 'react';
import logo from './logo.png';
function Logo() {
return <img src={logo} alt="Logo" style={{ width: '100px' }} />;
}
export default Logo;
|
src/svg-icons/action/info-outline.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInfoOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h... |
assets/src/index/index.entry.js | datoulei/NEW-Framework | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.jsx';
const reactClass = (<App/>);
if (__CLIENT__) {
const rootElement = document.getElementById('app');
ReactDOM.render(reactClass, rootElement);
}
if (__SERVER__) {
module.exports = reactClass;
}
|
lib/components/MapPolyline.js | lelandrichardson/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import { ColorPropType, ViewPropTypes, View } from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.... |
src/svg-icons/hardware/watch.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareWatch = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2.... |
ui/src/containers/TopNav/index.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { loggedInUserSelector, logout, orgLogout } from 'ui/redux/modules/auth';
import { Map, List } from 'immutable';
import bannerImg from 'ui/static/whiteLogo.png';
import SaveBar from 'ui/containers... |
src/pages/LoginPage.js | ChrisWhiten/react-rink | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Paper from 'material-ui/Paper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import Checkbox from 'material-ui/Checkbox';
import {grey500, white} from 'material-... |
app/javascript/mastodon/features/ui/components/report_modal.js | mosaxiv/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { expandAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pro... |
components/question/AskedQuestionsList.js | hustlzp/react-redux-example | import React from 'react'
import Radium from 'radium'
import { Link } from 'react-router'
import { friendlyTimeWithLineBreak, truncate } from '../../filters'
@Radium
export default class AskedQuestions extends React.Component {
static propTypes = {
questions: React.PropTypes.array.isRequired,
openQ... |
src/routes/private.js | Maxpsc/Ocean | import React from 'react';
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom';
export const UserRoute = ({ component: Component, identity, ...rest }) => (
<Route {...rest} render={props => (
(identity === 'admin' || identity === 'user') ? (
<Component {...props}/>
) : (
... |
pages/about.js | fmarcos83/mdocs | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>About Us</h1>
<p>Coming s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.