path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
rojak-ui-web/src/Routes.js | rawgni/rojak | import { Route, IndexRoute } from 'react-router';
import React from 'react';
import Container from './app/utils/Container';
import HomePage from './app/home/HomePage';
export default (
<Route component={Container}>
<Route path="/(search/:keyword)" component={HomePage} />
</Route>
)
|
frontend/src/components/submitcast/ShowInput.js | tanzdervampire/website | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { red500 } from 'material-ui/styles/colors';
import CircularProgress from 'material-ui/CircularProgress';
import { Card, CardHeader, CardText, CardActions } from 'material-ui/Card';
import DropDownMenu from 'ma... |
src/components/topic/platforms/PlatformSizeNotice.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import Permissioned from '../../common/Permissioned';
import { PERMISSION_TOPIC_WRITE } from '../../..... |
examples/html-table/SortableList.js | danielstocks/react-sortable | import React from 'react'
import SortableListItem from './SortableItem'
export default class SortableList extends React.Component {
state = {
items: this.props.items
};
onSortItems = (items) => {
this.setState({
items: items
});
}
render() {
const { items } = this.state;
var list... |
src/app/components/task/DatetimeTaskResponse.js | meedan/check-web | import React from 'react';
import { FormattedMessage, FormattedDate } from 'react-intl';
import { convertNumbers2English } from '../../helpers';
const DateDisplay = ({ isoDate }) => (
<time dateTime={isoDate}>
<FormattedDate value={new Date(isoDate)} day="numeric" month="long" year="numeric" />
</time>
);
fun... |
src/components/Main.js | chiefwhitecloud/running-man-frontend | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import RacePageLayout from './Races/PageLayout';
import FilterableRaceResults from './FilterableRaceResults';
import RacerContainer from './RacerContainer';
const containerStyle = {
maxWidth: '1200px',
margin: '0px auto',
};
const Main ... |
components/Nav/Social.js | styled-components/styled-components-website | import React from 'react';
import styled from 'styled-components';
import { Github, MediumM } from '@styled-icons/fa-brands';
import rem from '../../utils/rem';
import { navbarHeight } from '../../utils/sizes';
import Link from '../Link';
const Wrapper = styled.nav`
display: flex;
align-items: center;
flex: 1 1 ... |
client/components/operations/label.js | jankeromnes/kresus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { translate as $t } from '../../helpers';
import { actions } from '../../store';
// If the length of the short label (of an operation) is smaller than this
// threshold, the raw label of the operation will be ... |
src/containers/Home/index.js | anitrack/anitrack-web | import React, { Component } from 'react';
import { Col, Row, Button, Form, FormGroup, Label, Input, InputGroup, InputGroupButton, UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import MediaQuery from 'react-responsive';
import * as css from './css';
const flexItem = [
{icon: ... |
UI/src/components/common/Spinner.js | ssvictorlin/PI | import React from 'react';
import { View, ActivityIndicator } from 'react-native';
const Spinner = ({ size }) => {
return (
<View style={ styles.spinnerStyle }>
<ActivityIndicator size={ size || 'large' } />
</View>
);
};
const styles = {
spinnerStyle: {
flex: 1,
justifyContent: 'center',
alignItems: ... |
ux/Selector.js | rameshvk/j0 | 'use strict';
import BaseComponent from './BaseComponent.js';
import React from 'react';
import SelectView from './SelectView.js';
function getState(props) {
return {optionIndex: props.model.get(React.Children.count(props.children))};
}
export default class Selector extends BaseComponent {
constructor(props) {
... |
wwwroot/app/src/components/MealPlannerPage/Meal/index.js | AlinCiocan/PlanEatSave | import React from 'react';
import Routes from '../../../services/Routes';
import Link from '../../base/Link';
import RemoveIcon from '../../base/icons/RemoveIcon';
const Meal = ({ meal, onRemoveMeal }) => (
<div className="pes-meal">
<div className="pes-meal__divider"></div>
<Link
unde... |
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/src/demo/pagination/pagination.js | mcjazzyfunky/js-surface | import {
defineClassComponent,
defineFunctionalComponent,
hyperscript as h,
mount
} from 'js-surface';
import { Seq } from 'js-essential';
import PaginationHelper from './helper/PaginationHelper.js';
import ComponentHelper from './helper/ComponentHelper.js';
import React from 'react';
import ReactD... |
src/components/Footer/Footer.js | stinkyfingers/IsoTest | /**
* 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/svg-icons/communication/location-on.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12... |
client/components/TableBeta2.js | ForestJS/ForestJS-Production | import React, { Component } from 'react';
class TableBeta2 extends Component {
constructor(props) {
super(props);
this.state = {
login: null,
user: null
}
this.createTable = this.createTable.bind(this);
this.detailView = this.props.detailView.bind(this);
}
createTable(){
cons... |
src/components/sandbox/Sandbox.js | gtdudu/hapi-wurb | import React from 'react';
import PropTypes from 'prop-types';
const Sandbox = () => {
return (
<div className="outer_face">
<div className="marker oneseven"></div>
<div className="marker twoeight"></div>
<div className="marker fourten"></div>
<div className="marker fiveeleven"></div>
... |
src/app/SelectSpotTypePage.js | EsriJapan/photospot-finder | // Copyright (c) 2016 Esri Japan
import React from 'react';
class SelectSpotTypePage extends React.Component {
constructor (props) {
super(props);
}
render () {
let visibility = 'block';
if (this.props.visibility === false) {
visibility = 'none';
}
return (
<div className="se... |
6.webpack/message/components/Message.js | zhufengnodejs/201608node | import React from 'react';
export default class Message extends React.Component {
render() {
return (
<li className="list-group-item">{this.props.author}:{this.props.children}
<button onClick={()=>{this.props.click(this.props.id)}} className="btn btn-danger">删除</button> <span cla... |
app/react-icons/fa/user-md.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaUserMd extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m13.1 30q0 0.6-0.5 1t-1 0.4-1-0.4-0.4-1 0.4-1 1-0.4 1 0.4 0.5 1z m22.8 1.4q0 ... |
tools/public-components.js | joemcbride/react-starter-kit | import React from 'react';
import index from '../src/index';
let components = [];
Object.keys(index).forEach(function (item) {
if (index[item] instanceof React.Component.constructor) {
components.push(item);
}
});
export default components;
|
src/svg-icons/navigation/subdirectory-arrow-right.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowRight = pure(Navigat... |
public/js/components/visits/othersvisits.react.js | rajikaimal/Coupley | import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import CardMedia from 'material-ui/lib/card/card-media';
import CardTitle from 'ma... |
react/features/mobile/navigation/functions.js | jitsi/jitsi-meet | import React from 'react';
import { useTranslation } from 'react-i18next';
import { Platform } from 'react-native';
import { IconClose } from '../../base/icons';
import HeaderNavigationButton from './components/HeaderNavigationButton';
/**
* Close icon/text button based on platform.
*
* @param {Function} goBack -... |
src/Parser/RestoDruid/Modules/Features/NaturesEssence.js | mwwscott0/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import Module from 'Parser/Core/Module';
import SPELLS from 'common/SPELLS';
import Combatants from 'Parser/Core/Modules/Combatants';
const MINOR = 0.07;
const AVERAGE = 0.12;
const MAJOR = 0.17;
cl... |
app/components/AddTask/GMaps/index.js | theterra/newsb | import React from 'react';
import './MapStyle.css';
let searchBox;
export default class GMaps extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.geolocate = this.geolocate.bind(this);
this.initAutocomplete = this.initAutocomplete.bind(this);
this.searchBoxPlaces ... |
src/js/components/Box.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import KeyboardAccelerators from '../utils/KeyboardAccelerators';
import Intl from '../utils/Intl';
import Props from '../utils/Pro... |
packages/material-ui-icons/src/Timer3.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49.11-.73 0-.55-.09-1.04-.28-1.46-.18-.42-.44-.77-.78-1.06-.33-.28... |
ui/me/index.js | DannyvanderJagt/portfolio | import React from 'react';
import Telescope from 'telescope';
import Config from '../../../portfolio.config';
import Button from '../button';
import Svg from '../svg';
class Me extends Telescope.Component{
render(){
return (
<div className='me'>
<div className='image'>
<img src='/assets/... |
app/resources/author/views/Login.react.js | shiminghua/front_end_practice | 'use strict';
import React, { Component } from 'react';
import InputText from '../../../components/inputs/InputText.react';
import InputPassword from '../../../components/inputs/InputPassword.react';
import '../../../browser/javascript/mui';
class Login extends Component {
constructor(props) {
super(prop... |
client/app/components/Settings.Vendors.js | jfanderson/KIM | import React from 'react';
import h from '../helpers.js';
import v from '../services/vendorService.js';
import sign from '../services/sign.js';
import AddVendorForm from './Form.AddVendor.js';
import Cell from './Cell.js';
import Column from './Column.js';
import Table from './Table.js';
class VendorSettings extends... |
src/app.js | gj262/my-react-redux-starter-kit | import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import routes from './routes'
import Root from './containers/Root'
import { browserHistory } from 'react-router'
import { syncHistory, routeReducer } from 'redux-simple-router'
import thunkMiddleware from 'redux-thunk'
import reducers fr... |
packages/mcs-lite-landing-web/src/containers/Section1/Chart.js | MCS-Lite/mcs-lite | import React from 'react';
import styled from 'styled-components';
import rafThrottle from 'raf-throttle';
import TweenOne from 'rc-tween-one';
import Heading from 'mcs-lite-ui/lib/Heading';
import last from 'ramda/src/last';
import DataPointAreaChart from 'mcs-lite-ui/lib/DataPointAreaChart';
import localTimeFormat fr... |
fields/types/azurefile/AzureFileColumn.js | dvdcastro/keystone | import React from 'react';
var AzureFileColumn = React.createClass({
renderValue () {
var value = this.props.data.fields[this.props.col.path];
if (!value) return;
return <a href={value.url} target="_blank">{value.url}</a>;
},
render () {
return (
<td className="ItemList__col">
<div className="ItemLis... |
src/router.js | DanielHabib/onboarding | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/http';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage';
... |
client/src/components/CoursesPage.js | yegor-sytnyk/contoso-express | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as courseActions from '../actions/courseActions';
import {departmentSelectListItem} from '../formatters/entityFromatter';
import CoursesList from './courses/CoursesList';
import CourseSave from './courses/... |
admin/client/App/screens/Item/components/FormHeading.js | snowkeeper/keystone | import React from 'react';
import evalDependsOn from '../../../../../../fields/utils/evalDependsOn';
module.exports = React.createClass({
displayName: 'FormHeading',
propTypes: {
options: React.PropTypes.object,
},
render () {
if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) {
re... |
src/components/Header/Header.js | FAN-CUK/official | import React from 'react';
import FontAwesome from 'react-fontawesome';
import classNames from 'classnames';
import { Link } from 'react-router';
import MenuItem from './MenuItem';
import css from './Header.css';
class Header extends React.Component {
render() {
const c = [
{ name : "김수연조", boardId : 1 },
{... |
src/base/ActionBar.js | WellerQu/rongcapital-ui | /* 一种另类的尝试 */
import React from 'react';
import clazz from 'classnames';
import PropTypes from 'prop-types';
import * as componentStyles from '../styles/base/actionBar.sass';
const ActionBar = ({ children }) =>
<ul className={ componentStyles['action-bar'] }>{ children }</ul>;
ActionBar.Item = ({ children, right... |
examples/dynamic-segments/app.js | brownbathrobe/react-router | import React from 'react';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</Link></li>
</ul>
{this.props.children}
... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | odapplications/WebView-with-Lower-Tab-Menu | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/svg-icons/editor/border-color.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderColor = (props) => (
<SvgIcon {...props}>
<path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp... |
src/parser/shared/modules/features/Checklist/PreparationRule.js | anom0ly/WoWAnalyzer | import { Trans } from '@lingui/macro';
import PropTypes from 'prop-types';
import React from 'react';
import Requirement from './Requirement';
import Rule from './Rule';
class PreparationRule extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
thresholds: PropTypes.object.isRequired... |
src/components/general/Error.js | OlivierVillequey/hackathon | /**
* Error Screen
*
<Error text={'Server is down'} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
// Consts and... |
src/svg-icons/action/watch-later.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWatchLater = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/>
</SvgIcon>
);
ActionWatchLater = pure(Ac... |
app/javascript/mastodon/components/missing_indicator.js | PlantsNetwork/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='regeneration-indicator missing-indicator'>
<div>
<div className='regeneration-indicator__figure' />
<div className='regeneration-indicator__label'>
<FormattedMessage id=... |
src/components/editor/TuningButton.js | calesce/tab-editor | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { head, last } from 'lodash';
import Popover from 'react-popover';
import { StyleSheet, css } from 'aphrodite';
import { tuningSelector } from '../../util/selectors';
import HoverableText from './HoverableText';
import { changeTuni... |
app/javascript/components/borrow_booking_calendar/BorrowBookingCalendar.js | leihs/leihs_legacy | import React from 'react'
import createReactClass from 'create-react-class'
import CalendarControls from './CalendarControls'
import CalendarContent from './CalendarContent'
import DateInput from './DateInput'
const inspect = window.Tools.inspect
const BorrowBookingCalendar = createReactClass({
displayName: 'BorrowB... |
src/App.js | sadist007/aladon | import React, { Component } from 'react';
import './App.scss';
class App extends Component {
constructor (props) {
super(props);
this.state = this.getInitialState();
}
getInitialState () {
return {}
}
render () {
return (
<div className="container-... |
src/js/wpecp-bind-editors.js | kfwebdev/wp-editor-comments-plus | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
var $ = jQuery;
function bindCancelClick(editor, settings) {
editor.windowManager.windows[0].on('click', function(event){
const clickText = $(event.target).text().toLowerCase();
if (clickText === 'cancel') {
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js | amido/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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function* load(limit) {
let i = 1;
while (i <= limit)... |
new-lamassu-admin/src/pages/UserManagement/modals/FIDOModal.js | naconner/lamassu-server | import { makeStyles } from '@material-ui/core/styles'
import React from 'react'
import Modal from 'src/components/Modal'
import { Button } from 'src/components/buttons'
import { Info2, P } from 'src/components/typography'
import styles from '../UserManagement.styles'
const useStyles = makeStyles(styles)
const Chang... |
node_modules/react-native-svg/elements/Path.js | MisterZhouZhou/ReactNativeLearing | import React from 'react';
import PropTypes from 'prop-types';
import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js';
import {PathAttributes} from '../lib/attributes';
import Shape from './Shape';
import {pathProps} from '../lib/props';
import extractProp... |
src/components/common/svg-icons/notification/airline-seat-legroom-extra.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomExtra = (props) => (
<SvgIcon {...props}>
<path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1.... |
versions/v1/components/Debugger/Inspector/JSONInput/index.js | cerebral/cerebral-debugger-prototype | import React from 'react';
import styles from './styles.css';
import {connect} from 'cerebral-view-react';
import {
isObject,
isArray
} from 'common/utils';
@connect()
class JSONInput extends React.Component {
constructor(props) {
super(props);
this.state = {
isValid: true,
value: this.props.... |
React Native/Demos/nearby/Nearby/views/toilet.js | AngryLi/ResourceSummary | /**
* Created by Liyazhou on 16/9/6.
*/
import React from 'react';
import {
View,
StyleSheet,
} from 'react-native';
export default class Toilet extends React.Component {
render() {
return (
<View></View>
)
}
}
const styles= StyleSheet.create({
}) |
app/components/HorizonalBarChart/Bar.js | thuy616/react-d3-charts | import React from 'react';
import PropTypes from 'prop-types';
type Props = {
data: PropTypes.object.isRequired,
xScale: PropTypes.func.isRequired,
yScale: PropTypes.func.isRequired,
colorScale: PropTypes.func.isRequired
}
export default ({
data,
xScale,
yScale,
colorScale
}: Props) => {
return (
... |
src/Input.js | cat-react/form | import React from 'react';
import PropTypes from 'prop-types';
import autoBind from 'react-autobind';
import Form from './Form';
export default function (WrappedComponent) {
class Input extends React.Component {
constructor(props, context) {
super(props, context);
this.changeValueT... |
react/features/settings/components/web/audio/AudioSettingsPopup.js | gpolitis/jitsi-meet | // @flow
import InlineDialog from '@atlaskit/inline-dialog';
import React from 'react';
import { areAudioLevelsEnabled } from '../../../../base/config/functions';
import {
getAudioInputDeviceData,
getAudioOutputDeviceData,
setAudioInputDeviceAndUpdateSettings,
setAudioOutputDevice as setAudioOutputDev... |
src/svg-icons/device/signal-wifi-3-bar-lock.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi3BarLock = (props) => (
<SvgIcon {...props}>
<path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-... |
app/components/ImageComponent.js | fakob/electron-test-v003 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
// import mpLogo from './../img/MoviePrint_Logo_v002_128.jpg';
// import base64ArrayBuffer from './../utils/base64ArrayBuffer'
let temp = [];
class ImageComponent extends Component {
componentDidMount() {
const { store } = this.contex... |
example_app/src/components/withViewport.js | blueberryapps/radium-bootstrap-grid | /**
* 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'; // eslint-disabl... |
src/index.js | irla/react-cv | //import 'bootstrap/scss/bootstrap.scss'
//import 'font-awesome/scss/font-awesome.scss'
import 'bootstrap/dist/css/bootstrap.css'
import 'font-awesome/css/font-awesome.css'
import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import Application from './containers/A... |
view/dva/src/routes/HomePage.js | xuzhenyang/ZeroCola | import React from 'react';
import { connect } from 'dva';
import MyLayout from '../components/MyLayout';
function HomePage({ children }) {
return (
<div>
<MyLayout>
{children}
</MyLayout>
</div>
);
}
function mapStateToProps() {
return {};
}
export default connect(mapStateToProps)... |
src/renderer/components/MapFilter/ObservationDialog/DateTimeField.js | digidem/ecuador-map-editor | // @flow
import React from 'react'
import { DateTimePicker } from '@material-ui/pickers'
type Props = {
value: Date | void,
onChange: (string | void) => any
}
const DateTimeField = ({ value, onChange, ...otherProps }: Props) => {
return (
<DateTimePicker
fullWidth
variant='inline'
inputVar... |
src/svg-icons/communication/chat-bubble-outline.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChatBubbleOutline = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/>
</SvgIcon>
);
CommunicationChatBubbleOutl... |
src/app/App.js | crisu83/timebox | import React from 'react';
import store from './store';
import AppConstants from './constants';
import TimerConstants from '../timer/constants';
import Header from '../header/Header';
import Picker from '../picker/Picker';
import Timer from '../timer/Timer';
import Footer from '../footer/Footer';
class App extends Rea... |
src/parser/warlock/affliction/modules/talents/Haunt.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Enemies from 'parser/shared/modules/Enemies';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import SpellLink f... |
packages/node_modules/@webex/react-component-button/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '@webex/react-component-icon';
import styles from './styles.css';
const propTypes = {
accessibilityLabel: PropTypes.string,
buttonClassName: PropTypes.string,
children: PropTypes.node,
iconColo... |
src/components/RadioList.js | angeloocana/angeloocana | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Radio from './Radio';
import { FormattedMessage } from 'react-intl';
import { contains } from 'ramda';
import { InvisibleSpan } from './Invisible';
const Ul = styled.ul`
display: flex;
flex-flow: row w... |
src/pages/404.js | angeloocana/tic-tac-toe-ai | import React from 'react';
class FourOFour extends React.PureComponent {
render() {
return (
<div>
<h1>Page not found</h1>
</div>
);
}
}
export default FourOFour;
|
node_modules/react-native/local-cli/templates/HelloWorld/index.android.js | RahulDesai92/PHR | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
packages/icons/src/md/av/CallToAction.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdCallToAction(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42 6c2.2 0 4 1.8 4 4v28c0 2.2-1.8 4-4 4H6c-2.2 0-4-1.8-4-4V10c0-2.2 1.8-4 4-4h36zm0 32v-6H6v6h36z" />
</IconBase>
);
}
export default Md... |
public/src/components/Layout/Layout.react.js | hugonasciutti/Challenge | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { FlatButton } from 'material-ui';
import AppBar from 'material-ui/AppBar';
import styles from './Layout.scss';
import Icon from '../../../icons/icons';
class _Layout extends React.Component {
render() {
... |
src/svg-icons/places/casino.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesCasino = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z... |
src/app/page/order_detail.js | borgnix/solid-winner | /**
* Created by luoop on 16-7-14.
*/
import React from 'react'
import {Component} from 'react'
import call from '../api'
import update from 'immutability-helper';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
class OrderDetail extends Component {
... |
pages/less.js | rorz/a27-site | import React from 'react'
import './example.less'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class Less extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi lessy friends`}
/>
<h1
cla... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | luoxiaoshenghustedu/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
examples/counter/containers/Root.js | phated/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
src/pages/about.js | stolinski/st2017 | import React from 'react';
import Link from 'gatsby-link';
import Layout from '../components/Layout';
import { Title, MainWrapper } from '../components/Headings';
import { Resume, FakeButtons } from '../components/AboutStyles';
export default class About extends React.Component {
render() {
return (
<Layo... |
app/components/common/nominationItem/index.js | liujia14/mayi | /*
name: listItem
desc: 提名团队列表组件
author: 俞雅菲
version:v1.0
*/
import React from 'react';
import ReactDOM from 'react-dom';
import './../commonCss/index.less';
import ajax from './../ajax/ajax.js';
import './index.less';
import { message,Modal } from 'antd';
import QueueAnim from 'rc-queue-anim'; //淡入淡出动画
const confirm ... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchSelectionTwo.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { countryOptions } from '../common'
// countryOptions = [ { value: 'af', flag: 'af', text: 'Afghanistan' }, ... ]
const DropdownExampleMultipleSearchSelectionTwo = () => (
<Dropdown placeholder='Select Country' fluid multiple search sele... |
client/src/js/components/Home.js | KevinBacas/TP2-Web-Semantique | import React from 'react';
import RequestList from './RequestList';
import DocumentActions from '../actions/DocumentActions';
import DocumentStore from '../stores/DocumentStore';
export default class Home extends React.Component {
constructor() {
super();
this.state = {
documents: false
}
}
h... |
src/svg-icons/device/usb.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceUsb = (props) => (
<SvgIcon {...props}>
<path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.... |
frontend/components/home_show/home_show_container.js | qydchen/SafeHavn | import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import HomeShow from './home_show';
import { fetchHome } from '../../actions/home_actions';
import { openModal } from '../../actions/modal_actions';
import { clearErrors } from '../../actions/session_actio... |
frontend/node_modules/recharts/demo/component/Sector.js | justdotJS/rowboat | import React, { Component } from 'react';
import { Surface, Sector } from 'recharts';
export default class Demo extends Component {
static displayName = 'SectorDemo';
render () {
return (
<Surface width={500} height={1000}>
<Sector fill="#ff7902" cx={200} cy={200} innerRadius={150} outerRadius=... |
webapp-src/src/Modal/Message.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
class Message extends Component {
constructor(props) {
super(props);
this.state = {
title: props.title,
label: props.label,
message: props.message
}
this.closeModal = this.closeModal.bind(this);
}
compon... |
01-basic-example/components/Home.js | nodeyu/jason-react-router-demos-v4 | import React from 'react';
class Home extends React.Component {
render() {
return (
<div>
<h2>Home</h2>
<p>Welcome To React Full Stack</p>
</div>
);
}
}
export default Home;
|
example/src/screens/types/tabs/TabTwo.js | junedomingo/react-native-navigation | import React from 'react';
import {View, Text} from 'react-native';
class TabOne extends React.Component {
render() {
return (
<View>
<Text>Tab Two</Text>
</View>
);
}
}
export default TabOne;
|
src/svg-icons/action/today.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToday = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>
</SvgIcon>
);
Ac... |
fields/types/cloudinaryimage/CloudinaryImageField.js | Pylipala/keystone | import _ from 'underscore';
import $ from 'jquery';
import React from 'react';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
/**
* TODO:
* - Remove dependency on jQuery
* - Remove dependency on underscore
*/
const SUPPORTED_TYP... |
docs/app/Examples/collections/Message/Types/MessageExampleList.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleList = () => (
<Message>
<Message.Header>New Site Features</Message.Header>
<Message.List>
<Message.Item>You can now have cover images on blog pages</Message.Item>
<Message.Item>Drafts will now auto-save whi... |
components/Forecast.js | s1hit/react-onsenui-redux-weather-edited | import React from 'react';
import WeatherIcon from '../components/WeatherIcon';
import {weatherCodeToColor} from '../util';
const WEEKDAYS = {
0: 'SUN',
1: 'MON',
2: 'TUE',
3: 'WED',
4: 'THU',
5: 'FRI',
6: 'SAT'
};
const styles = {
forecast: {
margin: '0 25px',
display: 'flex'
},
weekday:... |
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/Before/app/components/Login/index.js | phiratio/Pluralsight-materials | /**
*
* Login
*
*/
import React from 'react';
import styles from './styles.css';
import validator from 'email-validator';
import classNames from 'classnames';
class Login extends React.Component { // eslint-disable-line react/prefer-stateless-function
static propTypes = {
login: React.PropTypes.func.isRequired... |
admin/client/components/FooterBar.js | andreufirefly/keystone | import React from 'react';
import blacklist from 'blacklist';
var FooterBar = React.createClass({
propTypes: {
style: React.PropTypes.object,
},
getDefaultProps () {
return {
style: {},
};
},
getInitialState () {
return {
position: 'relative',
width: 'auto',
height: 'auto',
top: 0,
};
},... |
packages/@vega/tracks-tool/src/components/TracksArticlesTable.js | VegaPublish/vega-studio | /* eslint-disable react/jsx-no-bind, complexity */
import React from 'react'
import PropTypes from 'prop-types'
import styles from './styles/TracksArticlesTable.css'
import Menu from 'part:@lyra/components/menus/default'
import ArrowDropDown from 'part:@lyra/base/arrow-drop-down'
import {filterArticles, stagesSuperset... |
src/ProjectBoard.js | mikadamsterdam/react_for_project | import React from 'react';
import jQuery from 'jquery';
import Project from './Project';
import AddProject from './AddProject';
class ProjectBoard extends React.Component {
constructor(){
super();
this.state = {
projects: [
]
};
}
reloadProjectBoard(){
let component = this;
... |
components/slider/Slider.js | rubenmoya/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import styleShape from 'react-style-proptype';
import { themr } from 'react-css-themr';
import { round, range } from '../utils/utils';
import { SLIDER } from '../identifie... |
pewview/index.js | matthewcodes/PewView | window.$ = window.jQuery = require("jquery");
window.Tether = require('tether');
require('bootstrap');
require('./scss/index.scss');
import React from 'react';
import ReactDOM from 'react-dom';
import PewView from './components/PewView.jsx';
ReactDOM.render(<PewView />, document.getElementById('root'));
|
src/components/calendar/PersonalInfoSection.js | ChrisWhiten/react-rink | import React from 'react';
import {
HelpBlock,
FormGroup,
FormControl,
Col,
} from 'react-bootstrap';
import MaskedInput from 'react-text-mask';
import './styles/PersonalInfoSection.css';
function FieldGroup({ id, label, help, validationState, ...props }) {
return (
<FormGroup controlId={id} validationS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.