path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/components/team/Pipelines/access-level.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Chooser from '../../shared/Chooser';
import Dropdown from '../../shared/Dropdown';
import PermissionSelectOptionDescriptions from '../../shared/PermissionSelectOptionDescriptions';
import PermissionDescription from '../../shared/PermissionDescriptio... |
src/layouts/docpage-with-toc.js | hologram-io/docs | import React from 'react'
import Helmet from 'react-helmet'
import { Navbar, SecondaryNav, TableOfContents } from '../components'
import '../scss/main.scss'
import { SEO_DEFAULTS } from '../constants'
const { TITLE, DESCRIPTION, KEYWORDS } = SEO_DEFAULTS;
class DocpageTOCLayout extends React.Component {
constructor... |
src/index.js | zerocoolkiller/Eve-Swagger-Api | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
import store, { history } from './store'
import App from './App'
import './sass/main.scss'
const target = document.querySelector('#root')
render(
<Provider sto... |
src/components/App.js | cyqkeygen/ruby-china-react-redux-demo | import React from 'react';
import Header from './Header';
import Footer from './Footer';
import {
BrowserRouter as Router,
HashRouter,
Switch,
Route
} from 'react-router-dom';
import routes from '../routes';
import '../../src/styles/common/app.scss';
class App extends React.Component {
render(){
const ge... |
src/components/wpm.js | orouvinen/mytype-frontend | import React, { Component } from 'react';
import { wpm, accuracy } from '../helpers/wpm.js';
const containerStyle = {
float: "left",
width: "30%",
marginLeft: "3px",
};
class WPM extends Component {
constructor() {
super();
this.state = {
wpm: 0,
accuracy: "NaN",
timer: null,
};... |
app/components/H3/index.js | belongapp/belong | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
app/javascript/mastodon/features/notifications/components/notification.js | masto-donte-com-br/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage, defineMessages } from 'react-intl';
import { HotKeys } from 'react-hotkeys';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { me ... |
src/routes/login/Login.js | niketpathak/npk-website | /**
* @author Niket Pathak. (http://www.niketpathak.com/)
*
* Copyright © 2014-present. 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-types';
import ... |
src/views/components/ServiceDetailsScreen.js | physiii/home-gateway | import React from 'react';
import PropTypes from 'prop-types';
import {Redirect} from 'react-router-dom';
import {withRoute} from './Route.js';
import NavigationScreen from './NavigationScreen.js';
import ServiceDetails from './ServiceDetails.js';
import ThermostatServiceDetails from './ThermostatServiceDetails.js';
im... |
UI/app/components/SessionTable.js | Acheron-VAF/Acheron | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faWindows } from '@fortawesome/free-brands-svg-icons';
import MUIDataTable from "mui-datatables";
import styles from './SessionTable.css';
export def... |
react-router-tutorial/lessons/01-setting-up/modules/NavLink.js | zerotung/practices-and-notes | import React from 'react';
import {
Link
} from 'react-router';
export default React.createClass({
render() {
return <Link {...this.props} activeClassName="active" />
}
}) |
blueprints/smart/files/__root__/containers/__name__.js | felixSchl/try-neodoc | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render() {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const ... |
test/test_helper.js | rexicq/react_redux | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
public/js/app/components/pages/UI.js | joaoahmad/minha-lista | import React from 'react';
import { Route, RouteHandler, Link } from 'react-router';
import PageWithNavbar from '../PageWithNavbar';
import Container from '../Container';
import Section from '../Section';
import Input from '../Input';
import Textarea from '../Input';
// import Party from '../Party';
// import P... |
src/svg-icons/communication/textsms.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationTextsms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/>
</SvgIcon>
);
Communica... |
Animate/react-motion-demo/src/App.js | imuntil/React | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import {Motion, spring} from 'react-motion';
import InOut from './InOut'
import TweenOne from 'rc-tween-one'
import {
BrowserRouter as Router,
Link,
Route
} from 'react-router-dom'
import QueueAnim from 'rc-queue-anim'
im... |
stories/DataTable/Example.js | skyiea/wix-style-react | import React from 'react';
import DataTable from 'wix-style-react/DataTable';
import s from './Example.scss';
const style = {
width: '50%'
};
const baseData = [
{firstName: 'Meghan', lastName: 'Bishop'},
{firstName: 'Sara', lastName: 'Porter'},
{firstName: 'Deborah', lastName: 'Rhodes'},
{firstName:... |
src/components/Root/index.js | andresgutgon/donald-trash | import React, { Component } from 'react';
import HTML5Backend from 'react-dnd-html5-backend';
import { default as TouchBackend } from 'react-dnd-touch-backend';
import { DragDropContext } from 'react-dnd';
import styles from './styles/index.css';
import DragLayer from '../dragLayer';
class Root extends Component {
... |
HeartShape.js | underscopeio/react-native-floating-hearts | import React from 'react'
import PropTypes from 'prop-types'
import { Image } from 'react-native'
/**
* @class HeartShape
*/
const HeartShape = ({ color }) => {
return <Image source={require('./heart.png')} style={{ tintColor: color }} />
}
HeartShape.propTypes = {
color: PropTypes.string,
}
HeartShape.defaul... |
src/examples/example-inbox/example-inbox.js | smollweide/react-speed-dial | /* eslint-disable no-console */
import React from 'react';
import Avatar from 'material-ui/Avatar';
import { blue500, red600 } from 'material-ui/styles/colors';
import IconEdit from 'material-ui/svg-icons/image/edit';
import IconRemember from 'material-ui/svg-icons/action/touch-app';
import { SpeedDial, BubbleList, Bu... |
examples/todomvc/index.js | chrisclarke1977/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
website/src/react-native/index.js | farazs/react-native | /**
* 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.
*/
'use strict... |
client/src/components/AddCountryForm.js | mandrive/CountriesApp | import React from 'react';
import styles from './styles/country.cssmodule.scss';
class AddCountryForm extends React.Component {
constructor(props){
super(props);
this.state = {
countryName: '',
capitalName: ''
};
this.onCountryNameChange = this.onCountryName... |
docs/src/app/AppRoutes.js | pradel/material-ui | import React from 'react';
import {
Route,
Redirect,
IndexRoute,
} from 'react-router';
// Here we define all our material-ui ReactComponents.
import Master from './components/Master';
import Home from './components/pages/Home';
import Prerequisites from './components/pages/get-started/Prerequisites';
import In... |
src/frontend/components/RollManager/index.js | jsonnull/aleamancer | // @flow
import React from 'react'
import { Dimmer } from './styles'
const RollManager = () => {
return <Dimmer />
}
export default RollManager
|
react-starter/src/Unigrid.js | yoonka/unigrid | /*
Copyright (c) 2018, Grzegorz Junka
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following... |
example/index.android.js | esbenp/react-native-clean-form | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View
} from 'react-native';
import Container from './src'
export default class example extends Component {
render() {
return (
<View style={styles.container}>
<Container />
</View>
);
}
}
const styles = S... |
examples/todomvc-react/js/app.js | mj1618/reckon-js | import ReactDOM from 'react-dom';
import React from 'react';
import TodoMain from './TodoMain.jsx';
import Reckon from 'reckon-js';
import Director from 'director';
let reckon = new Reckon({
page:'all',
todoApp: {
items:[]
}
},{
persist:true,
maxHistory:1000
});
reckon.loadPersisted();
gl... |
src/parser/monk/windwalker/modules/spells/ComboBreaker.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Analyzer from 'parser/core/Analyzer';
import Stat... |
node_modules/react-navigation/src/views/CardStack.js | RahulDesai92/PHR | /* @flow */
import React, { Component } from 'react';
import clamp from 'clamp';
import {
Animated,
StyleSheet,
PanResponder,
Platform,
View,
I18nManager,
Easing,
} from 'react-native';
import Card from './Card';
import Header from './Header';
import NavigationActions from '../NavigationActions';
impor... |
docs/src/sections/BadgeSection.js | dozoisch/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function BadgeSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
src/js/admin/photos/photo-group/photo-group-item/photo-group-item.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import ConfirmDialog from '$components/dialogs/confirm-dialog'
import InputDialog from '$components/dialogs/input-dialog'
import {
groupItemClick,
groupItemDelete,
groupItemDeleteState,
groupItemInputState,
groupItemRename,
} from '$actions/pho... |
app/components/hoc/form.js | anhldbk/react-boilerplate | import React from 'react';
import { reduxForm, Field } from 'redux-form/immutable';
import { randomString } from 'utils/random';
const _ = require('lodash');
export const withForm = ({ validate, asyncValidate }) => (
reduxForm({
form: randomString(), // just a random string
validate,
asyncValidate,
})
... |
src/components/common/NotFoundPage.js | fckey/shapit | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
src/components/Note/Output/BibleVerse.js | bibleexchange/be-front-new | import React from 'react';
import { Link } from 'react-router';
function slugIt(string) {
return string.toLowerCase().split(' ').join('_');
}
class BibleVerseNoteComponent extends React.Component {
render() {
let reference = null
if(this.props.fullReference !== undefined && this.props.fullReference == t... |
src/client.js | Trippstan/elephonky | /**
* 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 createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
src/demo.js | sstur/react-rte | import React from 'react';
import ReactDOM from 'react-dom';
import EditorDemo from './EditorDemo';
document.addEventListener('DOMContentLoaded', () => {
let rootNode = document.createElement('div');
document.body.appendChild(rootNode);
ReactDOM.render(
<EditorDemo />,
rootNode,
);
});
|
app/components/Cell.js | pamler/electron-mario | import React, { Component } from 'react';
import { ipcRenderer } from 'electron';
import { Icon, Switch, Menu, Dropdown, Spin } from 'antd/lib';
import { MARIO_CONFIG_PATH, MARIO_CONFIG_FILENAME } from '../constants';
import styles from '../styles/Home.css';
import Auth from './Auth';
import Config from './Config';
c... |
node_modules/react-native/Libraries/Components/MapView/MapView.js | odapplications/WebView-with-Lower-Tab-Menu | /**
* 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/svg-icons/notification/sd-card.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSdCard = (props) => (
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/>
</SvgIcon>
);
NotificationS... |
admin/client/components/Popout/PopoutBody.js | tony2cssc/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React.PropTypes.bool,
},
render () {
cons... |
src/app/components/Button/Button.js | Eric-Vandenberg/react-redux-weatherapp.io | import React from 'react';
import { Button } from 'react-toolbox/lib/button';
import theme from './Button.css';
const ButtonComponent = () => (
<div>
<Button theme={theme} icon="youtube_searched_for" label="Search" type="submit" raised accent />
</div>
);
export default ButtonComponent;
|
src/components/matchPanel/matchLeasePanelView.js | gordongordon/hom | import React from 'react'
import { NoticeBar,List , Card, Stepper, Icon, Picker, SwipeAction, DatePicker, Badge, Flex, InputItem, WhiteSpace, Button, SegmentedControl} from 'antd-mobile';
import { createForm } from 'rc-form';
// import moment from 'moment';
// import 'moment/locale/zh-cn';
import {propertys} from 'use... |
packages/storybook-cmf/src/index.js | Talend/ui | import React from 'react';
import { makeDecorator } from '@storybook/addons';
import CMFStory from './CMFStory';
import CMFDecorator from './CMFDecorator';
import register from './register';
export default makeDecorator({
name: 'withCMF',
parameterName: 'cmf',
skipIfNoParametersOrOptions: false,
wrapper: (getStory... |
ui/js/components/SectionFields.js | ericsoderberg/pbc-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import FormField from './FormField';
import ImageField from './ImageField';
export default class SectionFields extends Component {
constructor() {
super();
this.state = {};
}
render() {
const { allowBackgroundImage, formS... |
src/basic/Fab.js | chaitanya0bhagvan/NativeBase | /* @flow */
import React, { Component } from 'react';
import { Button } from './Button';
import { Platform, Animated, TouchableOpacity } from 'react-native';
// import View from './View';
import { Icon } from './Icon';
// import Badge from './Badge';
import { IconNB } from './IconNB';
// import Text from './Text';
im... |
gatsby-browser.js | amcsi/szeremi | /**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
import React from 'react';
import Page from './app/components/pages/_Page';
import App from './app/components/pages/_App';
import configureStore from './app/core/configureStore';
const store = configureStor... |
src/index.js | jackiejohnston/redux-readable | import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import './index.css'
import App from './components/App'
import registerServiceWorker from './registerServiceWorker'
import { createStore, applyMiddleware, compose } from 'redux'
import logger from 'redux-logger'
... |
app/components/Init.js | LetSpotify/letspotify-client | import React, { Component } from 'react';
import styles from './Init.styl';
const ipcRenderer = require('electron').ipcRenderer;
export default class Home extends Component {
constructor(props) {
super(props);
ipcRenderer.send('getLocalSpotifyStatus', this.props.curRoomID);
}
render() {
return (
... |
src/components/charts/line.js | KovDimaY/React-Highcharts | import React, { Component } from 'react';
import Chart from './chart-abstract';
import Stock from './stock-abstract';
import Tooltip from '../tooltip';
import {
pureRandom,
configurableRandom,
stockSimulation,
functions,
interestingFactsTemperature,
} from '../../constants/line/default-options-line';
impor... |
app/javascript/flavours/glitch/components/avatar_composite.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from 'flavours/glitch/util/initial_state';
export default class AvatarComposite extends React.PureComponent {
static propTypes = {
accounts: ImmutablePropTypes.list.i... |
src/svg-icons/notification/no-encryption.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNoEncryption = (props) => (
<SvgIcon {...props}>
<path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1... |
app/react/components/Cart.js | jacobcohen/PetMonster | import React from 'react'
import {connect} from 'react-redux'
import numeral from 'numeral'
import { CartProductButton } from './CartProductButton'
import { updateCart } from '../../reducers/cart'
function calcAndFormat(q, p) {
let newP = (q * p) / 100
return numeral(newP).format('$0,0.00')
}
export const Cart = ... |
src/components/message-page/signup-success.js | dylanlott/bridge-gui | import React from 'react';
import MessagePage from 'components/message-page';
const SignupSuccess = () => {
return (
<MessagePage title="Success!"
message={`Thanks for signing up! We'll soon send a confirmation email.
Please follow the activation link to begin using Storj.`}/>
... |
docs/src/app/components/pages/components/Toolbar/ExampleSimple.js | ngbrown/material-ui | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more';
import MenuItem from 'material-ui/MenuItem';
import DropDownMenu from... |
src/svg-icons/image/leak-remove.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakRemove = (props) => (
<SvgIcon {...props}>
<path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24... |
public/src/containers/donut/donut.js | white87332/react-redux-sample | import React from 'react';
import DonutSvg from './donutSvg';
import DonutDataSeries from './donutDataSeries';
class Donut extends React.Component
{
constructor(props, context)
{
super(props, context);
this.state = {
width: 210,
height: 210,
data: [{
... |
node_modules/rc-calendar/es/RangeCalendar.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _slicedToArray from 'babel-runtime/helpers/slicedToArray';
import React from 'react';
import createReactClass from 'c... |
src/svg-icons/hardware/headset.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadset = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/>
</SvgIcon>
... |
website/src/App.js | Steviey/win-react-navigation | /*
* @flow
*/
import React from 'react';
import AppFrame from './AppFrame';
import HomePage from './HomePage';
import PageWithSidebar from './PageWithSidebar';
import MDPage from './MDPage';
import {
TabRouter,
addNavigationHelpers,
createNavigator,
} from 'react-navigation';
import type {
NavigationScree... |
app/containers/LanguageProvider/index.js | thecodingwhale/conduit-clone | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
client/views/error/ErrorPage.js | jmptrader/AspNet-Server-Template | /**
* ASP.NET Core Starter Kit (https://dotnetreact.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 history from '../../his... |
src/containers/DevTools/DevTools.js | YanlongLai/web-linter | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
react/gameday2/components/embeds/EmbedRtmp.js | bdaroz/the-blue-alliance | /* global videojs */
import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'
export default class EmbedHtml5 extends React.Component {
static propTypes = {
webcast: webcastPropType.isRequired,
}
componentDidMount() {
videojs(this.props.webcast.id, {
width: '100%',
... |
frontend/src/App/ConnectionLostModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Button from 'Components/Link/Button';
import Modal from 'Components/Modal/Modal';
import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
im... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/Collapse.js | GoogleCloudPlatform/prometheus-engine | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Transition } from 'react-transition-group';
import { mapToCssModules, omit, pick, TransitionTimeouts, TransitionPropTypeKeys, TransitionStatuses, tagPropType } from './utils';
const propTypes = {... |
client/src/logos/githubLogo.js | juandaco/voting-app | import React from 'react';
const googleLogo = iconStyle => {
return (
<svg
viewBox="0 0 128 125"
xmlns="http://www.w3.org/2000/svg"
style={iconStyle}
fillRule="evenodd"
clipRule="evenodd"
strokeLinejoin="round"
strokeMiterlimit="1.414"
>
<path
d="M63.99... |
dev/scripts/components/clubs.js | CoryWilson/soccer-react-redux-project | import React from 'react';
import { Link } from 'react-router';
class Clubs extends React.Component {
constructor() {
super();
};
render() {
return (
<div className="section">
<h2 className="heading">Clubs</h2>
<ul className="list-center" role="n... |
packages/cockpit/ui/src/components/Widget02.js | iurimatias/embark-framework | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Card, CardBody } from 'reactstrap';
import classNames from 'classnames';
import { mapToCssModules } from 'reactstrap/lib/utils';
const propTypes = {
header: PropTypes.string,
mainText: PropTypes.string,
icon: PropTypes.string,... |
src/components/Login.js | gaoqiang19514/blog | import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<section>
Login
</section>
</div>
)
}
} |
packages/material-ui-icons/src/Brightness1.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><circle cx="12" cy="12" r="10" /></g>
, 'Brightness1');
|
webApp/src/Components/TitleBar.js | s-law/silent-disco | import React from 'react';
// ROUTER
import { History } from 'react-router';
import reactMixin from 'react-mixin';
// MATERIAL DESIGN
import AppBar from '../../node_modules/material-ui/lib/app-bar';
import FlatButton from '../../node_modules/material-ui/lib/flat-button';
class TitleBar extends React.Component {
se... |
scripts/components/App.js | XiaonuoGantan/react-dashboard-zingchart | import React from 'react';
import LineChart from './LineChart';
class App extends React.Component {
render() {
return (
<div className="container">
</div>
)
}
}
export default App;
|
packages/playground/stories/Tabs.story.js | appearhere/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, boolean } from '@storybook/addon-knobs';
import {
Tabs,
Tab
} from '@appearhere/bloom';
storiesOf('Tabs', module).add('Default', () => (
<div>
<Tabs onChange={actio... |
analysis/warlockdestruction/src/modules/talents/ChannelDemonfire.js | anom0ly/WoWAnalyzer | import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Enemies from 'parser/shared/modules/Enemies';
import BoringSpellValueText from 'parser/ui... |
frontend/src/index.js | sjahandideh/tasks | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {
BrowserRouter as Router,
Route,
Link,
Redirect,
withRouter,
} from 'react-router-dom';
// style
import './assets/styles/index.css';
// component
import registerServiceWorker from './registerServiceWork... |
src/svg-icons/image/exposure-neg-2.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureNeg2 = (props) => (
<SvgIcon {...props}>
<path d="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81... |
styleguide_new/src/components/code_area/JsCodeArea.js | sjolicoeur/pivotal-ui | import React from 'react'
import ReactDOMServer from 'react-dom/server'
import * as Babel from 'babel-standalone'
import {AllHtmlEntities} from 'html-entities'
import pretty from 'pretty'
import {CopyToClipboardButton} from 'pui-react-copy-to-clipboard'
import ReactEditor from './ReactEditor'
import HtmlEditor from '.... |
src/CollectionView.js | jdaudier/Timo-Plato | import React, { Component } from 'react';
import { ItemView } from './ItemView';
import { styles } from './styles/styles';
export class CollectionView extends Component {
constructor(props) {
super(props);
}
isProjectNameUnique(value) {
return this.props.isProjectNameUnique(value);
}
... |
src/Result.js | prometheusresearch/react-autocomplete | /**
* @copyright 2015, Prometheus Research, LLC
* @flow
*/
import type {AutocompleteResult} from './index';
import React from 'react';
type Props = {
focus: boolean,
result: AutocompleteResult,
onClick: AutocompleteResult => void,
Root?: ReactClass<*>,
};
export default class Result extends React.Compone... |
app/containers/App/index.js | shanzhaicity/frontend-demo | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/apps/SocketsRegistry/DetailsView/SocketAuthorInfo.js | Syncano/syncano-dashboard | import React from 'react';
import { colors as Colors } from 'material-ui/styles';
const SocketAuthorInfo = ({ author, runtimes }) => {
const styles = {
container: {
padding: '16px 24px 0',
fontSize: 16,
lineHeight: 1.8,
color: Colors.grey300,
backgroundColor: '#444',
height: ... |
src/Parser/Priest/Discipline/Modules/Items/Skjoldr.js | enragednuke/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
import ItemHealingDone from 'Main/ItemHealingDone';
const debug = false;
const SKJOLDR_PWS_ABSORB_BONUS = 0.15;
// Whi... |
src/client/components/pages/revision.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2015-2016 Stanisław Szcześniak
* 2015-2016 Ben Ockmore
* 2016 Sean Burke
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either ve... |
app/App.js | JoeKarlsson1/Gist-Manager | /* jshint esversion: 6 */
'use strict';
import React from 'react';
import { IndexLink, Link } from 'react-router';
import NavLink from './navigation/NavLink.jsx';
import Logout from './shared/Logout.jsx';
import Home from './home/Home.jsx';
import auth from './shared/auth';
import normalize from './shared/css/normaliz... |
app/js/sign-up/views/_password.js | blockstack/blockstack-portal | /**
* Create a password
*
* This screen is the password input to encrypt the new user's seed phrase
*/
import React from 'react'
import PropTypes from 'prop-types'
import { ShellScreen, Type, Shell } from '@blockstack/ui'
import Yup from 'yup'
const validationSchema = Yup.object({
password: Yup.string()
.min... |
desenvolvimento-plataformas-moveis/pocs/hello-world/index.android.js | mfklauberg/projetosacademicosfurb | /**
* 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 olar extends Component {
render() {
return (
<View style={styles.container}>
... |
exercise-3/end/client-conference-schedule/src/App.js | nanovazquez/nodeconf-isomorphic-workshop | import React from 'react';
import { Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import routes from './routes';
import configureStore from './store';
const App = ({
initialState,
}) => {
const store = configureStore({ initialState });
return (
<Provider store={store}... |
src/components/projects/show/Copy.js | tehfailsafe/portfolio2015 | import React from 'react';
const Copy = React.createClass({
render(){
return(
<div className={`copy ${this.props.class || ""}`}>
{this.props.children}
</div>
)
}
})
export default Copy;
|
src/containers/pages/welcome/sections/use-cases/extensions.js | vFujin/HearthLounge | import React from 'react';
import {Link} from "react-router-dom";
import CardInText from "../../../../../components/card/card-in-text";
import Icon from "../../../../../components/icon";
const rexxar = <CardInText label="Rexxar" imgSrc="http://media.services.zam.com/v1/media/byName/hs/cards/enus/HERO_05.png" rarity="h... |
app/components/Search/index.js | Bitaru/PartyRooms | import React from 'react';
import { compose, withState, withHandlers } from 'recompose';
import styles from './styles.css';
import SearchIcon from '../icons/Search';
import CrosshIcon from '../icons/cross';
import cx from 'classnames';
import Events from '../../lib/EventBus';
export default compose(
withState('valu... |
assets/jsx/views/base/components/navigation.js | Tjorriemorrie/besetfree | import React from 'react'
import { IndexLink, Link } from 'react-router'
const Navigation = () =>
<nav>
<div className="wrapper">
<div className="brand">
<h4 className="title">Nerine Jansen</h4>
<p className="subtitle">
Natural Healthcare Pr... |
src/components/Posts.js | blwoosky/DigCSS-Theme-v4-Redesign | import React, { Component } from 'react';
import { Link,browserHistory } from 'react-router';
import Category from './Category';
import moment from 'moment';
import ReactPaginate from 'react-paginate';
export default class Posts extends Component {
constructor(props) {
//console.log(props);
super... |
admin/client/components/MobileNavigation.js | kumo/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import { Container } from 'elemental';
var MobileListItem = React.createClass({
displayName: 'MobileListItem',
propTypes: {
className: React.PropTypes.strin... |
docs/src/CodeExample.js | dongtong/react-bootstrap | import React from 'react';
export default class CodeExample extends React.Component {
render() {
return (
<pre className="cm-s-solarized cm-s-light">
<code>
{this.props.codeText}
</code>
</pre>
);
}
componentDidMount() {
if (CodeMirror === undefined) {
ret... |
5.webpack/slider/index.js | zhufengnodejs/201615node | // npm install react react-dom
// yarn add react react-dom
import React from 'react';
import ReactDOM from 'react-dom';
require('./index.css');
//自定义一个组件 = React.createClass
class Slider extends React.Component{
constructor(props){
super(props);
//这是在es6定义初始化状态的方法,等同于getInitialState()
this.state = {inde... |
dva/cnode/src/router.js | imuntil/React | import React from 'react';
import { Router, Route } from 'dva/router';
import IndexPage from './routes/IndexPage';
import SelectPage from './routes/Select'
import DemoPage from './routes/TestList'
import PostPage from "./routes/PostPage.js";
function RouterConfig({ history }) {
return (
<Router history={history}... |
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.js | adamruzicka/foreman-tasks | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Button, Label } from 'patternfly-react';
import { noop } from 'foremanReact/common/helpers';
import { translate as __ } from 'foremanReact/common/I18n';
import { getQueryKeyText, getQueryValueText } from '../../TasksDashboardHelper';
import {... |
client/src/components/Leagues/LeagueCreationForm.js | BDiuguid/fantasy-fifa | import React from 'react';
import styled from 'styled-components';
import { graphql } from 'react-apollo';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import { compose, withState, withHandlers } from 'recompose';
import { loader } from 'graphql.macro';
const CREA... |
JavaScript/React/React+Flux+Auth/src/components/App.js | batazor/MyExampleAndExperiments | import 'normalize.css/normalize.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import React, { Component } from 'react';
import Header from './Header';
import Sidebar from './Sidebar';
import { Grid, Row, Col } from 'react-bootstrap';
class AppComponent extends Component {
componentWillMount() {
this.loc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.