path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
node_modules/react-router/es6/Link.js | Giuny/Giuny.github.io | 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) { var target = {... |
src/routes/BoardList/components/Editor.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import ReactSummernote from 'react-summernote'
import $ from 'jquery'
import validator from 'validator'
import { Collapse } from 'react-bootstrap'
import '../../../../node_modules/react-summernote/dis... |
src/components/Contact/Contact.js | expdevelop/ultrastore | import React from 'react'
import { connect } from 'react-redux'
import {
FlexGrid, Container, Map,
Title, Content
} from 'components'
import { Phones, Schedule } from "../NavPhones/NavPhones"
import { parsePoints } from 'helpers'
import { socialLinks, navMail } from 'config'
import s from './Contact.sass'
const ma... |
src/svg-icons/action/important-devices.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionImportantDevices = (props) => (
<SvgIcon {...props}>
<path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | Jastrzebowski/react-router | import React from 'react';
class Announcement extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//announcement: COURSES[params.courseId].announcements[params.announcementId]
//});
//}
render () {
//var { title, body } = this.props.announcement;
var { courseId, annou... |
admin/client/App/App.js | andrewlinfoot/keystone | /**
* The App component is the component that is rendered around all views, and
* contains common things like navigation, footer, etc.
*/
import React from 'react';
import { Container } from './elemental';
import { Link } from 'react-router';
import { css } from 'glamor';
import MobileNavigation from './components... |
docs/app/Examples/collections/Message/Variations/MessageColorExample.js | jcarbo/stardust | import React from 'react'
import { Message } from 'stardust'
const MessageColorExample = () => (
<div>
<Message color='red'>Red</Message>
<Message color='orange'>Orange</Message>
<Message color='yellow'>Yellow</Message>
<Message color='olive'>Olive</Message>
<Message color='green'>Green</Message>... |
node_modules/react-router/es6/IndexLink.js | ajames72/MovieDBReact | 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; };
import React from 'react';
import Link from './Link';
/**
*... |
react/features/base/react/components/native/Linkify.js | jitsi/jitsi-meet | // @flow
import punycode from 'punycode';
import React, { Component } from 'react';
import ReactLinkify from 'react-linkify';
import { Text } from 'react-native';
import { type StyleType } from '../../../styles';
import Link from './Link';
type Props = {
/**
* The children of the component.
*/
ch... |
frontend/src/picturedisplay/components/MediaEditorDialog.js | mangosmoothie/picappa | import React from 'react'
import Dialog from 'material-ui/Dialog'
import TextField from 'material-ui/TextField'
import {Tabs, Tab} from 'material-ui/Tabs'
import SelectField from 'material-ui/SelectField'
import MenuItem from 'material-ui/MenuItem'
import { white, primary, secondary } from '../../colors'
const styles ... |
src/Layout.js | Hellenic/react-hexgrid | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Orientation from './models/Orientation';
import Point from './models/Point';
class Layout extends Component {
static LAYOUT_FLAT = new Orientation(3.0 / 2.0, 0.0, Math.sqrt(3.0) / 2.0, Math.sqrt(3.0),2.0 / 3.0, 0.0, -1.0 / 3.0, Math... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Base/index.js | ChamNDeSilva/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
src/js/app/header/HamburgerIcon.js | ludonow/ludo-beta-react | import React, { Component } from 'react';
import styled from 'styled-components';
const HamburgerIconWrapper = styled.div`
cursor: pointer;
display: inline-block;
position: relative;
@media (min-width: 769px) {
margin: 5px 15px 0 15px;
}
@media (max-width: 768px) {
margin: 22px... |
docs/src/app/components/Master.js | pradel/material-ui | import React from 'react';
import Title from 'react-title-component';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import spacing from 'material-ui/styles/spacing';
import styleResizable from 'material-ui/utils/styleResizable';
import getMuiTheme from 'material-ui/styles/get... |
techCurriculum/ui/solutions/5.1/src/components/CardForm.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
node_modules/react-native/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js | RahulDesai92/PHR | 'use strict';
/* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Platform,
View,
Keyboard,
LayoutAnimation,
UIManager,
} from 'react-native';
type Props = {
offset?: number,
}
type State = {
keyboardHeight: number
}
// Consider contributing this to the ... |
app/src/DragSubmit.js | sfelderman/inverted-index | import React from 'react';
import {connect} from 'react-redux';
import {updateIndex, addFile} from './actions';
import {createDict} from './util/createDict.js';
let DragSubmit = ({dict, sendData, uploadFile}) => {
const drop_handler = (ev) => {
ev.preventDefault();
// If dropped items aren't files, reject them
... |
js/setup.js | beinan/react_native_starter | import Expo from 'expo';
import React, { Component } from 'react';
//import { Provider } from 'react-redux';
import Router from './router'
import { View } from 'react-native'
import { StatusBar, Platform } from 'react-native';
//import configureStore from './configureStore';
import { createStore, combineReducers, app... |
lib/components/term-group.js | spncrgr/hyper | import React from 'react';
import {connect} from 'react-redux';
import Component from '../component';
import {decorate, getTermProps, getTermGroupProps} from '../utils/plugins';
import {resizeTermGroup} from '../actions/term-groups';
import Term_ from './term';
import SplitPane_ from './split-pane';
const Term = decor... |
app/components/Footer/index.js | kevinnorris/bookTrading | import React from 'react';
import A from 'components/A';
// import styled from 'styled-components';
import Wrapper from './Wrapper';
function Footer() {
return (
<Wrapper>
<section>
<A href="https://developers.google.com/books/" target="blank" rel="noopener noreferrer">Powered by Google Books</A>
... |
client/modules/Post/__tests__/components/PostCreateWidget.spec.js | openfocus/HTH-MERN | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
src/components/sidebar/index.js | fmsouza/wcode | import React from 'react';
import ActivityBar from '../activityBar';
import Explorer from '../explorer';
import Search from '../search';
import './styles.css';
export default class Sidebar extends React.Component {
state = { selectedTool: null };
renderContext() {
switch (this.state.selectedTool) {
... |
app/scripts/components/dev-tools.js | hustbill/network-verification-ui | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
defaultIsVisible={false}
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl... |
src/components/MaintainBusinessRulesRepository/AddBusinessRuleRepository.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { bindActionCreators, dispatch } from 'redux';
import { Field, reduxForm, formValueSelector } from 'redux-form';
import { Button } from 'react-bootstrap';
import _ from 'lodash';
import {
actionFe... |
src/views/Components/Analysis.js | pranked/cs2-web | import React from 'react';
import List from '../Components/List';
import UMLSet from '../Components/UMLSet';
import TestSet from '../Components/TestSet';
const Analysis = React.createClass({
propTypes: {
problem: React.PropTypes.object.isRequired,
},
render() {
let ana;
if (this.props.problem.analys... |
source/client/components/depricated/MovieInfo.js | worminer/React.js-Financial-News | import React from 'react'
import { Link } from 'react-router'
import Helpers from '../../utilities/Helpers'
export default class MovieInfo extends React.Component {
render () {
let genres = this.props.movie.genres.map(genre => {
return (
<strong key={this.props.movie._id + genre}>{ genre } </strong... |
stages/stage-2.1/app.js | aruberto/political-party-app | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Grid, Row, Col } from 'react-flexbox-grid';
import { VictoryChart, VictoryAxis, VictoryBar } from 'victory';
import parties from './parties';
import VoteForParty from './components/vote-for-party';
class App extends Component {
ren... |
client/index.js | azeezolaniran2016/ussd-assistant | import 'babel-polyfill'
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap';
import Routes from './Routes';
import './style/index.css';
ReactDOM.render(
<Router history=... |
src/components/source/mediaSource/SourceTopWordsContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { fetchPlatformWords } from '../../../actions/platformActions';
import withAsyncData from '../../common/hocs/AsyncDataContainer';
import withHelp from '../../common/hocs/... |
fields/types/boolean/BooleanColumn.js | snowkeeper/keystone | import React from 'react';
import Checkbox from '../../components/Checkbox';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var BooleanColumn = React.createClass({
displayName: 'BooleanColumn',
propTypes: {
col: React.PropTypes.object,
... |
frontend/src/AddMovie/ImportMovie/ImportMovies.js | geogolem/Radarr | import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import ImportMovieConnector from 'AddMovie/ImportMovie/Import/ImportMovieConnector';
import ImportMovieSelectFolderConnector from 'AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolderConnector';
import Switch from 'Components/Route... |
examples/01 Dustbin/Single Target/index.js | wagonhq/react-dnd | import React from 'react';
import Container from './Container';
export default class DustbinSingleTarget {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Single%20Target'>Browse the Source</a></b>
</p>
<p>
... |
app/components/H3/index.js | VonIobro/ab-web | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
examples/InputDatePicker.js | mattBlackDesign/react-materialize | import React from 'react';
import Input from '../src/Input';
import Row from '../src/Row';
export default
<Row>
<Input name='on' type='date' onChange={function(e, value) {}} />
</Row>;
|
example/react-native-material-cards-demo/App.js | SiDevesh/React-Native-Material-Cards | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ScrollView,
} from 'react-native';
import {
Card,
CardTitle,
CardContent,
CardAction,
CardButton,
CardImage,
} from 'react-native-material-cards';
export default class MaterialCards extends Component {
render() {
retur... |
src/elements/Icon/IconGroup.js | Semantic-Org/Semantic-UI-React | import cx from 'clsx'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, SUI } from '../../lib'
/**
* Several icons can be used together as a group.
*/
function IconGroup(props) {
const { children, classNa... |
fields/types/select/SelectField.js | Adam14Four/keystone | import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import { FormInput } from 'elemental';
/**
* TODO:
* - Custom path support
*/
module.exports = Field.create({
displayName: 'SelectField',
statics: {
type: 'Select',
},
valueChanged (newValue) {
// TODO: This shoul... |
docs/src/app/components/pages/components/Slider/ExampleStep.js | manchesergit/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
/**
* By default, the slider is continuous.
* The `step` property causes the slider to move in discrete increments.
*/
const SliderExampleStep = () => (
<Slider step={0.10} value={0.5} />
);
export default SliderExampleStep;
|
app/javascript/mastodon/features/mutes/index.js | musashino205/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
blueocean-material-icons/src/js/components/svg-icons/maps/local-shipping.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalShipping = (props) => (
<SvgIcon {...props}>
<path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.... |
demo/src/screens/AboutScreen/AboutScreen.js | googleinterns/measurement-library | import React from 'react';
import {GoQuestion} from 'react-icons/go';
import './AboutScreen.css';
const /** !JSX */ DESCRIPTION = <p>This page is a sample ecommerce
application with a complete implementation of
<a href={'https://support.google.com/analytics/answer/6014841'}>
{' Enhanced Ecommerce. '}</a>
Use this de... |
src/views/pages/search/index.js | zerubeus/sawt | import React from 'react';
import { connect } from 'react-redux';
import { searchActions } from '../../../core/search';
import ContentHeader from '../../components/content-header';
import Tracklist from '../../components/tracklist';
import PropTypes from 'prop-types';
export class SearchPage extends React.Component ... |
src/map/js/components/LayerPanel/FiresControls.js | wri/gfw-water | import {layerActions} from 'actions/LayerActions';
import LayersHelper from 'helpers/LayersHelper';
import {layerPanelText} from 'js/config';
import React from 'react';
let firesOptions = layerPanelText.firesOptions;
export default class FiresControls extends React.Component {
componentDidUpdate(prevProps) {
i... |
src/components/Root.js | andresilveira/yato | import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import TodoApp from './TodoApp';
import './Root.css';
const Root = ({ store }) => (
<div className='Root'>
<header>
<h1 className='Root... |
app/javascript/mastodon/components/icon.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Icon extends React.PureComponent {
static propTypes = {
id: PropTypes.string.isRequired,
className: PropTypes.string,
fixedWidth: PropTypes.bool,
};
render () {
const { id, c... |
example/examples/Overlays.js | hzdg/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.092... |
src/FadeMixin.js | roderickwang/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import deprecationWarning from './utils/deprecationWarning';
// TODO: listen for onTransitionEnd to remove el
function getElementsAndSelf (root, classes){
let els = root.querySelectorAll('.' + classes.join('.'));
els = [].map.call(els, function(e... |
src/components/search_bar.js | JosephLeon/redux-simple-starter-tutorial | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
}
render() {
return (
<div className="col-md-8 search-bar">
<h1>Youtube video search</h1>
Search: <input
value={this.state.term}
onChange={event ... |
mockTrello/src/App.js | balaSpyrus/wave11 | import React from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
import './App.css';
import { DndProvider } from 'react-dnd'
import HTML5Backend from 'react-dnd-html5-backend'
import { mockData, NavBar, AddOne, List } from './components';
class App extends React.Component {
constructor(props) {
... |
src/svg-icons/image/add-a-photo.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAddAPhoto = (props) => (
<SvgIcon {...props}>
<path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-... |
lib/BackgroundDecorator.js | timomeh/react-native-material-bottom-navigation | import React from 'react'
import PropTypes from 'prop-types'
import { View, StyleSheet } from 'react-native'
import BackgroundRippleAnimation from './BackgroundRippleAnimation'
export default class BackgroundDecorator extends React.Component {
static propTypes = {
children: PropTypes.func.isRequired
}
stat... |
src/component/RenderJSON.js | dentemple/developer-portfolio | import React from 'react'
import PropTypes from 'prop-types'
const SectionContainer = ({children}) => {
const style = {
backgroundColor: '#e6e6e6',
fontSize: '0.8em',
margin: 20,
padding: 0,
paddingRight: 20,
paddingLeft: 20,
border: 'solid 1px #999999',
borderRadius: 10,
textAlig... |
src/main.js | jobdoc/selections-app | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
import injectTapEventPlugin from 'react-tap-event-plugin'
// ========================================================
// Touch events for material-ui
// ========... |
frontend/src/components/Aside/Aside.js | rocknsm/docket | /*
* Copyright (c) 2017, 2018 RockNSM.
*
* This file is part of RockNSM
* (see http://rocknsm.io).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... |
app/containers/LanguageProvider/index.js | joegattnet/joegatt.net-client | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/router.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareRouter = (props) => (
<SvgIcon {...props}>
<path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1 .9 0 1.8.3 2.5 1l.8-.8zM... |
app/imports/ui/pages/user/Annotations.js | mondrus/meteor-starter | /**
* @Author: philip
* @Date: 2017-05-29T12:59:12+00:00
* @Filename: Favourites.js
* @Last modified by: philip
* @Last modified time: 2017-05-29T13:03:20+00:00
*/
import React from 'react';
export default () => (
<div>Annotations</div>
);
|
packages/generator-react-redux-application/template/src/components/App.js | abouthiroppy/dish | // @flow
import React from 'react';
import FilterName from '../containers/FilterName';
import DisplayName from '../containers/DisplayName';
import styles from '../styles/app.css';
const App = () => (
<div className={styles.container}>
<DisplayName />
<FilterName />
</div>
);
export default App;
|
examples/js/remote/remote-store-delete-row.js | rolandsusans/react-bootstrap-table | import React from 'react';
import RemoteDeleteRow from './remote-delete-row';
function getProducts() {
const products = [];
const startId = products.length;
for (let i = 0; i < 12; i++) {
const id = startId + i;
products.push({
id: id,
name: 'Item name ' + id,
price: Math.floor((Math.ra... |
client/modules/core/components/navigation.js | Entropy03/jianwei | import React from 'react';
const Navigation = () => (
<div>
<b> Navigation: </b>
<a href="/">Home</a> |
<a href="/new-post">New Post</a>
</div>
);
export default Navigation;
|
src/app/components/team/TeamComponent.js | meedan/check-web | import React, { Component } from 'react';
import { createFragmentContainer, graphql } from 'react-relay/compat';
import PropTypes from 'prop-types';
import deepEqual from 'deep-equal';
import { FormattedMessage } from 'react-intl';
import { browserHistory } from 'react-router';
import Tabs from '@material-ui/core/Tabs'... |
server/dashboard/js/components/LoadingSpinner.react.js | moigagoo/mzbench | import React from 'react';
class LoadingSpinner extends React.Component {
render() {
return (
<div className="alert alert-info" role="alert">
<span className="glyphicon glyphicon-refresh glyphicon-spin"></span>
{this.props.children}
</div>
... |
src/app.js | mtrabelsi/universal-javascript-boilerplate | import React from 'react'
import {render} from 'react-dom'
import { Router, Route , browserHistory} from 'react-router'
import routes from './routes'
import Nav from './modules/navPage'
import Page1 from './modules/page1'
import Page2 from './modules/page2'
import NotFound from './modules/notfound'
if(typeof window =... |
node_modules/reflexbox/docs/data.js | HasanSa/hackathon |
import React from 'react'
import { Flex, Box, Grid } from '../src'
Flex.displayName = 'Flex'
Box.displayName = 'Box'
const examples = [
<Flex wrap>
<Box col={12} sm={6} lg={3}>Box</Box>
<Box col={12} sm={6} lg={3}>Box</Box>
<Box col={12} sm={6} lg={3}>Box</Box>
<Box col={12} sm={6} lg={3}>Box</Box>... |
src/svg-icons/image/control-point-duplicate.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageControlPointDuplicate = (props) => (
<SvgIcon {...props}>
<path d="M16 8h-2v3h-3v2h3v3h2v-3h3v-2h-3zM2 12c0-2.79 1.64-5.2 4.01-6.32V3.52C2.52 4.76 0 8.09 0 12s2.52 7.24 6.01 8.48v-2.16C3.64 17.2 2 14.79 2 ... |
src/components/common/svg-icons/hardware/laptop.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptop = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/>
</SvgIcon>
);
HardwareLaptop = pure(Hardwa... |
src/client/components/dialogs/DeleteDialog.js | vanpaz/vbi | import React from 'react'
import Dialog from 'material-ui/lib/dialog'
import FlatButton from 'material-ui/lib/flat-button'
import bindMethods from '../../utils/bindMethods'
/**
* Usage:
*
* <DeleteDialog ref="deleteDialog" />
*
* this.refs.deleteDialog.show({
* title: 'Delete scenario',
* ... |
mas-interest-rate/frontend/src/main/frontend/src/App.js | helloworld-2013/java-projects | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import './App.css';
import { SimpleDashboard } from './components';
class App extends Component {
render() {
return (
<MuiThemeProvider>
<div className="App">
<header>
... |
src/components/DBTable/InnerTableRenderUtils.js | lijinfengworm/ant-design-reactjs | import React from 'react';
import TableUtils from './TableUtils.js';
import Logger from '../../utils/Logger';
import Utils from '../../utils';
const logger = Logger.getLogger('InnerTableRenderUtils');
// 自定义操作字段, 在dataSchema中是用一个特殊的key来标识的
const ACTION_KEY = 'singleRecordActions';
/**
* 表格的render函数有个比较蛋疼的问题, 就是this... |
client/components/TaskAdd.js | Luzgan/checklist-v2-graphql-apollo | /**
* Created by luzga_000 on 06/07/2017.
*/
import React, { Component } from 'react';
import { graphql, gql } from 'react-apollo';
import PropTypes from 'prop-types';
import TaskStatusEnum from '../enums/TaskStatusEnum';
class TaskAdd extends Component {
constructor() {
super();
this.addTask.bind(this);
... |
frontend/components/Home.js | theplastictoy/rails-react | import React from 'react';
class Home extends React.Component {
render() {
return <div>If you're seeing this, everything is working.</div>
}
}
export default Home;
|
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | cnbin/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
src/routes/account/Role/List.js | pmg1989/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Modal, Menu } from 'antd'
import { DataTable, DropMenu } from 'components'
import { UPDATE, DELETE } from 'constants/options'
import styles from './List.less'
const confirm = Modal.confirm
function List ({
accountRole: {
list,
},
loading,... |
step9-redux/node_modules/react-router/es6/RouterContext.js | jintoppy/react-training | '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; };
import invariant from 'invariant';
import Reac... |
src/containers/create-petition-target.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { loadTargets } from '../actions/createPetitionActions'
import { TargetForm } from 'LegacyTheme/form/target-select'
import NationalTargetSelect from 'LegacyTheme/form/target-select/national'
import StateTargetSel... |
examples/shared/wrapInTestContext.js | numso/react-dnd | import React, { Component } from 'react';
import TestBackend from 'react-dnd/modules/backends/Test';
import { DragDropContext } from 'react-dnd';
export default function wrapInTestContext(DecoratedComponent) {
@DragDropContext(TestBackend)
class TestStub extends Component {
render() {
return <DecoratedCo... |
src/routes.js | TerryCapan/twitchBot | import React from 'react';
import { Route, IndexRoute } from 'react-router';
/* containers */
import { App } from './components/App';
import { Home } from './components/Home';
import { About } from './components/About';
import { ChatChannelDisplay } from './components/ChatChannelDisplay';
// import { List } from 'cont... |
node_modules/react-native/Libraries/Components/TextInput/TextInput.js | jasonlarue/react-native-flashcards | /**
* 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... |
frontend-semantic-ui-react/app/js/sites/Dashboard.js | lusarz/todos-manager | import React from 'react';
import { Container, Header } from 'semantic-ui-react';
import Menu from '../components/Menu'
export default class Dashboard extends React.Component {
render() {
return (
<Container>
<Menu />
<Header as='h2'>Header</Header>
<p>Lorem ipsum dolor sit amet, ... |
src/components/Avatar.js | Journey316/resume | import React from 'react';
const Avatar = ({ onPressAuth, onActive }) => {
const avatar = 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/811583/logo.jpg';
let classPulse = 'pulse';
if(onActive) {
classPulse += ' active';
} else {
classPulse = 'pulse'
}
return (
<div className="avatar">
<d... |
src/components/Note/Note.js | gramulos/noteapp | import React from 'react'
import Styles from './note.scss'
const Note = ({color, text}) => {
return (
<div className={`col-sm-4 ${Styles.noteBox}`}>
<div className={Styles.note} style={{backgroundColor: color}}>
{text}
</div>
</div>
)
}
export default Note
|
examples/js/shopping-list/client/components/ShoppingListRemover.js | reimagined/resolve | import React from 'react'
import { Button } from 'react-bootstrap'
import { useCommand } from '@resolve-js/react-hooks'
const ShoppingListRemover = ({ shoppingListId, onRemoveSuccess }) => {
const removeShoppingListCommand = useCommand(
{
type: 'removeShoppingList',
aggregateId: shoppingListId,
... |
app/routes.js | Sebkasanzew/Electroweb | /* 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... |
src/components/footer.js | prodigygod0209/prodigygod0209.github.io | import React from 'react';
const Footer = () => {
return(
<footer>
<svg className="K" width="100" height="100">
<path d="M20 100 L20 0 L40 0 L40 40 L60 0 L80 0 L55 50 L80 100 L60 100 L40 60 L40 100 Z" strokeLinejoin="round" stroke=" rgba(63, 81, 181, 0.5)" strokeWidth="0" strokeLinecap... |
src/svg-icons/image/brightness-2.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness2 = (props) => (
<SvgIcon {...props}>
<path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/>
</SvgIcon>
);
I... |
src/components/MakeBarChart/MakeBarChart.js | Zoomdata/nhtsa-dashboard | import flowRight from 'lodash.flowright';
import { toJS } from 'mobx';
import React, { Component } from 'react';
import BarChart from '../BarChart/BarChart';
import { observer, inject } from 'mobx-react';
class MakeBarChart extends Component {
render() {
const { store } = this.props;
const makeBarChartStyle ... |
src/routes/home/Home.js | zsu13579/pinterest-apollo | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/SplitToggle.js | thealjey/react-bootstrap | import React from 'react';
import DropdownToggle from './DropdownToggle';
export default class SplitToggle extends React.Component {
render() {
return (
<DropdownToggle
{...this.props}
useAnchor={false}
noCaret={false}
/>
);
}
}
SplitToggle.defaultProps = DropdownToggle... |
react-shrine-network-aware-code-splitting/src/components/ProductSmallCardList/ProductSmallCardList.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
app/react-icons/fa/eraser.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaEraser extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m18.6 30.6l7-7.9h-16l-6.9 7.9h15.9z m21-22.3q0.4 0.7 0.2 1.5t-0.6 1.3l-18.6 2... |
src/pages/404.js | aberkow/gatsby-blog | 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
|
client/components/MainRecipe.js | forkful/forkful | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { push } from 'react-router-redux';
import actions from '../actions/index.js';
import { forkRecipe, fetchRecipes, fetchRecipe, fetchUser } from '../utils/utils';
import RecipeContainer from './R... |
docs/app/Examples/collections/Grid/Types/GridExampleDividedPhrase.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleDividedPhrase = () => (
<Grid columns='three' divided>
<Grid.Row>
<Grid.Column>
<Image src='/assets/images/wireframe/media-paragraph.png' />
</Grid.Column>
<Grid.Column>
<Image src='/asset... |
src/components/app.js | RobertKis/ReduxYouTube | import React, { Component } from 'react';
import SearchBar from '../containers/search-bar';
import VideoList from '../containers/video-list';
import CurrentItem from '../containers/current-item';
import SettingsBar from '../containers/settings-bar';
export default class App extends Component {
render() {
return... |
src/components/Body.js | ayoisaiah/markdown-previewer | import React from 'react';
let Markdown = require('react-remarkable');
const Body = (props) => {
return (
<section className="app-body">
<section className={"edit-area " + (props.mobilePreview ? "hidden" : "show")}>
<textarea className="editor" id="editor" draggable="false" value={props.markdown} ... |
src/components/Toast.container.js | chrisxclash/play-midnight | import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { selectors as optionSelectors } from 'modules/options';
import { selectors } from 'modules/toast';
import { stripTransition, TRANSI... |
app/components/layout/newProject/newProjectDescription.js | communicode-source/communicode | import React from 'react';
import PropTypes from 'prop-types';
import styles from './../../../assets/css/pages/createProject.scss';
class DescriptionBox extends React.Component {
constructor(props) {
super(props);
this.props = props;
}
componentWillReceiveProps(props) {
this.props ... |
src/routes/home/index.js | HildoBijl/DondersHackathonTR | /**
* 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 Home from './Home';
impo... |
src/routes/UIElement/search/index.js | 102010cncger/antd-admin | import React from 'react'
import { Search } from 'components'
import { Table, Row, Col, Card } from 'antd'
const SearchPage = () => (<div className="content-inner">
<Row gutter={32}>
<Col lg={8} md={12}>
<Card title="默认">
<Search />
</Card>
</Col>
<Col lg={8} md={12}>
<Card titl... |
modules/Redirect.js | sleexyz/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './URLUtils';
import { falsy } from './PropTypes';
var { string, object } = React.PropTypes;
export var Redirect = React.createClass({
statics: {
createRouteF... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.