path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/Main/Home.js | mwwscott0/WoWAnalyzer | import React, { Component } from 'react';
import SPECS from 'common/SPECS';
import AVAILABLE_CONFIGS from 'Parser/AVAILABLE_CONFIGS';
import PatreonButton from './PatreonButton';
import Changelog from './Changelog';
import MasteryRadiusImage from './Images/mastery-radius.png';
import ItemsImage from './Images/items.... |
src/app/static/ApiDocs/ApiDocs.js | JoeKarlsson1/bechdel-test | import React from 'react';
const ApiDocs = () => (
<div className="container">
<h1>api documentation</h1>
</div>
);
export default ApiDocs;
|
src/Grid.js | roderickwang/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Grid = React.createClass({
propTypes: {
/**
* Turn any fixed-width grid layout into a full-width layout by this property.
*
* Adds `container-fluid` class.
*/
fluid... |
packages/docs/components/Examples/image/AddImageEditor/ImageAdd/index.js | draft-js-plugins/draft-js-plugins | import React, { Component } from 'react';
import styles from './styles.module.css';
export default class ImageAdd extends Component {
// Start the popover closed
state = {
url: '',
open: false,
};
// When the popover is open and users click anywhere on the page,
// the popover should close
compone... |
app/javascript/mastodon/features/compose/components/upload_form.js | kirakiratter/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import UploadProgressContainer from '../containers/upload_progress_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import UploadContainer from '../containers/upload_container';
import SensitiveButtonC... |
src/components/loading-indicators/loading-repository-profile.component.js | gitpoint/git-point | // @flow
import React, { Component } from 'react';
import { View, Animated } from 'react-native';
import { Icon } from 'react-native-elements';
import styled from 'styled-components';
import { colors, fonts, normalize } from 'config';
import { loadingAnimation, t } from 'utils';
const Container = styled.View`
flex... |
src/svg-icons/av/mic-none.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicNone = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ... |
src/svg-icons/editor/wrap-text.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorWrapText = (props) => (
<SvgIcon {...props}>
<path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/>
</SvgIcon>
);
EditorWra... |
docs/src/app/pages/components/InlineEdit/ExampleInlineEditEmpty.js | GetAmbassador/react-ions | import React from 'react'
import InlineEdit from 'react-ions/lib/components/InlineEdit'
import styles from './styles'
class ExampleInlineEditEmpty extends React.Component {
constructor(props) {
super(props)
}
state = {
inlineValue: null
}
handleSave = event => {
if (event.target.name === 'test'... |
src/components/control-strip-defaults-component.js | davidkpiano/redux-simple-form | import React, { Component } from 'react';
import PropTypes from 'prop-types';
// Prevents the defaultValue/defaultChecked fields from rendering with value/checked
class ComponentWrapper extends Component {
render() {
/* eslint-disable no-unused-vars */
const {
defaultValue,
defaultChecked,
... |
KayaCMS-Admin/frontend/src/App.js | abono/Kaya-CMS | import React from 'react';
import './App.css';
import { UserProvider } from './context/UserContext'
import Template from './pages/Template';
function App() {
return (
<UserProvider>
<Template />
</UserProvider>
);
}
export default App; |
src/app/components/blocks/_loader.js | mazahell/eve-react-app | import React from 'react'
import img from '../../../assets/img/ajax.gif'
const Loader = () => {
return <div className="loader" id="ajax_loader"><img src={img} alt="loader" /></div>
}
export default Loader |
src/components/icon/components/refresh.js | fmsouza/wcode | import React from 'react';
// Icon taken from: https://github.com/spiffcode/ghedit
export const Refresh = (props) => (
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' {...props}>
<path d='M13.451 5.609l-.579-.939-1.068.812-.076.094c-.335.415-.927 1.341-1.124 2.876l-.021.165.033.163.071.345c0... |
src/parser/shaman/enhancement/modules/talents/LightningShield.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox from 'interface/others/StatisticBox';
class LightningShield extends Analyzer ... |
src/components/menu.js | eh3rrera/react-horizon | import React, { Component } from 'react';
import { Link, IndexLink } from 'react-router';
import Horizon from '../horizon-container';
export default class Menu extends Component {
logout = (e) => {
e.preventDefault();
Horizon.clearAuthTokens();
this.context.router.push("/")
}
render() {
... |
src/components/TextInputBEM/TextInputBEM.js | abhiisheek/ps-react-abhiisheek | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInputBEM({
htmlId,
name,
label,
type = 'text',
required = false,
onC... |
src/svg-icons/notification/airline-seat-legroom-reduced.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomReduced = (props) => (
<SvgIcon {...props}>
<path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 1... |
examples/with-react-router-v3/src/index.js | lwhitlock/grow-tracker | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, IndexRoute, Route, browserHistory } from 'react-router';
import WebFontLoader from 'webfontloader';
WebFontLoader.load({
google: {
families: ['Roboto:300,400,500,700', 'Material Icons'],
},
});
import './index.css';
import App from ... |
src/pages/404.js | brickandgreens/bricks-and-greens-gatsby | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
imports/ui/components/Orders/Invoices/ViewInvoice.js | haraneesh/mydev | import React from 'react';
import { Row, Col, Panel, PanelGroup } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { formatMoney } from 'accounting-js';
import { accountSettings } from '../../../../modules/settings';
import { displayUnitOfSale } from '../../../../modules/helpers';
const DisplayOrderP... |
app/javascript/mastodon/features/ui/components/column_link.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Icon from 'mastodon/components/icon';
const ColumnLink = ({ icon, text, to, href, method, badge }) => {
const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span... |
docs/app/Examples/modules/Accordion/Variations/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 AccordionTypesExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Fluid'
descriptio... |
sandbox/scripts/create_sandbox.js | pivotal-cf/pivotal-ui | const fs = require('fs');
const path = require('path');
const sandboxFilePath = path.resolve(__dirname, '../sandbox.js');
const sandboxStarterContent = `
import React from 'react';
import {DefaultButton} from 'pivotal-ui/react/buttons';
export default () => {
return <DefaultButton>Hello!</DefaultButton>
};
`.trim(... |
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/Popover.js | OpenKGB/webcode | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
pages/index.js | keithk/cfa-dance | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
import Submit from '../components/Submit/Submit.js';
import List from '../components/List/List.js';
export default class ext... |
src/components/NewChallenge.js | quintel/etmobile | import React from 'react';
import PropTypes from 'prop-types';
import { Redirect } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import injectIntl from '../utils/injectIntl';
import Header from './Header';
import authenticate from '../utils/authenticate';
import randomId from '../utils/rando... |
packages/create-subscription/src/createSubscription.js | chenglou/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
import invariant from 'shared/invariant';
import warningWithoutStack from 'shared/warningWi... |
examples/fiber/debugger/src/index.js | shergin/react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/communication/present-to-all.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
src/routes/index.js | lgse/react-chat | import React from 'react';
import { IndexRedirect, Route } from 'react-router';
import App from '~/containers/App';
import Chat from '~/containers/Chat';
import Login from '~/containers/Login';
function routes(store) {
function requireLogin(nextState, replace) {
const { loggedIn } = store.getState().login;
c... |
app/pages/Error404/index.js | aleksandrenko/apollo-cc | import './style.less';
import React from 'react';
const Component = React.createClass({
render() {
return (
<h1>404</h1>
);
}
});
export default Component;
|
lib/App.js | blittle/jspm-test | import React from 'react';
export default function App() {
return (
<div>Hello</div>
)
}
|
classic/src/scenes/wbfa/generated/FASCheckCircle.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCheckCircle } from '@fortawesome/pro-solid-svg-icons/faCheckCircle'
export default class FASCheckCircle extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faCheckCircle} />)
}
... |
src/views/components/AudioStream.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import JSMpeg from '../../lib/jsmpeg/jsmpeg.min.js';
import {connect} from 'react-redux';
import {audioStartStream, audioStopStream, cameraStartAudioRecordingStream, cameraStopAudioRecordingStream} from '../../state/ducks/services-list/operations.js';
impor... |
packages/core/upload/admin/src/components/EditAssetDialog/PreviewBox/CroppingActions.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import { IconButton } from '@strapi/design-system/IconButton';
import { FocusTrap } from '@strapi/design-system/FocusTrap';
import { SimpleMenu, MenuItem } from '@strapi/design-system/SimpleMenu';
import Cross from '@strapi/icons/Cross';
import Check from '... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | kagucho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import emojify from '../../../emo... |
src/components/Slide.js | tgevaert/react-redux-hearts | import React from 'react';
export const Slide = ({ direction, cardinal, children }) => {
let cName = 'slide';
if (direction && cardinal) {
cName += '-' + direction + '-' + cardinal;
}
return (
<div className={cName}>
{children}
</div>
);
};
|
client/scripts/components/user/projects/entity/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
src/components/Post/Author/Author.js | amoseui/blog | // @flow strict
import React from 'react';
import { getContactHref } from '../../../utils';
import styles from './Author.module.scss';
import { useSiteMetadata } from '../../../hooks';
const Author = () => {
const { author } = useSiteMetadata();
return (
<div className={styles['author']}>
<p className={... |
src/power-sheet/PowerSheet.js | Synchro-TEC/apollo | import React from 'react';
import ReactDOM from 'react-dom';
import Proptypes from 'prop-types';
import update from 'immutability-helper';
import ReactList from 'react-list';
import axios from 'axios';
import nanoid from 'nanoid';
import sift from 'sift';
import _get from 'lodash/get';
import _sortBy from 'lodash/sortB... |
web/src/routes.js | xiyanxiyan10/quant | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import Dashboard from './containers/Dashboard';
import Login from './containers/Login';
import User from './containers/User';
import Exchange from './containers/Exchange';
import Algorithm from './containers... |
app/Screens/Home/Home.js | martinvarelaaaa/tintina | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { NavigationActions } from 'react-navigation';
import Home from '../../Components/Home';
const signInNavigator = NavigationActions.reset({
index: 0,
actions: [NavigationActions.navigate({ routeName: 'SignIn' })],
});
const signU... |
src/js/components/Columns.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
import Props from '../utils/Props';
import... |
src/svg-icons/image/brightness-1.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness1 = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="10"/>
</SvgIcon>
);
ImageBrightness1 = pure(ImageBrightness1);
ImageBrightness1.displayName = 'ImageBrightness1';
export defaul... |
packages/lore-hook-forms-material-ui/src/blueprints/update/Optimistic/index.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import Optimistic from './Optimistic';
export default createReactClass({
render: function() {
const { modelName } = this.props;
const {
model,
schema,
fieldMap,
actionMap,
data,
validators,
... |
fields/types/text/TextColumn.js | benkroeger/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var TextColumn = React.createClass({
displayName: 'TextColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
linkTo: React.PropType... |
node_modules/react-bootstrap/es/FormControl.js | nikhil-ahuja/Express-React | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
app/packs/src/components/WellplateList.js | ComPlat/chemotion_ELN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Table, FormControl } from 'react-bootstrap';
import SVG from 'react-inlinesvg';
export default class WellplateList extends Component {
handleReadoutOfWellChange(event, well) {
const value = event.target.value;
const { well... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | Jastrzebowski/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//assignments: COURSES[params.courseId].assignments
//});
//}
render () {
//var { assignments } = this.props;
var assignments = COURSES[th... |
src/routes/teacher/StudentTable/index.js | chenwydj/AFLS_edusys | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Student_Table from '.... |
src/components/lessons/LessonBase.js | pshrmn/cryptonite | import React from 'react';
import 'scss/lesson.scss';
export default function LessonBase(props) {
const {
title,
children
} = props;
return (
<div className='lesson'>
<h1>{ title }</h1>
{ children }
</div>
);
} |
frontend-web-v2/src/containers/NotFound.js | ClubCedille/jardiniot | import React from 'react';
import { Link } from 'react-router-dom';
export default () => (
<div id="notfound">
<div className="notfound">
<div className="notfound-404">
<h1>Oups!</h1>
</div>
<h2>404 - Page inexistante</h2>
<p>La page que vous recherchez a peut-être été supprimée si son nom a été mo... |
imports/ui/components/Loader/LinearLoader.js | ShinyLeee/meteor-album-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { withStyles } from 'material-ui/styles';
import { LinearProgress } from 'material-ui/Progress';
class LinearLoader extends Component {
static propTypes = {
style: PropTypes.object,
classes: PropTypes.object.isRequired,
}
... |
test/test_helper.js | AmmarCloudtech/Simple-Blog | 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... |
src/components/Footer.js | dixitc/cherry-web-portal | import React from 'react';
import {ListItem} from 'material-ui/List';
/*Need to update footer with links*/
const Footer = () => {
return (
<footer className={'foot'} style={(window.innerWidth < 400) ? {display:'none'} : {opacity:'1'}} >
<ListItem
innerDivStyle={{height:'20px',lineHeight:'20px',paddingTop:'1... |
src/components/SeriesCircuit.js | hansenjl/circuit-builder-client | import React from 'react';
import Resistor from './Resistor'
const Wire = <div className="Circuit Wire"></div>
const SeriesCircuit = ({circuitData}) => (
<div className="SeriesCircuit">
<div className="TopRow">
<div className="Circuit Top LCorner"></div>
{circuitData.loops[0].resistors.length > ... |
src/svg-icons/editor/mode-comment.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorModeComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/>
</SvgIcon>
);
EditorModeComment = pure(EditorModeComment);
Edito... |
src/wics/node_modules/case-sensitive-paths-webpack-plugin/demo/src/AppRoot.component.js | civiclee/Hack4Cause2017 | import React, { Component } from 'react';
export default class AppRoot extends Component {
// we can't use `connect` in this component, so must do naiively:
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<div>
<h1>This is just an empty demo</h1>
... |
fields/components/columns/IdColumn.js | benkroeger/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
list: React.PropTypes.obje... |
src/components/ReviewList.js | reactivepod/fido-web | import React from 'react';
import ReviewItem from './ReviewItem';
const ReviewList = ({ reviews, selected }) => {
const generateKey = (id, review) => `${id}-${review.date.valueOf()}`;
if (reviews[selected]) {
const podcast = reviews[selected].meta;
return (
<div>
<section className="meta">
... |
src/pages/city.js | voidxnull/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
src/App.js | rahulp959/airstats.web | import React from 'react'
import PropTypes from 'prop-types'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import { Provider } from 'react-redux'
import ReactGA from 'react-ga'
import About from './Containers/About/About'
import Privacy from './Containers/About/Privacy/Privacy'
import FAQ f... |
App/components/UnassignedEventList/index.js | araneforseti/caretaker-app | import React from 'react';
import { View } from 'react-native';
import EventList from '../shared/EventList';
import container from './container';
import styles from './styles';
function UnassignedEventList({events}) {
return <View style={styles.container}>
<EventList events={events} />
</View>;
}
export defa... |
src/svg-icons/hardware/desktop-windows.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopWindows = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"/>
</SvgIcon>
);
HardwareDesk... |
src/svg-icons/image/crop-16-9.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop169 = (props) => (
<SvgIcon {...props}>
<path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/>
</SvgIcon>
);
ImageCrop169 = pure(ImageCrop169);
ImageCr... |
src/components/decoline_list.js | lizarraldeignacio/personal-website | import React, { Component } from 'react';
import DecolineItem from './decoline_item';
import _ from 'lodash';
import { firebaseConnect } from 'react-redux-firebase';
/**
DecolineList list of Decoline elements
Params:
elements: The elements that the list will contain
path: The path of the firebase database... |
app/components/timer/Timer.js | ArcBees/Tempora | import moment from 'moment';
import React, { Component } from 'react';
import DatePicker from 'react-datepicker';
import TimePicker from 'rc-time-picker';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import * as StorageService from '../../services/StorageService';
import * as WorklogSer... |
docs/src/pages/Introduction.js | Semantic-Org/Semantic-UI-React | import PropTypes from 'prop-types'
import React from 'react'
import { Link, withSiteData } from 'react-static'
import { Container, Divider, Grid, Header, Icon, Label, List, Segment } from 'semantic-ui-react'
import CodeSnippet from 'docs/src/components/CodeSnippet'
import DocsLayout from 'docs/src/components/DocsLayou... |
blueocean-material-icons/src/js/components/svg-icons/action/chrome-reader-mode.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionChromeReaderMode = (props) => (
<SvgIcon {...props}>
<path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"/>
</SvgIcon>
);
ActionChromeReaderM... |
components/src/Logo/Logo.paths.js | svef/www | import React from 'react'
export const Hexagon = () => (
<path
className="hexagon"
d="M179.900651,143.933364 C179.896894,149.457974 176.022503,156.171679 171.240383,158.932637 L103.586843,197.992427 C98.8076649,200.751686 91.0510903,200.750588 86.2669572,197.992802 L18.7059454,159.047658 C13.9196145,156.2886... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Card.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import classNames from 'classnames';
import React from 'react';
import { createBootstrapC... |
node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js | solium/swift-react-native-hybrid | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/app/core/atoms/icon/icons/compass.js | blowsys/reservo | import React from 'react'; const Compass = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M13,13 L8,16 L11,11 L16,8 L13,13 Z M12,4 C7.582,4 4,7.582 4,12 C4,16.418 7.582,20 12,20 C16.418,20 20,16.418 20,12 C20,7.582 16.418,4 12,4 L12,4 Z"/></g></g></svg>; export default Compass;
|
src/svg-icons/image/filter.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter = (props) => (
<SvgIcon {...props}>
<path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1... |
local-cli/templates/HelloWorld/index.android.js | shrutic123/react-native | /**
* 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 HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
Sources/ewsnodejs-server/node_modules/react-transition-group/esm/TransitionGroup.js | nihospr01/OpenSpeechPlatform-UCSD | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
im... |
pages/about/index.js | zendesk/copenhelp | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
app/components/TqnAppBar/index.js | tqn/tqn.github.io | /**
*
* TqnAppBar
*
*/
import React from 'react';
import { AppBar } from 'material-ui';
import { Row, Col } from 'react-flexbox-grid';
function TqnAppBar(props) {
return (
<AppBar
showMenuIconButton={false}
title={
<Row>
<Col {...props.colProps}>
Tej Qu Nair
<... |
src/Table.js | codyc4321/react-data-components-updated | import React, { Component } from 'react';
import PropTypes from 'prop-types';
const simpleGet = key => data => data[key];
const keyGetter = keys => data => keys.map(key => data[key]);
const isEmpty = value => value == null || value === '';
const getCellValue = ({ prop, defaultContent, render }, row) =>
// Return `... |
lib/client/components/MagnetSection.react.js | imsnif/wtorrent | "use strict";
import React from 'react';
import { Row } from 'react-bootstrap';
import { Col } from 'react-bootstrap';
import { Input } from 'react-bootstrap';
import { Button } from 'react-bootstrap';
import TorrentActionCreators from '../actions/TorrentActionCreators';
export default class MagnetSection extends Re... |
src/components/header/Header.js | BernabeFelix/generationMap | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import NavigationMenu from 'material-ui/svg-icons/navigation/menu';
const Header = ({ height, toggleMenu }) => {
return (
<MuiT... |
packages/material-ui-icons/src/Kitchen.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Kitchen = props =>
<SvgIcon {...props}>
<path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z" />
<... |
html/dev/lib/license.js | scott-fleischman/greek-grammar | import React from 'react';
export const License = () => (
<div className="listContainer">
<p>
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
<img alt="Creative Commons License" style={{borderWidth:0}} src="https://i.creativecommons.org/l/by/4.0/88x31.png" />
</a>
<br... |
src/server.js | labzero/lunch | /**
* 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 'isomorphic-fetch';
import Promise from 'bluebir... |
example/src/Examples.js | benkeen/react-country-region-selector | import React, { Component } from 'react';
import { CountryDropdown, RegionDropdown } from 'react-country-region-selector';
class Examples extends Component {
constructor (props) {
super(props);
this.getCountryValue = this.getCountryValue.bind(this);
this.getRegionValue = this.getRegionValue.bind(this);
// w... |
redux-demo/todos-with-undo/src/index.js | zhangjunhd/react-examples | import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './components/App'
import reducer from './reducers'
const store = createStore(reducer)
render(
<Provider store={store}>
<App />
</Provider>,
document.getEle... |
examples/progressive-render/pages/index.js | nelak/next.js | import React from 'react'
import NoSSR from 'react-no-ssr'
import Loading from '../components/Loading'
export default () => (
<main>
<section>
<h1>
This section is server-side rendered.
</h1>
</section>
<NoSSR onSSR={<Loading />}>
<section>
<h2>
This section i... |
src/helpers/extension.js | margox/braft-editor | /* eslint-disable no-param-reassign */
// TODO
// -extended support for block-style and atomic types
import React from 'react';
const extensionControls = [];
const extensionDecorators = [];
const propInterceptors = [];
const extensionBlockRenderMaps = [];
const extensionBlockRendererFns = [];
const extensionInline... |
src/js/pages/Homepage.js | vbence86/project-bea | /* global $, ga */
import React from 'react';
import { HorizontalSplit, Navbar, NavItem, Page, Section, SignupModal } from 'neal-react';
import { ContentProvider } from '../components/ContentProvider';
import GoogleAnalytics from '../components/GoogleAnalytics';
import HeroVideo from '../components/HeroVideo';
import P... |
docs/src/app/components/pages/components/List/ExamplePhone.js | xmityaz/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import CommunicationCall from 'material-ui/svg-icons/communication/call';
import CommunicationChatBubble from 'material-ui/svg-icons/communicatio... |
src/index.js | merylturner/budget-app | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import store from './store/index';
ReactDOM.render(
<Provider store={store}>
<App />
</Provi... |
renderer/pages/editor.js | wulkano/kap | import React from 'react';
import Head from 'next/head';
import {Provider} from 'unstated';
import {ipcRenderer as ipc} from 'electron-better-ipc';
import Editor from '../components/editor';
import Options from '../components/editor/options';
import {EditorContainer, VideoContainer} from '../containers';
const editor... |
webpack/ForemanTasks/Components/TasksTable/formatters/selectionHeaderCellFormatter.js | adamruzicka/foreman-tasks | import React from 'react';
import TableSelectionHeaderCell from '../Components/TableSelectionHeaderCell';
export default (selectionController, label) => (
<TableSelectionHeaderCell
label={label}
checked={selectionController.allPageSelected()}
disabled={!selectionController.permissions.edit}
onChange=... |
app/jsx/choose_mastery_path/components/path-option.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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... |
react/src/index.js | thienan93/bms | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import {Router, hashHistory} from 'react-router';
import routes from './routes';
import rootReducers from './reducers/index-reducer';
import './components/bundle.scss';
... |
src/svg-icons/device/wifi-tethering.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWifiTethering = (props) => (
<SvgIcon {...props}>
<path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21... |
examples/with-koa/src/client.js | jaredpalmer/react-production-starter | import App from './App';
import BrowserRouter from 'react-router-dom/BrowserRouter';
import React from 'react';
import { hydrate } from 'react-dom';
hydrate(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('root')
);
if (module.hot) {
module.hot.accept();
}
|
src/svg-icons/image/switch-camera.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSwitchCamera = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 11.5V13H9v2.5L5.5 12 9 8.5V11h6V8.5l3.5 3.5-3.5... |
src/admin/client/modules/customers/filter/components/fields.js | cezerin/cezerin | import React from 'react';
import messages from 'lib/text';
import style from './style.css';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import Toggle from 'material-ui/Toggle';
export default ({
active,
discontinued,
on_sale,
stock_status,
setActive,
setDisco... |
lib/components/GutterResize.js | alexcorre/git-blame | 'use babel';
import { isFunction } from 'lodash';
import React from 'react';
import { compose, withHandlers } from 'recompose';
function GutterResize({children, onMouseDown}) {
return (
<div className="resize-container">
{children}
<div
className="resize"
onMouseDown={onMouseDown}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.