path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/react-error-overlay/src/containers/RuntimeError.js | Timer/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import Header from '../components/Header';
import StackTrace from './StackTrace';
import type { ... |
packages/react-instantsearch-dom/src/components/Menu.js | algolia/react-instantsearch | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';
import Highlight from '../widgets/Highlight';
import List from './List';
import Link from './Link';
const cx = createClassNames('Menu'... |
src/components/ArticlesSearchForm.js | guryanov-a/react-search | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import SearchForm from './SearchForm';
import {
searchQuery,
filtersQuery,
} from '../api';
import {
changeSearchOffset,
changeSearchOffsetEnd,
changeCurrentPage,
changeSearchedTex... |
src/components/decorator/token.js | xutou12/draft-richer |
import React from 'react';
const styles = {
immutable: {
backgroundColor: 'rgba(0, 0, 0, 0.2)',
padding: '2px 0'
},
mutable: {
backgroundColor: 'rgba(204, 204, 255, 1.0)',
padding: '2px 0'
},
segmented: {
backgroundColor: 'rgba(248, 222, 126, 1.0)',
padding: '2px 0'
}
};
function... |
modules/home.js | fjacob21/dmatrix | import React from 'react'
import Pixel from './pixel'
import Service from './service'
var code = `#include <Adafruit_LEDBackpack.h>
Adafruit_BicolorMatrix matrix = Adafruit_BicolorMatrix();
<bitmap>
void displayBitmap(const uint16_t bit[8][8]){
for (int i=0; i<8; i++)
for (int j=0; j<8; j++)
matrix.drawP... |
node_modules/react-native/Libraries/Components/WebView/WebView.ios.js | kssujithcj/TestMobileCenter | /**
* 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... |
components/FacebookLogin.js | papettoTV/isyo | import React, { Component } from 'react';
import FacebookLogin from 'react-facebook-login';
// import FacebookProvider, { Login } from 'react-facebook';
import { Link } from 'react-router'
export default class fbLogin extends Component {
constructor(props) {
super(props);
// bindしないとhandleClick内でthisがnull
thi... |
src/svg-icons/content/gesture.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentGesture = (props) => (
<SvgIcon {...props}>
<path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.... |
src/App.js | hiyangguo/react-netease-cloud-music | /** Libs **/
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import injectTapEventPlugin from 'react-tap-event-plugin';
/** Component **/
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import MuiTheme from './co... |
force_dir/node_modules/react-bootstrap/es/BreadcrumbItem.js | wolfiex/VisACC | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
examples/custom-server-micro/pages/a.js | giacomorebonato/next.js | import React from 'react'
export default () => <div>a</div>
|
docs/src/examples/elements/Input/Variations/InputExampleSize.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleSize = () => (
<div>
<Input size='mini' icon='search' placeholder='Search...' />
<br />
<br />
<Input size='small' icon='search' placeholder='Search...' />
<br />
<br />
<Input size='large' icon='search'... |
src/containers/search_bar.js | albertocueto/modern-react-redux-weather-cities | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = {
term: ''
};
this.onInputChange = t... |
src/components/FirstChild/index.js | MatthewKosloski/howlongago | import React from 'react';
const FirstChild = ({children}) => {
const childrenArray = React.Children.toArray(children);
return childrenArray[0] || null;
}
export default FirstChild; |
src/index.js | wcomartin/filterer | import React from 'react';
import ReactDOM from 'react-dom';
import Filterer from './Filterer';
const $ = window.$;
$.fn.filterer = function(config){
config.operators = [
{
name: "contains",
types: ["string", "str"]
},{
name: "does not contain",
types: ["string", "str"]
},
{
... |
src/components/obligee/BoundarySignature.js | axmand/react-webpack-redux | import React, { Component } from 'react';
import { connect } from 'react-redux'
import PointNameCell from './PointNameCell'
//import projectData from "./../../redux/RootData";
// Map Redux state to component props
function mapStateToProps(state ,ownProps) {
// const tableIndex =ownProps.tableIndex;
//解析图层中的界址线数据
... |
node_modules/react-bootstrap/es/Thumbnail.js | NathanBWaters/jb_club | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
lib/components/SevenHour.js | thatPamIAm/weathrly | import React from 'react';
import icons from '../weather_icons/WeatherIcons';
const SevenHour = ({ hourlyForecast }) => {
if (!hourlyForecast) {
return null;
}
const sevenHourForecast = hourlyForecast.slice(0, 7);
const sevenHourDataLoop = sevenHourForecast.map((hour, i) => {
return (
<div key={... |
project/src/pages/Home/index.js | boldr/boldr | // @flow
import React from 'react';
import { graphql } from 'react-apollo';
import universal from 'react-universal-component';
import ARTICLES_QUERY from '../../scenes/Blog/gql/articles.graphql';
import type { ArticlesType } from '../../types/boldr';
const UniversalHome = universal(import('./Home'));
type Props = {
... |
src/svg-icons/av/mic.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMic = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-... |
node_modules/redux-devtools-log-monitor/src/LogMonitorEntryAction.js | HasanSa/hackathon | import React, { Component } from 'react';
import JSONTree from 'react-json-tree';
const styles = {
actionBar: {
paddingTop: 8,
paddingBottom: 7,
paddingLeft: 16
},
payload: {
margin: 0,
paddingLeft: 16,
overflow: 'auto'
}
};
export default class LogMonitorAction extends Component {
c... |
src/containers/Home/Home.js | aallfredo/clicker | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
const logoImage = ... |
docs/src/app/components/pages/components/IconButton/ExampleSize.js | ichiohta/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionHome from 'material-ui/svg-icons/action/home';
const styles = {
smallIcon: {
width: 36,
height: 36,
},
mediumIcon: {
width: 48,
height: 48,
},
largeIcon: {
width: 60,
height: 60,
},
small: {
... |
foodrecommender-new/src/components/Header.js | vmalvaro/react-projects | import React from 'react';
const Header = ({ message }) => {
return (
<h2 className="Header text-center">
{message}
</h2>
);
};
Header.propTypes = {
message: React.PropTypes.string
};
export default Header;
|
modules/Route.js | gdi2290/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './PropTypes';
import warning from 'warning';
var { string, bool, func } = React.PropTypes;
/**
* A <Route> is used to declare which components are rendered ... |
src/svg-icons/image/blur-on.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurOn = (props) => (
<SvgIcon {...props}>
<path d="M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-... |
react/src/js/app.js | maclinkallat/example-banking-app | import React from 'react';
import ReactDOM from 'react-dom';
import './../app.css';
var AccountCreationForm = React.createClass({
getInitialState: function () {
return { username: null };
},
handleSubmit: function(e) {
e.preventDefault();
this.props.addUserActions(this.state.username);
},
hand... |
src/scene/Home/HomeGridView.js | dudongge/DDGMeiTuan | /**
* Copyright (c) 2017-present, dudongge
* All rights reserved.
*
* https://github.com/dudongge/DDGMeiTuan
* copyright by dudodongge
*/
//import liraries
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { color } from '../../widget'
import { screen, syste... |
src/components/MapBottomComponent.js | jezzasan/taproom-react | 'use strict';
import React from 'react';
class MapBottomComponent extends React.Component {
//Bottom bit on map
constructor(props) {
super(props);
this.state= {
distance: this.props.distance,
time: this.props.time,
activeButton: null
};
}
_buttonClick(prop) {
this.setState({a... |
src/util/baseUtils.js | Duke-Translational-Bioinformatics/duke-data-service-portal | import React from 'react';
import moment from 'moment';
import { Color } from '../theme/customTheme';
let BaseUtils = {
timeConversion(millisec) {
let seconds = (millisec / 1000).toFixed(0);
let minutes = (millisec / (1000 * 60)).toFixed(1);
let hours = (millisec / (1000 * ... |
src/views/Pages/Report/Report.js | Cruis-R/GestionOutil | import React, { Component } from 'react';
import urls from '../../GestionsComponents/configs/serverConfigurations'
import { Chart, Bar, Line } from 'react-chartjs-2';
import { Dropdown, DropdownMenu, DropdownItem, Progress } from 'reactstrap';
const month_days = {
1 : 31,
2 : 28,
3 : 31,
4 : 30,
5 : 31,
6 :... |
examples/Collapsible.js | mattBlackDesign/react-materialize | import React from 'react';
import Collapsible from '../src/Collapsible';
import CollapsibleItem from '../src/CollapsibleItem';
export default
<Collapsible popout>
<CollapsibleItem header='First' icon='filter_drama'>
Lorem ipsum dolor sit amet.
</CollapsibleItem>
<CollapsibleItem header='Second' icon='place'>... |
app/javascript/mastodon/features/hashtag_timeline/index.js | pinfort/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
blueprints/route/files/src/routes/__name__/components/__name__.js | przeor/ReactC | import React from 'react'
import classes from './<%= pascalEntityName %>.scss'
export const <%= pascalEntityName %> = () => (
<div className={classes['<%= pascalEntityName %>']}>
<h4><%= pascalEntityName %></h4>
</div>
)
export default <%= pascalEntityName %>
|
packages/material-ui-icons/src/OpenInBrowser.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z" /></g>
, 'OpenInBrowser');
|
Tutorial/js/project/1.NewsDemo/Component/YCFind.js | onezens/react-native-repo | /**
* Created by wangzhen on 17/5/6.
*/
import React from 'react'
import {
StyleSheet,
View,
Text
} from 'react-native'
const Find = React.createClass({
render(){
return (
<View style={styles.container}>
<Text>发现</Text>
</View>
)
}
});
con... |
docs/app/Examples/views/Statistic/Content/StatisticExampleProps.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const items = [
{ key: '22', label: 'Saves', value: '22' },
{ key: 'Three Thousand', label: 'Signups', text: true, value: 'Three Thousand' },
{ key: '5', label: 'Flights', value: '5' },
{ key: '42', label: 'Team Members', value: '42' },
]
... |
src/routes.js | r24y/teleprint | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import Main from './main/Main';
import NotConnected from './controls/NotConnected';
import MachineControls from './controls/MachineControls';
import GcodeConsole from './controls/GcodeConsole';
import ConnectionScreen from './main/ConnectionScr... |
r/sua-mensagem/src/editor/modificadores/Forca.js | HigorSantos/sua-mensagem | import React, { Component } from 'react';
import './Forca.css';
import Conf from './Conf';
class Forca extends Component {
constructor(props){
super(props);
this.state = {
value:'forca',
opcoes:[
{ nome:'Normal',
value:'forca_normal',
defaultChecked:true,
enabled:true,
},
{ n... |
src/SearchText.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import PropTypes from 'prop-types';
import axios from 'axios';
import SearchOptionsAdvanced from "./modules/SearchOptionsAdvanced";
import SearchOptionsSimple from "./modules/SearchOptionsSimple";
import SearchTextResultsTable from "./modules/SearchTextResultsTable";
import ModalCompareDocs f... |
src/client/js/Header.js | JMJustas/todolist |
import React from 'react';
export default class Header extends React.Component {
constructor(props) {
super(props);
}
static get propTypes() {
return {
heading: React.PropTypes.string.isRequired
};
}
render() {
return (
<header className="container">
{this.props.heading}... |
src/svg-icons/action/rounded-corner.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoundedCorner = (props) => (
<SvgIcon {...props}>
<path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v... |
docs/src/app/components/pages/components/Paper/Page.js | rscnt/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import paperReadmeText from './README';
import PaperExampleSimple from './Exampl... |
src/client/components/App.js | Insanehero/Serverside-Rendering-Example | import React from 'react';
class App extends React.Component {
constructor (props) {
super();
this.state = { renderMsg: "This was rendered on the server!", peopleList: props.peopleList}
/* Uncomment the lines below to see how React 'reacts' when the
client tries to overwrite the server rendered data... |
src/components/run.js | congwenm/chess-xiangqi | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './main';
import '../styles/BootstrapSiteWrapper.css';
require('bootstrap-css-only');
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
examples/cra-kitchen-sink/src/stories/index.stories.js | rhalff/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { setOptions } from '@storybook/addon-options';
import { action } from '@storybook/addon-actions';
import { withNotes } from '@storybook/addon-notes';
import centered from '@storybook/addon-centered';
import { withInfo } from '@storybook/a... |
src/routes/login/index.js | RomanovRoman/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../compo... |
client/src/app.js | sethtrain/marvin | import React from 'react';
import { render } from 'react-dom';
import css from './styles/style.scss';
import store, { history } from './store';
import App from './components/main';
import Chat from './components/chat';
import Home from './components/pages/home';
import { Router, Route, IndexRoute} from 'react-router';... |
src/entries/index.js | ShanghaitechGeekPie/fresh | import './index.html';
import './index.less';
import ReactDOM from 'react-dom';
import React from 'react';
import { browserHistory } from 'react-router';
import App from '../components/App';
import Routes from '../routes/index';
ReactDOM.render(<Routes history={browserHistory} />, document.getElementById('root'));
|
Libraries/Utilities/throwOnWrongReactAPI.js | shrutic/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... |
app/containers/app.js | morinted/openrooms | import React from 'react'
import Header from '../components/Header'
import Footer from '../components/Footer'
import { Grid, Row, Col } from 'react-bootstrap'
class App extends React.Component {
render () {
return (
<section className="root">
<section className="main">
<Grid fluid>
... |
client/src/index.js | AuxiliumRoa/auxilium-server | import React from 'react'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { populateUser, populateActions, populateJoinedActions } from './redux/action-creators'
import configureReduxStore from './redux/configure-s... |
examples/server-rendering/shared/components/ComponentDemo.js | amazeui/amazeui-react | import React from 'react';
import * as components from './demos';
export class ComponentDemo extends React.Component {
render() {
const component = this.props.params.component;
const Component = components[component] || React.createClass({
render() {
return (
<h3>
... |
src/svg-icons/navigation/close.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationClose = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
NavigationClose = pure(Navig... |
docs/src/IntroductionPage.js | Azerothian/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
src/icons/SocialAngularOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialAngularOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M255.982,64l187.967,69.105l-39.17,230.389l-148.881,79.949l-148.812-80.051L68.031,133.11L255.982,64 M255... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | luwei2012/actor-platform | import _ from 'lodash';
import React from 'react';
import mixpanel from 'utils/Mixpanel';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'action... |
node_modules/react-bootstrap/es/Modal.js | mohammed52/door-quote-automator | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/app/core/molecules/top-bar/title/index.js | blowsys/reservo | /* @flow */
/**
* Title of top bar
* @module molecules/top-bar/title
* @version v1.0.1
*/
import React from 'react';
import colors from 'atoms/colors';
import Icon from 'atoms/icon';
import Text from 'atoms/text';
const defaultStyle = { paddingLeft: '17px', margin: 'auto 0' };
const iconStyle = { color: color... |
src/svg-icons/av/art-track.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
server/routes/page.js | chemdemo/easy-api | /*
* @Author: dmyang
* @Date: 2016-11-03 11:15:31
* @Last Modified by: yangdemo
* @Last Modified time: 2016-12-02 18:11:43
*/
'use strict'
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import { createMemoryHistory, RouterContext, match } from 'react-router'
import { Provider } from 'reac... |
docs/app/Examples/views/Card/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Types from './Types'
import Variations from './Variations'
const CardExamples = () => (
<div>
<Types />
<Content />
<Variations />
</div>
)
export default CardExamples
|
app/containers/HomePage/index.js | X0nic/cloud-cost | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import shouldPureComponentUpdate from 'react-pure-render/function';
import { createSelector } from 'reselect';
import {
... |
client/layout/drawer/header.js | yeoh-joer/synapse | /**
* External Dependencies
*/
import React from 'react'
/**
* Internal Dependencies
*/
export default class DrawerHeader extends React.Component {
render() {
return (
<header className="mdc-temporary-drawer__header mdc-theme--primary-bg mdc-theme--text-primary-on-primary">
<div className="mdc... |
examples/js/others/mouse-event-table.js | powerhome/react-bootstrap-table | /* eslint no-console: 0 */
/* eslint no-console: 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;
p... |
src/popup/components/Pack/PackList.js | fluany/fluany | /**
* @fileOverview A component to list store's packs
* @name PackList.js
* @license GNU General Public License v3.0
*/
import React from 'react'
import PropTypes from 'prop-types'
import filter from 'ramda/src/filter'
import toLower from 'ramda/src/toLower'
import take from 'ramda/src/take'
import { connect } fr... |
react/features/base/react/components/native/TintedView.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import { TINTED_VIEW_DEFAULT } from './styles';
/**
* Base style for the {@code TintedView} component.
*/
const BASE_STYLE = {
...StyleSheet.absoluteFillObject,
alignItems: 'center',
justifyContent: 'cen... |
src/js/components/icons/base/Map.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... |
packages/core/src/icons/components/PlusOne.js | iCHEF/gypcrete | import React from 'react';
export default function SvgPlusOne(props) {
return (
<svg
width="1em"
height="1em"
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<circle
cx={16}
cy={16}
r={15}
stroke="currentColor"
st... |
src/demo/stories/features/item_with_image.js | chybatronik/react_sortable | import React, { Component } from 'react';
// import {default_order, default_order_diff} from "../demo_data";
// import SortableReact from '../../../lib/SortableReact';
// const LibSortableReact = require('../../../../build/index.js');
import SortableReact from '../../../lib/SortableReact';
import Markdown from 'react-... |
src/plays.js | joshpollard/react-nhl-scoreboard | import React, { Component } from 'react';
import PeriodGoals from './periodGoals';
import './plays.css';
class Plays extends Component {
constructor(props) {
super(props);
this.state = {
scoringPlays: []
};
}
componentDidMount = () => {
}
render() {
... |
public/src/home/game-dialog.component.js | MaciejSzaflik/CharadesAndStuff | import React from 'react';
export class GameDialog extends React.Component {
render() {
return (
<div></div>
)
}
} |
src/components/SvgIcon/SignOut.js | sk-iv/iva-app | import React from 'react';
import SvgIcon from './SvgIcon';
import classNames from 'classnames';
/**
* @ignore - internal component.
*/
let SignOut = props => (
<SvgIcon {...props} className={classNames('icon--size24', props.className)}>
<path d="M17,7l5,5l-5,5 M19,5V2H5v20h14v-3 M11,12h11"/>
</SvgIcon>
);
... |
src/modules/xman/components/FlightList/ActionButtons/XmanButton.js | devteamreims/4me.react | import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
const defaultStyle = {
minWidth: 0,
width: 60,
};
import { pure } from 'recompose';
class XmanButton extends Component {
render() {
const {
style: propsStyle,
...other,
} = this.props;
const... |
test/js/AR/release_test/ARHitTest.js | viromedia/viro | /**
* Copyright (c) 2017-present, Viro Media, 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 Re... |
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js | chenjic215/search-doctor | // 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... |
app/components/admin/questionaire.js | bigappleinsider/auth-client-prod | import React, { Component } from 'react';
import { Link } from 'react-router';
import { reduxForm, Field, FieldArray } from 'redux-form';
import { connect } from 'react-redux';
import * as actions from '../../actions';
const renderField = ({ input, label, type, meta: { touched, error, warning } }) => (
<div classN... |
ui/src/components/Login.js | damianmoore/photo-manager | import React from 'react'
import { useMutation, useQuery } from '@apollo/client'
import { Redirect } from 'react-router-dom'
import styled from '@emotion/styled'
import gql from 'graphql-tag'
import { SIGN_IN } from '../graphql/onboarding'
import { logIn, scheduleTokenRefresh } from '../auth'
const Container = styled... |
src/index.js | KyleScharnhorst/search-nas-react | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/svg-icons/device/signal-wifi-4-bar-lock.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
gatsby-ssr.js | PedroLamas/pedrolamas.com | import React from 'react';
import { config } from '@fortawesome/fontawesome-svg-core';
import 'typeface-pt-sans';
import RootLayout from './src/components/rootLayout';
import './src/styles/styles.scss';
import '@fortawesome/fontawesome-svg-core/styles.css';
config.autoAddCss = false;
export const wrapPageElement = ... |
src/components/Footer.js | heikkipesonen/sysart | import React from 'react';
import ImageContainer from './ImageContainer.js';
class Footer extends React.Component {
constructor (props) {
super(props);
}
render () {
return (
<footer className="site-footer">
<ImageContainer className="footer-background background-holder" src="images/foote... |
src/containers/NotFound/NotFound.js | TracklistMe/client-react | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
src/react-module/app.js | dhassaine/legacy2react | import React from 'react';
import globalKeyValueDuck from './state/ducks/keyValues';
import { connect } from 'react-redux';
function ReactToggle({ on, handleChange }) {
return (
<div>
<input id="toggle" type="checkbox" checked={on ? 'checked' : ''} onClick={()=>handleChange(!on)} />
React-module togg... |
node_modules/react-bootstrap/src/TabPane.js | gitoneman/react-home | import React from 'react';
import classSet from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const TabPane = React.createClass({
propTypes: {
active: React.PropTypes.bool
},
getDefaultProps() {
return {
animation: true
};
},
getInitialState() {
return {
... |
react-ebay-network-aware-code-splitting/src/App.js | GoogleChromeLabs/adaptive-loading |
import React from 'react';
import Header from './components/Header';
import CenterPanelInternal from './components/CenterPanelInternal';
import './App.css';
const App = () => {
return (
<div className='App'>
<Header />
<div className='main'>
<CenterPanelInternal />
</div>
</div>
... |
src/parser/deathknight/unholy/modules/features/VirulentPlagueUptime.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import StatisticBox, { ... |
src/parser/deathknight/unholy/modules/features/ScourgeStrikeEfficiency.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import StatisticBox, { ... |
node_modules/grid-styled/src/Flex.js | zkeesh/CrpytoNet-News | import React from 'react'
import styled from 'styled-components'
import { responsiveStyle } from 'styled-system'
import { oneOfType, number, string, array, bool } from 'prop-types'
import propTypes from './propTypes'
import Box from './Box'
const wrap = responsiveStyle('flex-wrap', 'wrap', 'wrap')
const direction = re... |
src/svg-icons/hardware/tablet-mac.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletMac = (props) => (
<SvgIcon {...props}>
<path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1... |
node_modules/react-router/es6/Link.js | ottomajik/react-demo | '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) {... |
code/web/src/components/Links.js | zyxcambridge/RecordExistence | import '../styles/RootIndex.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Link } from 'react-router';
import TopNavBar from "./TopNavBar.js"
const Links = () =>
<nav >
<Link className="homebar" activeClassName="active" to="/"><span> 照片墙 </span> </Link>
<Link ... |
web/src/presentation/enable-retro-happiness.js | mgwalker/retros | import React from 'react';
import HappinessMeter from './happiness-meter';
function enableRetroHappiness(props) {
return (
<div className="usa-grid enable-retro-happiness-prompt">
<h1>Check Happiness?</h1>
<div className="usa-grid">
<p>
As part of the retro, we can ask participant... |
app/jsx/custom_help_link_settings/CustomHelpLinkSettings.js | venturehive/canvas-lms | /*
* Copyright (C) 2016 - 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... |
FrontEnd/src/index.js | xiaomak/XRepair | import React from 'react';
import ReactDOM from 'react-dom';
// import registerServiceWorker from './registerServiceWorker';
import {BrowserRouter as Router} from 'react-router-dom'
import {Provider} from "mobx-react";
import {} from 'mobx';
import * as store from './stores';
import FastClick from 'fastclick';
import c... |
DouKanMV/app/views/CategoryList.js | MisterZhouZhou/ReactNativeLearing | import React, { Component } from 'react';
import {StyleSheet, Text, View, Image} from 'react-native';
export default class CategoryList extends Component{
static navigationOptions = {
title: '分类',
tabBarLabel: '分类',
tabBarIcon: ({focused, tintColor }) => {
return (<Image source={focused?require('.... |
nlyyAPP/component/图片管理模块/上传历史/MLUploadPageNumberLish.js | a497500306/nlyy_APP | /**
* Created by Rolle on 2017/5/25.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
TouchableOpacity,
Alert
} from 'react-native';
var MLPageNumberUpDate = require('../页码上传/MLPageNumberUpDate');
var MLNavigatorBar = require('../../MLNav... |
packages/bae/dev/server.js | siddharthkp/reaqt | import express from 'express'
import React from 'react'
import { render } from 'rapscallion'
import fs from 'fs'
import clearRequire from 'clear-require'
import { loading, info } from 'prettycli'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'we... |
index.android.js | aleksanderakero/Balls | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class Balls extends Component {
render() {
return (
<View style={styles.container}>
<Text st... |
src/svg-icons/maps/ev-station.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsEvStation = (props) => (
<SvgIcon {...props}>
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.