path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
public/assets/scripts/containers/common/alerts.js | luisfbmelo/reda | import React from 'react';
import { Component } from 'react';
import { connect } from 'react-redux';
import { removeAlert } from '@/actions/alerts';
import { bindActionCreators } from 'redux';
import AlertBox from '@/components/common/alerts';
function mapStateToProps(state) {
return {
alerts: state.alerts
};
... |
screens/MainScreen.js | peysal/renatdux | import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
class MainScreen extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Hello Main</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
f... |
internals/templates/containers/App/index.js | BartoszBazanski/react-100-pushup-challenge | /**
*
* 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/components/Footer.js | ccoode/timer | import React from 'react'
function Footer({ info }) {
return (
<footer className="site-footer">
<p>{info}</p>
<p>
<a href="https://github.com/ccoode/timer">GitHub</a>
</p>
</footer>
)
}
export default Footer
|
src/components/Timer.js | devoidofgenius/react-pomodoro | import React from 'react';
import TimerDisplay from './TimerDisplay';
import SessionControls from './SessionControls';
import TimerControls from './TimerControls';
import Modal from './Modal';
import notify from '../audio/notify.mp3';
import icon from '../css/images/thumbsup.png';
class Timer extends React.Component {... |
NavigationReact/sample/codesplitting/Person.js | grahammendick/navigation | import React from 'react';
import { NavigationBackLink } from 'navigation-react';
export default ({ person }) => (
<div>
<NavigationBackLink distance={1}>
Person Search
</NavigationBackLink>
<div>
<h2>{person.name}</h2>
<div className="label">Date of Birt... |
packages/node_modules/@webex/react-component-space-item/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import {Avatar, Button, SpaceListItem} from '@momentum-ui/react';
import Timer from '@webex/react-component-timer';
import {
getTeamColor,
NOTIFICATIONS_BADGE_MENTION,
NOTIFICATIONS_BADGE_MUTE,
NOTIFICATIONS_BADGE_NONE,
NOTIFICATIONS_BADGE_UNMUTE... |
app/components/CreateGame/Basic.js | cdiezmoran/AlphaStage-2.0 | import React from 'react';
import { func, object, string } from 'prop-types';
import uuid from 'uuid/v4';
import styles from './styles.scss';
const releaseOptions = [
'Released - Game is ready.',
'Beta - Some aspects of the game need polishing.',
'Alpha - Some of the main features are yet to be added.',
'Demo ... |
React Native/Demos/address_book/Views/message/detail.js | AngryLi/note | /**
* Created by Liyazhou on 16/8/28.
*/
import React from 'react';
import { View, Text, StyleSheet, Image, ScrollView, TouchableOpacity } from 'react-native';
export default class Detail extends React.Component {
render() {
let content = this.props.content;
return <ScrollView>
<View... |
addons/info/src/components/markdown/code.js | enjoylife/storybook | import { Prism } from 'global';
import React from 'react';
import PropTypes from 'prop-types';
export class Code extends React.Component {
componentDidMount() {
this.highlight();
}
componentDidUpdate() {
this.highlight();
}
highlight() {
if (typeof Prism !== 'undefined') {
Prism.highlight... |
src/components/connect-bar.js | CrispyBacon12/facebook-chat | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { addComments } from '../actions';
import facebookConnector from '../services/facebook';
const facebook = facebookConnector();
class ConnectBar extends Component {
constructor(props) {... |
docs/src/app/components/pages/components/DatePicker/ExampleDisableDates.js | nathanmarks/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
function disableWeekends(date) {
return date.getDay() === 0 || date.getDay() === 6;
}
function disableRandomDates() {
return Math.random() > 0.7;
}
/**
* `DatePicker` can disable specific dates based on the return value of a callback.
*... |
spec/components/link.js | rubenmoya/react-toolbox | import React from 'react';
import Link from '../../components/link';
const LinkTest = () => (
<section>
<h5>Links</h5>
<p>lorem ipsum...</p>
<Link label="Github" route="http://www.github.com" icon="bookmark" />
<Link label="Inbox" route="http://mail.google.com" icon="inbox" />
</section>
);
export... |
src/components/OrderSlide/card.js | Restry/vendornew | import React from 'react';
import moment from 'moment';
moment.locale('zh-CN');
import { SLink } from 'components';
const OrderCard = ({item, type}) => {
if (type === 'min') {
return (
<li>
<div className="tit"><span className="name">来源:</span>
<span className="gsname">{item.creator}</spa... |
src/svg-icons/av/videocam-off.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideocamOff = (props) => (
<SvgIcon {...props}>
<path d="M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | zillachan/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
src/mixins/helpers.js | KilpiBan/react-slick | 'use strict';
import React from 'react';
import ReactTransitionEvents from 'react/lib/ReactTransitionEvents';
import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper';
import assign from 'object-assign';
var helpers = {
initialize: function (props) {
var slideCount = React.Children.count(prop... |
src/frontend/components/clipList/ClipLayout.js | ChVince/new-record | import React from 'react'
import Clip from './Clip'
class ClipLayout extends React.Component {
constructor(props) {
super(props);
}
render() {
let clipList =[];
if (this.props.clipList && this.props.clipList.length > 0) {
clipList = this.props.clipList.map((clip, index... |
src/svg-icons/content/link.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.... |
webdebugger/src/components/file-selector-item.js | andywer/postcss-debug | import React from 'react'
import cx from 'classnames'
import { splitFilePath } from '../util/path'
const { Component, PropTypes } = React // rollup doesn't resolve that correctly when importing like this
const FILE_LABEL_MAX_LENGTH = 30
function trimLabel (string, maxLength) {
return string > maxLength ? '...' ... |
src/web.js | madjam002/rebox | /* @flow */
import React from 'react'
import styled, { css } from 'styled-components'
import {
BREAKPOINTS,
calculateSize,
getSpaceBetween,
space,
computeAlignItems,
computeJustifyContent,
} from './common'
import type { BoxProps } from './common'
const px = value => `${value}px`
export const Box = (_pro... |
index.ios.js | greghe/SettingsModule | /**
* 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 SettingsModule extends Component {
render() {
return (
<View style={styles.cont... |
node_modules/react-select/examples/src/components/DisabledUpsellOptions.js | Misterdjack/ask-the-principal | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropType... |
electron/app/components/forms/FormLabel.js | zindlerb/static | import React from 'react';
import classnames from 'classnames';
export default function FormLabel(props) {
return (
<div className={classnames(props.className)}>
<div className="mb1">
<span className="f7">{props.name}:</span>
</div>
{props.children}
</div>
);
}
|
packages/es-components/src/components/controls/textbox/Textarea.js | TWExchangeSolutions/es-components | import React from 'react';
import styled from 'styled-components';
import { useTheme } from '../../util/useTheme';
import ValidationContext from '../ValidationContext';
const TextareaBase = styled.textarea`
border: 1px solid ${props => props.borderColor};
border-radius: 2px;
box-shadow: ${props => props.boxShad... |
src/index.js | mayacode/react-redux-starter | 'use strict';
if (module.hot) {
module.hot.accept();
}
import React from 'react';
import { render } from 'react-dom';
import Welcome from './app/modules/Page/component/Welcome';
render(<Welcome />, document.getElementById('app'));
|
app/index.js | transparantnederland/relationizer | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { ReduxRouter } from 'redux-router';
import store from './store';
import './index.css';
render(
<Provider store={store}>
<ReduxRouter />
</Provider>,
document.getElementById('app')
);
|
src/components/common/icons/Thumbnails.js | chejen/GoodJobShare | import React from 'react';
/* eslint-disable */
const Thumbnails = (props) => (
<svg {...props} width="24" height="24" viewBox="0 0 24 24">
<g fillRule="evenodd">
<rect width="6" height="6"/>
<rect width="6" height="6" y="9"/>
<rect width="6" height="6" y="18"/>
<rect width="6" height="6"... |
src/js/components/demo/democard.js | axuebin/react-blog | import React from 'react';
import PropTypes from 'prop-types';
export default class DemoCard extends React.Component {
render() {
return (
<div className="demo-democard">
<div className="demo-democard-title">{this.props.name}</div>
<div className="demo-democard-img">
<img src={thi... |
src/icons/BlankIcon.js | resmio/mantecao | import React from 'react'
import Icon from '../Icon'
const BlankIcon = props => <Icon {...props} />
export default BlankIcon
|
src/admin/index.js | rendact/rendact | import React from 'react';
import concat from 'lodash/concat';
import forEach from 'lodash/forEach';
import AdminHeader from './Header';
import AdminLoading from './AdminLoading';
import Footer from './Footer';
import SideMenu from './SideMenu';
import AdminLTEinit from './lib/app.js';
import {swalert} from '../utils/s... |
js/components/App.js | bokuweb/relay-sandbox | import React from 'react';
import Relay from 'react-relay';
class App extends React.Component {
render() {
return (
<div>
<h1>Widget list</h1>
<ul>
{this.props.viewer.widgets.edges.map(edge =>
<li key={edge.node.id}>{edge.node.name} (ID: {edge.node.id})</li>
... |
src/components/Navbar/Navbar.js | theopak/alright | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* 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'; // eslint-disable-line no-unused-vars
class Navbar {
rende... |
src/app.js | danpersa/remindmetolive-react | require('newrelic');
import express from 'express';
import exphbs from 'express-handlebars';
import path from 'path';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { StaticRouter } from 'react-router-dom';
import Meta from './server/meta';
import SitemapBuilder from './server/si... |
fields/types/select/SelectField.js | frontyard/keystone | import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import { FormInput } from '../../../admin/client/App/elemental';
/**
* TODO:
* - Custom path support
*/
module.exports = Field.create({
displayName: 'SelectField',
statics: {
type: 'Select',
},
valueChanged (newValu... |
app/javascript/mastodon/components/button.js | nonoz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
src/parts/text.js | economist-components/component-blog-post | import React from 'react';
function Text({ text }) {
if (typeof text === 'string') {
return (
<div
className="blog-post__text"
itemProp="description"
/* eslint-disable react/no-danger */
dangerouslySetInnerHTML={{
'__html': text,
}}
/>
);
} else... |
docs/src/Root.js | jakubsikora/react-bootstrap | import React from 'react';
import Router from 'react-router';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html',
'introduction.html',
'getting-started.html',... |
src/ui/containers/Utilities/index.js | folkrav/DiceMaster | import './index.scss';
import React, { Component } from 'react';
import Page from 'ui/containers/Page';
class Utilities extends Component {
render() {
return (
<Page title='Utilities'>
<div>Testing</div>
</Page>
);
}
}
export default Utilities;
|
examples/todomvc/src/index.js | gaearon/redux | import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './components/App'
import reducer from './reducers'
import 'todomvc-app-css/index.css'
const store = createStore(reducer)
render(
<Provider store={store}>
<App ... |
react-advanced-boilerplate/app/components/twitter/Tweet.js | rwachtler/react-twitstats | import React from 'react';
export default class Tweet extends React.Component {
constructor(props) {
super(props);
}
render() {
const {key, idstr, text, media, user, topTweet, favorites, retweets, potentialReach} = this.props;
return (
<div key={key} className="panel tweetlist__tweet">
... |
app/javascript/components/collections/CollectionCardThumbnail.js | avalonmediasystem/avalon | /*
* Copyright 2011-2022, The Trustees of Indiana University and Northwestern
* University. 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/LICENS... |
app/src/components/Navbar/Navbar.js | RyanCCollins/ryancollins.io | import React from 'react';
import { Link } from 'react-router';
import styles from './Navbar.scss';
import CrownLogo from '../CrownLogo/CrownLogo';
import {
Row,
Column,
TopBar,
TopBarTitle,
TopBarRight,
Menu,
MenuItem
} from 'react-foundation';
import Headroom from 'react-headroom';
const Styles = {
h... |
client/src/containers/ChatBox.js | Bekzod13/DrawSketch | import React, { Component } from 'react';
import {inject, observer} from "mobx-react";
import { Form, Input} from "reactstrap";
import "../style/sidebar.css";
import Message from "./Message";
class ChatBox extends Component {
handleGuessChange = e =>
{
this.props.messageStore.setGuess(e.target.value)
... |
src/components/list.js | RnbWd/lrload-chronic | import React from 'react'
export default React.createClass({
render () {
return (
<ul>
{this.props.items.map((it) => { return <li>item : {it}</li> })}
</ul>
)
}
})
|
examples/filtering/src/index.js | react-tools/react-table | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
ReactDOM.render(<App />, document.getElementById('root'))
|
demo/components/item.js | c1aphas/rcarousel | import React from 'react';
import * as pt from 'prop-types';
const colors = [
'#f44336',
'#e91e63',
'#9c27b0',
'#673ab7',
'#3f51b5',
'#3f51b5',
'#03a9f4',
'#00bcd4',
'#009688',
'#4caf50',
'#8bc34a',
'#cddc39',
'#ffeb3b',
'#ffc107',
'#ff9800',
'#ff5722',
'#795548',
'#9e9e9e',
'#607... |
src/components/auth/Signup.js | GustavoKatel/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import { defineMessages, intlShape } from 'react-intl';
import { isDevMode, useLiveAPI } from '../../environment';
import Form from '../../lib/Form';
import { required, email, minLength } from '../../he... |
node_modules/react-router/es6/Redirect.js | Maxwelloff/react-football | 'use strict';
import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './PropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropT... |
examples/todomvc/containers/App.js | madole/redux-devtools | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import { Provider } from 'react-redux';
import *... |
source/components/CollapseHandler.js | cloud-walker/react-inspect | import React from 'react'
const Component = class extends React.Component {
static displayName = 'ReactInspectCollapseHandler'
state = {show: false}
constructor() {
super()
this.handleClick = e => {
e.stopPropagation()
this.setState({show: !this.state.show})
}
}
render() {
retu... |
react_ref/index.ios.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import setup from './setup'
AppRegistry.registerComponent('react_ref', () => setup);
|
src/routes/education/index.js | zuban/edhunter | /**
* 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 Layout from '../../co... |
react/gameday2/components/embeds/EmbedUstream.js | fangeugene/the-blue-alliance | import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'
const EmbedUstream = (props) => {
const channel = props.webcast.channel
const src = `https://www.ustream.tv/embed/${channel}?html5ui=1`
return (
<iframe
width="100%"
height="100%"
src={src}
scrolling=... |
public/js/components/trends/trendComment.react.js | IsuruDilhan/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import ListItem from 'material-ui/lib/lists/list-item';
import List from 'material-ui/lib/lists/list';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/lib/avatar';
let style1={
width: 800,
};
var Comment = React.... |
node_modules/react-bootstrap/es/DropdownToggle.js | caughtclean/but-thats-wrong-blog | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
test/Placeholder.js | passcod/kitr-helpers | 'use strict'
import { test } from 'tap'
import React from 'react'
test('Placeholder', (t) => {
t.plan(1)
t.ok(<div>world</div>, 'the world is fine')
})
|
docs/app/Examples/views/Card/Content/CardExampleContentBlock.js | ben174/Semantic-UI-React | import React from 'react'
import { Card, Feed } from 'semantic-ui-react'
const CardExampleContentBlock = () => (
<Card>
<Card.Content>
<Card.Header>
Recent Activity
</Card.Header>
</Card.Content>
<Card.Content>
<Feed>
<Feed.Event>
<Feed.Label image='http://sema... |
src/routes.js | mattijsbliek/record-client | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
docs/src/sections/AlertsSection.js | SSLcom/Bootsharp | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function AlertsSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<An... |
src/components/TodoList.js | Peizhong/jsdemo | import React from 'react'
import PropTypes from 'prop-types'
import Todo from './Todo'
const TodoList = ({ todos, onTodoClick }) => (
<ul>
{todos.map(todo => (
<Todo key={todo.id} {...todo} onClick={() => onTodoClick(todo.id)} />
))}
</ul>
)
TodoList.propTypes = {
todos: PropTypes.arrayOf(
Pro... |
src/components/Features/Features.js | jhabdas/lumpenradio-com | import React from 'react';
import styles from './Features.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import FeatureList from '../FeatureList';
let data = [
{banner: 'Friday at 2PM - Shows', heroHref: 'http://placehold.it/350x350', headline: 'Catie Olson / Jabberwocky', ex... |
modules/RouteUtils.js | ThibWeb/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
packages/reactor-kitchensink/src/examples/FormFields/TextAreaField/TextAreaField.js | dbuhrman/extjs-reactor | import React from 'react';
import { FormPanel, TextAreaField } from '@extjs/ext-react';
export default function TextAreaFieldExample() {
return (
<FormPanel shadow>
<TextAreaField
label="Description"
width="300"
maxRows={10}
/>
... |
blueocean-dashboard/src/main/js/components/stories/DownstreamRunsStories.js | kzantow/blueocean-plugin | /* eslint-disable */
import { storiesOf } from '@kadira/storybook';
import React from 'react';
import {ResultItem} from '@jenkins-cd/design-language';
import { DownstreamRunsView } from '../downstream-runs/DownstreamRunsView';
storiesOf('Downstream Build Links', module)
.add('Basic', basic)
;
const strings = {
... |
client/src/pages/dashboard/ShipTodayItem.js | ccwukong/lfcommerce-react | import React from 'react';
import PropTypes from 'prop-types';
const ShipTodayItem = props => {
const { orderId, customerName, onClick } = props;
return (
<tr style={{ cursor: 'pointer' }} onClick={() => onClick(orderId)}>
<td>{orderId}</td>
<td>{customerName}</td>
</tr>
);
};
ShipTodayItem.... |
test/helpers/shallowRenderHelper.js | jiebianng/react-gallery | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/components/video_list.js | zyfcjtc/ReactVideoSearch | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video}/>
... |
packages/insights-web/src/scenes/explorer/tags/full-path/index.js | mariusandra/insights | import './styles.scss'
import React from 'react'
import { Icon } from 'antd'
export function FullPath ({ path, rootIcon = 'filter', rootIconTheme = '' }) {
return (
<div className='full-path-explorer-tag'>
{path.split('.').map((part, index) => (
<div key={index} className={index === 0 ? 'root' : '... |
app/components/ToggleOption/index.js | iFatansyReact/react-boilerplate-imagine | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
website/modules/components/Logo.js | d-oliveros/react-router | import React from 'react'
import { Block, Row } from 'jsxstyle'
import { DARK_GRAY } from '../Theme'
import LogoImage from '../logo.png'
const Logo = ({ size = 230, shadow = true }) => (
<Row
background={DARK_GRAY}
width={size+'px'}
height={size+'px'}
alignItems="center"
justifyContent="center"
... |
src/svg-icons/maps/directions-bike.js | w01fgang/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.... |
src/components/event/EventRankings.js | tervay/AutoScout | import React from 'react';
import { linkTeam } from '@/js/links';
import { getEventRankings } from '@/js/api';
import Error404 from '../404/Error404';
export default class EventRankings extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
getEventRank... |
fields/components/columns/InvalidColumn.js | sendyhalim/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var InvalidColumn = React.createClass({
displayName: 'InvalidColumn',
propTypes: {
col: React.PropTypes.object,
},
renderValue () {
return (
<ItemsTableVal... |
src/entypo/Language.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Language';
let EntypoLanguage = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M19.753,10.909c-0.624-1.707-2.366-2.726-4.661-2.726c-0.09,0-0.176,0.002-0.262,0.006l-0.016-2.063c... |
src/javascript/client/client.js | realseanp/dolli | import polyfill from 'babel-polyfill'; // eslint-disable-line no-unused-vars
import d from 'debug';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './components/Routes';
import app from './app';
import fetchRouteData from 'utils/fe... |
src/components/PlaylistManager/Panel/MoveToLastAction.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import { useDispatch } from 'react-redux';
import MoveToLastIcon from '@mui/icons-material/KeyboardArrowDown';
import { moveMedia } from '../../../actions/PlaylistActionCreators';
import { useMediaListContext } from '../../MediaList/BaseMediaList';
import M... |
app/containers/ListPage.js | yesmeck/hotelbar | import { remote } from 'electron'
import React, { Component } from 'react';
import ReactDOM from 'react-dom'
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { watchMonitors, start, stop } from '../actions/monitors'
import List from 'components/List/List'
class ListPage extends... |
client/src/components/NotFound.js | kukiron/graphql-messaging-app | import React from 'react';
const NotFound = (props) => {
const match = props.match;
return (
<div className="NotFound">404 Not Found</div>
);
};
export default NotFound;
|
src/js/components/icons/base/CloudSoftware.js | odedre/grommet-final | /**
* @description CloudSoftware SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
... |
examples/universal/server/server.js | pbarnes/redux | /* eslint-disable no-console, no-use-before-define */
import path from 'path';
import Express from 'express';
import qs from 'qs';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
import { fetch... |
public/js/components/AnthropometricData.js | Vabrins/CadernetaDoIdoso | import React from 'react';
import $ from 'jquery';
import { Link } from 'react-router-dom';
const initialState = {
weight_2_5:'', height_2_5:'', imc_weight_height_2_5:'', calf_perimeter_pp_left_2_5:'', you_have_exp_loss_uni_weight_min_body_last_year_2_5:''
};
class AnthropometricData extends React.Component {
... |
day19_todolist_style/src/components/App.js | eyesofkids/ironman2017 | import React from 'react'
import TodoList from './TodoList'
class App extends React.Component {
render() {
return <TodoList initText="開始輸入文字吧!" />
}
}
// 輸出App模組
export default App
|
src/svg-icons/action/label.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabel = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/>
</SvgIcon>
);
A... |
src/PageItem.js | Firfi/meteor-react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.PropTypes.bool,
next: React.PropTypes... |
src/js/router.js | puffstream/stream-base-product | import React from 'react';
import { HashRouter as Router, Route } from 'react-router-dom';
import Home from './home';
import Posts from './posts';
import Register from './register';
export default (
<Router>
<div>
<Route exact path="/" component={Home} />
<Route path="/posts" component={Posts} />
... |
components/TitleSection/TitleSection.js | cobbweb/golittle.red | import React from 'react';
import PublishedOn from './PublishedOn';
import Subtitle from './Subtitle';
import Title from './Title';
import TitleText from './TitleText';
import Details from './Details';
import Author from './Author';
import css from './TitleSection.scss';
function TitleSection({ children }) {
return... |
src/js/forms/payloads/stories/ExchangePayloadForm.js | mosen/micromdm-ui | import React from 'react';
import {createStore, applyMiddleware, compose} from 'redux';
import {combineReducers} from 'redux';
import {reducer as formReducer} from 'redux-form';
import {Provider} from 'react-redux';
import {storiesOf, action} from '@kadira/storybook';
import {deepOrange500} from 'material-ui/styles/col... |
index.android.js | noblakit01/react-native-dynamic-button | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import {
Surface,
Shape,
Path
} from 'ReactNativeART';
import {
DynamicButton,
DynamicButtonType
} from './DynamicButton'
export default class Example extends Component {
constructor(pr... |
src/svg-icons/image/flash-auto.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashAuto = (props) => (
<SvgIcon {...props}>
<path d="M3 2v12h3v9l7-12H9l4-9H3zm16 0h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L19 2zm-2.15 5.65L18 4l1.15 3.65h-2.3z"/>
</SvgIcon>
);
ImageFlashAuto = pure(ImageFla... |
src/components/layout/Home.js | aerendon/yik-yak | import React, { Component } from 'react';
import Zones from '../containers/Zones';
import Comments from '../containers/Comments';
class Home extends Component {
render () {
return (
<div className="container">
<div className="row">
<div className="col-md-4">
<Zones />
... |
src/renderer/main.js | niklasi/halland-proxy | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './components/app'
import configureStore from './store/configureStore'
import injectTapEventPlugin from 'react-tap-event-plugin'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import d... |
src/Wrapper.js | ryanbaer/busy | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { IntlProvider } from 'react-intl';
import { withRouter } from 'react-router-dom';
import { Layout } from 'antd';
import Cookie from 'js-cookie';
import { getAuthenticatedUser, getLocale } from './reducers';
i... |
src/svg-icons/image/nature.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNature = (props) => (
<SvgIcon {...props}>
<path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/>
</SvgIcon>
);
ImageNature = p... |
src/routes/error/index.js | agiron123/react-starter-kit-TDDOList | /**
* 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 App from '../../componen... |
definitions/npm/react-joyride_v1.x.x/flow_v0.16.x-v0.52.x/react-joyride_v1.x.x.js | hansonw/flow-typed | import React from 'react';
type ReactJoyride$LocaleOption = {
back?: string,
close?: string,
last?: string,
next?: string,
skip?: string,
}
type ReactJoyride$DefaultProps = {
debug: bool,
keyboardNavigation: bool,
locale: ReactJoyride$LocaleOption,
resizeDebounce: bool,
resizeDebounceDelay: number... |
docs/src/pages/index.js | mcanthony/nuclear-js | import React from 'react'
import Wrapper from '../layouts/wrapper'
import ItemFilterExample from '../components/item-filter-example'
import UsageExample from '../components/usage-example'
import Nav from '../components/nav'
export default React.createClass({
render() {
return <Wrapper>
<Nav />
<div c... |
app/containers/FeaturePage/index.js | gihrig/react-boilerplate-logic | /*
* 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... |
src/components/Body.js | OpenCollective/frontend | import React from 'react';
export default class Body extends React.Component {
render() {
return (
<main>
<style jsx global>
{`
main {
height: 100%;
width: 100%;
font-family: 'Inter UI', sans-serif;
letter-spacing: -0.2px... |
classic/src/scenes/wbui/ULinkOR/ULinkORAccountSection/ServiceListItem/ServiceListItem.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { Typography, ListItemSecondaryAction, Tooltip, IconButton } from '@material-ui/core'
import { withStyles } from '@material-ui/core/styles'
import ACAvatarCircle2 from '../../../ACAvatarCircle2'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.