path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/components/operations/add-operation-modal.js | bnjbvr/kresus | import React from 'react';
import { connect } from 'react-redux';
import { actions, get } from '../../store';
import {
translate as $t,
NONE_CATEGORY_ID,
UNKNOWN_OPERATION_TYPE,
displayLabel
} from '../../helpers';
import CategorySelect from './category-select';
import TypeSelect from './type-select'... |
app/js/pages/Page3.js | catxuxiang/amt-starter-kit | import React from 'react';
import {
Container,
Group,
List,
} from 'amazeui-touch';
import {
Link,
} from 'react-router';
const Page3 = React.createClass({
renderItems() {
const pages = [
'Page1',
];
return pages.map((item, index) => {
return (
<List.Item
linkCompon... |
src/svg-icons/communication/ring-volume.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRingVolume = (props) => (
<SvgIcon {...props}>
<path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0... |
src/layouts/Main.js | ishwarsawale/ishwarsawale.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { Helmet, HelmetProvider } from 'react-helmet-async';
import Navigation from '../components/Template/Navigation';
import SideBar from '../components/Template/SideBar';
import ScrollToTop from '../components/Template/ScrollToTop';
const Main = (prop... |
docs/src/app/components/pages/get-started/ServerRendering.js | matthewoates/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import serverRenderingText from './serverRendering.md';
const ServerRendering = () => (
<div>
<Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} />
<MarkdownElemen... |
src/shared/components/ProfileAccessLink/ProfileAccessLink.js | pavelkukov/pgkoapoc | import React from 'react'
import { Link } from 'react-router-dom'
const ProfileAccessLink = ({_text, existingUser, loggedIn}) => {
let text = _text.profile()
let href = '/profile'
if (existingUser && !loggedIn) {
text = _text.login()
href = '/login'
} else if (!existingUser && !loggedIn) {
... |
node_modules/react-native/Libraries/Components/WebView/WebView.ios.js | horizon-z40/RN-homework | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/app/components/team/InviteDialog.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { commitMutation, graphql } from 'react-relay/compat';
import { FormattedMessage } from 'react-intl';
import * as EmailValidator from 'email-validator';
import Button from '@material-ui/core/Button';
import Di... |
screens/HomeScreen/index.js | React-Native-Warehouse/TabBasicExtension | import React from 'react';
import {
Image,
Linking,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import { MonoText } from '../../components/StyledText';
export default class HomeScreen extends React.Component {
static navigationOptions = {
header: null,
... |
src/router.js | workswell/smartforms | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/http';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage';
... |
fixtures/kitchensink/template/src/features/syntax/ComputedProperties.js | d3ce1t/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load(prefix) {
return [
{ id: 1, [`${prefi... |
src/views/ProductListing.js | kathy-ems/iConsume | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
ActivityIndicator,
Alert,
AppRegistry,
AsyncStorage,
ListView,
SegmentedControlIOS,
StyleSheet,
Text,
TextInput,
TouchableHighlight,
Vibration,
View
} from ... |
packages/expo-dev-menu/vendored/react-native-gesture-handler/src/touchables/TouchableOpacity.js | exponent/exponent | import { Animated, Easing, StyleSheet, View } from 'react-native';
import GenericTouchable, { TOUCHABLE_STATE } from './GenericTouchable';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
/**
* TouchableOpacity bases on timing animation which has been used in RN's core
*/
export default ... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | carlosocarvalho/angular-two-template | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/modules/editor/components/popovers/addTooltip/AddItemButton/AddItemButton.js | CtrHellenicStudies/Commentary | import React from 'react';
import autoBind from 'react-autobind';
import { connect } from 'react-redux';
// redux
import editorActions from '../../../../../actions';
// components
import AddTooltipButton from '../../AddTooltipButton';
class AddItemButton extends React.Component {
constructor(props) {
super(props... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | kirakiratter/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
src/app/screens/Authentication/index.js | docgecko/react-alt-firebase-starter | /*! React Alt Firebase Starter */
import React from 'react';
import { Route } from 'react-router';
import Authentication from './shared/Layout/components/Layout';
import RegistrationRoute from './screens/Registration/index';
import LoginRoute from './screens/Login/index';
import ForgotPasswordRoute from './screens/Fo... |
examples/src/components/States.js | Craga89/react-select | import React from 'react';
import Select from 'react-select';
const STATES = require('../data/states');
var StatesField = React.createClass({
displayName: 'StatesField',
propTypes: {
label: React.PropTypes.string,
searchable: React.PropTypes.bool,
},
getDefaultProps () {
return {
label: 'States:',
sea... |
src/svg-icons/communication/present-to-all.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
src/svg-icons/image/nature-people.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNaturePeople = (props) => (
<SvgIcon {...props}>
<path d="M22.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H6v-3h1v-4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v4h1v5h16v-2h-3v-3.88c3.47-.41 ... |
lib/components/notifications.js | martinvd/hyper | import React from 'react';
import Component from '../component';
import {decorate} from '../utils/plugins';
import Notification_ from './notification';
const Notification = decorate(Notification_);
export default class Notifications extends Component {
template(css) {
return (<div className={css('view')}>
... |
node_modules/react-bootstrap/es/DropdownMenu.js | Chen-Hailin/iTCM.github.io | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _Array$from from 'babel-runtime/core-js/array/from';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtim... |
spec/components/menu.js | showings/react-toolbox | import React from 'react';
import { Menu, MenuItem, MenuDivider } from '../../components/menu';
class MenuTest extends React.Component {
state = {
value: undefined,
};
handleSelect = (item) => {
console.log('Menu selection changed!!, now its', item);
this.setState({ value: item });
};
handleIte... |
public/pages/search/components/body.js | jclo/kiwii | /* eslint class-methods-use-this: 0 */
// -- Vendor modules
import React from 'react';
// -- Project Modules
// -- Variables
// -- Main section
export default class extends React.Component {
render() {
return (
<form className={'content-padded'}>
<input type={'text'} placeholder={'Full name'} />... |
webpack/JobWizard/steps/Schedule/ScheduleType.js | theforeman/foreman_remote_execution | import React from 'react';
import PropTypes from 'prop-types';
import { FormGroup, Radio } from '@patternfly/react-core';
import { translate as __ } from 'foremanReact/common/I18n';
export const ScheduleType = ({ isFuture, setIsFuture }) => (
<FormGroup label={__('Schedule type')} fieldId="schedule-type">
<Radio... |
src/svg-icons/editor/linear-scale.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorLinearScale = (props) => (
<SvgIcon {...props}>
<path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 ... |
src/components/About/index.js | uppermanis/react-course | import React from 'react';
import s from './styles';
// About
export default () => (
<div className={s.container()}>
<p>
Hi there! This is simple react `blog` without any backend.
Created for <a href="https://github.com/uppermanis/react-course" target="_blank" rel="noopener noreferrer">
react-c... |
src-example/components/pages/HomePage/index.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | // https://github.com/diegohaz/arc/wiki/Atomic-Design
import React from 'react'
import { PageTemplate, Header, Hero, Footer, FeatureList } from 'components'
const HomePage = () => {
return (
<PageTemplate header={<Header />} hero={<Hero />} footer={<Footer />}>
<FeatureList />
</PageTemplate>
)
}
e... |
src/svg-icons/communication/dialpad.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationDialpad = (props) => (
<SvgIcon {...props}>
<path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-... |
app/javascript/mastodon/features/ui/components/onboarding_modal.js | 3846masa/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Permalink from '../../../components/permalink';
import TransitionMotion from... |
react-ui/src/index.js | MaGuangChen/resume-maguangchen | import React from 'react';
import ReactDOM from 'react-dom';
import { Route } from 'react-router';
import { ConnectedRouter } from 'react-router-redux';
import createHistory from 'history/createBrowserHistory';
import { configure } from './store/configureStore';
import ApolloClient from 'apollo-client';
import { Apollo... |
fixtures/ssr/server/render.js | jdlehman/react | import React from 'react';
import {renderToString} from 'react-dom/server';
import App from '../src/components/App';
let assets;
if (process.env.NODE_ENV === 'development') {
// Use the bundle from create-react-app's server in development mode.
assets = {
'main.js': '/static/js/bundle.js',
'main.css': '',... |
src/index.js | Robinbin/voting_app | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import './vendor/semantic/dist/semantic.min.css';
import ProductList from './app';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<ProductList />, document.getElementById('content'));
registerServiceWorker... |
src/common/components/Hello/Hello.stories.js | kiki-le-singe/react-redux-universal-boilerplate | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import Hello from './Hello'
import '../../styles/global/views/hello.scss'
storiesOf('Hello', module)
.addWithInfo(
'without props',
`
This is the basic usage with the Hello component.
`,
() => (
<Hello />
)
)
... |
wrappers/md.js | machikoyasuda/la-gos | import React from 'react'
import 'css/markdown-styles.css'
import Helmet from "react-helmet"
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const post = this.props.route.page.data
return (
<... |
ignite/DevScreens/PresentationScreen.js | littletimo/beer-counter | import React from 'react'
import {ScrollView, Text, Image, View, TouchableOpacity} from 'react-native'
import {Images} from './DevTheme'
import ButtonBox from './ButtonBox'
import {StackNavigator} from 'react-navigation'
// Screens
import APITestingScreen from './APITestingScreen'
import ComponentExamplesScreen from '.... |
component-starter-server/src/main/frontend/src/app/components/Finish/Finish.js | chmyga/component-runtime | /**
* Copyright (C) 2006-2020 Talend Inc. - www.talend.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... |
src/svg-icons/maps/directions-car.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsCar = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1... |
src/svg-icons/maps/local-dining.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDining = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.... |
piloto-presentation/src/main/webapp/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | felipesabadini/piloto | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
shared/routes.js | gigavinyl/pern-starter | import { Route, IndexRoute } from 'react-router';
import React from 'react';
import App from './container/App';
import PostContainer from './container/PostContainer/PostContainer';
import PostDetailView from './container/PostDetailView/PostDetailView';
const routes = (
<Route path="/" component={App} >
<IndexRou... |
src/svg-icons/action/settings-input-component.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputComponent = (props) => (
<SvgIcon {...props}>
<path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.... |
src/index.js | iamsimakov/aor-datetime-input | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { addField, FieldTitle } from 'ra-core';
import { DateTimePicker, MuiPickersUtilsProvider } from 'material-ui-pickers';
import DateFnsUtils from '@date-io/date-fns';
const datify = input_date => {
if (!input_date || input_date === '... |
src/routes/CreateD/components/index.js | bayun2/edict | import React from 'react';
import * as ReactRouter from 'react-router';
import ShareWeixin from '../../../lib/shareWeixin';
const {Link, browserHistory} = ReactRouter;
class CreateD extends React.Component {
constructor(props) {
super(props);
this.state = {
showTip: false,
showBtn: false
};... |
src/js/components/modal/index.js | JetMixTech/CallBack | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CN from 'classnames';
import styles from 'styles/blocks/modal';
import { Icon, Form, Input, Button } from 'js/components/ui';
import { http } from 'js/utils';
class Modal extends Component {
constructor() {
super();
... |
client/index.js | zmiftah/freecodecamp | import Rx from 'rx';
import React from 'react';
import Fetchr from 'fetchr';
import debugFactory from 'debug';
import { Router } from 'react-router';
import { history } from 'react-router/lib/BrowserHistory';
import { hydrate } from 'thundercats';
import { Render } from 'thundercats-react';
import { app$ } from '../co... |
app/components/Header/index.js | omniva/react | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
01-basic-example/index.js | nodeyu/jason-react-router-demos-v4 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App/>,
document.querySelector('#app')
);
|
react/dashboard_example/src/routes/dashboardPages/buttons/index.js | webmaster444/webmaster444.github.io | import React from 'react';
import Button from './Button';
export default {
path: '/button',
action() {
return <Button />;
},
};
|
assets/jqwidgets/demos/react/app/scheduler/appointmentstatuses/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount() {
this.refs.myScheduler.ensureAppointmentVisible('id1');
}
render() {
let appointments = new Array... |
assets/jqwidgets/demos/react/app/chart/columnsrange/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let sampleData = [{ a: 0.35, b: 14.5, c: 0.35, d: 0.1 }, { a: 1, b: 2.5, c: 1, d: 0.2 }, { a: 10, b: 0.5, c: 10, d: 50 }, { a: 100,... |
examples/js/advance/demo.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import EditTypeTable from './edit-type-table';
import DataInsertTypeTable from './insert-type-table';
import AutoRowKeyTable from './auto-rowkey-table';
import ValidatorTable from './validator-table';
import HideOnInsertTable from './hide-on-insert-table';
import Disab... |
examples/todo/js/components/TodoList.js | edvinerikson/relay-subscriptions | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
src/components/Replies.js | cyqkeygen/ruby-china-react-redux-demo | import React from 'react';
import PropTypes from 'prop-types';
import ReactMarkdown from 'react-markdown';
import { toDate } from '../lib/dateFormat';
import imageUrlReload from '../lib/imageUrlReload';
import styles from '../styles/modules/Replies.scss';
class Replies extends React.Component {
static propTypes = {... |
src/js/containers/application/index.js | JetMixTech/CallBack | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from 'styles/lib/base';
import Modal from 'js/components/modal';
import { Button } from 'js/components/ui';
class Application extends Component {
constructor() {
super();
this.openModal = this.openModal.bin... |
jqwidgets/jqwidgets-react/react_jqxmenu.js | UCF/IKM-APIM | /*
jQWidgets v5.6.0 (2018-Feb)
Copyright (c) 2011-2017 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxMenu extends React.Component {
componentDidMount() {
let options = this.manageAtt... |
packages/cf-component-icon/src/reactsvgs/Shield.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
const Shield = ({ className, label }) => (
<svg
className={className}
aria-label={label}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<path d="M1.98,1.312V8.43h0a5.172,5.172,0,0,0,1.168,3.153,5.921,5.921,0,0,0,1.908,1.54... |
src/screens/Space.js | jaynsw/easywrite-webapp | // @flow
import React from 'react';
import '../App.css';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { getSpace} from '../reducers';
import {fetchArticles, initSpace, fetchSpaceByHost, fetchSpace} from '../Actions';
import {WEB_ROOT} from '../Constants';
import SmallI... |
pollard/components/AddedSongsDisplay.js | spencerliechty/pollard | import React, { Component } from 'react';
import DraggableSong from './DraggableSong';
export default class AddedSongsDisplay extends Component {
getCurrentlyPlayingSongIdx(songs) {
for (var idx = 0; idx < songs.size; idx++) {
if (songs.getIn([idx, 'played'])) {
return idx;
}
}
retu... |
app/client/javascript/main.js | playwolsey/Robin | /**
* @desc client main.js, app client render
* @author awwwesssooooome <chengpengcp9@gmail.com>
* @date 2015-10-08
*/
import React from 'react';
import Router from 'react-router';
import { routes } from '../../../config/routes';
Router.run(routes, Router.HistoryLocation, (Handler) => {
React.render(<Handler ... |
assets/js/containers/App.js | peksipatongeis/Going-Websockets | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchContent } from '../ducks/app';
import Something from '../components/Something';
class App extends Component {
constructor(props) {
super(props);
this.state... |
node_modules/react-bootstrap/es/TabContent.js | xuan6/admin_dashboard_local_dev | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
fields/types/text/TextColumn.js | danielmahon/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var TextColumn = React.createClass({
displayName: 'TextColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
linkTo: React.PropType... |
packages/cf-component-toggle/example/basic/component.js | mdno/mdno.github.io | import React from 'react';
import Toggle from 'cf-component-toggle';
class ToggleComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
toggleValue: false
};
}
handleToggle(value) {
this.setState({
toggleValue: value
});
}
render() {
return... |
src/svg-icons/action/explore.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExplore = (props) => (
<SvgIcon {...props}>
<path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2... |
src/svg-icons/editor/border-color.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderColor = (props) => (
<SvgIcon {...props}>
<path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp... |
modules/Redirect.js | arasmussen/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should b... |
pages/postcss.js | RossAD/MyWebsite | import React from 'react'
import './example.css'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
export default class PostCSS extends React.Component {
render () {
return (
<DocumentTitle title={`${config.siteTitle} | Hi PostCSSy friends`}>
<div>
<h1 class... |
app/javascript/mastodon/features/compose/components/compose_form.js | tateisu/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
app/src/App.js | pqmcgill/greenlight-archives | 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>
... |
client/username-prompter.js | carpeliam/kriegspieljs | import React from 'react';
import { connect } from 'react-redux';
import Modal from 'react-modal';
import { setUser } from './actions';
export class UserNamePrompter extends React.Component {
constructor(props) {
super(props);
this.state = { name: '' };
this.onNameChange = this.onNameChange.bind(this);
... |
components/Layout/Header.js | Mrancois/barduino | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
map/src/containers/Details/components/MembershipInfo.js | teikei/teikei | import React from 'react'
import { featurePropType } from '../../../common/geoJsonUtils'
const acceptsNewMembersLabels = {
yes: 'Wir nehmen neue Mitglieder auf!',
no: ' Wir nehmen derzeit keine neuen Mitglieder auf!',
waitlist: 'Wir nehmen neue Mitglieder auf! (Warteliste)',
}
const MembershipInfo = ({
featur... |
src/components/app.js | jonwilsonMSP/React_Weather_App | import React, { Component } from 'react';
import SearchBar from '../containers/search_bar';
import WeatherList from '../containers/weather_list';
export default class App extends Component {
render() {
return (
<div>
<SearchBar />
<WeatherList />
</d... |
src/components/fluid-commons/fluid-table/TableHeader.js | great-design-and-systems/cataloguing-app | import PropTypes from 'prop-types';
import React from 'react';
export class TableHeader extends React.Component {
constructor(props) {
super(props);
this.state = {};
this.thisOnClick = this.onClick.bind(this);
}
componentWillMount() {
this.setInitState();
}
setInitState() {
this.setState({... |
src/components/Select/styles/LoadingState.js | Bandwidth/shared-components | import React from 'react';
import Loader from 'components/Loader';
import Input from 'components/Input';
import Arrow from './Arrow';
import Controls from './Controls';
import styled from 'styled-components';
const FakeInput = styled(props => <Input as="div" {...props} />)`
height: 53px;
`;
const Overlay = styled(L... |
src/Register.js | bpa/cyborg-rally | import React from 'react';
import Icon from './Icon';
export default function Register(props) {
if (!props.register) {
return <div style={{ width: "16px" }} />;
}
const program = props.register.program;
var name = program.reduce((a, b) => a + b.name, '');
let className = props.className;
if (props.regi... |
frontend/app_v2/src/components/AudioButton/AudioButton.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
// FPCC
import { useAudiobar } from 'context/AudiobarContext'
import useIcon from 'common/useIcon'
function AudioButton({ audioArray, iconStyling }) {
const { setAudioArray } = useAudiobar()
const audioButtons = audioArray.map((audioId, index) => (
... |
src/components/main/index.js | fusionalliance/autorenter-react | import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter} from 'react-router-dom';
import registerServiceWorker from '../../registerServiceWorker';
import '../../assets/css/index.css';
import App from './App';
import { Provider } from 'react-redux';
import appStore from '../../store';
const s... |
app/components/ListItem/index.js | surzhik/coreola5 | import React from 'react';
import styles from './styles.css';
function ListItem(props) {
return (
<li className={props.className || styles.item}>
<div className={styles.itemContent}>
{props.item}
</div>
</li>
);
}
ListItem.propTypes = {
className: React.PropTypes.string,
item: Rea... |
src/Slider/Slider.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classnames from 'classnames';
import { MDCSlider } from '@material/slider/dist/mdc.slider';
const DISCRETE = 'mdc-slider--discrete';
const SHOW_MARKERS = 'mdc-slider--display-markers';
export default class Slider extends Component {... |
lib/components/Current/CurrentWeather.js | JorgeEdPerezGa/weatherly | import React, { Component } from 'react';
import DataProps from '../DataProps';
import Search from '../Search/Search.js';
import HourCard from '../HourCard/Hourcard.js';
export default class currentWeather extends Component {
constructor() {
super();
}
hourIcon(condition, hour) {
if (condition === 'Ligh... |
frontend/src/frontpage/containers/boxes/most-popular/courses.js | OptimusCrime/youkok2 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { BoxWrapper } from "../../../../common/components/box-wrapper";
import { CourseItem } from "../../../components/course-item";
import { MostPopularDropdown } from "../../../components/most-popular/dropdown";
import {formatNumber, l... |
src/Parser/MistweaverMonk/Modules/Traits/ExtendedHealing.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
i... |
src/svg-icons/editor/border-left.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderLeft = (props) => (
<SvgIcon {...props}>
<path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2z... |
src/Option.js | dmatteo/react-select | import React from 'react';
import classNames from 'classnames';
const Option = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string, // className (based on mouse position)
instancePrefix: React.PropTypes.string.isRequired, // unique prefix for the ids (... |
src/routes/error/ErrorPage.js | zsu13579/whatsgoinontonight | /**
* 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 PropTypes from 'prop-... |
src/index.js | fishermoon/react-semantic-practice | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import Home from './Home'
import Awards from './Awards'
import Projects from './Projects'
import Signup from './Signup'
ReactDOM.render(
<Router history = ... |
src/client.js | mull/require_hacker_error_reproduction | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
imp... |
packages/wix-style-react/src/ComposerSidebar/test/ComposerSidebar.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import ComposerSidebar from '../ComposerSidebar';
import { items, disabledItems } from '../docs/examples';
const commonProps = {
items,
selectedId: 1,
};
const tests = [
{
describe: 'size',
its: [
{
it: 'medium',
... |
src/index.js | thedeagler/sonic | import { AppContainer } from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
const rootEl = document.getElementById('root');
const render = Component =>
ReactDOM.render(
<AppContainer>
<Component />
</AppContainer>,
rootEl
);
render(App);... |
src/svg-icons/image/colorize.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageColorize = (props) => (
<SvgIcon {...props}>
<path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3... |
src/svg-icons/device/location-searching.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationSearching = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-... |
src/parser/hunter/survival/modules/talents/BirdOfPrey.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import { encodeTargetString } from 'parser/shared/modules/EnemyInstances';
import SpellLink from 'common/SpellLink';
import STATISTIC_ORDER from 'interface/other... |
src/svg-icons/image/control-point.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageControlPoint = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-... |
client/Main/Navbar/Navs/Stream.js | PicDrop/PicDrop | import React from 'react';
class Stream extends React.Component {
render() {
return (
<div className="box">
<h3>Stream</h3>
</div>
);
}
}
export default Stream;
|
assets/jqwidgets/demos/react/app/grid/bindingtojsarray/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
localdata: [
['Alfreds Futterkiste', 'Maria Anders', 'Sales Representa... |
src/components/icons/PlaybookIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const PlaybookIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 100 100">
{props.title && <title>{props.title}</title>}
<path d="M44.92,53.67a2,2,0,0,0,2,2.77,4,4,0,0,0,3.65-2.77,2,2,0,0,0-2-2.77A4,4,0,0,0,44.92,53.67Z"/>
<path ... |
node_modules/react-autosuggest-legacy/examples/src/CustomRenderer/CustomRenderer.js | mannyng/ceap | require('./CustomRenderer.less');
import React, { Component } from 'react';
import utils from '../utils';
import Autosuggest from '../../../src/Autosuggest';
import SourceCodeLink from '../SourceCodeLink/SourceCodeLink';
import suburbs from 'json!../suburbs.json';
function population(suburbObj) {
return suburbObj.s... |
ReactReduxRoutingAutoRehydrate/index.android.js | nitindhar7/tutorials | /**
* 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 ReactReduxRoutingAutoRehydrate extends Component {
render() {
return (
<View st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.