path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
webpack/move_to_foreman/components/common/table/formatters/selectionCellFormatter.js | cfouant/katello | import React from 'react';
import TableSelectionCell from '../components/TableSelectionCell';
export default (
selectionController,
additionalData,
before,
after,
) => (
<TableSelectionCell
id={`select${additionalData.rowIndex}`}
checked={selectionController.isSelected(additionalData)}
onChange={... |
node_modules/@exponent/vector-icons/website/src/App.js | 15chrjef/mobileHackerNews | import React, { Component } from 'react';
import './App.css';
import _ from 'lodash';
const IconFamilies = {
Entypo: require('./glyph-maps/entypo'),
EvilIcons: require('./glyph-maps/evil-icons'),
FontAwesome: require('./glyph-maps/font-awesome'),
Foundation: require('./glyph-maps/foundation'),
Ionicons: requ... |
examples/react-router/components/Nav.js | pablolmiranda/fluxible | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import {Link} from 'react-router';
class Nav extends React.Component {
static contextTypes = {
router: React.PropTypes.func.isRequired
};
... |
demo/src/Main.js | ev-ui/ev-ui | import React from 'react'
import {render} from 'react-dom'
import {Icon} from 'antd'
import styled from 'styled-components'
import {Img} from 'ev-ui'
const Root=styled.div`
background:#fff;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
font-weight:100;
.na... |
src/containers/Asians/TabControls/StandingsTeams/index.js | westoncolemanl/tabbr-web | import React from 'react'
import TeamStandings from 'containers/Asians/_components/TeamStandings'
export default () =>
<TeamStandings />
|
app/routes/index.js | dearfrankg/redux-form-example | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import {App} from '../containers';
import {
Home,
Login,
} from '../components';
export default(
<Route path='/' component={App}>
<IndexRoute component={Home}/>
<Route path="login" component={Login}/>
</Route>
);
|
src/pages/404.js | amiechen/amiechen.github.io | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
src/components/ContractStatus.js | reactima/reactima-esop | import React from 'react';
import {Table, TableBody, TableRow, TableRowColumn} from 'material-ui/Table';
import FontIcon from 'material-ui/FontIcon';
import ContractUtils from '../ContractUtils'
import './ContractStatus.scss'
import Texting from '../texting'
export default ({contractState}) => {
let numberFormatte... |
benchmarks/dom-comparison/src/implementations/react-fela-createComponent/Box.js | risetechnologies/fela | import React from 'react'
import { createComponent } from 'react-fela'
const rule = ({ color, fixed = false, layout = 'column', outer = false }) => ({
alignItems: 'stretch',
borderWidth: '0px',
borderStyle: 'solid',
boxSizing: 'border-box',
display: 'flex',
flexBasis: 'auto',
flexDirection: 'column',
f... |
www/src/demos/DisabledItemsInput.js | haneev/react-widgets | import React from 'react';
import PropTypes from 'prop-types';
import { Multiselect } from 'react-widgets';
const propTypes = {
value: PropTypes.any,
};
function DisabledItemsInput({ value, ...props }) {
return (
<Multiselect
{...props}
value={Array.isArray(value) ? value : []}
disabled={val... |
app/component/Dashboard.js | icalF/piye-kabare | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Platform,
StyleSheet,
Text,
TextInput,
TouchableHighlight,
View
} from 'react-native';
import ScrollableTabView from 'react-native-scrollable-tab-view';
import ContactList from './ContactList';
import GroupList from './... |
client/components/soundcloud/SoundCloud.js | bsubedi26/Project-Revised | import SC from 'soundcloud';
import React from 'react';
// import { Provider } from 'react-redux';
// import configureStore from './stores/configureStore';
// import * as actions from './actions';
// import Stream from './components/Stream';
import { CLIENT_ID, REDIRECT_URI } from './auth';
class SoundCloud extends Re... |
src/App.js | andresilveira/jsrulez | import React, { Component } from 'react';
import ValidatorMessage from './ValidatorMessage';
import CreateRuleForm from './CreateRuleForm';
import RulesList from './RulesList';
import FlowExecutor from './FlowExecutor';
import './App.css';
class App extends Component {
constructor() {
super();
this.state ... |
src/ContentBlocks/BlockAssetLink/BlockAssetLinkForm.js | grommet/grommet-cms-content-blocks | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Form from 'grommet/components/Form';
import FormFields from 'grommet/components/FormFields';
import FormField from 'grommet/components/FormField';
import Button from 'grommet/components/Button'... |
src/components/ui/Card.js | Jenny-L/lumohacks2017 | /**
* Cards
*
<Card></Card>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Card } from 'react-native-elements';
// Consts and Libs
import { AppSizes, AppColors, AppStyles } from '@th... |
examples/js/column-filter/text-filter.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
exercise-03-solution/src/components/Pokedex.js | learnapollo/pokedex-react | import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import styled from 'styled-components'
import PokemonPreview from '../components/PokemonPreview'
const Title = styled.div`
color: #7F7F7F;
font-size: 32px;
font-weight: 300;
`
class Pokedex extends React.Component {
... |
src/icons/ClosedCaptioning.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class ClosedCaptioning extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<g>
<path d="M0,64v384h512V64H0z M464,255.825c0.045,26.724-1.547,47.143-3.797,80.223S441,392.5,401.097,396.168
... |
src/FormControls/Static.js | bvasko/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... |
src/encoded/static/components/filegallery.js | T2DREAM/t2dream-portal | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import moment from 'moment';
import { Panel, PanelHeading, TabPanel, TabPanelPane } from '../libs/bootstrap/panel';
import { Modal, ModalHeader, ModalBody, ModalFooter } from '../libs/bootstrap/modal';
import { collapseIcon } fro... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInCss.js | GreenGremlin/create-react-app | import React from 'react';
import './assets/svg.css';
export default () => <div id="feature-svg-in-css" />;
|
app/javascript/mastodon/components/error_boundary.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { version, source_url } from 'mastodon/initial_state';
import StackTrace from 'stacktrace-js';
export default class ErrorBoundary extends React.PureComponent {
static propTypes = {
children: Prop... |
src/App.js | gndx/gresume-react | import React, { Component } from 'react';
import About from './components/About';
import Experience from './components/Experience';
import Education from './components/Education';
import Certificate from './components/Certificate';
import Skills from './components/Skills';
class App extends Component {
render() {
... |
routes/index.js | Lucifier129/isomorphism-react-file-system | import express from 'express'
import React from 'react'
import Component from '../public/js/src/index/view1'
import Tree from '../lib/tree'
import util from 'util'
import {resolve, relative, sep} from 'path'
let cwd = process.cwd()
let router = express.Router()
let ok = {
meta: {
state: 0,
message... |
client/app/app.js | yanhao-li/menu-plus | /**
* 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... |
tests/react/useState_hook.js | gabelevi/flow | // @flow
import React from 'react';
React.useState(); // Error: function requires another argument.
const [count, setCount] = React.useState<number>(1);
(count: number); // Ok
(count: string); // Error: number is incompatible with string
setCount(2); // Okay
setCount(true); // Error: boolean is incompatible with n... |
src/js/index.js | webcom-components/visio-sample | require('../style.less');
import React from 'react';
import ReactDom from 'react-dom';
import Root from './containers/Root';
import history from './history';
ReactDom.render(
<Root history={history} />,
document.querySelector('#root')
);
|
app/components/CityWeather.js | hisaksen/weather-app | import React from 'react';
import Loading from './Loading';
import todayDate from '../utilities/date';
let PropTypes = React.PropTypes;
const styles = {
windyContainer: {
height: '500px',
marginTop: '4.5em',
borderRadius: '2px',
},
card: {
height:'500px',
marginTop: '4.5em',
},
heading: {
tex... |
src/svg-icons/action/view-week.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewWeek = (props) => (
<SvgIcon {...props}>
<path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4... |
src/workflows/generic/components/steps/JobMonitoring.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import queryString from 'query-string';
import ButtonBar from '../../../../panels/ButtonBar';
import JobMonitor from '../../../../panels/JobMonitor';
import FileListing from '../../../../panels/FileListing';
import LoadingPanel from '../../../../panels/Loa... |
react-fundamentals-es6/lessons/07-child-properties/main.js | wandarkaf/React-Bible | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
|
src/components/Feedback/Feedback.js | cbellino/react-sandbox | /**
* 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, { Component } from 'react';
import withStyle... |
src/src/routes/Deals/containers/DealsContainer.js | alexberriman/local-deals | import React from 'react'
import TextField from 'material-ui/TextField'
import { connect } from 'react-redux'
import { push } from 'react-router-redux'
import Deals from '../components/Deals'
import { IconClose, IconSearch } from 'components/Icons'
import { fetchDeals } from 'store/deals/actions'
import classes from ... |
client/src/components/pages/admin/ManageCategoriesPage.js | 15thnight/15thnight | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { getCategories, setCategorySort } from 'actions';
import styles from './ManageCategoriesPage.css';
class ManageCategoriesPage extends React.Component {
constructor(props) {
super(props);
... |
app/components/Home.js | MitchLillie/brewhome | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Home.css';
export default class Home extends Component {
render() {
return (
<div>
<div className={styles.container}>
<h2>Home</h2>
<Link to="/counter">to Counter</Link>
... |
frontend/sections/admin/proxy/proxy.js | apostolidhs/wiregoose | import sumBy from 'lodash/sumBy';
import each from 'lodash/each';
import now from 'lodash/now';
import sortBy from 'lodash/sortBy';
import map from 'lodash/map';
import React from 'react';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
import Table from 'react-bootstrap/lib/Table'... |
docs/src/examples/elements/List/Types/ListExampleLink.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleLink = () => (
<List link>
<List.Item active>Home</List.Item>
<List.Item as='a'>About</List.Item>
<List.Item as='a'>Jobs</List.Item>
<List.Item as='a'>Team</List.Item>
</List>
)
export default ListExampleLink
|
src/components/QuestionDetail/index.js | topguru/React-Equiaction | import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
TouchableHighlight,
TextInput,
Image
} from 'react-native';
import styles from './style';
import { images, metrics } from '../../theme';
import LinearGradient from 'react-native-linear-gradient';
import Icon from 'react-native-vect... |
src/index.js | nitishdayal/react-whirligig | /* eslint-disable no-console */
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Redbox from 'redbox-react';
import Routes from './routes';
import './index.css';
if (process.env.NODE_ENV !== 'development') {
if ('serviceWorker' in navigator) {
... |
src/rocks/timeline-tab/index.js | animachine/animachine | import React from 'react'
import Timeline from './Timeline'
BETON.define({
id: 'timeline-tab',
dependencies: [
'workspace',
'project-manager',
'toolbar',
'selector-editor-dialog'
],
init
})
function init({workspace}) {
workspace.setTabContent('timeline', <Timeline/>)
}
|
src/js/Button.js | jakezatecky/react-checkbox-tree | import PropTypes from 'prop-types';
import React from 'react';
class Button extends React.PureComponent {
static propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.string,
};
static defaultProps = {
title: null,
};
render() {
const { children, titl... |
src/routes.js | cityofsurrey/polltal-app | import React from 'react'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import { StyleRoot } from 'radium'
import Dashboard from './Dashboard'
import SurveyCreation from './SurveyCreation'
import Voting from './Voting'
import Result from './Result'
import Thanks from './Thanks'
const styles = {
... |
tests/flow/react/createElement_string.js | azz/prettier | // @flow
import React from 'react';
class Bar extends React.Component {}
class Foo extends React.Component {
render() {
const Cmp = Math.random() < 0.5 ? 'div' : Bar;
return (<Cmp/>);
}
}
|
templates/rubix/rubix-bootstrap/src/LoremIpsum.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import ReactDOM from 'react-dom';
/**
* @copyright https://github.com/f/loremjs
* @licence https://github.com/f/loremjs/blob/master/LICENSE
*/
var Lorem;
(function() {
//Create a class named Lorem and constructor
Lorem = function() {
//Default values.
this.type = ... |
packages/demo/src/Demo.js | marnusw/react-css-transition-replace | import React from 'react'
import Grid from 'react-bootstrap/es/Grid'
import Nav from 'react-bootstrap/es/Nav'
import Navbar from 'react-bootstrap/es/Navbar'
import NavItem from 'react-bootstrap/es/NavItem'
import PageHead from './components/PageHead'
import ContentSwapper from './components/ContentSwapper'
import Cont... |
eventkit_cloud/ui/static/ui/app/components/MapTools/DropZone.js | venicegeo/eventkit-cloud | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import DropZoneError from './DropZoneError';
import DropZoneDialog from './DropZoneDialog';
export class DropZone extends Component {
render() {
return (
<div>
<DropZoneDialog
showI... |
src/client/pages/App.js | doemski/cblocks | import React from 'react';
import CBlocksAppBar from './app/CBlocksAppBar.js';
import Canvas from './app/Canvas';
import HTML5Backend from 'react-dnd-html5-backend';
import { DragDropContext } from 'react-dnd';
import CustomDragLayer from './app/CustomDragLayer';
import { createMuiTheme, MuiThemeProvider } from '@mater... |
src/js/components/icons/base/PlatformPiedPiper.js | kylebyerly-hp/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... |
src/svg-icons/action/thumb-down.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbDown = (props) => (
<SvgIcon {...props}>
<path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.5... |
client/src/index.js | Factual/kyoodos | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import Kyoodo from './components/Kyoodo'
const rootEl = document.getElementById('root')
const testData = [{
sender: 'HH',
receivers: [
'Forrest',
'Sarah'
],
content: 'good job!'
},
{
sender: 'HH',
receive... |
src/svg-icons/communication/call-received.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallReceived = (props) => (
<SvgIcon {...props}>
<path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"/>
</SvgIcon>
);
CommunicationCallReceived = pure(CommunicationCallReceived);
CommunicationCa... |
components/Cards/Cards.story.js | NGMarmaduke/bloom | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import Badge from '../Badge/Badge';
import Card from './Card/Card';
import PictureCard from './PictureCard/PictureCard';
import SpaceFeatureCard from './SpaceFeatureCard/SpaceFeatureCard';
import SpaceListingCard from './SpaceListingCard/... |
src/docs/examples/TextInputCSSModules/ExampleError.js | alexcondorachi/ps-react-alexc | import React from 'react';
import TextInputCSSModules from 'ps-react/TextInputCSSModules';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInputCSSModules
htmlId="example-optional"
label="First Name"
name="first... |
modules/server/page.js | alrighty/react-universal-starter-kit | import React from 'react'
import { renderToString } from 'react-dom/server'
import { Provider } from 'react-redux'
import { createMemoryHistory, match, RouterContext } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import serialize from 'serialize-javascript'
import configureStore from ... |
chrome-extension/src/browser_action/containers/App/index.js | hiiamyes/paiyun-auto-apply | import React, { Component } from 'react';
import styled from 'styled-components';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Select from 'react-select';
import DatePicker from 'react-datepicker';
import moment from 'moment';
import Loader from 'halogen/ScaleLoader';
import... |
examples/FacebookTabsExample/FacebookTabBar.js | iancanderson/react-native-scrollable-tab-view | import React from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
const FacebookTabBar = React.createClass({
tabIcons: [],
propTypes: {
goToPage: React.PropTypes.func,
activeTab: React.PropTypes.number,
t... |
app/javascript/mastodon/features/ui/components/navigation_panel.js | Nyoho/mastodon | import React from 'react';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
import { profile_directory, showTrends } from 'mastodon/initial_state';
import NotificationsCounterIcon from './notifications_counter_icon';
impo... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js | odapplications/WebView-with-Lower-Tab-Menu | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
Web Developer Skills/Learn ReactJS Part II/Unit 10 Updating & Unmounting Lifecycle Methods/04 componentWillUpdate/TopNumber.js | ummahusla/codecademy-exercise-answers | import React from 'react';
import ReactDOM from 'react-dom';
const yellow = 'rgb(255, 215, 18)';
export class TopNumber extends React.Component {
constructor(props) {
super(props);
this.state = { 'highest': 0 };
}
componentWillReceiveProps(nextProps) {
if (nextProps.number > this.state.highest) {
... |
src/components/Header.js | codefordenver/encorelink | import PropTypes from 'prop-types';
import React from 'react';
import { Link } from 'react-router';
import logo from '../static-assets/img/encorelink-logo.png';
function Header({
isLoggedIn, isMusician, logoutUser, user
}) {
const loggedIn = (
<div>
Hello, <Link to={isMusician ? '/musicianProfile' : '/or... |
src/scripts/ui/components/app.js | ziflex/react-app-starter | /* eslint-disable react/forbid-prop-types */
import React from 'react';
import { Router, Route, IndexRedirect, Redirect } from 'react-router';
import Root from './pages/root';
import Home from './pages/home';
import Login from './pages/login/index';
export default React.createClass({
propTypes: {
flux: Rea... |
examples/async/index.js | rohannair/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
src/components/BackButton.js | Dervanil/reactnd-project-myreads-starter | import React from 'react';
import {withRouter} from 'react-router'
/*
Simple back button componente
*/
const BackButton = ({match, location, history}) => (
<button className='back-button' onClick={() => {
history.goBack()
}}>Back</button>
)
export default withRouter(BackButton);
|
src/server.js | Rico75/taco-attack | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
0010-lifecycle/app/src/SomeComponent.js | davidwparker/programmingtil-react | import React, { Component } from 'react';
class SomeComponent extends Component {
// Mounting Methods
constructor(props) {
super(props);
console.log('constructor');
}
componentWillMount() {
console.log('componentWillMount');
}
// Updating Methods
componentWillReceiveProps(nextProps) {
... |
src/components/DropOption/DropOption.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import { Dropdown, Button, Icon, Menu } from 'antd'
const DropOption = ({ onMenuClick, menuOptions = [], buttonStyle, dropdownProps }) => {
const menu = menuOptions.map(item => <Menu.Item key={item.key}>{item.name}</Menu.Item>)
return (<Dropdown
over... |
client/component/redirect-edit/match/custom.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
import PropTypes from 'prop-types';
/**
* Internal dependencies
*/
import TableRow from '../table-row';
const MatchCustom = ( { data, onChange } ) => {
const { filter } = data;
return (
<TableRow title=... |
docs/src/GettingStartedPage.js | apkiernan/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
import Anchor from './Anchor';
import Row from '../../src/Row';
import Col from '../../src/Col';
import Panel from '../../src/Panel';
expor... |
assets/javascripts/sso/components/AdminNewAppCard.js | laincloud/sso | import StyleSheet from 'react-style';
import React from 'react';
import CardFormMixin from './CardFormMixin';
import {Admin} from '../models/Models';
let AdminNewAppCard = React.createClass({
mixins: [CardFormMixin],
getInitialState() {
return {
formValids: {
'fullname': true,
'redirect... |
src/components/intellij/plain-wordmark/IntellijPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './IntellijPlainWordmark.svg'
/** IntellijPlainWordmark */
function IntellijPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'Inte... |
packages/material-ui-icons/src/FormatUnderlined.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FormatUnderlined = props =>
<SvgIcon {...props}>
<path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z" />
</SvgIcon>;
FormatUnder... |
examples/todos-with-undo/components/Footer.js | omnidan/redux-undo | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">... |
code/schritte/4-test/src/GreetingMaster.js | st-he/react-workshop | import React from 'react';
const GreetingMaster = (props) => {
const {greetings, onAdd} = props;
const body = greetings.map(greeting => <tr key={greeting.id}><td>{greeting.name}</td><td>{greeting.greeting}</td></tr>);
return (
<div>
<table>
<thead>
<tr><t... |
src/svg-icons/navigation/check.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationCheck = (props) => (
<SvgIcon {...props}>
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>
</SvgIcon>
);
NavigationCheck = pure(NavigationCheck);
NavigationCheck.displayName = 'Navigati... |
packages/cf-component-textarea/example/basic/component.js | jroyal/cf-ui | import React from 'react';
import { Textarea } from 'cf-component-textarea';
class TextareaComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
textareaValue: ''
};
}
handleTextareaChange(e) {
this.setState({
textareaValue: e.target.value
});
}
... |
src/svg-icons/hardware/toys.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
jenkins-design-language/src/js/components/material-ui/svg-icons/social/person-add.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialPersonAdd = (props) => (
<SvgIcon {...props}>
<path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</SvgIcon>
);
SocialPersonAdd.displ... |
src/main/scripts/modules/sea-siege/react/views/list-item/server.js | twuni/sea-siege | import React from 'react';
import ListItemView from '../../components/list-item-view';
import IconLink from '../../components/icon-link';
class ServerListItemView extends ListItemView {
get baseUrl() {
const {model} = this;
const {gameId, id} = model;
return `/games/${gameId}/servers/${id}`;
}
ge... |
src/layouts/CoreLayout/CoreLayout.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import { fromJS, is } from 'immutable'
import { compose } from 'recompose'
import { firebaseConnect, dataToJS } from 'react-redux-firebase'
import { connect } from 'react-redux'
import { ToastContainer, toast, style } from 'react-toastify'
import { sortBy } f... |
src/ApplicationList/LabelList.js | petr-k/mesos-marathon-browser | // @flow
import React from 'react'
import Linkify, { linkify } from 'react-linkify'
import { sortBy } from 'lodash'
linkify.set({
fuzzyEmail: false,
})
export default class LabelList extends React.PureComponent {
props: {
labels: {[string]: string},
}
render() {
const { labels } = this.props
cons... |
src/common/components/AppRender.js | benoitvallon/react-native-nw-react-calculator | 'use strict';
import React from 'react';
import Screen from './Screen';
import Formulae from './Formulae';
import Keyboard from './Keyboard';
export default function () {
return (
<div className='main'>
<Screen />
<Formulae />
<Keyboard />
</div>
);
}
|
Console/app/node_modules/react-error-overlay/lib/containers/StackTrace.js | RisenEsports/RisenEsports.github.io | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
src/main.js | jenstitterness/pix | import _ from 'lodash';
import $ from 'jquery';
import ipc from 'ipc';
import React from 'react';
import ReactDOM from 'react-dom';
import Header from './Header';
import Feed from './Feed';
import SearchList from './SearchList';
var app = window.app = {
accessToken: "",
currentFeed: "",
viewUserFeed: "",
ref... |
docs/src/app/components/pages/components/TextField/ExampleDisabled.js | manchesergit/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleDisabled = () => (
<div>
<TextField
disabled={true}
hintText="Disabled Hint Text"
/><br />
<TextField
disabled={true}
id="text-field-disabled"
defaultValue="Disabled Value"
/>... |
pootle/static/js/auth/components/SocialAuthError.js | unho/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
app/components/parts/Footer.js | lotgd/client-graphql-www | import React from 'react';
/**
* This part is responsible for rendering the lower part of the website with copyright etc
*/
class Footer extends React.Component {
render() {
const core = this.props.configuration.core;
const crate = this.props.configuration.crate;
return <div className="a... |
examples/todomvc/index.js | lapanoid/redux-devtools-gentest-plugin | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
source/client/main.js | worminer/React.js-Financial-News | import React from 'react'
import Router from 'react-router'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import routes from './routes'
let history = createBrowserHistory()
ReactDOM.render(
<Router history={history}>{ routes }</Router>,
document.getElementBy... |
src/modules/editor/components/popovers/formattingTooltip/LinkTextInput/LinkTextInput.js | CtrHellenicStudies/Commentary | import React from 'react';
import { connect } from 'react-redux';
import autoBind from 'react-autobind';
import {
Modifier,
EditorState,
} from 'draft-js';
// redux
import editorActions from '../../../../actions';
// components
import decorators from '../../../decorators';
import './LinkTextInput.css';
class L... |
src/components/logo/index.js | rangle/react-redux-starter | import React from 'react';
import LogoImage from '../../assets/rangleio-logo.svg';
function Logo() {
return (
<div className="flex items-center">
<img style={ styles }
src={ LogoImage }
data-ref="logo-image"
alt="Rangle.io" />
</div>
);
}
const styles = { width: 128 };
expor... |
src/components/AppSettings.js | PsychoLlama/luminary | import { Switch, ScrollView, TouchableOpacity } from 'react-native';
import styled from 'styled-components/native';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import React from 'react';
import R from 'ramda';
import { DASHBOARD_MODE } from '../reducers/switches';
import * as actions fro... |
lib/components/tab.js | chabou/hyper | import React from 'react';
export default class Tab extends React.PureComponent {
constructor() {
super();
this.handleHover = this.handleHover.bind(this);
this.handleBlur = this.handleBlur.bind(this);
this.handleClick = this.handleClick.bind(this);
this.state = {
hovered: false
};
}... |
node_modules/@exponent/vector-icons/website/src/index.js | Helena-High/school-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/web/client/scripts/containers/ProjectList.js | MiddleBack/anymock | /**
* Created by tanxiangyuan on 16/8/29.
*/
"use strict";
import React from 'react';
import Button from 'antd/lib/button';
import Input from 'antd/lib/input';
import Select from 'antd/lib/select';
import Form from 'antd/lib/form';
import Col from 'antd/lib/col';
import Message from 'antd/lib/message';
import Fetch f... |
src/containers/Asians/_components/ViewLockedRound/TraineeFeedback/SmallTraineeFeedback/Instance/AdjudicatorDisplay.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import List, {
ListItem,
ListItemText
} from 'material-ui/List'
export default connect(mapStateToProps)(({
adjudicatorId,
adjudicatorScoresThisRound,
adjudicatorsById
}) => {
const findAdjudicatorScore = adjudicatorScoreToMatch => adjudicator... |
app/javascript/mastodon/components/status_list.js | Toootim/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { ScrollContainer } from 'react-router-scroll';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import LoadMore from './load_more';
import ImmutablePureComponent from 'react-im... |
src/svg-icons/av/pause-circle-outline.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPauseCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 16h2V8H9v8zm3-14C6.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 8zm1-4h2... |
src/routes/app/routes/ecommerce/routes/products/components/Products.js | ahthamrin/kbri-admin2 | import React from 'react';
import classnames from 'classnames';
import QueueAnim from 'rc-queue-anim';
const productImagePath = 'assets/images-demo/products/';
const products = [
{
name: 'Silver Watch',
img: `${productImagePath}watch-silver.png`,
sash: 'sash-primary',
sash_icon: 'star',
sash_text... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | taimur97/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
app/routes.js | lumibloc/tabloc | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
export default () => (
<App>
<Switch>
<Route path="/coun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.