path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/js/components/deployment/StackResourcesTable.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat 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 or agreed to... |
app/javascript/mastodon/features/ui/components/mute_modal.js | mstdn-jp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
import { muteAccount }... |
src/interface/icons/Plus.js | anom0ly/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/plus/674201/
// Plus by Galaxicon from the Noun Project
const Icon = ({ ...other }) => (
<svg viewBox="9 9 81 81" xmlns="http://www.w3.org/2000/svg" className="icon" {...other}>
<g transform="translate(0,-952.36218)">
<path d="m 36,964.36216 0,2... |
src/js/app.js | ngokevin/aframe-sketch | import {registerComponent} from 'aframe';
import {component as TextComponent} from 'aframe-text-component';
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import LoggerMiddleware from 'redux-logger';
import promiseMiddleware from 'redux-promis... |
app/lib/components/Interface.js | msikma/react-hot-boilerplate | // React Hot Boilerplate (replace this copyright notice with your own)
// (C) 2015, Michiel Sikma <michiel@sikma.org>
// MIT License
import React from 'react';
import Router from 'react-router';
const Link = Router.Link;
const RouteHandler = Router.RouteHandler;
const navbarItems = [
{
'to': 'about',
'labe... |
js/jqwidgets/demos/react/app/grid/bindingtojsonstring/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let data = '[{ "CompanyName": "Alfreds Futterkiste", "ContactName": "Maria Anders", "ContactTitle": "Sales Representative", "Address... |
demo/sections/Toggles/RadioGroupExample.js | joshq00/react-mdl | import React from 'react';
import RadioGroup from '../../../lib/RadioGroup';
import Example from '../Example';
export default class RadioGroupExample extends React.Component {
constructor( ...args ) {
super( ...args );
}
state = {
value: 'opt1'
};
_changed = ( e ) => this.setState(... |
packages/react-scripts/template/src/App.js | lolaent/create-react-app | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js | cmccandless/SolRFrontEnd | // TODO: This module should be ElementChildren, and should use named exports.
import React from 'react';
/**
* Iterates through children that are typically specified as `props.children`,
* but only maps over children that are "valid components".
*
* The mapFunction provided index will be normalised to the compone... |
client/page/groups/row-actions.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { connect } from 'react-redux';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import { RowActions, RowAction } from 'component/table/row-action';
import { performTableAction } from 'state/group/action';
import { has... |
app/javascript/mastodon/containers/compose_container.js | tateisu/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import Compose f... |
src/js/components/header/app-header.js | rafaelkyrdan/flux-app | import React from 'react';
import AppStore from '../../stores/app-store';
import StoreWatchMixin from '../../mixins/StoreWatchMixin';
import { Link } from 'react-router';
function getCartTotals(){
return AppStore.getCartTotals();
}
const Header = (props) => {
return (
<div>
<nav className="navbar navbar-defau... |
packages/material-ui-icons/src/BatteryCharging30Sharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v10.5h2L13 7v5.5h2l-1.07 2H17V4z" /><path d="M11 20v-5.5H7V22h10v-7.5h-3.07L11 20z" /></React.Fragment>
, 'BatteryCharging30Sharp');
|
src/Controls/InputText.js | rpominov/react-demo | import React from 'react'
import createReactClass from 'create-react-class'
import T from 'prop-types'
const style = {
display: 'block',
width: '100%',
boxSizing: 'border-box',
}
export default createReactClass({
displayName: 'Demo.Controls.InputText',
propTypes: {
value: T.string.isRequired,
onCh... |
src/svg-icons/content/reply.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReply = (props) => (
<SvgIcon {...props}>
<path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReply = pure(ContentReply);
ContentReply.displayName = 'ContentReply'... |
techCurriculum/ui/solutions/4.8/src/components/Message.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | RickFrom1987/rickfrom1987.com | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/containers/converted_text.js | ravindraranwala/piglatinconverterapp | import React from 'react';
import { connect } from 'react-redux';
const ConvertedText = (props) => {
return(
<label>{props.output}</label>
);
}
function mapStateToProps(state){
return { output: state.piglatin.output };
}
export default connect(mapStateToProps)(ConvertedText);
|
demo/index.js | likun7981/auto-breadcrumb | import React from 'react';
import { render } from 'react-dom';
import App from './RecursivePaths';
render(<App />, document.getElementById('root'));
|
cdc-admin/src/componentes/InputCustomizado.js | WILLYTV/react | import React, { Component } from 'react';
import PubSub from 'pubsub-js';
export default class InputCustomizado extends Component{
constructor(){
super();
this.state = {msgErro:''};
}
render() {
return (
<div className="pure-control-group">
<label htmlFor... |
src/index.js | aengl/sector4-website | import React from 'react';
import ReactDOM from 'react-dom';
import { App } from './components/App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
public/js/lib/react/jsx/pages/Banner.js | inquisive/simpledocs | import React from 'react';
export default class Banner extends React.Component {
constructor(props) {
super(props);
this.displayName = 'Banner Component';
this.state = {
mounted: false
};
}
openEgg() {
$('#easter-egg').slideToggle();
$("#simpledocs").animate({ scrollTop: 0 }, 200);
return false;
}... |
geonode/monitoring/frontend/monitoring/src/components/cels/frequent-layers/index.js | tomkralidis/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# 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 version 3 of the License, or
# ... |
client/modules/EbaySearch/EbayBox/EbayBox.js | mpsoftware/experiments | import React from 'react'
import { Card, CardMedia, CardTitle, CardText, CardActions } from 'react-toolbox/lib/card';
import EbayItemList from './EbayItemList/EbayItemList'
export default React.createClass({
getInitialState: function() {
return {data: []};
},
componentDidMount: function() {
console.lo... |
frontend/src/components/LoginForm/container.js | plusbeauxjours/nomadgram | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import LoginForm from './presenter';
class Container extends Component {
state = {
username: '',
password: ''
};
static propTypes = {
facebookLogin: PropTypes.func.isRequired,
usernameLogin: PropTy... |
client/modules/App/__tests__/Components/Header.spec.js | michaelkirschbaum/ender-site | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import { Header } from '../../components/Header/Header';
import { intl } from '../../../../util/react-intl-test-helper';
const intlProp = { ...intl, enabledLang... |
app/javascript/mastodon/features/hashtag_timeline/index.js | pso2club/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
app/src/components/result/index.js | ajfisher/tourney-tools | import React, { Component } from 'react';
import ReactGA from 'react-ga';
import { Button, Container, Modal } from 'semantic-ui-react'
import { TeamSwatch } from "../team";
class Result extends Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
... |
static/programming-tutorials-backup/src/languages/language-components/NextLessonButton.js | EdwardRees/EdwardRees.github.io | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Button } from 'reactstrap';
class NextLessonButton extends Component {
render(){
const { Location, block } = this.props;
return(
<div>
<Button color="success" block={block}>
... |
src/MultiSelector/story.js | appier/react-component-template | import React from 'react';
import { fromJS } from 'immutable';
import { storiesOf, action } from '@kadira/storybook';
import MultiSelector from './MultiSelector.js';
const stories = storiesOf('MultiSelector', module);
stories.add('Default', () => {
const options = [
{
key : 'foo',
label : 'FOO',
... |
src/components/Statement/EditMenu.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
const messages = defineMessages({
submit: {
id: 'command.submit',
description: 'Short command for sending data to the server',
defaultMessage: 'Submit',
},
edit: {
id: 'co... |
src/components/InputRadio.js | ratchagarn/react-styled-components | import React from 'react';
import styled from 'styled-components';
const InputRadioWrapper = styled.div`
position: relative;
display: ${(props) => props.inline ? 'inline-block' : 'block'};
margin: ${(props) => props.inline ? '0 1em 0 0' : '1em 0'};
padding-left: 24px;
> label {
user-select: none;
}
`;... |
src/elements/forms/control-label.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../../build/styles';
import { getCallbacks } from '../../helper/helper';
export default class ControlLabel extends Component {
static propTypes = {
className: PropTypes.string,
style: PropTypes.object,
ch... |
src/components/ContactCard/ContactCard.js | cdtinney/cdtinney.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { StaticQuery, graphql } from 'gatsby';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faGithub,
faLinkedin,
} from '@fortawesome/free-brands-svg-icons';
import { faEnvelope } from '@fortawesome/free-regular-svg-icons... |
src/svg-icons/action/card-giftcard.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardGiftcard = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H... |
src/components/UI/UserIcon/UserIcon.container.js | shayc/cboard | import React from 'react';
import { connect } from 'react-redux';
import UserIcon from './UserIcon.component';
const UserIconContainer = props => <UserIcon {...props} />;
const mapStateToProps = ({ app: { userData } }, ownProps) => ({
...ownProps,
user: userData.email ? userData : null
});
export default connect... |
src/parser/paladin/holy/modules/azeritetraits/VisionOfPerfection.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer, {SELECTED_PLAYER} from 'parser/core/Analyzer';
import { formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import { calculateAzeriteEffects, calculateSecondaryStatDefault } from 'common/stats';
import Even... |
src/views/WidgetList/widgets/Accounts/Accounts.js | GovReady/GovReady-Agent-Client | import React, { Component } from 'react';
import config from 'config/';
import Widget from '../Widget';
import AccountsWidget from './AccountsWidget';
import RefreshButton from 'components/RefreshButton';
import InactiveAccountsWidget from './InactiveAccountsWidget';
import { Link } from 'react-router';
import PanelLoa... |
examples/huge-apps/routes/Course/components/Dashboard.js | RickyDan/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
app/javascript/mastodon/components/column_header.js | pso2club/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import Icon from 'mastodon/components/icon';
const messages = defineMessages({
show: { id: 'column_header.show_settings', defaultMessage: 'Sho... |
frontend/components/Player.js | heekzz/PowerHour | /**
* Created by Fredrik on 2018-10-22
*/
import React from 'react';
import {Row, Col, Grid} from 'react-bootstrap'
export default class Player extends React.Component {
constructor(props) {
super(props);
this.state = {
player: undefined,
playerState: undefined,
... |
client/containers/DashboardContainer.js | horiaradu/twitter-challenge | import React from 'react';
import {connect} from 'react-redux';
import Dashboard from '../components/Dashboard';
import * as actionCreators from '../actions';
export default connect(
mapStateToProps,
actionCreators
)(Dashboard);
function mapStateToProps(state) {
return {};
}
|
components/RequestBadge.js | request-factory/request-factory | import React from 'react';
import { Badge, Text } from 'native-base';
import { requestColours } from '../common/helpers';
export class RequestBadge extends React.Component {
constructor(props) {
super(props);
this.state = {
type: props.type,
colour: '#039be5',
};
this.state.colour = requ... |
client/analytics/components/partials/tables/Table.js | Haaarp/geo | import React from 'react';
import { Table } from 'react-bootstrap';
import SortButton from '../../../../common/components/SortButton';
class TableWrapper extends React.Component {
render() {
return (
<Table responsive className={this.props.className}>
<thead>
... |
app/react-icons/fa/eye.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaEye extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m37.1 21.4q-3.3-5.2-8.5-7.8 1.4 2.3 1.4 5 0 4.1-2.9 7t-7.1 3-7.1-3-2.9-7q0-2.7 1... |
src/svg-icons/action/tab-unselected.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTabUnselected = (props) => (
<SvgIcon {...props}>
<path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v... |
src/components/Nav/Nav.js | gReis89/sam-ovens-website | import React from 'react'
import './Nav.scss'
import iconUser from 'assets/imgs/icon-user.svg'
import iconCommunity from 'assets/imgs/icon-community.svg'
import iconHelp from 'assets/imgs/icon-help.svg'
import iconSearch from 'assets/imgs/icon-search.svg'
export const Nav = () => (
<nav className='pull-right'>
<... |
docs/src/app/components/pages/components/Table/ExampleSimple.js | andrejunges/material-ui | import React from 'react';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
const TableExampleSimple = () => (
<Table>
<TableHeader>
<TableRow>
<TableHeaderColumn>ID</TableHeaderColumn>
<TableHeaderColumn>Name</TableHeaderColumn>... |
src/js/mixins/css_class_mixin.js | working-minds/realizejs | import React from 'react'
import themes from '../theme'
import $ from 'jquery'
import PropTypes from '../prop_types';
export default {
propTypes: {
clearTheme: PropTypes.bool,
className: PropTypes.string,
themeClassKey: PropTypes.string
},
getDefaultProps() {
return {
clearTheme: false
... |
classic/src/scenes/mailboxes/src/Scenes/UpdatesScene/CheckingUpdatesScene/CheckingUpdatesScene.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { RouterDialog, RouterDialogStateProvider } from 'wbui/RouterDialog'
import CheckingUpdatesSceneContent from './CheckingUpdatesSceneContent'
class CheckingUpdatesScene extends React.Component {... |
examples/js/column-filter/text-filter-with-eq-condition.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
src/js/components/Header.js | amovah/DiveTodo | import React, { Component } from 'react';
import { hashHistory } from 'react-router';
import moment from 'moment';
export default class extends Component {
constructor() {
super();
this.toggleApp = this.toggleApp.bind(this);
}
toggleApp() {
this.props.location.pathname === '/settings' ?
hashHist... |
examples/pinterest/app.js | natorojr/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
react/eventwizard/components/EventWizardTabFrame.js | phil-lopreiato/the-blue-alliance | import React from 'react'
import EventInfoContainer from '../containers/EventInfoContainer'
import TeamListContainer from '../containers/TeamListContainer'
const EventWizardTabFrame = () => (
<div>
<div className="row">
<div className="col-sm-12">
<ul className="nav nav-tabs">
<li><a href... |
src/components/windowContainer.js | hanystudy/coder-from-22nd-century | import React from 'react'
import Window from './window'
const {desktopCapturer} = require('electron')
import {rtcClient} from '../common/rtcClient'
export default class WindowContainer extends React.Component {
constructor() {
super()
this.state = {
sources: []
}
}
componentDidMount() {
rt... |
examples/with-external-scoped-css/pages/_document.js | nelak/next.js | import React from 'react'
import Document, { Head, Main, NextScript } from 'next/document'
export default class MyDocument extends Document {
static getInitialProps ({ renderPage }) {
const { html, head, errorHtml, chunks } = renderPage()
return { html, head, errorHtml, chunks }
}
render () {
return... |
packages/material-ui-icons/src/Equalizer.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Equalizer = props =>
<SvgIcon {...props}>
<path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z" />
</SvgIcon>;
Equalizer = pure(Equalizer);
Equalizer.muiName = 'SvgIcon';
export default Equalizer... |
ajax/libs/react-instantsearch/5.0.1/Dom.js | holtkamp/cdnjs | /*! ReactInstantSearch 5.0.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/webapp/components/_containers/AppContainer.js | nus-mtp/cubist | import React from 'react';
import _ from 'lodash';
import Immutable from 'immutable';
import { connect } from 'react-redux';
import { NavDropdown, MenuItem } from 'react-bootstrap';
import classnames from 'classnames';
import PureComponent from 'react-pure-render/component';
import { pushState } from 'redux-router';
im... |
app/components/PostList/index.js | NathanBWaters/jb_club | /**
*
* PostList
*
*/
import React from 'react';
import styles from './styles.css';
import Post from 'components/Post';
class PostList extends React.Component { // eslint-disable-line react/prefer-stateless-function
constructor(props) {
super(props);
this.getPosts = this.getPosts.bind(this);
}
get... |
zoho-experiments/internals/templates/containers/HomePage/index.js | glandre/prototypes | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
src/svg-icons/alert/error.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertError = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
</SvgIcon>
);
AlertError = pure(AlertError);
AlertEr... |
app/components/shared/router.js | 7hci/surfboard | import React from 'react';
import { connect } from 'react-redux';
import { CSSTransitionGroup } from 'react-transition-group';
const transitionProps = {
transitionName: 'slide',
transitionAppear: true,
transitionEnterTimeout: 400,
transitionLeaveTimeout: 400,
transitionAppearTimeout: 400
};
const match = (pa... |
webApp/web_client/components/NavBarView.js | deliquescentlicorice/silent-disco | import React from 'react';
// MATERIAL DESIGN
import AppBar from '../../node_modules/material-ui/lib/app-bar';
import LeftNav from '../../node_modules/material-ui/lib/left-nav';
import MenuItem from '../../node_modules/material-ui/lib/menus/menu-item';
import List from '../../node_modules/material-ui/lib/lists/list';
... |
src/index.js | xu3u4/react-webpack-starterkit | import React from 'react';
import ReactDOM from 'react-dom';
import './styles/style.scss';
import CountupBlock from 'components/countup_block';
ReactDOM.render(
<CountupBlock />,
document.getElementById('app'),
);
|
node_modules/react-select/examples/src/components/CustomOption.js | Misterdjack/ask-the-principal | import React from 'react';
import Gravatar from 'react-gravatar';
var Option = React.createClass({
propTypes: {
addLabelText: React.PropTypes.string,
className: React.PropTypes.string,
mouseDown: React.PropTypes.func,
mouseEnter: React.PropTypes.func,
mouseLeave: React.PropTypes.func,
option: React.PropTy... |
src/Alert.js | pombredanne/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import bootstrapUtils, { bsStyles, bsClass } from './utils/bootstrapUtils';
import { State } from './styleMaps';
let Alert = React.createClass({
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel:... |
assets/jqwidgets/demos/react/app/chart/stackedandgroupedcolumnseries/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 = [
{ Day: 'Monday', Running: 30, Swimming: 5, Cycling: 25, Riding: 10 },
{ Day: 'Tuesday', ... |
assets/jqwidgets/demos/react/app/knob/multiplecirclepointers/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxKnob from '../../../jqwidgets-react/react_jqxknob.js';
class App extends React.Component {
componentDidMount() {
this.refs.myKnob.on('change', (event) => {
document.getElementById('change').innerHTML = 'Values: ' + event.ar... |
fields/types/relationship/RelationshipColumn.js | andreufirefly/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var Relat... |
imports/ui/components/Alerts/ShowAlerts.js | haraneesh/mydev | import { Meteor } from 'meteor/meteor';
import React from 'react';
import { Alert } from 'react-bootstrap';
const highLightText = (textToHighLight) => (
<span style={{ color: '#EF0905' }}>
{` ${textToHighLight} `}
</span>
);
function ReturnAlerts() {
return (
(Meteor.settings.public.ShowAlerts) && (
... |
src/browser/app/Root.js | robinpokorny/este | // @flow
import App from './App';
import React from 'react';
import configureFela from '../../common/configureFela';
import { BrowserRouter } from 'react-router';
import { Provider as Fela } from 'react-fela';
import { Provider as Redux } from 'react-redux';
type Props = {
store: Object,
};
// This should be part o... |
app/static/src/diagnostic/TestTypeResultForm_modules/MetalsInOilTestForm.js | vsilent/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 Button from 'react-bootstrap/lib/Button';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import Panel fro... |
app/jsx/theme_editor/ThemeEditor.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
examples/huge-apps/components/GlobalNav.js | dyzhu12/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
examples/components/Select.js | aesopwolf/formsy | import React from 'react';
import Formsy from 'formsy-react';
const MySelect = React.createClass({
mixins: [Formsy.Mixin],
changeValue(event) {
this.setValue(event.currentTarget.value);
},
render() {
const className = 'form-group' + (this.props.className || ' ') +
(this.showRequired() ? 'requir... |
src/components/RepoItem.js | atilafassina/octolist | import React, { Component } from 'react';
class RepoItem extends Component {
render(props) {
console.log(this.props);
return (
<li className="gh-repo">
<small className="gh-lang">{this.props.data.language}</small>
<a className="gh-repoTitle" href={this.props.data.link} target="_blank">{this.p... |
src/components/TodoHeader/TodoHeader.js | dadish-etudes/react-todo | /**
* TodoHeader
*/
import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './TodoHeader.scss';
import TodoActions from '../../actions/TodoActions';
import TodoTextInput from '../TodoTextInput';
import IconCheck from 'react-icons/lib/md/check';
import... |
src/svg-icons/action/check-circle.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCheckCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</SvgIcon>
);
ActionChec... |
frontend/src/pages/PageNotFound.js | jirkae/BeerCheese | import React from 'react';
import { Link } from 'react-router';
const PageNotFound = () => {
return (
<div className="row pad-t-5">
<div className="container white">
<h1 className="v-o-4">
<img
src="http://icons.iconarchive.com/icons/double-j-design/ravenna-3d/256/Error-icon.p... |
components/CompileConfig.js | FredTingaud/quick-bench-front-end | import React from 'react';
import { Dropdown, ButtonToolbar, DropdownButton, Button, ButtonGroup } from 'react-bootstrap';
import { BsCloudDownload } from "react-icons/bs";
const o0Name = 'None';
const oGName = 'Og';
const o1Name = 'O1';
const o2Name = 'O2';
const oSName = 'Os';
const o3Name = 'O3';
const oFName = 'OF... |
src/components/popup/PopupPageApp.js | svrnm/demomonkey | /* global chrome */
import React from 'react'
import Tabs from '../shared/Tabs'
import Pane from '../shared/Pane'
import Manifest from '../../models/Manifest'
import { connect } from 'react-redux'
import ConfigurationList from './ConfigurationList'
import PropTypes from 'prop-types'
const manifest = new Manifest()
/*... |
src/js/components/icons/base/SocialPaypal.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/All.js | claudiopro/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
static defaultProps: DefaultProps = {};
props: Props;
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Componen... |
app/index.js | nypl-registry/browse | window.browse = window.browse || {}
require('es6-promise').polyfill()
import React from 'react'
import { render } from 'react-dom'
import { Router, Route, useRouterHistory } from 'react-router'
// import { syncHistoryWithStore } from 'react-router-redux'
import qs from 'qs'
import { Provider } from 'react-redux'
i... |
2-alpha/src/components/HelperMarkers.js | saturninoharris/primer-design | import _ from 'lodash'
import React from 'react'
import { darken } from 'polished'
// A marker is an indicator of position, such as the start of a construct or end.
const HelperMarkers = ({ helpers }) => {
const helpersList = helpers.map((helper) => {
if(!helper.pos || !helper.len) return null
const pad = _... |
src/SignUpForm.js | leemeli/game | import React from 'react';
// import firebase from 'firebase';
import { Link } from 'react-router';
export default class SignUpForm extends React.Component {
constructor(props) {
super(props);
this.state = {
'email': undefined,
'password': undefined,
'passwordMatch': undefined,
'full... |
src/server.js | tonimoeckel/lap-counter-react | /**
* 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 path from 'path';
import Promise from 'bluebird'... |
email-contacts/src/index.js | WendySanarwanto/udemy-modern-react-with-redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import reduxThunk from 'redux-thunk';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(redu... |
src/svg-icons/av/note.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNote = (props) => (
<SvgIcon {...props}>
<path d="M22 10l-6-6H4c-1.1 0-2 .9-2 2v12.01c0 1.1.9 1.99 2 1.99l16-.01c1.1 0 2-.89 2-1.99v-8zm-7-4.5l5.5 5.5H15V5.5z"/>
</SvgIcon>
);
AvNote = pure(AvNote);
AvNote.... |
client/src/index.js | andybryant/scalack | // import 'babel-core/polyfill';
import React from 'react';
import { render } from 'react-dom';
import Root from './container/Root';
import configureStore from './store/configureStore';
import notificationManager from './service/notificationManager';
import initialState from './data/initial';
import injectTapEventPlugi... |
docs/src/pages/http-api.js | ory-am/go-iam | import React from 'react'
import ApiDoc from '@theme/ApiDoc'
import useBaseUrl from '@docusaurus/useBaseUrl'
import { useActiveVersion } from '@theme/hooks/useDocs'
import { Redirect } from '@docusaurus/router'
import config from '../../config'
function CustomPage() {
const { path } = useActiveVersion()
if (!confi... |
src/components/PairedButtons/PairedButtons.stories.js | InsideSalesOfficial/insidesales-components | import React from 'react';
import styled, { ThemeProvider } from 'styled-components';
import { storiesOf } from '@storybook/react';
import PairedButtons from './';
import {colors, ifThemeIsPresentUse} from '../styles';
import { generateFlexedThemeBackground } from '../styles';
const demoOptions = [
{ label: 'Optio... |
docs/src/app/components/pages/components/Tabs/ExampleIconText.js | igorbt/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import FontIcon from 'material-ui/FontIcon';
import MapsPersonPin from 'material-ui/svg-icons/maps/person-pin';
const TabsExampleIconText = () => (
<Tabs>
<Tab
icon={<FontIcon className="material-icons">phone</FontIcon>}
label="RE... |
boxroom/archive/backup-js-bling-2018-04-28/boxroom/archive/js-glow-2018-01-21/src/demo/pagination/pagination.js | mcjazzyfunky/js-surface | import {
createElement as h,
defineClassComponent,
defineFunctionalComponent,
mount
} from 'js-glow';
import { Seq } from 'js-essential';
import PaginationHelper from './helper/PaginationHelper.js';
import ComponentHelper from './helper/ComponentHelper.js';
import React from 'react';
import ReactDOM... |
Platform/Websites/Marketing/src/index.js | BerndWessels/terraform | /**
* Manapaho (https://github.com/Manapaho/)
*
* Copyright © 2016 Manapaho. 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 ReactDOM from 'react-dom';
/**
* Import the b... |
src/modules/search/containers/CommentarySearchPanelContainer/CommentarySearchPanelContainer.js | CtrHellenicStudies/Commentary | import React from 'react';
import { connect } from 'react-redux';
import { compose } from 'react-apollo';
// graphql
import commentersQuery from '../../../commenters/graphql/queries/list';
import referenceWorksQuery from '../../../referenceWorks/graphql/queries/list';
import keywordsQuery from '../../../keywords/graph... |
fields/components/DateInput.js | geminiyellow/keystone | import moment from 'moment';
import DayPicker from 'react-day-picker';
import React from 'react';
import Popout from '../../admin/src/components/Popout';
import { FormInput } from 'elemental';
function isSameDay(d1, d2) {
d1.setHours(0, 0, 0, 0);
d2.setHours(0, 0, 0, 0);
return d1.getTime() === d2.getTime();
}
m... |
src/layouts/index.js | wikander/mitt | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'
import './index.css'
const Header = () => (
<div
style={{
background: 'rebeccapurple',
marginBottom: '1.45rem',
}}
>
<div
style={{
margin: '0 auto',
... |
app/client/components/creationForm/CreationForm.js | breakfast-mimes/cyber-mimes | import React from 'react';
import { PageHeader, Col } from 'react-bootstrap';
import CharacterForm from './CharacterForm'
const statAllocation = 10;
const skillAllocation = 40;
const statLowCap = 3;
const statHighCap = 10;
const skillLowCap = 0;
const skillHighCap = 30;
const CreationForm = React.createClass({
ren... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.