path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
components/scenes/stairs.js | dbow/89-steps | import React from 'react';
class Stairs extends React.Component {
render() {
return (
<div>
<h2>The Stairs</h2>
<p>This will be good!!</p>
</div>
);
}
}
export default Stairs;
|
src/components/AnimatedWrapper/AnimatedWrapper.js | denichodev/personal-web | import React, { Component } from 'react';
import * as Animated from 'animated/lib/targets/react-dom';
const AnimatedWrapper = WrappedComponent =>
class AnimatedWrapper extends Component {
constructor(props) {
super(props);
this.state = {
animate: new Animated.Value(0)
};
}
compo... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/shared/Card.js | Brandon-J-Campbell/codemash | import React from 'react';
import classNames from 'classnames';
import theme from '../theme/static';
import styles from './Card.css';
export default function Card({ children }) {
return (
<div className={classNames(styles.card, styles[theme])}>{children}</div>
);
}
|
client/views/room/components/MessageTemplate/Header.js | VoiSmart/Rocket.Chat | import { Box, Margins } from '@rocket.chat/fuselage';
import React from 'react';
function Header({ children }) {
return (
<Box rcx-message__header display='flex' flexGrow={0} flexShrink={1} withTruncatedText>
<Box
mi='neg-x2'
display='flex'
flexDirection='row'
alignItems='baseline'
withTrunca... |
src/routes.js | dorono/wecansavedemocracy | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/app';
import ActivitiesList from './containers/ActivitiesList/activities_index';
import ActivitiesNew from './containers/ActivitiesNew/activities_new';
import FindRep from './containers/FindRep/findRepresentative... |
src/views/DashboardManager/components/widgets/BtnControlWidget.js | giux78/daf-dataportal | import React from 'react';
import {Modal} from 'react-modal-bootstrap';
import App from '../InfinityScrollWidgets/App.js'
class BtnControlWidget extends React.Component {
constructor() {
super();
this.state = {
isModalAddOpen: false,
isModalOpen: false
}
thi... |
src/routes.js | yangli1990/Isomorphic-Universal-React-Template | import React from 'react';
import App from './Components/App';
import { Route } from 'react-router';
import Counter from './Components/Counter/Counter';
export default <Route path="/" component={App}>
<Route path="counter" component={Counter} />
</Route>;
|
src/components/AbstractSystemComponent.js | brochington/Akkad | import React from 'react';
import _ from 'lodash';
// import Immutable from 'immutable';
class AbstractSystemComponent extends React.Component {
constructor(props, context) {
super(props, context);
this.id = Math.floor((1 + Math.random()) * 10000000000).toString(16);
this._propsChanged = t... |
client/components/error/ServerError.js | andela-jmacharia/hati-DMS | import React from 'react';
import { Route } from 'react-router';
import AppError from './AppError';
const ServerError = () => (
<AppError>
<center>
<h2 className="title">The Proverbial Internal Server Error :/</h2>
<div className="container-fluid">
<p>The minions broke something :(</p>
... |
src/parser/rogue/shared/azeritetraits/SharpenedBlades.js | FaideWW/WoWAnalyzer | import React from 'react';
import { formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SPECS from 'game/SPECS';
import Analyzer from 'parser/core/Analyzer';
class SharpenedBlades extends Analyzer {
constructor(...args) {
super(...args);
... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js | lzm854676408/big-demo | import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... |
src/ButtonInput.js | xiaoking/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
scripts/components/App.js | LulzAugusto/catch-of-the-day | /*
App
*/
import React from 'react';
import Rebase from 're-base';
const base = Rebase.createClass('https://catch-of-the-day-lulz.firebaseio.com/');
import Catalyst from 'react-catalyst';
import sampleFishes from '../sample-fishes';
import Inventory from './Inventory';
import Order from './Order';
import Head... |
modules/Redirect.js | leeric92/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './URLUtils';
import { falsy } from './PropTypes';
var { string, object } = React.PropTypes;
export var Redirect = React.createClass({
statics: {
createRouteF... |
local-cli/templates/HelloWorld/App.js | Bhullnatik/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View
} from 'react-native';
const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' +
'Cmd+D or shake for dev menu',
and... |
src/Navigation.js | wangliguang/myRNTools | import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import { useAPIWeaver } from './tools/API/API.js';
import {
initNetEventListener,
} from './tools/API/NetManager.js';
import {
registerNavigator,
unRegisterNavigator,
InitailRoute,
getRouteMap,
} from './Route';
ini... |
fields/types/html/HtmlField.js | BlakeRxxk/keystone | import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import tinymce from 'tinymce';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
var lastId = 0;
function getId() {
return 'keystone-html-' + lastId++;
}
module.exports = Field.create({
... |
packages/icons/src/md/image/SlideShow.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSlideShow(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M20 16v16l10-8-10-8zM38 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h28zm0 32V10H10v28h28z" />
</IconBas... |
home/app.js | trisys3/combook | import io from 'socket.io-client';
import React from 'react';
import ReactDOM from 'react-dom';
import {prevPage, nextPage, opened} from './app.css';
const Book = window.comBook.default;
const socket = io(__dirname);
const book = {
author: {
full: 'S. O. Meone',
first: 's',
last: 'meone',
},
title:... |
src/Parser/Warlock/Destruction/Modules/Features/DimensionalRift.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
import { STATISTIC_ORDER } from 'Main/StatisticBox';
import St... |
examples/with-loading/components/Header.js | kevmannn/next.js | import React from 'react'
import Head from 'next/head'
import Link from 'next/link'
import NProgress from 'nprogress'
import Router from 'next/router'
Router.onRouteChangeStart = (url) => {
console.log(`Loading: ${url}`)
NProgress.start()
}
Router.onRouteChangeComplete = () => NProgress.done()
Router.onRouteChange... |
src/svg-icons/social/public.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPublic = (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-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9... |
react/pages/Signup.js | Seanskiver/b2b_application | import React from 'react';
//import { Table } from 'react-bootstrap';
import {Form, FormControl, FormGroup, ControlLabel, Button, Table, Carousel, Jumbotron, Panel, Col} from 'react-bootstrap';
import { HashRouter as Router, Route, Link, Redirect } from 'react-router-dom';
class Signup extends React.Component {
... |
src/svg-icons/toggle/star.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStar = (props) => (
<SvgIcon {...props}>
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
</SvgIcon>
);
ToggleStar = pure(ToggleStar);
ToggleStar.disp... |
src/dummy-component.js | macropodhq/axolotl | import React from 'react';
export default class DummyComponent extends React.Component {
render() {
throw 'this test has no visual component';
}
}
|
src/components/Loading.js | mangal49/HORECA | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
marginTop: 30,
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const Loading = () => (
<div style={style.con... |
src/components/Row/Row.js | aaronvanston/react-flexa | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { themeProvider } from '../../theme';
import { filterProps, mediaQuery, gutter, CSSProperty } from '../../helpers';
const Row = styled(props =>
React.createElement(props.elementType, filterProps(props, Row.... |
static/src/components/AirhornCounter.js | hammerandchisel/airhornbot | // @flow
import React from 'react';
import Constants from '../Constants';
export default (): React.Element => (
<object data={Constants.Image.AIRHORN_COUNTER} />
);
|
app/src/pages/SignUp/index.js | fikrimuhal/animated-potato | import React from 'react'
import {Link} from 'react-router'
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
const styles = {
button: {
marginRight: 12,
}, contente: {
width: '100%',
marginLeft: 200
},
container: {
displ... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | info5900groupG/dataishumantool | 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'));
|
redux-todos/index.js | stoepszli/js-demos | import 'todomvc-app-css/index.css';
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import configureStore from './store/configureStore';
import Root from './containers/Root';
const store = configureStore();
render(
<AppContainer>
<Root
store=... |
app/containers/AthleteSchedule/AthleteTrainingList.js | kdprojects/nichesportapp | import React from 'react';
import H3 from 'components/H3';
import RaisedButton from 'material-ui/RaisedButton';
import CenteredSection from '../../containers/HomePage/CenteredSection';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import {
Table,
TableBody,
TableHeader,
TableHeaderColum... |
src/components/tracks/individual/_someAnimal/index.js | cannoneyed/tmm-glare | /* eslint-disable quotes */
import React from 'react'
// const timeline = [{
// time: 0,
// fact: ''
// }]
//
export default function Voyeur() {
return (
<div className="track-info-page">
<div className="track-text voyeur" />
</div>
)
}
|
packages/website/builder/pages/docs/navigation.js | yusufsafak/cerebral | import React from 'react'
import Search from './search'
function Navigation(props) {
function renderMenu() {
return Object.keys(props.docs).map(function(sectionKey, index) {
return (
<li
key={index}
className={`docs-navigation-item${props.sectionName === sectionKey ? ' active' :... |
app/components/main/Footer.js | ayqy/ready-to-work | import React, { Component } from 'react';
import { Button, Radio, Row, Col } from 'antd';
export default class Header extends Component {
render() {
const padding = '6px';
return (
<div className="main-footer footer">
<Row style={{padding: `${padding} 0`}}>
<Col span={8}>
... |
app/components/NotFound.js | okmttdhr/redux-blog-example | import styles from './../styles/global.styl';
import React from 'react';
import CSSModules from 'react-css-modules';
@CSSModules(styles)
export default class NotFound extends React.Component {
render() {
return (
<div styleName="wrapper">
<h1>Not Found</h1>
</div>
);
}
}
|
app/components/PlatformsPageComponents/Chatbot.js | rapicastillo/beautifulrising-client | /**
*
* AboutPageComponents
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import { PlatformsSection } from 'components/PlatformsPageComponents';
import VisibilitySensor from 'react-visibility-sensor';
import messages from './messages';
import Ma... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/FormComponents/Select.js | ChamNDeSilva/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
src/ButtonGroup.js | xiaoking/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... |
dev/6B_SCROLL.js | canalplus/react-keys | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { StyleSheet, css } from 'aphrodite/no-important';
import { createStore, combineReducers } from 'redux';
import { createStructuredSelector } from 'reselect';
import { connect, Provider } from 'react-redux';
import {
Binder,
keysInit,... |
src/routes/Customisable/components/plugins/invoice-address/invoice-address.plugin.js | codingarchitect/react-counter-pair | import React from 'react'
import { Form, FormGroup, FormControl, ControlLabel } from 'react-bootstrap'
import InvoiceAddress from './invoice-address.rt'
import extensibleComponent from '../extensible-component'
import FormLayoutPluginRenderer from '../form-layout-plugin-renderer'
const addressForm = {
Address1: (pro... |
src/svg-icons/action/speaker-notes.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotes = (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-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-... |
src/views/UserEdit/UserForm.js | folio-org/ui-users | import isEqual from 'lodash/isEqual';
import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Field, FormSpy } from 'react-final-form';
import setFieldData from 'final-form-set-field-data';
import { AppIcon } from '@folio/stripes/core';
import ... |
fields/types/date/DateFilter.js | lojack/keystone | import _ from 'underscore';
import classNames from 'classnames';
import React from 'react';
import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true }
];
const MODE_OPTIONS = [
{ lab... |
src/svg-icons/hardware/scanner.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareScanner = (props) => (
<SvgIcon {...props}>
<path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/>
</... |
app/javascript/mastodon/features/list_editor/index.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... |
docs/app/Examples/modules/Rating/Types/RatingExampleStar.js | ben174/Semantic-UI-React | import React from 'react'
import { Rating } from 'semantic-ui-react'
const RatingExampleStar = () => (
<Rating icon='star' defaultRating={3} maxRating={4} />
)
export default RatingExampleStar
|
src/navigation/auth.js | OlivierVillequey/hackathon | /**
* Auth Scenes
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { Scene, ActionConst } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
// Scenes
import Authenticate from '@containers/auth/Authen... |
src/MainComposition.js | tobias2801/app_gestoria | import React, { Component } from 'react';
import Header from './components/HeaderComponent';
import Sidebar from './components/SidebarComponent';
import Home from './components/HomeComponent';
import TypeForm from './components/forms/TypeFormComponent';
import ClientForm from './components/forms/ClientFormComponent';
i... |
react-fundamentals/es6-react-setup/Wrapper.js | gongmingqm10/EggHead | import React from 'react';
import ReactDOM from 'react-dom';
class Wrapper extends React.Component {
constructor(props) {
super(props);
}
mount() {
ReactDOM.render(<App/>, document.getElementById(('container')));
}
unmount() {
ReactDOM.unmountComponentAtNode(document.getElementById('container')... |
src/components/Proposal/Proposal.js | nambawan/g-old | import {
FormattedRelative,
FormattedMessage,
defineMessages,
} from 'react-intl';
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './Proposal.css';
import UserThumbnail from '../UserThumbnail';
... |
app/main.js | ibjohansen/k5g.no | 'use strict';
import React from 'react';
import Router, {Link, Route, DefaultRoute, NotFoundRoute} from 'react-router';
import Home from './pages/home';
import Map from './pages/map';
import Cats from './pages/cats';
require("./styles/normalize.css");
require("./styles/skeleton.css");
require("./styles/app.css");
Re... |
src/utils/inputNodeCheck.js | manchesergit/material-ui | import React from 'react';
import warning from 'warning';
export const HtmlForTagName = 'htmlFor';
export const InputTypeName = 'input';
export const a11yButtonTagsToTest = [HtmlForTagName, 'aria-labelledby', 'aria-describedby'];
/*
* Check if the children have an input node.
* If there is an input node, check that... |
blueocean-material-icons/src/js/components/svg-icons/image/filter-4.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/>
</SvgIcon>
);
ImageFilt... |
server/sonar-web/src/main/js/apps/permissions/project/components/AllHoldersList.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/svg-icons/action/change-history.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionChangeHistory = (props) => (
<SvgIcon {...props}>
<path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/>
</SvgIcon>
);
ActionChangeHistory = pure(ActionChangeHistory);
ActionChangeHistory.display... |
src/main.js | raffidil/garnanain | /**
* 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 localforage from 'loc... |
src/svg-icons/hardware/headset.js | andrejunges/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>
... |
src/Parser/ShadowPriest/Modules/Spells/VoidformGraph.js | mwwscott0/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ChartistGraph from 'react-chartist';
import Chartist from 'chartist';
import 'chartist-plugin-legend';
import './VoidformsTab.css';
const formatDuration = (duration) => {
const seconds = Math.floor(duration % 60);
return `${Math.floor(duration... |
src/decorators/withViewport.js | thethirddan/pocket_axe | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
src/JSONArrayNode.js | chibicode/react-json-tree | import React from 'react';
import PropTypes from 'prop-types';
import JSONNestedNode from './JSONNestedNode';
// Returns the "n Items" string for this node,
// generating and caching it if it hasn't been created yet.
function createItemString(data) {
return `${data.length} ${data.length !== 1 ? 'items' : 'item'}`;
}... |
src/js/components/icons/base/AccessWheelchair.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... |
src/svg-icons/image/camera-roll.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraRoll = (props) => (
<SvgIcon {...props}>
<path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h... |
src/Dialog/Backdrop.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../types'
class Backdrop extends React.Component {
props: PropsC
static defaultProps = {
component: 'div',
}
static displayName = 'Dialog.Backdrop'
render() {
const { component: Component, className, ...rest... |
src/UI/Keyboard.js | alex-wilmer/synth-starter | import React from 'react'
import { connect } from 'react-redux'
import { toFreq } from 'tonal-freq'
let Keyboard = ({ dispatch, octave }) => {
return (
<ul
className="piano"
onMouseUp={() => dispatch({ type: `CLEAR_KEYS` })}
>
<li
className="white"
onMouseDown={() => dispat... |
docs/app/Examples/views/Statistic/Content/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Content = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Value'
description='A statistic ca... |
docs/app/Examples/collections/Grid/Variations/GridExampleRelaxed.js | ben174/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleRelaxed = () => (
<Grid relaxed columns={4}>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wirefr... |
src/js/components/app.js | Sinkler/italian-verbs-trainer | import React from 'react';
import Pronouns from '../pronouns';
import TensesList from '../tenses';
import Verbs from '../verbs';
import Form from '../containers/form'
import Counts from '../containers/counts'
import Footer from '../containers/footer'
class App extends React.Component {
constructor(props) {
... |
docs/src/app/components/pages/components/FontIcon/Page.js | barakmitz/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconCode from '!raw!material-ui/FontIcon/FontIcon';
import iconReadmeText... |
src/svg-icons/editor/vertical-align-top.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignTop = (props) => (
<SvgIcon {...props}>
<path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/>
</SvgIcon>
);
EditorVerticalAlignTop = pure(EditorVerticalAlignTop);
EditorVerticalAlignTop.dis... |
assets/js/tests/Test.js | KiranJKurian/Election-Data-Exploration | import React from 'react';
import ReactDOM from 'react-dom';
import { Card, CardText, CardTitle, CardActions } from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import tests from '../tests/tests';
const Test = (props) => {
tests();
return (
<div>
<Card style={{ margin: '1em' }}>
... |
source/components/Affiliation.js | sgmap/cout-embauche | import React from 'react'
import './Affiliation.css'
export default () =>
<section id="affiliation">
<a href="https://openfisca.fr?utm_source=affiliation&utm_campaign=widget_embauche" target="_blank">
<img alt="OpenFisca" src="https://www.openfisca.fr/hotlinks/logo-openfisca.svg" />
</a>
<a href="https://b... |
src/clock.js | alecpblack/react-product-list | import React, { Component } from 'react';
class Clock extends Component {
constructor(props) {
super(props);
var now = new Date();
this.state = {
now: now,
partOfDay: this.getGreeting(now)
};
}
componentDidMount() {
this.timerID = setInterv... |
app/javascript/mastodon/components/short_number.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers';
import { FormattedMessage, FormattedNumber } from 'react-intl';
// @ts-check
/**
* @callback ShortNumberRenderer
* @param {JSX.Element} displayNumber Number to display
* @para... |
src/components/remote/controls.js | scholtzm/arnold | import React, { Component } from 'react';
import { Grid, Container, Button, Header } from 'semantic-ui-react';
import ActionButton from '../../components/misc/action-button.js';
import input from '../../rpc/api/input.js';
import videoLibrary from '../../rpc/api/video-library.js';
import audioLibrary from '../../rpc/ap... |
src/svg-icons/maps/local-movies.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalMovies = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</Svg... |
src/app.js | aeldar/yet-another-react-bootstrap | import React from 'react';
import ReactDOM from 'react-dom';
import App from 'containers/App/App.jsx';
import 'static/styles/base.css';
import 'normalize.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
js/ClientApp.js | steve-chen-nyc/fem_react | import React from 'react'
import { render } from 'react-dom'
import { BrowserRouter, Match } from 'react-router'
import { Provider } from 'react-redux'
import store from './store'
import Landing from './Landing'
import Search from './Search'
import Details from './Details'
import preload from '../public/data.json'
impo... |
static/src/components/Footer/index.js | agelarry/online_quiz | import React from 'react';
/* component styles */
import { styles } from './styles.scss';
export const Footer = () =>
<footer className={`${styles}`}>
<div className="container">
<div className="row">
<div className="col-xs-12 col-sm-12 col-md-12 col-lg-12">
... |
app/containers/NotFoundPage/index.js | dmitrykrylov/my-test-store | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a 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... |
docs/app/Examples/elements/Input/Variations/InputExampleActionLabeledButton.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleActionLabeledButton = () => (
<Input
action={{ color: 'teal', labelPosition: 'right', icon: 'copy', content: 'Copy' }}
defaultValue='http://ww.short.url/c0opq'
/>
)
export default InputExampleActionLabeledButton
|
docs/client/components/pages/Undo/CustomUndoEditor/index.js | draft-js-plugins/draft-js-plugins-v1 | import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createUndoPlugin from 'draft-js-undo-plugin';
import editorStyles from './editorStyles.css';
import buttonStyles from './buttonStyles.css';
const theme = {
undo: buttonStyles.button,... |
examples/redirect-using-index/app.js | Dodelkin/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, IndexRoute, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/redirect-using-index'
})
class App extends React.Component {
render() {
return (
<div>
{this.prop... |
react/test/testHelper.js | koscim/beer-art-reviews | import { shallow, mount } from 'enzyme';
import jasmineEnzyme from 'jasmine-enzyme';
import React from 'react';
import $ from 'jquery';
import 'jasmine-ajax';
Object.assign(global, {
jasmineEnzyme,
mount,
React,
shallow,
$
});
beforeEach(() => {
jasmineEnzyme();
});
// function to require all modules for... |
src/parser/monk/mistweaver/modules/spells/Vivify.js | FaideWW/WoWAnalyzer | // Based on Clearcasting Implementation done by @Blazyb
import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import Combatants from '... |
ReduxThunkNews/src/js/components/ListContacts.js | fengnovo/webpack-react | import React from 'react';
import {List, ListItem} from 'material-ui/List';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import Divider from 'material-ui/Divider';
import Avatar from 'material-ui/Avatar';
import {pinkA200, transparent} from 'material-ui/styles/colors';
const ListContacts = ({fetchData... |
src/admin_components/ImportRaceComponent.js | chiefwhitecloud/running-man-frontend | import React from 'react';
import PropTypes from 'prop-types';
export default class ImportRaceComponent extends React.Component {
constructor(props) {
super(props);
this.handleSubmit = this.handleSubmit.bind(this);
this.handleReset = this.handleReset.bind(this);
}
handleSubmit(urls) {
this.props... |
app/components/Charts/AreaChart/index.js | prudhvisays/season | import React from 'react';
import { ComposedChart, Line, Area, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
import './AreaStyle.css';
class CustomTooltip extends React.Component{
render() {
const { active } = this.props;
if (active) {
const { payload, label } = this.props;
... |
app/src/components/common/CustomSelectionView.js | kort/kort-native | // customized SelectionView
// credits to thinnakrit --> https://github.com/thinnakrit/React-Native-Selection
import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
TouchableOpacity,
Dimensions,
Modal
} from 'react-native';
import _ from 'lodash';
import Icon from 'react... |
src/components/UsersCard.js | kusaeva/firebase-chat | import React from 'react'
import {Row, Col, Card} from 'wix-style-react/dist/src/Grid'
import MessageInput from 'containers/MessageInput'
import Messages from 'containers/Messages'
// function getUser (id) {
// // return 'https://pp.userapi.com/c841220/v841220877/ee41/x-F0a25bkoQ.jpg'
// return
// }
// ... |
src/svg-icons/action/supervisor-account.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSupervisorAccount = (props) => (
<SvgIcon {...props}>
<path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 ... |
src/components/main/Layout/Layout.js | 5rabbits/portrait | import React from 'react'
import childrenPropType from 'propTypes/children'
const Layout = props =>
<section className="layout-wrapper" id="block-app">
<header className="layout-header" id="block-header">
{props.header}
</header>
<nav className="layout-navigation" id="block-navigation">
{prop... |
monkey/monkey_island/cc/ui/src/components/report-components/attack/SelectedTechnique.js | guardicore/monkey | import React from 'react';
import Collapse from '@kunukn/react-collapse';
import AttackReport from '../AttackReport';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {faQuestionCircle} from '@fortawesome/free-solid-svg-icons/faQuestionCircle';
import classNames from 'classnames';
class Selecte... |
public/components/tehtPage/tabsComponents/tehtava/JournalView.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { connect } from 'react-redux';
const JournalView = (props) => (
<div className="journalViewArea">
<div className="scrollableArea">
<div className="journalTextView">
TILANNEPÄIVÄKIRJA
{props.journalEntries.entries.map((c) =>
<p className="journalEn... |
app/react/src/client/preview/error_display.js | enjoylife/storybook | import PropTypes from 'prop-types';
import React from 'react';
const mainStyle = {
position: 'fixed',
top: 0,
bottom: 0,
left: 0,
right: 0,
padding: 20,
backgroundColor: 'rgb(187, 49, 49)',
color: '#FFF',
WebkitFontSmoothing: 'antialiased',
};
const headingStyle = {
fontSize: 20,
fontWeight: 600... |
app/scripts/ExportLinkDialog.js | hms-dbmi/higlass | import React from 'react';
import PropTypes from 'prop-types';
import Button from './Button';
import Dialog from './Dialog';
import '../styles/ExportLinkDialog.module.scss';
class ExportLinkDialog extends React.Component {
render() {
return (
<Dialog
okayOnly={true}
okayTitle="Done"
... |
packages/icons/src/md/editor/FormatShapes.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFormatShapes(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M46 14h-4v20h4v12H34v-4H14v4H2V34h4V14H2V2h12v4h20V2h12v12zM6 6v4h4V6H6zm4 36v-4H6v4h4zm24-4v-4h4V14h-4v-4H14v4h-4v20h4v4h20zm8 4v-4h-4v4h4zm-4-... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | shaunstanislaus/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import AvatarItem from... |
app/javascript/mastodon/components/setting_text.js | pixiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
src/main.js | HackDFW/hackdfw-frontend | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { syncReduxAndRouter } from 'redux-simple-router'
import routes from './routes'
import Root from './containers/Root'
import configureStore from './redux/configureStore'
const history = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.