path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/SwitchParams.js | SnowBeaver/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
im... |
src/components/cards/filters/slider-filter.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import Slider from 'antd/lib/slider';
import FilterHeader from "./filter-header";
import 'antd/lib/slider/style/css';
const SliderFilter = ({defaultValue, marks, max, filter, filters, handleSliderClick, handleFilterReset}) => (
<div className="sidebar__b... |
src/components/RightFlank/RightFlank.js | jhabdas/lumpenradio-com | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './RightFlank.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
@withStyles(styles)
class RightFlank extends React.Component {
render() {
return (
<... |
examples/universal/client/index.js | JoeStanton/redux | import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from '../common/store/configureStore'
import App from '../common/containers/App'
const initialState = window.__INITIAL_STATE__
const store = configureStore(initialState... |
example/index.js | MinJieLiu/react-validate-framework | /**
* Created by MingYi on 2016/12/23.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import './bootstrap.css';
import App from './App';
ReactDOM.render(
<App />, // eslint-disable-line react/jsx-filename-extension
document.getElementById('root'),
);
if (module.hot) {
module.hot.accept();
}
|
assets/js/landing/index.js | ueokande/teamdone | import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import {Provider} from "react-redux"
import OrgCreateForm from './component/org-create-form';
import createStoreWithMiddleware from './s... |
app/components/Home.js | FermORG/FermionJS | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Home.scss';
import photon from './photon.scss';
export default class Home extends Component {
render() {
return (
<div className={`${photon['window-content']} ${styles.main}`}>
<div className={p... |
src/redux/utils/createDevToolsWindow.js | seespace/dota2assistant | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | yumikohey/WaiterCar | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/parser/warlock/demonology/modules/pets/PetTimelineTab/TabComponent/KeyCastsRow.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SpellIcon from 'common/SpellIcon';
import Tooltip from 'common/Tooltip';
class KeyCastsRow extends React.PureComponent {
static propTypes = {
className: PropTypes.string,
events: PropTypes.array,
start: PropTypes.number.isRequired,
... |
webui-react/src/index.js | zhewang/topovis | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/index.js | act-now/act-now | /* globals document */
import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Root from './Root';
import './index.css';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin();
ReactDOM.render(
<Root />, //... |
react/src/index.js | VREMSoftwareDevelopment/bwmon | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
const rootNode = document.getElementById('root');
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
rootNode
);
// If you want your app to work of... |
demos/demo/src/components/Login/CreateUser.js | FWeinb/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {signal, state} from 'cerebral/tags'
import translations from '../../common/computed/translations'
import Input from './Input'
export default connect(
{
buttonClick: signal`user.createUserClicked`,
enterPress: signal`user.createUserEnter... |
example/src/components/App.js | martinandert/babel-plugin-css-in-js | import React from 'react';
import MediaQueries from './MediaQueries';
import Theming from './Theming';
import ButtonList from './ButtonList';
const repoUrl = 'https://github.com/martinandert/babel-plugin-css-in-js';
const codeUrl = `${repoUrl}/tree/master/example/src/components`;
class App extends React.Component {
... |
src/react-motion.js | xyc/react-motion | import React from 'react';
import components from './components';
export const {Spring, TransitionSpring, Motion, StaggeredMotion, TransitionMotion} = components(React);
export spring from './spring';
export presets from './presets';
import reorderKeys from './reorderKeys';
export const utils = {
reorderKeys,
};
|
app/scripts/chat-window/ChatWindow.js | butlermd/reactDemo | 'use strict';
import React from 'react';
import ChatMessages from './ChatMessages'
import Composition from './Composition'
const ChatWindow = () => <div className="col-md-9">
<ChatMessages></ChatMessages>
<Composition></Composition>
</div>;
export default ChatWindow; |
src/content/work/assets/TheThirdDimension/index.js | jmikrut/keen-2017 | import React from 'react';
import VerticalSplit from '../../../../components/Layout/VerticalSplit';
import ContentBlock from '../../../../components/Layout/ContentBlock';
import Gutter from '../../../../components/Layout/Gutter';
import ProjectCTA from '../../../../components/Elements/ProjectCTA';
import ViewSite from... |
src/shared/components/misc/Alert.js | sbekti/path-web-client | import React from 'react'
import ReactDOM from 'react-dom'
class Alert extends React.Component {
render() {
let className = 'alert'
switch (this.props.type) {
case 'success':
className += ' alert-success'
break
case 'info':
className += ' alert-info'
break
... |
react-components/src/library/components/page-header.js | concord-consortium/rigse | import React from 'react'
import Component from '../helpers/component'
import fadeIn from '../helpers/fade-in'
import Tooltip from '../helpers/tooltip'
import ItemTooltip from './tooltip'
const PageHeader = Component({
getInitialState: function () {
return {
windowWidth: window.innerWidth,
nav_menu... |
src/svg-icons/maps/local-post-office.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPostOffice = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
MapsLocalPostOff... |
config/shims/assetInserter/schema.js | Kalcode/Gatsby-Boilerplate | import React from 'react'
import config from 'config'
export default function Schema(props) {
return (
<script
key='schema-script'
type='application/ld+json'
dangerouslySetInnerHTML={{__html: JSON.stringify({
'@context': 'http://schema.org',
'@type': 'Organization',
'add... |
Console/app/node_modules/antd/es/grid/col.js | RisenEsports/RisenEsports.github.io | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _typeof from 'babel-runtime/helpers/typeof';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possible... |
packages/wix-style-react/src/Avatar/Avatar.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '../IconButton';
import { avatarShapes, dataHooks } from './constants';
import { Avatar as CoreAvatar } from 'wix-ui-core/dist/src/components/avatar';
import Loader from '../Loader';
import { placeholderSVGs } from './assets';
import ... |
lib/views/init-dialog.js | atom/github | import React from 'react';
import PropTypes from 'prop-types';
import {TextBuffer} from 'atom';
import TabGroup from '../tab-group';
import {TabbableTextEditor} from './tabbable';
import DialogView from './dialog-view';
export default class InitDialog extends React.Component {
static propTypes = {
// Model
... |
src/components/PageFooter.js | washingtonbr/private-content-react | import React from 'react'
import {
Container,
Content,
Footer,
Icon,
} from 'smalldots/lib/experimental/bulma'
const PageHeader = () => (
<Footer>
<Container>
<Content>
<p>
<strong>Private Content with React</strong> by <a href="https://github.c... |
src/svg-icons/av/replay-30.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay30 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.... |
client/app/components/SignupForm/SignupForm.js | krouw/T.SIA-electron-blueprint | import React, { Component } from 'react';
import axios from 'axios';
export default class SignupForm extends Component {
constructor(){
super();
this.state = {
name: '',
username: '',
rut: '',
email: '',
password: '',
errors: {},
}
}
onChange(e){
this.setStat... |
src/components/ui/layout/Flex.js | daxiangaikafei/QBGoods | import React, { Component } from 'react';
import classNames from 'classnames';
import 'libs/layout/layout-mixin.less';
class Flex extends Component {
constructor(props) {
super(props)
}
render() {
let props = this.props;
let classGroups = ['flexLayout', 'flex'];
classGroups.push( "flex-" + props... |
src/svg-icons/av/playlist-play.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistPlay = (props) => (
<SvgIcon {...props}>
<path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/>
</SvgIcon>
);
AvPlaylistPlay = pure(AvPlaylistPlay);
AvPlaylistPlay.displayName = '... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasisInverted.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleEmphasisInverted = () => (
<div>
<Segment inverted>
I'm here to tell you something, and you will probably read me first.
</Segment>
<Segment inverted secondary>
I am pretty noticeable but you might check... |
gui/app.js | siauPatrick/seimur | import React from 'react';
import ReactDOM from 'react-dom';
import thunk from 'redux-thunk';
import {applyMiddleware, createStore, combineReducers, compose} from 'redux';
import {Provider} from 'react-redux';
import {Router, Route, IndexRedirect, browserHistory} from 'react-router';
import {syncHistoryWithStore, route... |
app/components/ErrorMessage.js | DeekshithShetty/hydra | import React from 'react'
function ErrorMessage (props) {
return (
<div className='form__error-wrapper js-form__err-animation'>
<p className='form__error'>
{props.error}
</p>
</div>
)
}
ErrorMessage.propTypes = {
error: React.PropTypes.string
}
export default ErrorMessage
|
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ConversationContainer from '../containers/conversation_container';
import ScrollableList from '../../../components/scroll... |
browser/app/index.js | dvstate/minio | /*
* Minio Cloud Storage (C) 2016 Minio, Inc.
*
* 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... |
fiddles/react/fiddle-0004-AppComponent/src/index.js | bradyhouse/house | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
blueocean-material-icons/src/js/components/svg-icons/image/brightness-5.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageBrightness5 = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"/>
</SvgIcon>... |
src/svg-icons/av/recent-actors.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRecentActors = (props) => (
<SvgIcon {...props}>
<path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.... |
src/core/actions/index.js | pinussilvestrus/lirete | import React from 'react';
import {browserHistory} from 'react-router';
import Server from '../helpers/server';
export default {
plot: (table) => {
return Server.plotTable(table)
.then(result => {
console.log(result);
if (result.graph) return Promise.resolve(result.graph);
Promise.r... |
ngiiedu-client/src/components/admin/school/list/popup/EditPopup.js | jinifor/branchtest | import React from 'react';
import { connect } from 'react-redux';
import { actionEditSchoolOpen, actionUpdateSchool } from '../../../../../actions/index';
//팝업창
import Dialog from 'material-ui/Dialog';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import TextFi... |
src/interface/others/HolyPriestSpreadsheet.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import HealingDone from 'parser/shared/modules/throughput/HealingDone';
import HealingR... |
fields/components/Checkbox.js | danielmahon/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
import { darken, fade } from '../../admin/client/utils/color';
import E from '../../admin/client/constants';
var Checkbox = React.createClass({
displayName: 'Checkbox',
propTypes: {
checked: React.PropTypes.bool,
c... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleUncontrolled.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const options = [
{ text: 'One', value: 1 },
{ text: 'Two', value: 2 },
{ text: 'Three', value: 3 },
]
const DropdownExampleUncontrolled = () => (
<Dropdown
selection
options={options}
placeholder='Choose an option'
/>
)
exp... |
src/StoryNarrative.js | ikr/estimates-template | import React from 'react';
import PropTypes from 'prop-types';
import marked from 'marked';
const renderer = new marked.Renderer();
const tableOrg = renderer.table;
renderer.table = (header, body) => tableOrg(header, body).replace(
'<table>',
'<table class="table table-bordered">'
);
class StoryNarrative ext... |
src/BootstrapMixin.js | blue68/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
src/svg-icons/action/shopping-basket.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionShoppingBasket = (props) => (
<SvgIcon {...props}>
<path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h1... |
src/client/menu.js | leiallen/hacker-menu | import React from 'react'
export default class Menu extends React.Component {
handleOnClick (e) {
e.preventDefault()
this.props.onQuitClick()
}
render () {
var statusText = 'v' + this.props.version
var buttonText = 'Quit'
if (this.props.status === 'update-available') {
statusText += ' ... |
docs/src/app/components/pages/HomeFeature.js | skarnecki/material-ui | import React from 'react';
import {Link} from 'react-router';
import styleResizable from 'material-ui/utils/styleResizable';
import spacing from 'material-ui/styles/spacing';
import transitions from 'material-ui/styles/transitions';
import typography from 'material-ui/styles/typography';
import {grey200} from 'material... |
generators/js-framework/modules/react/components/Account/Login.js | sahat/megaboilerplate | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux'
import { login } from '../../actions/auth';
import { facebookLogin, twitterLogin, googleLogin, vkLogin, githubLogin } from '../../actions/oauth';
import Messages from '../Messages';
class Login extends React.Component... |
chrome/extension/popupapp.js | CKPalk/PA-POC-Video-Contoller | import React from 'react'
import ReactDOM from 'react-dom'
import PopupRoot from '../../app/containers/PopupRoot'
import '../../app/styles/body.styl'
import { getState } from '../../app/utils/localStorage'
import createStore from '../../app/store/configureStore'
getState()
.then(createStore)
.then(store => {
... |
web-react/src/components/Thruster.js | gizmo-cda/g2x-submarine-v2 | import React from 'react';
class Thruster extends React.Component {
static defaultProps = {
cx: 50,
cy: 50,
radius: 10,
skeletonColor: "rgb(128, 128, 128)",
forwardColor: "rgb(0, 128, 0)",
reverseColor: "rgb(192, 64, 64)",
power: 0
};
render() {
let cx = this.props.cx;
let cy = this.props.cy;
l... |
components/public/BaseFormModal.js | hustlzp/react-redux-example | import React from 'react'
import Radium from 'radium'
import Modal from "react-modal"
@Radium
export default class BaseFormModal extends React.Component {
static defaultProps = {
submitText: "提交"
}
static propTypes = {
title: React.PropTypes.string.isRequired,
closeModal: React.Pro... |
src/parser/rogue/shared/resources/ComboPointDetails.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Panel from 'interface/others/Panel';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Icon from 'common/Icon';
import { formatPercentage } from 'common/format';
import ResourceBreakdown from 'parser/shar... |
src/components/Footer/index.js | 15chrjef/ico-wizard | import React from 'react'
import '../../assets/stylesheets/application.css';
import { Link } from 'react-router-dom'
export const Footer = () => (
<footer className="footer">
<div className="container">
<p className="rights">2017 Oracles Network. All rights reserved.</p>
<Link className="logo" to='/'></Lin... |
examples/cdn/app.js | aruberto/react-foundation-components | /* eslint-disable import/no-unresolved */
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from '../../lib/global/button';
import { ButtonGroup } from '../../lib/global/button-group';
const App = () => (
<div>
<h1>Welcome to CDN CSS example!</h1>
<p>
We've imported Found... |
app/index.js | carly-lee/electron-sleep-timer | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './app.global.c... |
src/routes/News/components/Stub.js | weedz/reactcms | import React from 'react';
import { Link } from 'react-router-dom';
export default class Stub extends React.Component {
render() {
return(
<div className="Stub">
<h2><Link to={'/news/article/' +this.props.article.id}>{this.props.article.title}</Link></h2>
<small>... |
components/head.js | runesam/react-redux-next | import React from 'react';
import Head from 'next/head';
export default () => (
<Head>
<title>RRN Application Samples</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.cs... |
app/components/team/Pipelines/index.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { second } from 'metrick/duration';
import Panel from '../../shared/Panel';
import SearchField from '../../shared/SearchField';
import ShowMoreFooter from '../../shared/ShowMoreFooter';
import FlashesStore f... |
example/src/List/List.js | lokiuz/redraft | import React from 'react';
import PropTypes from 'prop-types';
import { CSSTransitionGroup } from 'react-transition-group';
import './List.css';
const List = ({ ordered, children }) => (
<CSSTransitionGroup
component={ordered ? 'ol' : 'ul'}
className="List"
transitionName="animatedList"
transitionEnt... |
src/pages/Comparison/Comparison.js | moje-skoly/app-reloaded | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { Container, Row, Col, Alert } from 'reactstrap';
import {
loadComparison,
remove as removeFromComparison
} from '../../redux/modules/comparison';
im... |
src/popup/components/Pack/Progress.js | fluany/fluany | /**
* @fileOverview A componet to show the progress of the user
* @name Progress.js
* @license GNU General Public License v3.0
*/
import React from 'react'
import PropTypes from 'prop-types'
import propEq from 'ramda/src/propEq'
import find from 'ramda/src/find'
import { connect } from 'react-redux'
import { Line ... |
server/sonar-web/src/main/js/apps/projects/filters/DuplicationsFilter.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/components/TripList.js | muiradams/plantogo | import React, { Component } from 'react';
import { connect } from 'react-redux';
import RaisedButton from 'material-ui/RaisedButton';
import TripCard from './TripCard';
import NewTripButton from './NewTripButton';
import * as actions from '../actions/';
class TripList extends Component {
constructor(props) {
s... |
examples/crna-kitchen-sink/storybook/stories/Button/index.ios.js | rhalff/storybook | import React from 'react';
import PropTypes from 'prop-types';
import { TouchableHighlight } from 'react-native';
export default function Button(props) {
return <TouchableHighlight onPress={props.onPress}>{props.children}</TouchableHighlight>;
}
Button.defaultProps = {
children: null,
onPress: () => {},
};
But... |
src/app.js | antonyr/Mancy | import React from 'react';
import ReplSuggestions from './components/ReplSuggestions';
import ReplPreferences from './components/ReplPreferences';
import Repl from './components/Repl';
import ReplConstants from './constants/ReplConstants';
import ReplFonts from './common/ReplFonts';
import _ from 'lodash';
import remot... |
src/components/GuideList/GuideList.js | devgeeks/4ZZZfm-app | import React from 'react';
import classNames from 'classnames';
import './guidelist.css';
const GuideList = (props) => {
const cx = classNames({
'guide-list': true,
'divider-color': true,
});
return (
<ul className={ cx }>
{ props.children }
</ul>
);
};
GuideList.displayName = 'GuideLi... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | chieryw/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
constructor(pro... |
client/views/room/contextualBar/PruneMessages/PruneMessages.js | VoiSmart/Rocket.Chat | import { Field, ButtonGroup, Button, CheckBox, Callout } from '@rocket.chat/fuselage';
import { useUniqueId } from '@rocket.chat/fuselage-hooks';
import React from 'react';
import UserAutoCompleteMultiple from '../../../../../ee/client/audit/UserAutoCompleteMultiple';
import VerticalBar from '../../../../components/Ve... |
app/javascript/mastodon/components/loading_indicator.js | esetomo/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
components/org.wso2.carbon.business.rules.web/src/constants/BusinessRulesMessages.js | Nethmi-Pathirana/carbon-analytics | /*
* 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.... |
src/js/components/icons/base/FormAttachment.js | linde12/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... |
client/src/app/containers/header/NotificationsMenu.js | mtiger2k/graphql-tutorial | import React from 'react';
import NotificationsMenu from '../../../lib/header/NotificationsMenu';
const notifications = [
{
key: 1,
id: 1,
icon: 'fa fa-users',
iconColor: 'aqua',
text: '5 new members joined today',
},
{
key: 2,
id: 2,
icon: 'fa fa-warning',
iconColor: 'yellow... |
examples/react-es6/CheckboxWithLabel.js | tomv564/jest | import React from 'react';
class CheckboxWithLabel extends React.Component {
constructor(props) {
super(props);
this.state = {isChecked: false};
// since auto-binding is disabled for React's class model
// we can prebind methods here
// http://facebook.github.io/react/blog/2015/01/27/react-v0.1... |
src/js/components/ContentBlocks/BlockImageParagraph/BlockImageParagraphWireframe.js | grommet/grommet-cms-boilerplate | import React from 'react';
import Box from 'grommet/components/Box';
export default function BlockImageParagraphWireframe() {
return (
<Box pad={{ between: 'small' }} direction="row">
<Box full="horizontal" pad="large" colorIndex="light-2" />
<Box full="horizontal" pad="small" colorIndex="accent-3" /... |
src/parser/deathknight/blood/modules/features/DeathStrikeTiming.js | FaideWW/WoWAnalyzer | import React from 'react';
import SelfHealTimingGraph from 'parser/shared/modules/features/SelfHealTimingGraph';
import SPELLS from 'common/SPELLS';
class DeathStrikeTiming extends SelfHealTimingGraph {
constructor(...args) {
super(...args);
this.selfHealSpell = SPELLS.DEATH_STRIKE_HEAL;
this.tabTitle ... |
src/parser/shared/modules/items/bfa/raids/crucibleofstorms/IdolOfIndiscriminateConsumption.js | sMteX/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS/index';
import SPELLS from 'common/SPELLS/index';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Abilities from 'parser/core/modules/Abilities';
import ItemStatistic from 'interface/statistics... |
dva/dva-demo/src/components/Example.js | gubaojian/trylearn | import React from 'react';
const Example = () => {
return (
<div>
Example
</div>
);
};
Example.propTypes = {
};
export default Example;
|
app/javascript/mastodon/features/ui/components/modal_root.js | summoners-riftodon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Base from '../../../components/modal_root';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './modal_loading';
import ActionsModal from './actions_modal';
imp... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | dkushner/ArborJs-Playground | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
app/components/SiteHeader.js | smashingboxes/tapp-web_client | import React, { Component } from 'react';
class SiteHeader extends Component {
render() {
return (
<div className="site-header__container">
<div className="site-header">
<div>
Tapp Logo
</div>
<div>
Tapp informations
</div>
</d... |
src/Spinner.js | reactstrap/reactstrap | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
tag: tagPropType,
type: PropTypes.string,
size: PropTypes.string,
color: PropTypes.string,
className: PropTypes.string,
cssModule: ... |
react/SearchIcon/SearchIcon.sketch.js | seek-oss/seek-style-guide | import React from 'react';
import SearchIcon from './SearchIcon';
import generateSketchIconSizes from '../private/generateSketchIconSizes';
export const symbols = {
...generateSketchIconSizes('Search', <SearchIcon />)
};
|
projects/imbu/gui/browser/app.js | neuroidss/nupic.research | /* -----------------------------------------------------------------------------
* Copyright © 2015, Numenta, Inc. Unless you have purchased from
* Numenta, Inc. a separate commercial license for this software code, the
* following terms and conditions apply:
*
* This program is free software: you can redistribute... |
src/components/Products.js | ohager/nanoflux-react-demo | import React from 'react';
import ProductMatrix from './ProductMatrix';
class Products extends React.Component {
componentWillMount() {
this.props.actions.loadProducts();
}
// must be arrow function to access 'this', or needs bind(this)
// see also: https://medium.com/@rjun07a/binding-callbacks-in-react-comp... |
games/jab/game3/src/scripts/modules/Numbers.js | jabrena/ReactLab | import React from 'react'
let EgyptianNumber = require('../components/egyptianNumber');
let ValidateNumber = require('../components/validateNumber');
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}
const min = 1;
const max = 199999;
export default React.createClass({
... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | snow798/reactText | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
src/components/capture/capture-modal/CaptureModal.js | sebpearce/cycad-react | import React from 'react';
import { Motion, spring } from 'react-motion';
import { Howl } from 'howler';
import styles from './CaptureModal.scss';
import DatePicker from './DatePicker';
import AmountInput from './AmountInput';
import CategoryInput from './CategoryInput';
import CategorySelect from './CategorySelect';
i... |
src/components/topic/About.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import AppButton from '../common/AppButton';
import TopicsMarketingFeatureList from './homepage/TopicsMarketingFeatureList';
import messages ... |
src/containers/test/AppTest.js | opiskelija-dashboard/dashboard | import test from 'ava';
import React from 'react';
import {shallow, mount} from 'enzyme';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import configureStore from 'redux-mock-store'
import App from '../App'
import { connectBackend, setCourseId } from "../../actions/index";
import { fetchDail... |
src/components/FormAPP/FormApp.js | GuoYongfeng/react-fundamental | 'use strict';
import React, { Component } from 'react';
import Checkboxes from './Checkboxes';
import RadioButtons from './RadioButtons';
class FormApp extends Component {
state = {
inputValue: '请输入...',
selectValue: 'A',
radioValue:'B',
checkValues:[],
textareaValue:'请输入...'
}
h... |
app/javascript/mastodon/containers/account_container.js | abcang/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../selectors';
import Account from '../components/account';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
muteAc... |
src/components/Menu/index.js | akilbekov/blog | import React from 'react';
import { Link } from 'gatsby';
import './style.scss';
class Menu extends React.Component {
render() {
const menu = this.props.data;
const menuBlock = (
<ul className="menu__list">
{menu.map((item) => (
<li className="menu__list-item" key={item.path}>
... |
app/common/components/Img/index.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const StyledImg = styled.img`
display: block;
max-width: 100%;
height: auto;
`;
Img.propTypes = {
src: PropTypes.oneOfType([
PropTypes.string,
PropTypes.object,
]).isRequired,
alt: PropTypes.stri... |
fluent-react/examples/hello-world/src/App.js | zbraniecki/fluent.js | import React from 'react';
import { Localized } from 'fluent-react/compat';
export default function App() {
return (
<div>
<Localized id="title">
<h1>Hello, world!</h1>
</Localized>
<Localized id='today-is' $date={new Date()}>
<p>
{'Today is { DATETIME($date, month: "l... |
frontend/app/js/containers/project/wizard/index.js | serverboards/serverboards | import React from 'react'
import {Panes, Tip, Error} from 'app/components'
import {make_introduction} from 'app/components/project/wizard/step01_introduction'
import {make_projectname} from 'app/components/project/wizard/step02_projectname'
import {make_widgets} from 'app/containers/project/wizard/step03_widgets'
impor... |
client/page/home/crash-handler.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import { ExternalLink, Error } from 'wp-plugin-components';
import { getErrorLinks, getErrorDetails } from 'lib/error-links';
import DebugReport from './debug';
function CrashH... |
src/components/tcomb/TextInput.js | yursky/recommend | /**
* Text Input template for tcomb
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { View } from 'react-native';
// Components
import { FormInput, FormLabel, FormValidationMessage } from '@ui/';
/* Component ================================... |
index.js | iostalk/redux-todo | import React, { Component } from 'react';
import AddTodo from './components/AddTodo';
import TodoList from './components/TodoList';
import Filter from './components/Filter';
import { connect,Provider } from 'react-redux';
import { createStore } from 'redux';
import { addTodo, completeTodo, setVisibilityFilter, Visibili... |
src/index.js | liaofeijun/feijun | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.