path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/DatNumber.js | claus/react-dat-gui | /* eslint-disable no-param-reassign */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import isFinite from 'lodash.isfinite';
import isString from 'lodash.isstring';
import result from 'lodash.result';
import cx from 'classnames';
import Slider from './Slider';
import { isInteger, toNumbe... |
src/App.js | 84danie/84danie.github.io | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
app/components/Transactions/PendingRewards.js | aaroncox/vessel | // @flow
import React, { Component } from 'react';
import { Button, Table, Header, Segment } from 'semantic-ui-react';
import AccountName from '../global/AccountName';
export default class PendingReward extends Component {
claimRewardBalance = (e, props) => {
const accounts = this.props.account.accounts;
co... |
src/svg-icons/navigation/more-horiz.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreHoriz = (props) => (
<SvgIcon {...props}>
<path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-... |
examples/todomvc/containers/TodoApp.js | Bjvanminnen/redux-devtools | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
class TodoApp extends Component {
render(... |
examples/translations/src/client/index.js | Jonekee/react-intl | import React from 'react';
import ReactDOM from 'react-dom';
import {IntlProvider} from 'react-intl';
import App from './components/app';
const {locale, messages} = window.App;
ReactDOM.render(
<IntlProvider locale={locale} messages={messages}>
<App />
</IntlProvider>,
document.getElementById('con... |
mxcube3/ui/components/Tasks/Characterisation.js | meguiraun/mxcube3 | import React from 'react';
import { connect } from 'react-redux';
import { reduxForm, formValueSelector } from 'redux-form';
import { Modal, Button, Form, Row, Col, ButtonToolbar, ControlLabel } from 'react-bootstrap';
import { DraggableModal } from '../DraggableModal';
import validate from './validate';
import warn fr... |
blueocean-material-icons/src/js/components/svg-icons/action/trending-flat.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionTrendingFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 12l-4-4v3H3v2h15v3z"/>
</SvgIcon>
);
ActionTrendingFlat.displayName = 'ActionTrendingFlat';
ActionTrendingFlat.muiName = 'SvgIcon';
export default ActionTrendingFlat;
|
packages/example-phone/src/scripts/components/call/call-remote-view.js | good-joe/spark-js-sdk | import React from 'react';
import Video from '../common/video';
export default function RemoteView({
receivingVideo,
remoteMediaStreamUrl,
...rest
}) {
let mediaElement;
if (receivingVideo) {
mediaElement = <Video src={remoteMediaStreamUrl} {...rest} />;
}
else {
// eslint-disable-next-line no-ex... |
templates/rubix/rails/rails-example/src/routes/AllTodos.js | jeffthemaximum/jeffline | import React from 'react';
import { Link } from 'react-router';
import Todo from '../components/Todo';
import TodoForm from '../components/TodoForm';
import client from '@sketchpixy/rubix/lib/utils/HttpClient';
import {
Row,
Col,
Grid,
Panel,
PanelBody,
PanelContainer,
} from '@sketchpixy/rubix';
expor... |
src/components/Icons.js | WendellAdriel/WendellAdriel.github.io | import React from 'react'
export const Github = props => (
<svg
width={256}
height={250}
viewBox="0 0 256 250"
preserveAspectRatio="xMidYMid"
{...props}
>
<path
d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46 6.397 1.185 8.746-2.777 8.746-6.158 0-3.052-... |
app/javascript/mastodon/features/ui/components/modal_loading.js | sylph-sin-tyaku/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsTableSchema.js | jlsherrill/katello | import React from 'react';
import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import helpers from '../../../move_to_foreman/common/helpers';
import {
headerFormatter,
cellFormatter,
selectionHeaderCellFormatter,
selectionCellFormatter,
} from '../../../move_to_foreman/components/common/tabl... |
src/app/modules/Dialog/components/Dialog.js | toxzilla/app | import React from 'react';
import {classNames} from 'react-dom-stylesheet';
import {AlertBox} from './../../../common/UserInterface';
export default class Dialog extends React.Component {
static propTypes = {
...AlertBox.propTypes,
className: React.PropTypes.string,
open: React.PropTypes.bool,
onOpe... |
ui/src/containers/BasicQueryBuilder/Continuous/TempCriterion.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Map, Set } from 'immutable';
import moment from 'moment-timezone';
import { toTimezone } from 'lib/constants/timezones';
import DatePicker from 'ui/components/Material/DatePicker';
import { CriterionOperator, CriterionValue, Criterio... |
server/sonar-web/src/main/js/components/select-list/main.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/parser/warlock/demonology/modules/features/Checklist/Component.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import Checklist from 'parser/shared/modules/features/Checklist';
import Rule from 'parser/shared/modules/features/Checklist/Rule';
import Requirement from 'parser/shared/module... |
src/app/router/Router.js | chrisrcoles/sliding-puzzle | import React from 'react';
import { Router, Route, browserHistory } from 'react-router';
// Layouts
// Pages
import Layout from '../components/Layout';
export default (
<Router history={browserHistory}>
<Route path="/" component={Layout} >
</Route>
</Router>
);
|
src/components/Table/index.js | andywillis/uws | // Dependencies
import React from 'react';
import PropTypes from 'prop-types';
import renderHTML from 'react-render-html';
// Style
import './style.css';
/**
* @function Table
* @param {object} props Component properties
* @return {jsx} Component
*/
const Table = ({ html }) => {
return (
<div className="Ta... |
src/routes/notFound/index.js | nicolascine/site | /**
* 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... |
tests/react_modules/es6class-types-callsite.js | jamesgpearce/flow | /* @flow */
import React from 'react';
import Hello from './es6class-types-module';
import type {Node} from 'react';
type Props = {name: string};
class HelloLocal extends React.Component<Props> {
render(): Node {
return <div>{this.props.name}</div>;
}
}
class Callsite extends React.Component<Props> {
rende... |
src/containers/search_bar.js | Zurean/udemy-weather | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
this.onInputChange = this.onInputCh... |
src/Parser/RestoDruid/Modules/Legendaries/T20_2Set.js | mwwscott0/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import HealingDone fro... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Details/Resources/Resource.js | dewmini/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
src/components/message/Ban.js | zalmoxisus/react-chat | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MdBlock from 'react-icons/lib/md/block';
import MdClose from 'react-icons/lib/md/close';
import MdReplay from 'react-icons/lib/md/replay';
import styles from '../../chat.scss';
export default class Ban extends Component {
constructo... |
app/javascript/mastodon/components/admin/Counter.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { FormattedNumber } from 'react-intl';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import classNames from 'classnames';
import Skeleton from 'mastodon/components/skeleton';
const percIncrease = (a,... |
src/components/search-bar.js | ThatCrazyIrishGuy/youtube-react | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: ''};
}
onInputChange(term) {
this.setState({term});
this.props.onSearchTermChange(term);
}
render() {
return (
<div className="col s12 offset-m2 m... |
src/PageContent.js | lzcmaro/react-ratchet | import React from 'react';
import {classesDecorator} from './utils/componentDecorators';
import classnames from 'classnames';
import ratchetUtils from './utils/ratchetUtils';
@classesDecorator('content')
class Content extends React.Component {
render() {
return (
<div
{...this.props}
role='content'
... |
src/components/dashboard/Room.js | ebabel-eu/amar2000-client | import React, { Component } from 'react';
import PageHeader from '../page-header/page-header';
import Panel from '../panel/panel';
import Ranges from './ranges.js';
import TemperatureUnit from './temperature-unit.js';
import * as _ from '../../constants.js';
import TimerMixin from 'react-timer-mixin';
export default ... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | frontyard/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize: '.8rem',
};
var Cloudin... |
client/node_modules/uu5g03/dist-node/common/color-schema-mixin.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js'
import './color-schema.less';
import './color-schema/default.less';
import './color-schema/yellow.less';
import './color-schema/yellow-rich.less';
import './color-schema/orange.less';
import './color-schema/orange-rich.less';
import './... |
webpack/assets/javascripts/index.js | jwillesen/math_trainer | require('bootstrap/dist/css/bootstrap.css')
require('imports?jQuery=jquery!bootstrap/dist/js/bootstrap.js')
import React from 'react'
import ReactDOM from 'react-dom'
import {applyMiddleware, createStore} from 'redux'
import {Provider} from 'react-redux'
import promiser from 'redux-promise'
import thunker from 'redux... |
src/client/app/panels/workers.import.panel.js | mapkiwiz/sectorisation | import React from 'react';
import {MenuLink} from './menu.link';
import {MessagePanel} from './message.panel';
import {WorkersImportForm} from '../forms/workers.import.form';
import {parseFile} from '../shared/components/upload/file.helper';
import {DropZone} from '../shared/components/upload/dropzone.component';
impor... |
packages/cp-frontend/src/components/manifest/review.js | yldio/copilot | import React from 'react';
import remcalc from 'remcalc';
import { Row } from 'react-styled-flexboxgrid';
import is from 'styled-is';
import {
Button,
Divider,
H3,
P,
typography,
Card,
Message
} from 'joyent-ui-toolkit';
import forceArray from 'force-array';
import styled from 'styled-components';
import... |
client/src/react/health/HomeHealth.js | charlesj/Apollo | import React from 'react'
import { connect, } from 'react-redux'
import PropTypes from 'prop-types'
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
} from 'recharts'
import { metricsActions, } from '../../redux/actions'
import { metricsSelectors, } from '../../redux/selectors'
import { FlexR... |
wisewit_front_end/node_modules/react-router/modules/RouteContext.js | emineKoc/WiseWit | import warning from './routerWarning'
import React from 'react'
const { object } = React.PropTypes
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitio... |
docs2/src/templates/docs-page.js | joemcbride/graphql-dotnet | import React from 'react'
import PropTypes from 'prop-types'
const DocsPage = ({ data }) => {
const page = data.markdownRemark
const metadata = data.site.siteMetadata
const editUrl = metadata.githubEditUrl + '/' + page.fields.relativePath
return (
<div className="content">
<article
className=... |
src/v2/stories/RadioOptions.stories.js | aredotna/ervell | import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import Specimen from 'v2/stories/__components__/Specimen'
import RadioOptions from 'v2/components/UI/RadioOptions'
import Text from 'v2/components/UI/Text'
storiesOf('RadioOptions', module)
.add... |
src/components/weather_chart.js | albertocueto/modern-react-redux-weather-cities | import React from 'react';
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';
import _ from 'lodash';
function average(data) {
return _.round(_.sum(data)/data.length);
}
export default (props) => {
return(
<div>
<Sparklines data={ props.data } width={150} height={120... |
src/svg-icons/editor/mode-comment.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorModeComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/>
</SvgIcon>
);
EditorModeComment = pure(EditorModeComment);
Edito... |
breezy/lib/index.js | jho406/Breezy | import React from 'react'
import parse from 'url-parse'
import { rootReducer } from './reducers'
import { config } from './config'
import { urlToPageKey, ujsHandlers, argsForHistory } from './utils'
import { saveAndProcessPage } from './action_creators'
import { HISTORY_CHANGE, SET_CSRF_TOKEN } from './actions'
import ... |
node_modules/react-bootstrap/es/Modal.js | Chen-Hailin/iTCM.github.io | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/svg-icons/file/folder-open.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFolderOpen = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/>
</SvgIcon>
);
FileFolderOpen = pure(F... |
actor-apps/app-web/src/app/components/Install.react.js | xiaotaijun/actor-platform | import React from 'react';
export default class Install extends React.Component {
render() {
return (
<section className="mobile-placeholder col-xs row center-xs middle-xs">
<div>
<img alt="Actor messenger"
className="logo"
src="assets/img/logo.png"
... |
fields/types/geopoint/GeoPointField.js | riyadhalnur/keystone | import Field from '../Field';
import React from 'react';
import { FormRow, FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'GeopointField',
focusTargetRef: 'lat',
valueChanged (which, event) {
this.props.value[which] = event.target.value;
this.props.onChange({
path: t... |
src/Editor/index.js | michalko/draft-wyswig | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Editor,
EditorState,
RichUtils,
convertToRaw,
convertFromRaw,
CompositeDecorator,
} from 'draft-js';
import {
changeDepth,
handleNewLine,
blockRenderMap,
getCustomStyleMap,
extractInlineStyle,
get... |
docs/src/app/components/pages/components/Tabs/ExampleIcon.js | pancho111203/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import FontIcon from 'material-ui/FontIcon';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
const TabsExampleIcon = () => (
<Tabs>
<Tab icon={<FontIcon className="muidocs-icon-action-home" />} />
<Tab icon=... |
frontend/app_v2/src/components/DashboardWidgets/DashboardWidgetsPresentation.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
// FPCC
import DashboardLandingPresentation from 'components/DashboardLanding/DashboardLandingPresentation'
import Loading from 'components/Loading'
import useIcon from 'common/useIcon'
function DashboardWidgetsPresen... |
app/containers/MealsContainer.js | jcarral/cafeADE | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchMeals } from '../actions/mealsActions';
import MealsView from '../components/MealsView';
class MealsContainer extends Component{
static navigationOptions = {
header: null,
title: 'Menus',
}
constructor(props)... |
src/routes/Posts/components/NewPost/NewPost.js | skylus/tom-rrf | import React from 'react'
import PropTypes from 'prop-types'
// import Paper from 'material-ui/Paper'
import { isObject } from 'lodash'
// import classes from './ProjectTile.scss'
import { Field, reduxForm } from 'redux-form'
import { TextField } from 'redux-form-material-ui'
import { required } from 'utils/form'
impor... |
techCurriculum/ui/solutions/4.5/src/components/TextInput.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
classic/src/scenes/mailboxes/src/Scenes/AccountScene/AccountStandaloneScene/AccountStandaloneScene.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { withStyles } from '@material-ui/core/styles'
import { RouterDialog, RouterDialogStateProvider } from 'wbui/RouterDialog'
import AccountStandaloneSceneContent from './AccountStandaloneSceneCont... |
src/svg-icons/action/turned-in.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTurnedIn = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionTurnedIn = pure(ActionTurnedIn);
ActionTurnedIn.displayName = 'Ac... |
lib/modules/Client.js | nramadas/r-platform | import { Thunker, PromiseWell, Logger } from '@r/middleware';
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import { Provider } from 'react-redux';
import navigationMiddleware from './navigationMiddleware';
import platform fr... |
app/components/Home.js | xiaoyaomaopp/BigData-WebArt | import React from 'react';
import {
Link
} from 'react-router';
import ArtList from './ArtList';
class Home extends React.Component {
render() {
return (
<ArtList/>
);
}
}
export default Home; |
src/m52-overview/js/main.js | datalocale/dataviz-finances-gironde |
import { Record, OrderedSet as ImmutableSet } from 'immutable';
import { createStore } from 'redux';
import React from 'react';
import ReactDOM from 'react-dom';
import { connect, Provider } from 'react-redux';
import {hierarchicalM52, hierarchicalAggregated, m52ToAggregated} from '../../shared/js/finance/memoized';... |
src/svg-icons/av/av-timer.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvAvTimer = (props) => (
<SvgIcon {...props}>
<path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-... |
src/MediaBox.js | chris-gooley/react-materialize | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
class MediaBox extends Component {
componentDidMount () {
$('.materialboxed').materialbox();
}
render () {
const { src, className, caption, ...props } = this.props;
return (
<img classNa... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultProps.js | AgentME/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<DefaultProps, Props> {
static defaultProps: DefaultProps = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component<DefaultProps, ... |
src/app/app.js | webcoding/reactui-starter | /*global FB*/
//load CSS assets first
require( '../assets/main.css' );
import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import Router from 'react-router';
import ga from 'react-ga';
import config from 'config';
import routes from './routes';
///////////////////
/// INITIALISE
let ana... |
src/app/app-routers.js | cherishstand/OA-react | import React from 'react';
import {Route, IndexRoute,Redirect} from 'react-router';
import Master from './components/index/Master';
import Index from './components/index/Index';
import Customer from './components/list/Customer';
import Setting from './components/list/Setting';
import About from './components/list/About... |
src/components/dateo/author.js | datea/datea-webapp-react | import React from 'react';
import PropTypes from 'prop-types';
import {AuthorHeader, DateAuthored} from '../author-header';
import Link from '../link';
const Author = ({dateo}) =>
<AuthorHeader
user={dateo.user}
subTitle={
<Link route="dateo" params={{dateoId: dateo.id}}>
<DateAuthored date={da... |
src/components/Table.js | baandyfuo/hanstock | import React, { Component } from 'react';
export default class Table extends Component {
static propTypes = {
cols : React.PropTypes.array,
rows : React.PropTypes.array
}
render() {
const cols = this.props.cols;
const rows = this.props.rows;
return (
<table className="ui table">
... |
app/components/BusinessList/List.js | lksilva/elecash-flow | import React, { Component } from 'react';
import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn }
from 'material-ui/Table';
import ActionOK from 'material-ui/svg-icons/action/get-app';
import ActionFIND from 'material-ui/svg-icons/action/find-in-page';
import RaisedButton from 'material-... |
src/components/message.js | eh3rrera/react-horizon | import React, { Component } from 'react';
export default class Message extends Component {
constructor(props) {
super(props);
}
render() {
const {text, author} = this.props.message;
return (
<div className={'message-row'}>
<div><b>Author:</b> {author}</... |
src/molecules/archive/list/component.js | dsmjs/components | import React from 'react';
import {arrayOf, shape, string} from 'prop-types';
import ArchiveListItem from '../../../atoms/archive-list-item';
export default function ArchiveList({meetings}) {
return (
<ol css={{listStyleType: 'none'}}>
{meetings.map(meeting => <li key={meeting.node.fields.slug}><ArchiveLis... |
docs/app/Examples/elements/Button/Variations/ButtonFloatedExample.js | jcarbo/stardust | import React from 'react'
import { Button } from 'stardust'
const ButtonFloatedExample = () => (
<div>
<Button floated='right'>Right Floated</Button>
<Button floated='left'>Left Floated</Button>
</div>
)
export default ButtonFloatedExample
|
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | pointlessone/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spr... |
app/containers/CarouselPage/index.js | iFatansyReact/react-boilerplate-imagine | // eslint-disable
/*
* JackpotPage
*
* List all the Jackpot
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import Immutable from 'immutable';
import classNames from 'classnames';
import H1 from 'components/H1';
impo... |
packages/react-scripts/fixtures/kitchensink/template/src/features/env/ExpandEnvVariables.js | Timer/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
const ExpandEnvVariables = () => (
<span>
<span id="feature-expand-env-1">{process.env.REACT_APP_BASIC... |
app/clients/next/components/features/header.js | koapi/koapp | import React from 'react'
import { Container, Row, Col } from 'reactstrap'
import classnames from 'classnames'
import { translate } from 'react-i18next'
import { Link } from '../../routes'
export default translate(['common'])(({t, product = {}, url, active}) => {
const navs = [
{ key: 'overview', route: 'product... |
modules/dreamview/frontend/src/components/StatusBar/Speedometer.js | xiaoxq/apollo | import React from 'react';
const UNITS = [{
name: 'km/h',
conversionFromMeterPerSecond: 3.6,
}, {
name: 'm/s',
conversionFromMeterPerSecond: 1,
}, {
name: 'mph',
conversionFromMeterPerSecond: 2.23694,
}];
export default class Speedometer extends React.Component {
constructor(props) {
super(props);
... |
src/svg-icons/image/looks-one.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksOne = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-2V7h4v10z"/>
</SvgIcon>
);
ImageLooksOne = pure(ImageLooksOn... |
src/pages/Preferences/User/ChangeInfo.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import get from 'mout/src/object/get';
import { connect } from 'react-redux';
import style from 'HPCCloudStyle/ItemEditor.mcss';
import ButtonBar from '../../../panels/ButtonBar';
import getNetworkError from '../../../utils/getNetworkError';
import * as... |
src/components/PlaylistManager/Header/SourcePicker.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import Popover from '@material-ui/core/Popover';
import ArrowIcon from '@material-ui/icons/ArrowDropDown';
import injectMediaSources from '../../../utils/injectMediaSources';
import SourcePickerElement from './SourcePickerElemen... |
presentation/TwoPane.js | belazer/jsx-keynote | import React from 'react';
import {
Appear,
CodePane,
Fill,
Layout,
Heading
} from "spectacle";
const PaneHeading = ({title}) => (
<Heading size={5} caps textColor="primary">
{title}
</Heading>
);
const TwoPane = ({Left, Right, leftHeading, rightHeading}) => (
<Layout>
<Appear>
<Fill>
... |
src/js/components/icons/base/SocialSkype.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
JS/Classes/Module/ListView/UITableViewExample.js | joggerplus/ReactNativeRollingExamples |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
var TableView = require('../../../Vendor/react-native-tableview');
var Section = TableView.Section;
var Item = TableView.Item;
var responseData = require('../../../Resources/test.json');
class UITable... |
lib/error.js | nikvm/next.js | import React from 'react'
import HTTPStatus from 'http-status'
import Head from './head'
export default class Error extends React.Component {
static getInitialProps ({ res, xhr }) {
const statusCode = res ? res.statusCode : (xhr ? xhr.status : null)
return { statusCode }
}
render () {
const { status... |
webapp/src/ScoreCircle.js | mathieu-pousse/go-dart | import React from 'react';
const ScoreCircle = ({ position, currentDart, score }) => {
if (score != undefined && (score.Pos == 2 || score.Pos == 3)) {
return (
<div className="score-circle-wrapper">
<div className="circle score-circle valign-wrapper"
style... |
client/components/Lendr.js | lendr2/lendr2 | import React, { Component } from 'react';
import { Router, Route, Link, browserHistory } from 'react-router';
class Lendr extends Component {
render() {
return (
<div className='lendr'>
{this.props.children}
</div>
)
}
}
export default Lendr;
|
src/components/Post/Content/Content.js | saegeullee/saegeullee.github.io | // @flow strict
import React from 'react';
import styles from './Content.module.scss';
type Props = {
body: string,
title: string
};
const Content = ({ body, title }: Props) => (
<div className={styles['content']}>
<h1 className={styles['content__title']}>{title}</h1>
<div className={styles['content__bo... |
l5/src/routes/single.js | huang6349/rn | import React, { Component } from 'react';
import {
View,
Text,
Button,
} from 'react-native';
import styles from '../router.style';
import { connect } from 'dva/mobile';
class Single extends React.Component {
static propTypes = {
dispatch: React.PropTypes.any,
single: React.PropTypes.any,
};
add()... |
index.android.js | CompileYouth/SmallFish | /**
* 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 SmallFish extends Component {
render() {
return (
<View style={styles.container... |
client/src/components/Login/Error.js | jobn/iceman | // @flow
import React from 'react'
type Props = {
error: {
status: number,
statusText: string,
}
}
export default (props: Props) => {
const { error: { status, statusText } } = props
if (status === 401) {
return (
<div className='error'>
<p>Username or password is incorrect</p>
... |
src/server.js | daviferreira/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
im... |
node_modules/react-router/modules/Lifecycle.js | WatkinsSoftwareDevelopment/HowardsBarberShop | import warning from './warning'
import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* 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 standard transi... |
app/components/MainAssignment/Scene/index.js | cerebral/cerebral-reference-app | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import Module from 'components/Module';
import ToolbarButton from 'common/components/ToolbarButton';
import Toolbar from 'common/components/Toolbar';
import CodeEditor from 'components/CodeEditor';
import Preview from 'components/Prev... |
kit/entry/server.js | CharlSparksNZ/TAB-next-to-go | /* eslint-disable no-param-reassign, no-console */
// Server entry point, for Webpack. This will spawn a Koa web server
// and listen for HTTP requests. Clients will get a return render of React
// or the file they have requested
//
// Note: No HTTP optimisation is performed here (gzip, http/2, etc). Node.js
// wi... |
js/jqwidgets/demos/react/app/grid/dragdrop/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxDragDrop from '../../../jqwidgets-react/react_jqxdragdrop.js';
class App extends React.Component {
render() {
var source =
{
localdata: genera... |
examples/cra-react15/src/App.js | kadirahq/react-storybook | /* eslint-disable react/prefer-stateless-function */
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" al... |
app/javascript/mastodon/features/account_gallery/index.js | mhffdq/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { refreshAccountMediaTimeline, expandAccountMediaTimeline } from '../../actions/timelines';
impo... |
pootle/static/js/shared/components/Dialog.js | phlax/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import Modal, { ModalFooter } ... |
app/javascript/mastodon/features/home_timeline/index.js | summoners-riftodon/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { expandHomeTimeline } from '../../actions/timelines';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../comp... |
ui/src/app/components/newUser.js | ridakk/node-log-server | import React from 'react';
import { deepOrange500 } from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import TextBox from './textBox';
import Button from './button';
import TopBar from './topBar';
import Notifi... |
examples/todos/index.js | chentsulin/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import todoApp from './reducers'
import App from './components/App'
let store = createStore(todoApp)
render(
<Provider store={store}>
<App />
</Provid... |
src/routes/NotFound/NotFound.js | stefanosKarantin/stefanos-react-prj | import React from 'react'
import { browserHistory } from 'react-router'
const goBack = (e) => {
e.preventDefault()
return browserHistory.goBack()
}
export const NotFound = () => (
<div>
<h4>Page not found!</h4>
<p><a href='#' onClick={goBack}>← Back</a></p>
</div>
)
export default... |
actor-apps/app-web/src/app/components/ToolbarSection.react.js | chengjunjian/actor-platform | import React from 'react';
import DialogStore from 'stores/DialogStore';
import ActivityActionCreators from 'actions/ActivityActionCreators';
//import AvatarItem from 'components/common/AvatarItem.react';
var getStateFromStores = () => {
return {dialogInfo: null};
};
class ToolbarSection extends React.Component ... |
examples/todomvc/index.js | Creamov/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
src/index.js | luluhan/study-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import AppComponent from './components/Main';
// Render the main component into the dom
ReactDOM.render(<AppComponent />, document.getElementById('app'));
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.