path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/material-ui-icons/src/EventNote.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let EventNote = props =>
<SvgIcon {...props}>
<path d="M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v2h7v-2z" /... |
app/components/elements/TimeAgoWrapper.js | steemit-intl/steemit.com | /* eslint react/prop-types: 0 */
import React from 'react';
import TimeAgo from 'react-timeago'
export default class TimeAgoWrapper extends React.Component {
render() {
let {date} = this.props
if(date && /^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d$/.test(date)) {
date = date + 'Z' // Firefox reall... |
src/react/link.js | luxui/lux-core | /**
* @module react/link
* @memberof react
*/
import React from 'react'; // `React` must be in scope when using JSX
import { isString } from '../lib/is';
import luxPath from '../lib/luxPath';
import series from '../lib/series';
function clickHandler(event) {
/* istanbul ignore else */
if (isLeftClick(event) &... |
examples/nested-animations/app.js | shunitoh/react-router | import React from 'react'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link } from 'react-router'
import withExampleBasename from '../withExampleBasename'
import './app.css'
const App = ({ children, location: { path... |
src/index.js | HeffU/CookingWithCode | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
admin/src/components/PopoutListHeading.js | geminiyellow/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
},
render () {
let className = classnames('PopoutList__heading', this.props.cl... |
src/containers/AppContainer.js | bharley/manga-reader | import React from 'react';
import { Router } from 'react-router';
import { Provider } from 'react-redux';
const AppContainer = ({ history, routes, store }) => (
<Provider store={store}>
<div style={{ height: '100%' }}>
<Router history={history} children={routes} />
</div>
</Provider>
);
AppContainer... |
react-redux/public/app/components/footer.js | react-scott/react-learn | import React from 'react'
import ImmutableRenderMixin from 'react-immutable-render-mixin'
let Footer = React.createClass({
mixins: [ImmutableRenderMixin],
render() {
return (
<div style={{textAlign: 'center'}}>
<button style={{marginRight: '10px'}} className="pure-button but... |
src/svg-icons/device/signal-wifi-1-bar-lock.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi1BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
src/botPage/view/TradeInfoPanel/index.js | binary-com/binary-bot | import React, { Component } from 'react';
import { observer as globalObserver } from '../../../common/utils/observer';
import { translate } from '../../../common/i18n';
import Summary from './Summary';
import TradeTable from './TradeTable';
import RunButton from './RunButton';
import ClearButton from './ClearButton';
i... |
examples/huge-apps/components/App.js | KamilSzot/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
static loadProps (params, cb) {
console.log('App', 'loadProps');
cb(null, { courses: COURSES });
}
render () {
var { courses, loading } = this.props;
return (... |
frontend/modules/recipe/components/RecipeView.js | rustymyers/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import Recipe from '../containers/Recipe'
import MiniBrowse from '../../browse/containers/MiniBrowse'
const RecipeView = ({ match }) => (
<div className="container">
<div className="row">
<div className="col-md-9">
<Recipe match={ match ... |
packages/my-joy-instances/src/components/tags.js | geek/joyent-portal | import React from 'react';
import { Margin } from 'styled-components-spacing';
import { TagItem, KeyValue } from 'joyent-ui-toolkit';
export const AddForm = props => (
<KeyValue {...props} method="add" input="input" type="tag" expanded />
);
export const EditForm = props => (
<KeyValue {...props} method="edit" i... |
client/src/research/LoginPage.js | mit-teaching-systems-lab/swipe-right-for-cs | import React, { Component } from 'react';
import './LoginPage.css';
// The page for users to login for accessing research data.
class LoginPage extends Component {
constructor(props) {
super(props);
this.state = {
email: "",
message: ""
};
this.onUpdateEmail = this.onUpdateEmail.bind(t... |
examples/js/column-filter/select-filter-with-select-text.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const qualityType = {
0: 'good',
1: 'Bad',
2: 'unknown'
};
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) ... |
src/components/Protein/Sequence/IPScanButton/index.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import T from 'prop-types';
import { connect } from 'react-redux';
import { goToCustomLocation } from 'actions/creators';
import Link from 'components/generic/Link';
import { foundationPartial } from 'styles/foundation';
import ebiStyles from 'ebi-framework/css/ebi-global.css';
im... |
src/components/PageList.js | tutsplus/build-a-wiki-with-react-and-firebase | import React from 'react';
import * as API from '../api';
import {Link} from 'react-router';
export default class PageList extends React.Component {
state = {
loaded: false,
pages: {},
newPageTitle: ''
}
constructor (props, context) {
super(props, context)
this.co... |
webapp/app/components/CreateUser/Form/PasswordConfirmation/index.js | EIP-SAM/SAM-Solution-Server | //
// Component password confirmation form in create user page
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap';
import styles from 'components/CreateUser/styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class CreateUserFor... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/get-started/RequiredKnowledge.js | pbogdan/react-flux-mui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import requiredKnowledge from './required-knowledge.md';
const RequiredKnowledge = () => (
<div>
<Title render={(previousTitle) => `Required Knowledge - ${previousTitle}`} />
<MarkdownEl... |
node_modules/enzyme/src/ShallowTraversal.js | vinhtran19950804/procure_react | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import functionName from 'function.prototype.name';
import {
propsOfNode,
splitSelector,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
nodeHasProperty,
} from './Utils';
export function c... |
examples/real-world/index.js | Lucifier129/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
examples/with-overmind/components/Header.js | azukaru/next.js | import Link from 'next/link'
import React from 'react'
import { useOvermind } from '../overmind'
function Header() {
const { state } = useOvermind()
return (
<div>
<h1>{state.page}</h1>
<Link href="/">
<a>Home page</a>
</Link>
<Link href="/about">
<a>About Page</a>
... |
src/Popup/Popup.stories.js | ctco/rosemary-ui | import { storiesOf } from '@storybook/react/dist/client/preview/index';
import Popup from './Popup';
import React from 'react';
storiesOf('Popup', module)
.add('should render content into body and toggle on click', () => {
return (
<Popup attachment="bottom right" on="click">
<b... |
src/components/InfoBox.js | participedia/frontend | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import Question from "material-ui/svg-icons/communication/live-help";
import { FormattedHTMLMessage, injectIntl } from "react-intl";
class InfoBox extends React.Component {
state = {
open: false,
... |
react-fundamentals/es6-react-setup/App.js | gongmingqm10/EggHead | import React from 'react';
class App extends React.Component {
constructor() {
super();
this.state = {
red: 128,
green: 128,
blue: 128
};
this.update = this.update.bind(this);
}
update(e) {
this.setState({
red: this._red.refs.inputSlider.value,
green: this._gree... |
src/containers/menuSections/indexIncrementorMenu.js | Harlantr/text-mod | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { changeText } from '../../actions/actions';
import incrementors from '../../const/incrementors';
class IndexIncrementorMenu extends Component {
constructor (props) {
super(props);
... |
app/javascript/mastodon/features/ui/components/columns_area.js | hyuki0000/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { links, getIndex, get... |
Example/index.ios.js | smiletime/react-native-twilio-video-webrtc | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TextInput,
View,
Button,
TouchableOpacity,
Dimensions
} from 'react-native';
import {
TwilioVideoLocalView,
TwilioVideoParticipantView,
TwilioVideo
} from 'react-native-twilio-video-webrtc'
const styles = StyleShee... |
submissions/josepot/src/index.js | enkidevs/flux-challenge | import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementById('root')
);
|
index.ios.js | jdpigeon/neurodoro | /**
* 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 tfreactnative extends Component {
render() {
return (
<View style={styles.conta... |
packages/gluestick/shared/lib/errorUtils.js | TrueCar/gluestick | import React from 'react';
import { render } from 'react-dom';
function ErrorOverlay({ message, filename }) {
return (
<div
style={{
backgroundColor: 'rgba(0, 0, 0, 0.8)',
height: '100%',
padding: '30px',
}}
>
<pre
style={{
color: '#ff3030',
... |
app/javascript/mastodon/features/ui/components/tabs_bar.js | rekif/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { debounce } from 'lodash';
import { isUserTouching } from '../../../is_mobile';
export const links = [
<NavLink className='tabs-bar... |
src/components/home/carousel/Carousel.js | DanBlakeNZ/salomon | import React from 'react'
import CarouselItem from './CarouselItem'
import SingleThumbnail from './SingleThumbnail'
import carouselData from '../../../data/carouselData/carouselData'
const Carousel = () => {
return (
<div id='carousel-wrapper'>
<div className="owl-carousel owl-theme">
{carouselData... |
src/svg-icons/social/pages.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPages = (props) => (
<SvgIcon {...props}>
<path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/... |
src/parser/shared/modules/ManaValues.js | yajinni/WoWAnalyzer | import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { formatPercentage, formatNumber } from 'common/format';
import SPECS from 'game/SPECS';
import ROLES from 'game/ROLES';
import PropTypes from 'prop-types';
import { t } from '@lingui/macro';
impor... |
src/routes/home/Home.js | willchertoff/Ben-Kinde | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Home.css';
import Navigation from '../../components/Navigation';
import Title from '../../components/Title';
class Home extends React.Component {
static propTypes = {
};... |
module_5/viz/js/network.js | getsmarter/bda | import React from 'react'
import d3 from 'd3'
import ReactDOM from 'react-dom'
export default class NetworkChart extends React.Component {
constructor(props) {
super(props)
this.chart = null
this.chart_id = "chart_" + props.id
this.state = {extent: [null, null]}
}
shouldComponentUpdate(nextProp... |
site/demos/polyline/src/index.js | appbaseio/reactivesearch | import React from 'react';
import ReactDOM from 'react-dom';
import { ReactiveBase } from '@appbaseio/reactivesearch';
import { ReactiveGoogleMap } from '@appbaseio/reactivemaps';
import './index.css';
const flightPlanCoordinates = [
{ lat: 37.772, lng: -122.214 },
{ lat: 21.291, lng: -157.821 },
{ lat: -18.142, l... |
blueocean-material-icons/src/js/components/svg-icons/action/assignment-return.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionAssignmentReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1... |
application-level/starter-kits/client-side-react-styles/app/app.js | pltod/javascript-applications | require ('./app.css');
import React from 'react';
import ReactDOM from 'react-dom';
var App = React.createClass({
render() {
return (
<div>
<div id="main">
Hello World!<br/>I am client side app made with React and built with Browserify.<br/>I accept ES6 code thanks to Babel.
... |
src/components/ListBox/ListBoxMenu.js | jzhang300/carbon-components-react | import React from 'react';
import ListBoxMenuItem from './ListBoxMenuItem';
import childrenOfType from '../../prop-types/childrenOfType';
/**
* `ListBoxMenu` is a simple container node that isolates the `list-box__menu`
* class into a single component. It is also being used to validate given
* `children` components... |
src/components/navbar.js | kaupppa/hmk-web-client | import React from 'react';
import { AppBar, Box, Container, Toolbar, Typography } from '@mui/material';
import { Button } from 'gatsby-theme-material-ui';
const NavButton = ({ to, title, pathName }) => {
const disabled = pathName === to;
return (
<Button to={to} key={to} size="large" variant="contained" disab... |
src/routes/AuthenticatedRoute.js | Clemson-University-Energizer/energizer-app |
import React from 'react';
import { Route, Redirect } from 'react-router-dom';
const AuthenticatedRoute = ({ component, ...rest }) => (
<Route {...rest} render={props => (
sessionStorage.JWT_TOKEN ? (React.createElement(component, props)) : (
<Redirect to={{ pathname: '/login', state: { from: props.locati... |
src/containers/App.js | hedgerh/thinkful-react-blog | import React from 'react';
import Reflux from 'reflux';
import BlogActions from '../actions/blog';
import BlogStore from '../stores/blog';
import NewPost from '../components/NewPost';
import PostsList from '../components/PostsList';
export default React.createClass({
mixins: [
Reflux.connect(BlogStore)
],
c... |
admin/client/components/ItemsTableDragDrop.js | nickhsine/keystone | import React from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import { Sortable } from './ItemsTableRow';
import DropZone from './ItemsTableDragDropZone';
var ItemsTableDragDrop = React.createClass({
displayName: 'ItemsTableDragDrop',
propTypes: {
colum... |
src/entypo/Direction.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Direction';
let EntypoDirection = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18.06,1.941c-0.586-0.586-1.144-0.033-3.041,0.879C9.944,5.259,1.1,10.216,1.1,10.216L8.699,11.3l... |
src/client/story.js | xieyunzi/hacker-menu | import React from 'react'
export default class Story extends React.Component {
markAsRead () {
this.props.onMarkAsRead(this.props.story.id)
}
openUrl (url) {
this.props.onUrlClick(url)
}
handleYurlOnClick (e) {
e.preventDefault()
this.openUrl(this.props.story.yurl)
}
handleByOnClick (e... |
src/svg-icons/maps/terrain.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTerrain = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
MapsTerrain = pure(MapsTerrain);
MapsTerrain.displayName = 'MapsTerr... |
node_modules/semantic-ui-react/src/views/Comment/CommentAction.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
useKeyOnly,
} from '../../lib'
/**
* A comment can contain an action.
*/
function CommentAction(props) {
const { active, className, children } = pro... |
app/shared/components/restaurant-card.js | esnunes/restaurants | import React from 'react';
const Style = {
tag: {
marginRight: 5,
display: 'inline-block',
padding: '.3em .6em',
},
button: {
marginRight: 5,
},
};
const Maps = {
google: {
url: 'comgooglemaps://?directionsmode=driving&daddr=',
},
apple: {
url: 'http://maps.apple.com/?daddr=',
... |
app/components/inputs/InputPassword.react.js | shiminghua/front_end_practice | 'use strict';
import React, { Component } from 'react';
class InputPassword extends Component {
constructor(props) {
super(props);
this.state = {
value: props.defaultValue
};
}
handleChange(event) {
if(this.props.onChange) {
this.props.onChange(even... |
src/svg-icons/editor/border-bottom.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderBottom = (props) => (
<SvgIcon {...props}>
<path d="M9 11H7v2h2v-2zm4 4h-2v2h2v-2zM9 3H7v2h2V3zm4 8h-2v2h2v-2zM5 3H3v2h2V3zm8 4h-2v2h2V7zm4 4h-2v2h2v-2zm-4-8h-2v2h2V3zm4 0h-2v2h2V3zm2 10h2v-2h-2v2zm... |
app/components/FeedsList/index.js | EpiAggregator/web | /**
*
* FeedsList
*
*/
import React from 'react';
import {List, ListItem} from 'material-ui/List';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import Avatar from 'material-ui/Avatar';
import { transparent } from 'material-ui/styles/colors';
import CenterDiv from 'components/CenterDiv';
import { Form... |
classic/src/scenes/wbfa/generated/FARCalendar.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCalendar } from '@fortawesome/pro-regular-svg-icons/faCalendar'
export default class FARCalendar extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faCalendar} />)
}
}
|
src/example/App.js | casavi/react-region-select | import React, { Component } from 'react';
import objectAssign from 'object-assign';
import RegionSelect from '../RegionSelect';
require('./style.css');
class App extends Component {
constructor (props) {
super(props);
this.regionRenderer = this.regionRenderer.bind(this);
this.onChange = this.onChange.bind(this... |
client/src/app/parts/admin/userView.js | Einsteinish/DumbNode | import React from 'react';
import DocTitle from 'components/docTitle';
import UserComponent from './userComponent';
export default function UserView(props){
return (
<div id="user-view">
<DocTitle title="User"/>
<UserComponent
{...props}/>
</div>
);
}
|
spec/javascripts/jsx/blueprint_courses/components/BlueprintSidebarSpec.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - 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... |
Ch05/05_01/start/src/index.js | Raziyehbazargan/React.js_Essential_Training | import React from 'react'
import { render } from 'react-dom'
import './stylesheets/ui.scss'
import { App } from './components/App'
import { Whoops404 } from './components/whoops-404'
import { Router, Route, hashHistory } from 'react-router'
window.React = React
// History listen to browser address bar for any chang... |
react/features/mobile/navigation/components/ConnectingPage.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { useTranslation } from 'react-i18next';
import { SafeAreaView, Text, View } from 'react-native';
import JitsiScreen from '../../../base/modal/components/JitsiScreen';
import { LoadingIndicator } from '../../../base/react';
import { navigationStyles, TEXT_COLOR } from './st... |
src/React/Widgets/PresetListWidget/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/PresetListWidget.mcss';
export default class PresetListWidget extends React.Component {
constructor(props) {
super(props);
this.state = {
activeName: props.activeName,
};
// Bind callback
... |
docs/app/Examples/collections/Form/States/FormExampleLoading.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button, Form, Input } from 'semantic-ui-react'
const FormExampleLoading = () => (
<Form loading>
<Form.Input label='Email' placeholder='joe@schmoe.com' />
<Button>Submit</Button>
</Form>
)
export default FormExampleLoading
|
src/modules/congregation/CongregationLink.js | rllc/llc-archives-react | import React from 'react'
import NavLink from '../common/NavLink';
import Badge from 'react-mdl/lib/Badge'
import AdminVerifyService from '../../services/AdminVerifyService.js'
class CongregationLink extends React.Component {
publishedSermonCount(congregation) {
return this.props.sermons.filter((sermon) => (
... |
app/javascript/mastodon/features/list_editor/index.js | foozmeat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | Rogerlin2013/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
js/controls/KendoTreeView.js | wingspan/wingspan-forms | import kendo from 'kendo'
import React from 'react'
import { findWidget, noop } from '../ReactCommon'
var PropTypes = React.PropTypes;
var KendoTreeView = React.createClass({
propTypes: {
dataSource: PropTypes.object.isRequired,
onExpand: PropTypes.func,
onCollapse: PropTypes.func,
... |
src/field/FieldRenderer.js | carab/Pinarium | import React from 'react';
import EnumRenderer from './EnumRenderer';
import CellarRenderer from './CellarRenderer';
import DateRenderer from './DateRenderer';
import ImageRenderer from './ImageRenderer';
const RENDERERS = {
bottle: {
sort: EnumRenderer,
etiquette: ImageRenderer,
cellar: CellarRenderer,... |
fields/types/html/HtmlField.js | asifiqbal84/keystone | import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import tinymce from 'tinymce';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
var lastId = 0;
function getId() {
return 'keystone-html-' + lastId++;
}
module.exports = Field.create({
... |
app/components/key-input.js | vladimirgamalian/TheTurkBot | import React from 'react';
var KeyInput = React.createClass({
handleChange: function(event) {
var text = event.target.value;
this.props.onChange(text);
},
render: function () {
return (
<form className="" onSubmit={this.handleSubmit}>
<div className="form... |
src/components/Header.js | gcanti/tcomb-spa-example | import React from 'react'
import { props, t } from 'tcomb-react'
import { AuthenticatedUser } from '../domain'
import Loader from './Loader'
@props({
user: AuthenticatedUser,
isBusy: t.Boolean,
onSignOut: t.Function
})
export default class Header extends React.Component {
constructor(...args) {
super(...a... |
src/containers/App.js | sseureki/kanamemo |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Match, Miss, Redirect } from 'react-router';
import NavBar from 'components/NavBar';
import Home from './Home';
import Settings from './Settings';
class App extends Component {
render(){
return (
<div>
<NavBar />
... |
test/integration/css-fixtures/url-global-asset-prefix-1/pages/_app.js | zeit/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global1.css'
import '../styles/global2.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
app/javascript/mastodon/features/account_gallery/components/media_item.js | masto-donte-com-br/mastodon | import Blurhash from 'mastodon/components/blurhash';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import { autoPlayGif, displayMedia, useBlurhash } from 'mastodon/initial_state';
import { isIOS } from 'mastodon/is_mobile';
import PropTypes from 'prop-types';
import React from 'react... |
src/App.js | taylordevereaux/ppu-compare | import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom';
import { Container, Row, Col } from 'reactstrap';
// Components.
import UnitEntryList from './components/UnitEntryList/UnitEntryList';
import UnitEntry from './components/UnitEntry/UnitEntry';
import A... |
react-youtube-adaptive-loading/src/components/RelatedVideos/NextUpVideo/NextUpVideo.js | GoogleChromeLabs/adaptive-loading | import React from 'react';
import './NextUpVideo.scss';
import {Checkbox, Divider} from "semantic-ui-react";
import {VideoPreview} from '../../VideoPreview/VideoPreview';
export function NextUpVideo(props) {
return (
<React.Fragment>
<div className='next-up-container'>
<h4>Up next</h4>
<div... |
tests/Rules-isInt-spec.js | christianalfoni/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
ui/src/containers/Routes.js | mozilla/splice | import React, { Component } from 'react';
import { Router, Route, Redirect } from 'react-router';
import App from './App'
import WebtilesPreviewer from './WebtilesPreviewer';
export default class Routes extends Component {
render() {
return (
<Router>
<Redirect from="/" to="/distributions" />
... |
docs/app/Examples/views/Advertisement/Types/AdvertisementExampleBillboard.js | shengnian/shengnian-ui-react | import React from 'react'
import { Advertisement } from 'shengnian-ui-react'
const AdvertisementExampleBillboard = () => (
<Advertisement unit='billboard' test='Billboard' />
)
export default AdvertisementExampleBillboard
|
src/components/map/zoom-slider.js | boundlessgeo/sdk | /*
* Copyright 2015-present Boundless Spatial Inc., http://boundlessgeo.com
* 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 ... |
thinking-in-react/05_add_inverse_data_flow/program.js | kwpeters/workshopper-solutions | import React from 'react';
import ReactDOM from 'react-dom';
export const ProductCategoryRow = React.createClass({
render() {
return (
<tr>
<th colSpan={2}>{this.props.category}</th>
</tr>
);
},
});
export const ProductRow = React.createClass({
rende... |
packages/editor/src/components/Icons/Code.js | strues/boldr | import React from 'react';
import Icon from './Icon';
const Code = props => (
<Icon viewBox="0 0 576 512" {...props}>
<path d="M234.8 511.7L196 500.4c-4.2-1.2-6.7-5.7-5.5-9.9L331.3 5.8c1.2-4.2 5.7-6.7 9.9-5.5L380 11.6c4.2 1.2 6.7 5.7 5.5 9.9L244.7 506.2c-1.2 4.3-5.6 6.7-9.9 5.5zm-83.2-121.1l27.2-29c3.1-3.3 2.8-8... |
lib/RepeatableField/stories/RepeatableField.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import readme from '../readme.md';
import BasicUsage from './BasicUsage';
import MultipleColumns from './MultipleColumns';
import CustomRemoveButton from './CustomRemoveButton';
storiesOf('Re... |
src/svg-icons/action/settings-ethernet.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsEthernet = (props) => (
<SvgIcon {...props}>
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12... |
src/components/Sections/SectionChart/ChartLegend.js | demisto/sane-reports | import './ChartLegend.less';
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {
CHART_LEGEND_ITEM_HEIGHT,
CHART_LAYOUT_TYPE,
INCIDENT_FIELDS
} from '../../../constants/Constants';
import { cloneDeep, isEmpty, values } from 'lodash';
import { sortByField } ... |
index.js | react-native-fellowship/react-native-navbar | import React, { Component } from 'react';
import {
StatusBar,
Text,
View,
Platform,
} from 'react-native';
import PropTypes from 'prop-types';
import ViewPropTypes from './lib';
import NavbarButton from './NavbarButton';
import styles from './styles';
const ButtonShape = {
title: PropTypes.string.isRequired... |
app/components/Keys/Login.js | aaroncox/vessel | // @flow
import React, { Component } from 'react';
import hive from 'hivejs';
import { Button, Checkbox, Divider, Form, Grid, Header, Message, Segment, Select } from 'semantic-ui-react';
import KeysConfirm from './Confirm';
const permissionOptions = [
{
key: 'owner',
text: 'Owner',
value: 'owner',
},
... |
docs/src/components/clients/Client.js | react-charts/react-charts | import React from 'react'
import { LazyImage } from '../LazyImage'
export const Client = React.memo(({ name, image, style, ...rest }) => (
<span title={name} {...rest}>
<LazyImage
src={image}
alt={name}
width={150}
style={style}
className="inline"
/>
</span>
))
|
src/routes/Home/containers/HomeContainer.js | drbelfast/logme | import React from 'react'
import MessagesContainer from './MessagesContainer'
import './HomeView.scss'
const Home = () => (
<div>
<h1>This is Home</h1>
<MessagesContainer />
</div>
)
export default Home |
src/index.js | ivanflorentin/ProvideAppCRUD | import {Route} from 'react-router'
import React from 'react'
import componentCreator from './components'
import provideModel from 'provideModel'
import routeCreator from './routes'
import menuCreator from './menu'
export {createMainContainer} from './createMainContainer'
export default function (appDef) {
// console... |
mealbotui/src/js/components/MealTicket.js | qjflores/mealbot | import React, { Component } from 'react';
import './../../css/MealTicket.css';
export class MealTicket extends Component {
constructor(props) {
super(props);
this.state = {
isReserved:false,
};
}
componentWillMount() {
this.setState({
isReserved: this.props.isReserved,
});
}
render() {
var m... |
_seraphim/src/elements/sphere/Mantle.js | goldbuick/src | import React from 'react';
import * as THREE from 'three';
import Draft from 'viz/Draft';
import tween from 'anim/tween';
import GenPoints from 'viz/GenPoints';
import Projection from 'viz/Projection';
import RenderObject from 'render/RenderObject';
import MantleGem from './MantleGem';
const Mantle = RenderObject.Pur... |
src/Typography/Typography.js | AndriusBil/material-ui | // @flow
import React from 'react';
import type { ComponentType, Node } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import { capitalizeFirstLetter } from '../utils/helpers';
export const styles = (theme: Object) => ({
root: {
display: 'block',
margin: 0,... |
src/components/Autocomplete/Autocomplete.js | oliveirafabio/test-senior | import React from 'react'
import './Autocomplete.scss'
import { Typeahead } from 'react-bootstrap-typeahead'
export const Autocomplete = (props) => {
const { data } = props
return (
<div className="col-md-6 form-group">
<Typeahead labelKey="name" filterBy={['name', 'document']}
options={data}
... |
app/javascript/mastodon/features/ui/components/navigation_panel.js | 5thfloor/ichiji-social | import React from 'react';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
import { profile_directory, showTrends } from 'mastodon/initial_state';
import NotificationsCounterIcon from './notifications_counter_icon';
impo... |
src/modules/about/index.js | zcfreestyle/moment-react | /**
* Created by dllo on 17/8/23.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import '../../assets/styles/editor.styl'
ReactDOM.render(
<App />,
document.getElementById('app')
)
|
proto/data-refining/front/workdir/components/Queries.js | cttgroup/oceanhub | import React from 'react'
import ReactTable from 'react-table'
import 'react-table/react-table.css'
import Cement from './includes/Cement'
export class Queries extends React.Component {
constructor(props) {
super(props)
this.state = {
table: { colNumbers: -1, body: [], legend: {}, },
tasks1: []... |
packages/reactor-kitchensink/src/examples/Toolbar/Toolbar.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Toolbar, Panel, Button, SearchField, SegmentedButton, Spacer } from '@extjs/ext-react';
export default class ToolbarExample extends Component {
constructor() {
super();
this.state = { message: '' }
}
buttonHandler(button) {
this.s... |
webpack/move_to_foreman/components/common/ModalProgressBar/ModalProgressBar.js | jlsherrill/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ProgressBar } from 'patternfly-react';
import { sprintf } from 'jed';
const ModalProgressBar = (props) => {
const { show, container, task } = props;
let modalTitle = null;
let progress = 0;
if (task) {
modalTitle = task.humaniz... |
src/shared/element-react/dist/npm/es6/src/slider/Button.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import { Component, PropTypes } from '../../libs';
import Tooltip from '../too... |
docs/src/NotFoundPage.js | xsistens/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... |
src/components/TableHeading.js | ttrentham/Griddle | import React from 'react';
const TableHeading = ({ columnTitles, columnIds, TableHeadingCell, style, className }) => {
const headingCells = columnIds && columnTitles && columnTitles.map((t, i) => <TableHeadingCell key={columnIds[i]} title={t} columnId={columnIds[i]} />);
return (
<thead style={style} classNam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.