path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/mineral-ui-icons/src/IconAssignmentReturned.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconAssignmentReturned(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {..... |
app/components/elements/FontStyles.js | tidepool-org/blip | import React from 'react';
import Styled from 'styled-components';
import { Heading, Text, Link } from 'rebass/styled-components';
import {
borders,
colors,
fonts,
fontSizes,
fontWeights,
lineHeights,
space,
} from '../../themes/baseTheme';
export const H1 = props => (
<Heading {...props} as="h1">
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js | devex-web-frontend/create-react-app-dx | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
src/pages/miss-chilli.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Miss Chilli' />
)
|
client/src/components/Draftail/Tooltip/Tooltip.js | FlipperPA/wagtail | import PropTypes from 'prop-types';
import React from 'react';
const TOP = 'top';
const LEFT = 'left';
const TOP_LEFT = 'top-left';
const getTooltipStyles = (target, direction) => {
const top = window.pageYOffset + target.top;
const left = window.pageXOffset + target.left;
switch (direction) {
case TOP:
r... |
src/decorators/withViewport.js | magnusbae/fluffy-beat | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1600, height: 800}; // Default si... |
frontend/js/components/SessionNewForm.js | antoniovj1/infraestructura_virtual_ugr | import React from 'react';
import { connect } from 'react-redux';
import { Field, FieldArray, reduxForm } from 'redux-form';
import {TextField} from 'redux-form-material-ui';
import PropTypes from 'prop-types';
import Button from 'material-ui/Button';
import { withStyles } from 'material-ui/styles';
import Grid from '... |
src/assets/scripts/components/input/TextInput.js | Eastern-Research-Group/epa-digital-services-rfi-js | import React, { Component } from 'react';
export class TextInput extends Component {
constructor(props) {
super(props);
this.state = {
val: ''
};
}
_handleTextInput(e) {
e.preventDefault();
this.setState({val: e.target.value});
}
_handleSubmit(e... |
admin/src/components/Footer.js | belafontestudio/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import { Container } from 'elemental';
var Footer = React.createClass({
displayName: 'Footer',
propTypes: {
appversion: React.PropTypes.string,
backUrl: React.PropTypes.string,
brand: React.PropTypes.string,
Us... |
src/encoded/static/components/browse/components/SelectedFilesController.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import memoize from 'memoize-one';
import _ from 'underscore';
import { object, console, analytics, logger } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { expFxn } from './../../util';
// Memoized helper functio... |
src/components/DataWrapper.js | elstgav/step-up | import React from 'react'
class DataWrapper extends React.Component {
getChildContext() {
return {
data: this.props.data
}
}
render () {
return this.props.children
}
}
DataWrapper.childContextTypes = {
data: React.PropTypes.object,
}
DataWrapper.propTypes = {
children: React.PropTypes... |
src/components/Board.js | kjirou/reversi-tactics | import { Component } from 'flumpt';
import React from 'react';
import { STYLES } from '../consts';
import EventHandlerCarrier from '../lib/EventHandlerCarrier';
import Square from './Square';
export default class Board extends Component {
_createSquareElements() {
const elements = [];
this.props.squares.f... |
app/index.js | lmtm/bc-planner | import './styles/index.styl'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from './store'
import App from './components/app'
import calendar from './calendar-api'
import firebase from './firebase-api'
calendar.init(::store.dispatch)
firebase.init(::st... |
src/svg-icons/av/games.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvGames = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
AvGames = pure(AvGames);
AvGames.dis... |
src/routes.js | villith/dota-stack-stats | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import MainPage from './components/main/MainPage';
export default (
<Route path="/" component={App}>
<IndexRoute component={MainPage} />
</Route>
);
|
clients/blocks/components/LinkToFormEditor.js | Desertsnowman/Caldera-Forms | import { __ } from '@wordpress/i18n';
import React from 'react';
/**
* Basic component to link the form selected in the Gutenberg Block to its edition page
*
* @param props
* @return {XML}
* @constructor
*/
export const LinkToFormEditor = (props) => {
const href = "/wp-admin/admin.php?edit=" + props.formId + "&p... |
src/routes/contact/index.js | ynu/res-track-wxe | /**
* 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 Contact from './Contact'... |
node_modules/react-router/es6/Lifecycle.js | gurusewak/redux101 | import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On stan... |
src/screens/Ranking/NovelRankingPreview.js | alphasp/pxview | import React, { Component } from 'react';
import { View, InteractionManager, StyleSheet } from 'react-native';
import { connect } from 'react-redux';
import { Text } from 'react-native-paper';
import Icon from 'react-native-vector-icons/FontAwesome';
import { connectLocalization } from '../../components/Localization';
... |
docs/app/Examples/views/Item/Variations/ItemExampleFloated.js | clemensw/stardust | import React from 'react'
import { Button, Image as ImageComponent, Item } from 'semantic-ui-react'
const paragraph = <ImageComponent src='http://semantic-ui.com/images/wireframe/short-paragraph.png' />
const ItemExampleFloated = () => (
<Item.Group relaxed>
<Item>
<Item.Image size='small' src='http://sem... |
imports/ui/components/Sorting/Sorting.js | muhammadsasmito/meteor-solr | /* global window */
/* eslint-disable react/prefer-es6-class */
import React from 'react';
import { _ } from 'meteor/underscore';
import SearchSort from '../../../api/search/search_sort';
const Sorting = React.createClass({
propTypes: {
searchParams: React.PropTypes.object.isRequired,
handleSearchParamsUp... |
app/containers/App/index.js | ajanthvofox/react-crud | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/parser/monk/windwalker/modules/spells/ComboStrikes.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox from 'interface/others/StatisticBox';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatNumber, formatDuration } from 'com... |
src/index.js | eduardopoleo/blog-fe | import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App';
ReactDOM.render(<App />, document.getElementById('root'));
|
packages/material-ui-icons/src/SettingsPhone.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SettingsPhone = props =>
<SvgIcon {...props}>
<path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.... |
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/local-movies.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalMovies = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</SvgIcon>
);
MapsLocalMovies.displayN... |
webpack/containers/Application/Headers.js | snagoor/katello | import React from 'react';
import { Helmet } from 'react-helmet';
const Header = props => (
<Helmet>
{Object.entries(props).map(([TagName, value]) =>
<TagName key={TagName}>{value}</TagName>)};
</Helmet>
);
export default Header;
|
src/components/GaugeChart/GaugeChart.js | Zoomdata/nhtsa-dashboard-2.2 | import styles from './GaugeChart.css';
import React, { Component } from 'react';
import echarts from 'echarts/lib/echarts';
import 'echarts/lib/chart/gauge';
export default class GaugeChart extends Component {
shouldComponentUpdate() {
return false;
}
componentWillReceiveProps(nextProps) {
... |
docs/src/NotFoundPage.js | mengmenglv/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const NotFoundPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="" />
<PageHeader
title="404"
subT... |
client/src/common/components/Home.js | Pitzcarraldo/spring-react-redux-universal-example | import React, { Component } from 'react';
class Home extends Component {
render() {
return (
<div className="posts">
<div className="post">
<h1 className="post-title">Introducing Redux Universal example</h1>
<p>The theme has been based on <a href="http://lanyon.getpoole.com/">Lanyo... |
source/pages/users/index.js | simonewebdesign/npm-strap | import React from 'react';
import '../../polyfills/array/fill';
export default class UsersPage extends React.Component {
render() {
let usersList = new Array(20).fill(1).map((v,k) => {
return <li><a href={`/users/${k+1}`}>User #{k+1}</a></li>;
});
return (
<div>
<h1>Listing users</h... |
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/uploadbutton.js | patel344/Mr.Miner | import PropTypes from 'prop-types'
import React from 'react'
const minimumContracts = 14
const UploadButton = ({contracts = minimumContracts, actions}) => {
const onUploadClick = (type) => () => {
if (contracts < minimumContracts) {
SiaAPI.showError({
title: 'Sia-UI files error',
content: 'Not enough co... |
src/Toggle/Toggle.js | skarnecki/material-ui | import React from 'react';
import transitions from '../styles/transitions';
import Paper from '../Paper';
import EnhancedSwitch from '../internal/EnhancedSwitch';
function getStyles(props, context, state) {
const {disabled} = props;
const {
baseTheme,
toggle,
} = context.muiTheme;
const toggleSize = ... |
src/svg-icons/action/pan-tool.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPanTool = (props) => (
<SvgIcon {...props}>
<path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4... |
src/application/App/PlayerControls/Next.js | AoDev/kaiku-music-player | import PropTypes from 'prop-types'
import React from 'react'
const nextIcon = <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path className="icon-path" d="M4.1 32c.5 0 1.2.1 1.7-.3l14.3-12.1v9.6c0 1.5 1.2 2.8 2.8 2.8h4.2c1.5 0 2.8-1.2 2.8-2.8V2.8c0-1.5-1.2-2.8-2.8-2.8H23c-1.5 0-2.8... |
app/views/lib/PlaybackWrapper.js | thomasboyt/bipp | import React from 'react';
import { connect } from 'react-redux';
import {
playNote,
} from '../../actions/PlaybackActions';
import {keyCodeColMap as colMap} from '../../config/constants';
/*
* Wrapper that handles playing notes during playback
*
* This uses a different system from the rest of the hotkeys in th... |
example/src/scripts/pages/UIKit/Buttons/index.js | vyorkin-personal/erlyeditor | import React from 'react';
import css from 'react-css-modules';
import { Button } from 'erlyeditor';
import styles from './styles';
export const Buttons = () => (
<ul styleName='button-demo'>
<li><Button label='visibility' filled rounded /></li>
<li><Button label='timeline' filled small raised rounded /></l... |
app/javascript/mastodon/features/follow_requests/index.js | cybrespace/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... |
app/src/components/showQuestions/showQuestionsComponent.js | MartinKostadinov/FeTest-with-React-and-Redux | import React from 'react';
import classNames from 'classnames';
import { saveCorrectAnswersScore, incQuestionCount, getCurrentCount, showEndScore } from '../../actions/getCurrentQuestion';
import { showQuestions } from '../../actions/showQuestionsAction';
import BtnNextQuestion from './btnNext/btnNextComponent';
impo... |
client/src/components/DownloadCsvLinks.js | mit-teaching-systems-lab/swipe-right-for-cs | import React, { Component } from 'react';
import _ from 'lodash';
import PropTypes from 'prop-types';
// Render a set of links that will download a CSV
// This splits across multiple links, since large CSV cause problems
// in browsers.
class DownloadCsvLinks extends Component {
render() {
const {headers, row... |
src/svg-icons/maps/directions-bike.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsBike = (props) => (
<SvgIcon {...props}>
<path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.... |
docs/app/Examples/views/Item/Variations/ItemExampleRelaxed.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Item } from 'semantic-ui-react'
const ItemExampleRelaxed = () => (
<Item.Group relaxed>
<Item>
<Item.Image size='tiny' src='http://semantic-ui.com/images/wireframe/image.png' />
<Item.Content verticalAlign='middle'>
<Item.Header as='a'>12 Years a Slave</Ite... |
app/static/src/diagnostic/Norm_modules/NewNormIsolationForm.js | vsilent/Vision | import React from 'react';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
import {NotificationContainer, NotificationManager} from 'react-notifications';
import TextField from './TextField';
import... |
src/clincoded/static/components/inputs/object.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import createReactClass from 'create-react-class';
import { listing_views } from '../globals';
import { ResultTable } from '../search';
var fetched = require('../fetched');
var openLinksInNewWindow = function(e) {
if (e.isDefaultPrevented()) return;
// ... |
src/config/universalRouter.js | msangui/redux-boilerplate | import React from 'react';
import Router from 'react-router';
import routes from './routes';
import { Provider } from 'react-redux';
const getFetchData = (component={}) => {
return component.DecoratedComponent ?
getFetchData(component.DecoratedComponent) :
component.fetchData;
};
export function createTrans... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | akingyin1987/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ActivityHeader extends React.Component {
static propTypes = {
close: React.PropTypes.func,
title: React.PropTypes.stri... |
src/AppBundle/Resources/static/jsx/app/CourseView.js | viszerale-therapie/simple-courses | 'use strict';
import $ from 'jquery'
import URL from 'js-handy-url';
import moment from 'moment';
import React from 'react';
import ReactDOM from 'react-dom';
import tl from '../util/translator';
import app from './app';
import actions from '../util/actions';
import messaging from '../util/messaging';
import CourseView... |
src/app/components/Status/index.js | mike182uk/CoffeeWriter | import React from 'react'
import './styles.css'
function buildStatusString (status) {
return (
<div className='Status__error'>
<p className='Status__error__type'>Syntax Error</p>
<p className='Status__error__message'>{status.message}</p>
<p className='Status__error__location'>Line {status.line... |
react-redux-tutorial/06-params/modules/App.js | react-scott/react-learn | import React from 'react'
import NavLink from './NavLink'
export default React.createClass({
render() {
console.log('app = ' + this.props.children);
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/about">About</NavLink></li>
<li><Nav... |
generators/base/templates/src/pages/Home/Home.component.js | bamlab/generator-rn-toolbox | // @flow
import React, { Component } from 'react';
import { Platform, Text, View } from 'react-native';
import { Page } from '<%= appName %>/src/components';
import styles from './Home.style';
const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' +
'Cmd+D or shake for dev menu',
android: 'D... |
src/index.js | clarkritchie/strava-bike-service-web | import React from 'react';
import ReactDOM from 'react-dom';
import StravaBikeServiceWeb from './StravaBikeServiceWeb';
ReactDOM.render(
<StravaBikeServiceWeb />,
document.getElementById('root')
);
|
src/components/layouts/BaseLayout.js | rokka-io/rokka-dashboard | import PropTypes from 'prop-types'
import React from 'react'
import cx from 'classnames'
import ErrorBoundary from '../ErrorBoundary'
import Header from '../Header.js'
import Footer from '../Footer.js'
import Sidebar from '../Sidebar.js'
import Alert from '../Alert'
const BaseLayout = ({ className, alert = null, showS... |
es6/DatePicker/TimeSelect.js | yurizhang/ishow | var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, recei... |
src/About.js | colinmorris/SongSim | import React, { Component } from 'react';
import { Link } from 'react-router';
import './About.css';
const IMG_DIR = '/img/about/';
// TODO: maybe move chapter/section data into a separate module
const chapter_names = ['default', 'intro', 'advanced'];
const SECTION_METADATA = {
intro: {
panelClass: "col-xs-12"... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js | HelpfulHuman/helpful-react-scripts | /**
* 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() {
return [
{ id: 1, name: '1' },
... |
public/js/components/basicList.js | MelanistOnca/bookList | import React from 'react';
import { render } from 'react-dom';
import ListView from './listView';
export default class BasicList extends React.Component {
setSelectedListKey(listKey, selectList){
// console.log(listKey, 'was listKey in setSelectedListKey in basicList.js');
// console.log(selectList, 'was s... |
src/components/NavBar.js | janoist1/route-share | import React from 'react'
import { IndexLink, Link } from 'react-router'
import {
Collapse,
Navbar,
NavbarToggler,
NavbarBrand,
Nav,
NavItem,
NavLink,
} from 'reactstrap'
class NavBar extends React.Component {
state = {
open: false,
}
toggle = () => {
this.setState({
open: !this.stat... |
src/svg-icons/av/high-quality.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHighQuality = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1.... |
client/index.js | chemdemo/easy-api | /*
* @Author: dmyang
* @Date: 2016-10-21 15:10:19
* @Last Modified by: dmyang
* @Last Modified time: 2016-12-27 20:40:22
*/
'use strict'
// import 'babel-polyfill'
import { trigger } from 'redial'
import React from 'react'
import ReactDOM from 'react-dom'
import Router from 'react-router/lib/Router'
import ... |
src/js/components/Fields/PinButton.js | jaedb/Iris | import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import * as pusherActions from '../../services/pusher/actions';
import Icon from '../Icon';
import Button from '../Button';
const PinButton = ({ item, unpinIcon = 'star', pinIcon = 'star_border' }) => {
if (!item || !item.name)... |
src/js/components/ItemDescription/index.js | waagsociety/ams.datahub.client | import React from 'react'
export default function ItemDescription(contents) {
return contents.map((text, index) => <p key={index}>{text}</p>)
} |
src/routes/Counter/components/Counter.js | sonofbjorn/circle-ci-test | import React from 'react'
import PropTypes from 'prop-types'
export const Counter = ({ counter, increment, doubleAsync }) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {counter}</h2>
<button className='btn btn-primary' onClick={increment}>
Increment
</button>
{' '}
<button className... |
packages/material-ui-icons/src/Warning.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Warning = props =>
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" />
</SvgIcon>;
Warning = pure(Warning);
Warning.muiName = 'SvgIcon';
export default Warning;
|
src/views/routes.js | ManYang/react-yelp-web | import React from 'react'
import {Route, IndexRoute} from 'react-router'
import Container from './Container'
import Map from './Map'
import Detail from './Detail'
export const makeMainRoutes = () => {
return (
<Route path="/" component={Container}>
<Route path="map" component={Map}>
<Route path="det... |
ajax/libs/react-instantsearch/5.3.2/Connectors.js | sufuf3/cdnjs | /*! React InstantSearch 5.3.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports',... |
src/js/components/ProjectsList/ProjectsList.js | TheoZimm/SaltyDashboard | import React from 'react';
import Box from 'grommet/components/Box';
import {RoleAwareComponent} from 'react-router-role-authorization';
import Table from 'grommet/components/Table';
import TableRow from 'grommet/components/TableRow';
import Heading from 'grommet/components/Heading';
import axios from 'axios';
import F... |
app/js/components/RollPic/index.js | fullPistol/React-demo | import React, { Component } from 'react';
import BannerAnim, { Element } from 'rc-banner-anim';
import RollItem from './RollItem';
import RollDots from './RollDots';
import styles from './index.less'
class RollPic extends Component {
constructor(props) {
super(props);
this.state = {
now:0
}
}
//滚动
run... |
src/containers/app/vouchers/voucher_original.js | w280561543/financial | import React from 'react';
class VoucherOriginal extends React.Component {
render() {
return(<div>VoucherOriginal</div>);
}
}
export default VoucherOriginal; |
app/containers/RepoListItem/index.js | Third9/mark-one | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { FormattedNumber } from 'react-intl';
import { makeSelectCurrentUser } from 'containers/App/selectors';
import... |
src/views/ControlView.js | andrewSRahn/pickban | import React from 'react'
import minimize from '../png/minimize.png'
import close from '../png/close.png'
const {ipcRenderer} = window.require('electron')
export default function ControlView(props){
return(
<div>
<input className='control' type='image' src={minimize}
alt='minimize' onClick={onCl... |
src/pages/nanaminze.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Nanaminze' />
)
|
src/svg-icons/content/forward.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentForward = (props) => (
<SvgIcon {...props}>
<path d="M12 8V4l8 8-8 8v-4H4V8z"/>
</SvgIcon>
);
ContentForward = pure(ContentForward);
ContentForward.displayName = 'ContentForward';
export default Conte... |
src/__tests__/fileMocks/fixtureNamespace/App.js | react-cosmos/fs-playground | // @flow
import React from 'react';
const App = () => <span />;
export default App;
|
app/containers/FeaturePage/index.js | samanshahmohamadi/react-boilerplate-ballyhoo | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
app/jsx/rubrics/ProficiencyRating.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - 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... |
src/routes/ForgotPassword/components/ForgotPassword.js | TheModevShop/craft-app | import React from 'react';
import formIsComplete from 'utility/formIsComplete';
import ForgotPasswordForm from 'components/Forms/ForgotPasswordForm';
import VanillaTilt from 'vanilla-tilt';
import './forgot-password.less';
class ForgotPassword extends React.Component {
constructor(...args) {
super(...args);
... |
CompositeUi/src/views/page/organization/New.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import {connec... |
packages/material-ui-icons/src/Contacts.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Contacts = props =>
<SvgIcon {...props}>
<path d="M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-... |
src/views/components/formatted-integer/formatted-integer.js | r-park/soundcloud-redux | import React from 'react';
import PropTypes from 'prop-types';
const REPLACER_PATTERN = /(.)(?=(\d{3})+$)/g;
function FormattedInteger({value}) {
if (value >= 1000) value = String(value).replace(REPLACER_PATTERN, '$1,');
return <span>{value}</span>;
}
FormattedInteger.propTypes = {
value: PropTypes.number.is... |
docs/src/sections/PagerSection.js | jesenko/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function PagerSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
web/src/App.js | Novemser/InMemoryTelecomService | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import './App.css';
class App extends Component {
render() {
return (
<MuiThemeProvider>
{this.props.children}
</MuiThemeProvider>
);
}
}
export default App;
|
IntensiveFullStackJS/LectureOne/Demos/es6-demo-01/app/index.js | nexusstar/SoftUni | import React from 'react';
import { Button } from './button';
import { Clock } from './clock';
import { WikiService } from './wiki.service';
import { FlickrComponent } from './flickr.component';
import { WikiComponent } from './wiki.component';
// ES6 Clock Demo
let container = document.createElement('div');
containe... |
src/components/Divider.js | tuckerconnelly/carbon-ui | import React from 'react'
import PropTypes from 'prop-types'
import { View } from 'react-native'
import { connectTheme } from '../index'
/**
* A divider is a thin, lightweight rule that groups content in lists and page
* layouts.
*
* ### Examples
*
* import React from 'react'
* import { View } from '... |
AdminUI/src/routes/manageDoc/submitDoc/docList.js | Jsharkc/TechTree | /*
* Revision History:
* Initial: 2017/10/22 Wang RiYu
*/
import React from 'react'
import {
Table,
Tag,
Button
} from 'antd';
const list = ({ loading, dataSource, onPreview, confirm, release }) => {
const columns = [{
title: 'ID',
dataIndex: 'id',
}, {
title: '用户名',
... |
src/dashboard/containers/config.js | bulletcms/bullet-tracer | import React from 'react';
import {connect} from 'react-redux';
import Immutable from 'immutable';
import {CONFIG} from 'dashboard/config';
import {fetchConfigAction, fetchAllConfigsAction} from 'dashboard/reducers/actions';
import {makeGetConfig, getConfigRequest, getLogin, getLoginExpiresAt, getLoginValid} from 'das... |
Sources/ewsnodejs-server/node_modules/react-transition-group/esm/CSSTransition.js | nihospr01/OpenSpeechPlatform-UCSD | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import PropTypes from 'prop-types';
import addOneClass from 'dom-helpers/addClass';
impor... |
src/svg-icons/editor/title.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTitle = (props) => (
<SvgIcon {...props}>
<path d="M5 4v3h5.5v12h3V7H19V4z"/>
</SvgIcon>
);
EditorTitle = pure(EditorTitle);
EditorTitle.displayName = 'EditorTitle';
EditorTitle.muiName = 'SvgIcon';
ex... |
src/components/Rotator/Rotator.js | askd/animakit | import React from 'react';
import RotatorDemo from 'components/RotatorDemo/RotatorDemo';
import Section from 'components/Section/Section';
import Intro from 'components/Intro/Intro';
import Usage from 'components/Usage/Usage';
import Article from 'components/Article/Article';
import IntroButton from 'components/IntroB... |
src/routes/home/JobsTable.js | Jose4gg/GSW-P2 | import { Table, TableBody, TableFooter, TableHeader, TableHeaderColumn, TableRow, TableRowColumn }
from 'material-ui/Table';
import {RaisedButton} from 'material-ui';
import React from 'react';
import history from '../../core/history'
import { observer } from 'mobx-react'
import {trans} from '../../Stores/Dictionar... |
src/parser/shared/modules/features/SelfHealTimingGraph.js | anom0ly/WoWAnalyzer | import SPELLS from 'common/SPELLS';
import { Panel } from 'interface';
import { SpellLink } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import BaseChart, { formatTime } from 'parser/ui/BaseChart';
import React from 'react';
import { AutoSi... |
client/src/screens/group-details.screen.js | srtucker22/chatty | // TODO: update group functionality
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
ActivityIndicator,
Button,
Image,
FlatList,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import { graphql, compose } from 'react-apollo';
import { NavigationActi... |
client/src/error/Error.js | flyrightsister/boxcharter | /*
* Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved.
*
* This file is part of BoxCharter.
*
* BoxCharter 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, either version 3 of the License, ... |
modules/react-basic-layout/src/components/Container.js | JedWatson/react-color | 'use strict';
import React from 'react';
import ReactCSS from 'reactcss';
class Container extends ReactCSS.Component {
classes() {
return {
'default': {
container: {
maxWidth: this.props.width + 'px',
padding: '0 20px',
margin: '0 auto',
},
},
};
... |
pages/StuccoOntology.js | stucco/ui | import React from 'react'
import spdf from 'simple-react-pdf'
class StuccoOntology extends React.Component {
render () {
return (
<div>
<spdf.SimplePDF file='../ontology/stucco_graph.pdf' />
</div>
)
}
}
export default StuccoOntology |
src/demo/DemoContainer.js | rexxars/sanity-vision | import React from 'react'
import createClient from '@sanity/client'
import DelayedSpinner from '../components/DelayedSpinner'
import ErrorDialog from '../components/ErrorDialog'
import SanityVisionDemo from './SanityVisionDemo'
import config from './config'
class DemoContainer extends React.PureComponent {
construct... |
dispatch/static/manager/src/js/pages/LoginPage.js | ubyssey/dispatch | import React from 'react'
import { connect } from 'react-redux'
import DocumentTitle from 'react-document-title'
import userActions from '../actions/UserActions'
require('../../styles/components/login_page.scss')
class LoginPageComponent extends React.Component {
constructor(props) {
super(props)
this.sta... |
client/react/src/components/orderItem/OrderItemForm.js | peasy/peasy-js-samples | import React from 'react';
import TextInput from '../common/TextInput';
import SelectInput from '../common/SelectInput';
const OrderItemForm = ({viewModel, onSave, onChange, saving, errors, onCancel }) => {
return (
<form>
<SelectInput
name="categoryId"
label="Category"
value={view... |
app/components/pokemon.js | mersocarlin/pokedex-app | import React from 'react';
import Col from './bootstrap/col';
import PokemonName from './pokemon-name';
import { Config } from '../env';
export default React.createClass({
propTypes: {
details: React.PropTypes.bool,
pokemon: React.PropTypes.object,
onClick: React.PropTypes.func,
},
getDefaultP... |
blueocean-material-icons/src/js/components/svg-icons/av/movie.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvMovie = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/>
</SvgIcon>
);
AvMovie.displayName = 'AvMovie';
AvMovie.muiName = 'SvgIcon'... |
App/Containers/ListviewGridExample.js | tetriseffect/activate | import React from 'react'
import { View, Text, ListView } from 'react-native'
import { connect } from 'react-redux'
// For empty lists
import AlertMessage from '../Components/AlertMessageComponent'
// Styles
import styles from './Styles/ListviewGridExampleStyle'
class ListviewGridExample extends React.Component {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.