path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/web/components/Components/index.js
lukemarsh/hq
import React from 'react'; import Component from 'web/components/Component'; export const Components = ({ components }) => { if (!components || !components.length) return null; return ( <div> {components.map((component, key) => <Component {...{ key, component }} /> )} </div> ); }; Co...
blueocean-material-icons/src/js/components/svg-icons/maps/directions-boat.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsDirectionsBoat = (props) => ( <SvgIcon {...props}> <path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99 4 .99h2v-2h-2zM3.95 19H4c1.6 0 3...
website/src/components/Sponsors.js
starkos/premake-core
import React from 'react'; export default function Sponsors() { const containerRef = React.useRef(); React.useEffect(() => { const script = document.createElement('script'); script.id = 'opencollective-script'; script.src = 'https://opencollective.com/premake/banner.js'; script.async = true; containerRef...
src/index.js
gauriramesh/budgetbuddy
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/svg-icons/content/drafts.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDrafts = (props) => ( <SvgIcon {...props}> <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>...
client/modules/admin/routes.js
mantrajs/meteor-mantra-kickstarter
import React from 'react'; import {mount} from 'react-mounter'; import { AuthCheck, LayoutDefault, Simplest, } from '/client/configs/components.js'; export default function (injectDeps, {FlowRouter}) { const AuthCheckCtx = injectDeps(AuthCheck); FlowRouter.route('/admin', { name: 'admin.home', ac...
exercise-06-solution/src/components/PokemonCardHeader.js
learnapollo/pokedex-react
import React from 'react' import { propType } from 'graphql-anywhere' import gql from 'graphql-tag' import styled from 'styled-components' const Title = styled.div` color: #7F7F7F; font-size: 32px; font-weight: 300; max-width: 400px; margin-top: 50px; ` export default class PokemonCardHeader extends React.C...
examples/src/components/MultiSelectField.js
naturalatlas/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var MultiSelectField = React.createClass({ displayName: 'MultiSelectField', propTypes: { label: React.PropTypes.string, ...
src/svg-icons/action/settings-voice.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsVoice = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3...
demo.js
cqqccqc/city-picker
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Form, Input } from 'antd'; import CityPicker from './src/index'; const FormItem = Form.Item; /** * demo */ class Wrapper extends Component { constructor(props) { super(props); this.state = { disabled...
src/AstronautList.js
hom3r/astronauts
import React, { Component } from 'react'; import Astronaut from './Astronaut'; class AstronautList extends Component { render () { return ( <div className="astronautList"> <table className="table table-hover"> <thead> <tr> ...
src/components/Layout/Sider.js
terryli1643/daoke-react-c
import React from 'react' import PropTypes from 'prop-types' import { Icon, Switch } from 'antd' import styles from './Layout.less' import { config } from '../../utils' import Menus from './Menu' const Sider = ({ siderFold, darkTheme, location, changeTheme, navOpenKeys, changeOpenKeys, menu }) => { const menusProps ...
app/javascript/mastodon/components/admin/Trends.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Hashtag from 'mastodon/components/hashtag'; export default class Trends extends React.PureComponent { static propTypes = { lim...
examples/react-router/src/shared/containers/NoMatch.js
jasonblanchard/react-announce-doc-title
import React from 'react'; import { AnnounceDocTitle } from 'react-announce-doc-title'; export default class NoMatch extends React.Component { render() { return ( <AnnounceDocTitle title="Not Found"> <div> 404 :( </div> </AnnounceDocTitle> ); } }
js/jqwidgets/demos/react/app/kanban/righttoleftlayout/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxKanban from '../../../jqwidgets-react/react_jqxkanban.js'; class App extends React.Component { render() { let fields = [ { name: 'id', type: 'string' }, { name: 'status', map: 'state', type: 'string' }, ...
src/components/time-editor/index.js
StillLearnin/time-clock-ui
import React, { Component } from 'react'; import css from './index.css'; var TimeEditor = React.createClass ({ render() { return ( <div className={css.wrapper}> <div className={css.timeEditor}> <button>Delete</button> <input id="timeIn" type="time" value={this...
common/routes/Home/components/HomeRedeem.js
chrisfitkin/redeem-3
import React from 'react' import Link from 'react-router/lib/Link' import { StyleSheet, css } from 'aphrodite' import AnimateFadeUp from '../../../components/AnimateFadeUp' import { Button, Color, InputField } from '../../../style.js' import TextField from 'material-ui/TextField' // This is a static page. It uses an ...
app/javascript/mastodon/features/compose/components/upload.js
ashfurrow/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } fr...
.history/src/layouts/index_2017080405706.js
radubrehar/evanghelic.ro
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'gatsby-link'; import Helmet from 'react-helmet'; import './index.css'; const Footer = () => { return <div>Footer</div>; }; const Header = () => <div style={{ background: 'rebeccapurple', marginBottom: '1.45rem' }...
javascript/src/views/AutoComplete.js
unclecheese/silverstripe-kickassets
import React from 'react'; import BS from 'react-bootstrap'; import Truncator from './Truncator'; import _t from '../utils/lang'; let { Input, DropdownMenu, DropdownStateMixin, MenuItem } = BS; const AutoComplete = React.createClass({ _timeout: null, mixins: [DropdownStateMixin], propTypes: { delay: ...
src/routes/Home/components/RateLimitScreen.js
Havoc-Todo/havoc-web
import React from 'react' import './Main.scss' export const RateLimitScreen = () => ( <div className='fill-scroll'> <div className='todo-menu' style={{ marginTop: '40px' }} > Please wait a minute then refresh the page... You're probably seeing this because you made too many requests to the Goog...
ant-design-mobile/src/listview/body.js
alcat2008/web-demo
/* eslint-disable */ import React from 'react'; import { ListView } from 'antd-mobile'; const data = [ { img: 'https://zos.alipayobjects.com/rmsportal/dKbkpPXKfvZzWCM.png', title: '相约酒店', des: '不是所有的兼职汪都需要风吹日晒', }, { img: 'https://zos.alipayobjects.com/rmsportal/XmwCzSeJiqpkuMB.png', title: ...
src/pages/404.js
theanxy/wojtekzajac.com
import React from 'react'; const NotFoundPage = () => <div> <h2>NOT FOUND</h2> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div>; export default NotFoundPage;
src/components/SidebarItem.js
casesandberg/react-docs
'use strict' import React from 'react' import ReactCSS from 'reactcss' import { Tile } from '../../modules/react-material-design/index' export class SidebarItem extends ReactCSS.Component { classes() { return { 'default': { sidebarItem: { fontSize: '14px', textDecoration: 'no...
src/components/PostDetailLayout/PostDetailLayout.js
Ryann10/hci_term
import React from 'react' import './PostDetailLayout.scss' import { Link } from 'react-router' import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card' import {GridList, GridTile} from 'material-ui/GridList' import {List, ListItem} from 'material-ui/List' import Avatar from 'mate...
.storybook/components/ToggleStory.js
hellobrian/carbon-components-react
import React from 'react'; import { storiesOf, action } from '@storybook/react'; import Toggle from '../../components/Toggle'; const toggleProps = { onToggle: action('toggle'), className: 'some-class', }; storiesOf('Toggle', module).addWithInfo( 'Default', ` Toggles are controls that are used to quickly...
src/containers/ChannelData/index.js
dramich/Chatson
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import SparklineChart from '../../components/SparklineChart'; import { getTone, unsetTone } from '../../actions/index'; import { styles } from './styles.scss'; class ChannelData extends Componen...
client/routes/Route.js
collectiveidea/hoverboard
import React from 'react' import { IndexRoute, Route, Redirect } from 'react-router' import ViewerQuery from './ViewerQuery' import AppContainer from '../components/App/AppContainer' import HomeContainer from '../components/Home/HomeComponent' export default ( <Route path='/' component={AppContainer} queries={Viewe...
src/components/CategoryList.js
flintovich/book-react-app
import React, { Component } from 'react'; export default class App extends Component { constructor(props) { super(props); } getBooksList(){ return [ { "id": "1", "title": "Фауст", "author": "Иоганн Вольфганг Гете", "authorID": "1", "category": "Поэзия", ...
test/test_helper.js
937aaron/reduxblog
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/containers/profile/ChangePassword.js
elarasu/roverz-chat
import React, { Component } from 'react'; import { View, StyleSheet, // TouchableOpacity, // Alert, } from 'react-native'; // import { // Icon, // } from 'react-native-elements'; import FormValidation from 'tcomb-form-native'; // import t from '../../i18n/'; // import { Text } from '../../components/ui/'; ...
app/components/Box.js
AnnaBlackwell/sudoku-react
import React from 'react' import InputCell from './InputCell' import PCell from './PCell' import _ from 'lodash' export default React.createClass({ render: function () { let box = this.props.box return ( <div className='box'> {_.map(box, function (number, index) { if (number === '0')...
fixtures/flight/src/index.js
billfeller/react
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTransportDOMClient from 'react-transport-dom-webpack'; import App from './App'; let data = ReactTransportDOMClient.createFromFetch( fetch('http://localhost:3001') ); ReactDOM.render(<App data={data} />, document.getElementById('root'));
jenkins-design-language/src/js/components/material-ui/svg-icons/action/perm-scan-wifi.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionPermScanWifi = (props) => ( <SvgIcon {...props}> <path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/> </SvgIcon> ); ActionPermScanWifi.displayName = 'ActionPermScanWifi'; Actio...
src/containers/NotFound/NotFound.js
Rosita13/react-redux
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
static-web/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
tspycher/python-raspberry-bugcontrol
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'));
app/javascript/mastodon/features/ui/components/column_header.js
verniy6462/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func, columnHeaderId: PropTypes.string, }; handleCli...
client/src/components/header-loginStatus/loggedIn.js
kat09kat09/GigRTC
import React from 'react' import { Link } from 'react-router'; import LeftNav from 'material-ui/lib/left-nav'; import MenuItem from 'material-ui/lib/menus/menu-item'; import RaisedButton from 'material-ui/lib/raised-button'; import AppBar from 'material-ui/lib/app-bar'; import IconButton from 'material-ui/lib/icon-but...
client/src/components/Informational/DenverLearnMore.js
codefordenver/Circular
import React from 'react'; import { Grid, Row, Col, PageHeader } from 'react-bootstrap'; import CollapsePanel from '../UtilComponents/CollapsePanel'; const DenverLearnMore = () => ( <Grid fluid> <Row> <Col xs={12} md={10} mdOffset={1}> <PageHeader className="info-page-header-overrides"> D...
app/core/application.js
izonder/weather
import Container from 'core/container'; import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware, compose } from 'redux'; import { Provider } from 'react-redux'; import { reduxReactRouter, ReduxRouter } from 'redux-router'; import { createHistory } from 'history'; import th...
src/parser/deathknight/blood/modules/talents/WillOfTheNecropolis.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import { formatNumber } from "common/format"; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; const MINIMUM_ABSORB_THRE...
client/layouts/Market/ChannelLayout.js
briefguo/learn-js
import React from 'react' import mapChildrenToView from 'lib/mapChildrenToView' import Styles from './ChannelLayout.css' export default class ChannelLayout extends React.Component { static propTypes = { name: React.PropTypes.string, children: React.PropTypes.array, } constructor(props) { super(prop...
src/ui/diagram/index.js
circuitsim/circuit-simulator
import React from 'react'; import { canvasMouseDown, canvasMouseMove, canvasMouseUp, canvasMouseEnter, canvasMouseLeave, loopBegin, loopUpdate, updateCurrentOffsets, rationaliseCurrentOffsets } from '../../state/actions'; import resize from '../Resize'; import {relMouseCoords} from '../utils/Drawin...
app/javascript/mastodon/features/standalone/public_timeline/index.js
pinfort/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as Imm...
src/browser/app/Root.js
redcom/doctori-romani-in-berlin
// @flow import App from './App'; import Fela from '../../common/components/FelaProvider'; import React from 'react'; import configureFela from '../configureFela'; import { BrowserRouter } from 'react-router'; import { Provider as Redux } from 'react-redux'; type RootProps = { store: Object, }; type BrowserRootProp...
src/js/services/sliderContent.js
JJVvV/launchr
/** * Created by AlexLiu on 2015/8/21. */ import React from 'react'; import NewEvent from '../components/NewEvent.js'; import NewMeeting from '../components/NewMeeting.js'; import NewMeetingFilter from '../components/NewMeetingFilter.js'; import MeetingDetail from '../components/MeetingDetail.js'; import EventDetail...
src/parser/warlock/demonology/CHANGELOG.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Chizu, Gwelican } from 'CONTRIBUTORS'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { change, date } from 'common/changelog'; export default [ change(date(2019, 4, 3), <>Add <SpellLink id={SPELLS.DEMONIC_CONSUMPTION_TALENT.id} /> power trac...
docs/src/app/modules/PropsList.js
GetAmbassador/react-ions
import React from 'react' import style from 'private/css/props' class PropsList extends React.Component { static defaultProps = { list: {} } constructor(props) { super(props) } render() { let hasRequiredProps = false let propsList = Object.keys(this.props.list).map((name, index) => { ...
src/components/PersonalArea/PersonalArea.js
nbschool/ecommerce_web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import SidebarMenu from '../SidebarMenu/'; import PersonalAreaPersonalData from '../PersonalAreaPersonalData/'; import PersonalAreaAddressData from '../PersonalAreaAddressData/'; import './Personal...
sandbox/graphqlVersion/client/components/uuQueryRendererWrapper.js
guigrpa/mady
// @flow import React from 'react'; import { QueryRenderer } from 'react-relay'; import { Spinner, LargeMessage } from 'giu'; import _t from '../../translate'; import { getEnvironment } from '../gral/relay'; type Props = { relayEnvironment?: Object, query: Object, vars?: Object, Component: ReactClass<*>, re...
src/index.js
pot-code/redux-demo
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware, compose } from 'redux'; import { Provider } from 'react-redux'; import { BrowserRouter as Router } from 'react-router-dom'; import createSagaMiddleware from 'redux-saga'; import _ from 'lodash'; import './index.css'; im...
src/Well.js
HPate-Riptide/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, bsSizes, getClassSet, splitBsProps } from './utils/bootstrapUtils'; import { Size } from './utils/StyleConfig'; class Well extends React.Component { render() { const { className, ...props } = this.props; const [bsProps, elem...
src/routes/Login/Login.js
townmi/ReactExamples
/** * */ import React, { Component } from 'react'; import axios from 'axios'; import { Link, hashHistory } from 'react-router'; import Auth from '../../services/authToken'; import './login.scss'; class Login extends Component { constructor(props) { super(props); this.state = { tok...
src/svg-icons/content/add-circle-outline.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.5...
src/client.js
kuao775/mandragora
/** * 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 'whatwg-fetch'; import React from 'react'; impor...
node_modules/rc-slider/es/common/Track.js
yhx0634/foodshopfront
import _extends from 'babel-runtime/helpers/extends'; /* eslint-disable react/prop-types */ import React from 'react'; var Track = function Track(props) { var className = props.className, included = props.included, vertical = props.vertical, offset = props.offset, length = props.length, ...
stories/Prompt.js
propertybase/react-lds
import React from 'react'; import { storiesOf } from '@storybook/react'; import { boolean, select, text } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import { Prompt } from '../src'; import './utils/global.css'; import { ModalDecorator } from './utils/decorators'; const stories ...
packages/demos/todomvc/src/components/Todo/index.js
yusufsafak/cerebral
import React from 'react' import classnames from 'classnames' import { connect } from 'cerebral/react' import { state, signal, props } from 'cerebral/tags' export default connect( { todo: state`todos.${props`uid`}`, todoDoubleClicked: signal`todoDoubleClicked`, newTitleChanged: signal`todoNewTitleChanged...
website/src/components/v1/Container.js
cpojer/jest
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import clsx from 'clsx'; export default function Container(props) { const conta...
editor/app/js/components/GraphPanel.js
GlassOceanos/nubomedia-graphedit
/* * (C) Copyright 2016 NUBOMEDIA (http://www.nubomedia.eu) * * 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 ap...
packages/react-interactions/accessibility/src/FocusGroup.js
jzmq/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 type {ReactScopeMethods} from 'shared/ReactTypes'; import type {KeyboardEvent} from 'react-interactions/events/...
src/components/app.js
StephenGrider/ReduxSimpleStarter
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div>React simple starter</div> ); } }
newclient/scripts/components/user/travel-log/entry/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/Message.js
Sharlaan/selfchat
import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import { makeStyles } from '@material-ui/styles'; import React from 'react'; const useStyles = makeStyles({ aside: { display: 'flex', justifyContent: 'space-between', marginBottom: 5 }, from: { fontWeight:...
app/containers/BattleContainer.js
kaylynyuh/react-training
import React, { Component } from 'react'; import Battle from '../components/Battle'; import styles from '../styles/index'; class BattleContainer extends Component { constructor(props) { super(props); this.state({ isLoading: true, playerInfo: [] }) } render () { return ( <Bat...
src/docs/Example.js
miker169/ps-react-miker169
import React from 'react'; import PropTypes from 'prop-types'; import CodeExample from './CodeExample' class Example extends React.Component { constructor(props) { super(props); this.state = { showCode: false }; } toggleCode = event => { event.preventDefault(); this.setState(prevState => { ...
internals/templates/notFoundPage.js
StrikeForceZero/react-typescript-boilerplate
/** * 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 neccessity for you then you can refactor i...
src/decorators/withViewport.js
edsrupp/eds-mess
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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, { Component } from 'react'; // eslint-disabl...
src/components/ResourceList.js
samkarp/murmuration
import React from 'react'; const ResourceList = React.createClass({ getInitialState:function(){ return{ data:[] }; }, showResult: function(response) { //console.log(response.hits.hits); this.setState({ data: response.hits.hits }); }, componentDidMount(){ console.log(this.props.skillset)...
src/components/withViewport.js
pvijeh/peter-vijeh-personal-site
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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, { Component } from 'react'; // eslint-disabl...
src/components/DeleteConfirm.js
GovReady/GovReady-Agent-Client
import React, { Component } from 'react'; import { PropTypes as PT } from 'prop-types'; class DeleteConfirm extends Component { shouldComponentUpdate(nextProps) { return this.props.confirmDelete !== nextProps.confirmDelete } cancelClick(event) { event.preventDefault(); this.props.deleteConfirm(false...
source/scripts/main.js
gsklee/frontier
// Web App Initter // =============== // // This file configures Redux and kicks off the rendering of the web app. // // Import Modules // -------------- // // ### NPM Modules import 'babel-core/polyfill'; import {keys} from 'bound-native-methods/object'; import React from 'react'; // Required by JSX import {render} f...
src/client/components/base/Heading/Heading.js
DBCDK/content-first
import React from 'react'; import PropTypes from 'prop-types'; import './Heading.css'; const Heading = ({ Tag = 'h1', type = 'section', children, className, ...props }) => { return ( <Tag className={`${className || ''} Heading Heading__${type}`} {...props}> {children} </Tag> ); }; Heading....
src/ui/pages/auth/Login.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import translate from 'app/global/helper/translate'; import { graphql } from 'react-apollo'; import LoginMutation from 'app/graphql/mu...
src/Creatable.js
mobile5dev/react-select
import React from 'react'; import PropTypes from 'prop-types'; import Select from './Select'; import defaultFilterOptions from './utils/defaultFilterOptions'; import defaultMenuRenderer from './utils/defaultMenuRenderer'; class CreatableSelect extends React.Component { constructor (props, context) { super(props, co...
scripts/dashboard/components/Dashboard/view.js
vedranjukic/dockerino
import React from 'react' import Breadcrumbs from 'react-breadcrumbs' import ProjectList from '../../containers/ProjectList' function view (props) { return ( <div> <ProjectList {...props} /> </div> ) } export default view
www/static/src/admin/component/sidebar/index.js
helinjiang/xman-admin
import React from 'react'; import {Link} from 'react-router'; import classnames from 'classnames'; class Sidebar extends React.Component { constructor(props, context) { super(props, context); console.log('==sidebar.js== constructor'); this.state = { routes: [ {url: '/index', icon: 'home...
public/js/cat_source/es6/components/header/cattol/QAComponent.js
matecat/MateCat
import React from 'react' import SegmentActions from '../../../actions/SegmentActions' import LXQ from '../../../utils/lxq.main' class QAComponent extends React.Component { constructor(props) { super(props) this.state = { navigationList: [], navigationIndex: 0, currentPriority: '', ...
app/javascript/mastodon/features/ui/components/column_link.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Link from '../../../../pawoo/components/wrapped_link'; const ColumnLink = ({ icon, text, to, href, method, badge, ...other }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span> : null; i...
node_modules/react-native-svg/elements/TextPath.js
jasonlarue/react-native-flashcards
import React from 'react'; import PropTypes from 'prop-types'; import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass'; import {TextPathAttributes} from '../lib/attributes'; import extractText from '../lib/extract/extractText'; import Shape from './Shape'; imp...
extensions/chat/components/chat/ChatMessage.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' import Util from 'client/util' const ChatMessage = ({message, onClick, onDeleteClick}) => { const statusBackgroundColor = (status) => { if(status==='creating'){ return '#90afe5' }else if(status==='deleting'){ return '#ff0000' } return '#fffce...
pages/demos/selects.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/demos/selects/selects.md'; function Page() { return ( <MarkdownDocs markdown={markdown} demos={{ 'p...
static/scripts/src/dashboard.js
DHDaniel/super-voter
//# sourceMappingURL=http://localhost:8080/static/scripts/dist/app.js.map import React from 'react'; import ReactDOM from 'react-dom'; import PollForm from './createPoll.jsx'; import PollDisplay from './pollDisplay.jsx'; import Sidebar from './sidebar.jsx'; class MainDisplay extends React.Component { render (...
src/components/Layout.js
ChicagoJS/chicagojs.org
import React from 'react' import Helmet from 'react-helmet' import favicon32 from '../images/favicon/favicon-32x32.png' import favicon16 from '../images/favicon/favicon-16x16.png' import faviconICO from '../images/favicon/favicon.ico' import MailingListForm from './MailingListForm' import Navbar from './Navbar' import ...
app/components/AssessmentEntry/AssessmentEntryRow.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import Select from 'react-select'; import { getDateWithDateAndTime, dateFormat, between } from '../../utils'; const AssessmentEntryRowView = (props) => { const { id, name, answers, questions, assessmentI...
src/containers/DevTools/DevTools.js
dhavrosh/realUmls
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
src/components/common/svg-icons/communication/business.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationBusiness = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2...
src/svg-icons/device/signal-cellular-no-sim.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
client/src/components/app.js
iNeedCode/mern-starter
import React, { Component } from 'react'; import HeaderTemplate from './template/header'; import FooterTemplate from './template/footer'; class App extends Component { render() { return ( <div> <HeaderTemplate logo="Your Site" /> <div className="container"> {this.props.children} ...
src/index.js
muliwe/donor-spa
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; var globals = $globals(); var TO = setInterval(function() { if (globals.map && globals.socket) { clearInte...
src/server/routes/revision.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2015-2016 Ben Ockmore * 2016 Sean Burke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) an...
src/components/Footer.js
maloun96/react-admin
import React from 'react'; import {render} from 'react-dom'; class Footer extends React.Component { render(){ return ( <div> <footer className="main-footer"> <div className="pull-right hidden-xs"> <b>Version</b> 2.3.8 </div> <strong>Copyright &copy; 2014-2016 <a href="public...
webapp/components/pages/HomePage.js
marinvvasilev/homeinfotainment
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import '../styles/home-page.scss'; // Import Widgets import ClockWidget from '../widgets/ClockWidget'; import WeatherWidget from '../widgets/WeatherWidget'; import ListWidget from '../widgets/ListWidget'; import GridWidg...
src/frontend/components/clipList/Clip.js
ChVince/coffee-shop
import React from 'react' class Clip extends React.Component { constructor(props) { super(props); } render() { return ( <div className="clip"> <iframe className="clip" src={this.props.clip.url} frameBorder="0" webkitAllowFullScreen ...
app/components/Timing.js
matthieuh/desktop-assistant
// @flow import { shell, remote } from 'electron'; import React, { Component } from 'react'; import moment from 'moment'; import type typeMoment from 'moment'; import _ from 'lodash'; import { exec } from 'child_process'; import styles from './Timing.css'; import Tasks from '../containers/TasksContainer'; type TaskTy...
scripts/main.js
LulzAugusto/catch-of-the-day
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route } from 'react-router'; import { createHistory } from 'history'; import NotFound from './components/NotFound'; import StorePicker from './components/StorePicker'; import App from './components/App'; /* Routes */ var routes = ( ...
app/components/Toggle/index.js
commanderking/alliancechemistry
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
docs/build.js
jesenko/react-bootstrap
/* eslint no-console: 0 */ import fsp from 'fs-promise'; import path from 'path'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import {match, RoutingContext} from 'react-router'; import Root from './src/Root'; import routes from './src/Routes'; import metadata from './generate-metadata';...
classic/src/scenes/wbfa/generated/FARGem.free.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faGem } from '@fortawesome/free-regular-svg-icons/faGem' export default class FARGem extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faGem} />) } }
src/svg-icons/image/grid-off.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGridOff = (props) => ( <SvgIcon {...props}> <path d="M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2H8zm8 0h4v4h-4V4zM1.27 1.27L0 2.55l2 2V20c0 1.1.9 2 2 2h...