path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/routes.js
albertfdp/react-podio-universal
import React from 'react'; import { Route } from 'react-router'; import Application from './containers/Application/Application'; import TodoApp from './containers/TodoApp/TodoApp'; import NotFound from './containers/NotFound/NotFound'; export default ( <Route component={Application}> <Route path="/" component={...
app/components/cardComponent.js
proProbe/jash.io
import React from 'react'; import Relay from 'react-relay'; import JapaneseComponent from './japaneseComponent'; import EnglishComponent from './englishComponent'; import Tags from './tags.js'; class CardComponent extends React.Component{ render() { let {translations} = this.props; return ( <div clas...
client/components/WidgetComponent.js
MusicConnectionMachine/VisualizationG6
import React from 'react' import '../../style/widgets.scss' import { widgetsHost } from '../config' const WIDGET_URLS = { timeline: `${widgetsHost}/timeline-app.html?`, relations: `${widgetsHost}/relations-widget.html?useMockups`, map: `${widgetsHost}/map-app.html?` } export default class WidgetComponent extend...
client/src/components/Listing/AddListing/AddListingComponents/ListingTitle.js
Velocies/raptor-ads
import React from 'react'; import { Form } from 'semantic-ui-react'; const ListingTitle = ({ title, onChange, getFormClass }) => <Form.Field className="ui center aligned grid"> <label>Title</label> <input placeholder="Insert title of job here" name="title" value={title} onChange={e =>...
src/components/__tests__/TableBodyTest.js
joellanciaux/Griddle
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import TableBody from '../TableBody'; test('renders with style', (t) => { const style = { backgroundColor: '#EDEDED' }; const wrapper = shallow(<TableBody style={style} />); t.true(wrapper.matchesElement(<tbody style={{ backgr...
client/providers/CustomSoundProvides.js
Sing-Li/Rocket.Chat
import React from 'react'; import { CustomSounds } from '../../app/custom-sounds/client/lib/CustomSounds'; import { CustomSoundContext } from '../contexts/CustomSoundContext'; export function CustomSoundProvider({ children }) { return <CustomSoundContext.Provider children={children} value={CustomSounds} />; }
docs/index.js
casesandberg/react-color
'use strict' import React from 'react' import ReactDOM from 'react-dom' // import ReactDOMServer from 'react-dom-server' import Home from './components/home/Home' // const html = ReactDOMServer.renderToString(React.createElement(Home)) // console.log(html) if (typeof document !== 'undefined') { ReactDOM.render( ...
js/react-kit/src/routes/Home/components/Content.js
xiecg/record
import React, { Component } from 'react'; import Checkbox from './Checkbox.js'; import Dropdown from './Dropdown.js'; import PositionContainer from './PositionContainer'; import './Content.scss'; let selected = []; class Header extends Component { constructor(props) { super(props); this.state = { ch...
src/decorators/withViewport.js
allfix53/react-starter-kit
/*! 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...
spec/javascripts/jsx/grading/AccountGradingPeriodSpec.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...
src/svg-icons/device/signal-cellular-connected-no-internet-3-bar.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M17 22V7L2 22h15zm3-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devic...
pages/profile.js
malixsys/mobazoo
/* eslint-disable react/prop-types */ import React from 'react'; import withRedux from 'next-redux-wrapper'; import { bindActionCreators } from 'redux'; import initStore from '../store/initStore'; import Page from '../components/Page'; import Layout from '../components/MainLayout'; import { callGetProfile } from '../st...
app/scripts/components/Star.js
henry40408/awesome-stars
/* eslint-disable global-require */ import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import colors from '../themes/colors' let blueStar let orangeStar let whiteStar let yellowStar if (chrome && chrome.extension && chrome.extension.getURL) { blueStar = chrome.ext...
newclient/scripts/components/user/currency-field/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...
client/admin/settings/inputs/SelectSettingInput.stories.js
Sing-Li/Rocket.Chat
import { Field } from '@rocket.chat/fuselage'; import { action } from '@storybook/addon-actions'; import React from 'react'; import { SelectSettingInput } from './SelectSettingInput'; export default { title: 'admin/settings/inputs/SelectSettingInput', component: SelectSettingInput, decorators: [ (storyFn) => <Fi...
dist/vis/stories/Random.stories.js
datavisyn/tdp_core
import React from 'react'; import { Vis } from '../Vis'; import { EAggregateTypes, EBarDirection, EBarDisplayType, EBarGroupingType, EColumnTypes, ENumericalColorScaleType, EScatterSelectSettings, ESupportedPlotlyVis, EViolinOverlay, } from '../interfaces'; function fetchData(numberOfPoints) { const dataGetter = as...
packages/components/src/Actions/ActionFile/ActionFile.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import uuid from 'uuid'; import TooltipTrigger from '../../TooltipTrigger'; import CircularProgress from '../../CircularProgress'; import OverlayTrigger from '../../OverlayTrigger'; import Icon from '../../Icon'; import...
themes/genius/Genius 2.3.1 Bootstrap 4/React_Full_Project/src/views/Pages/Login/Login.js
davidchristie/kaenga-housing-calculator
import React, { Component } from 'react'; class Login extends Component { render() { return ( <div className="container"> <div className="row justify-content-center"> <div className="col-md-8"> <div className="card-group mb-0"> <div className="card p-2"> ...
webpack/scenes/ModuleStreams/Details/ModuleStreamDetailArtifacts.js
cfouant/katello
import React from 'react'; import PropTypes from 'prop-types'; const ModuleStreamDetailArtifacts = ({ artifacts }) => ( <div> <ul> {artifacts.map(({ id, name }) => <li key={id}>{name}</li>)} </ul> </div> ); ModuleStreamDetailArtifacts.propTypes = { artifacts: PropTypes.arrayOf(PropTypes.shape({ ...
src/Week.js
ygt-mikekchar/react-calendar-pane
import React from 'react'; let Week = React.createClass({ render() { return <tr className='Week'>{this.props.children}</tr> } }); export default Week;
src/hooks/useColumnVisibility.js
tannerlinsley/react-table
import React from 'react' import { actions, functionalUpdate, useGetLatest, makePropGetter, useMountedLayoutEffect, } from '../publicUtils' actions.resetHiddenColumns = 'resetHiddenColumns' actions.toggleHideColumn = 'toggleHideColumn' actions.setHiddenColumns = 'setHiddenColumns' actions.toggleHideAllColum...
docs/app/Examples/elements/Loader/Variations/LoaderExampleSizesInverted.js
vageeshb/Semantic-UI-React
import React from 'react' import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react' const LoaderExampleSizesInverted = () => ( <div> <Segment> <Dimmer active inverted> <Loader size='mini'>Loading</Loader> </Dimmer> <Image src='http://semantic-ui.com/images/wireframe/short-para...
client/pages/examples/threejs/graphing/elements/basics-ortho.js
fdesjardins/webgl
import React from 'react' import * as THREE from 'three' import threeOrbitControls from 'three-orbit-controls' import { FaceNormalsHelper } from 'three/examples/jsm/helpers/FaceNormalsHelper' import { createAxes, createLineGraph, create3dGraph } from '../utils' const init = ({ state }) => { const canvas = document....
src/components/create/MessageUrl.js
securely-app/web
import React from 'react'; import styled from 'styled-components'; import CopyButton from '../common/buttons/CopyButton'; const MessageUrlWrapper = styled.div` font-family: 'Work Sans', sans-serif; color: #fff; font-size: 15px; text-align: center; `; const MessageUrl = props => ( <MessageUrlWrapper> <p ...
app/javascript/mastodon/components/extended_video_player.js
salvadorpla/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ExtendedVideoPlayer extends React.PureComponent { static propTypes = { src: PropTypes.string.isRequired, alt: PropTypes.string, width: PropTypes.number, height: PropTypes.number, time: PropTypes.number, contr...
analysis/paladinholy/src/modules/features/MasteryEffectiveness.js
anom0ly/WoWAnalyzer
import { Trans, t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import Combatants from 'parser/shared/modules/Combatants'; import HealingValue from '...
src/renderer/components/SidebarItem/index.js
protonmail-desktop/application
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { remote } from 'electron'; import styles from './styles.scss'; export class SidebarItem extends React.Component { static propTypes = { href: PropTypes.string.isRequired, isActive: PropTypes.bool.i...
lib/components/display-messages.js
StephanieEA/shoot-the-breeze
import React from 'react'; class DisplayMessages extends React.Component { render() { let displayMessages = []; if (this.props.sorter && !this.props.searched) { displayMessages = this.props.sorter; } else if (this.props.searched && !this.props.sorter) { displayMessages = this.props.search...
src/routes/contact/Contact.js
buildbreakdo/react-starter-kit
/** * 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 PropTypes from 'prop-...
app/components/SpinnerModal/SpinnerModal.js
adrianocola/spyfall
import React from 'react'; import { css } from 'emotion'; import Spinner from 'components/Spinner/Spinner'; const modalStyle = css({ position: 'fixed', top: 0, left: 0, display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100vh', width: '100vw', padding: 0, margin: 0, backgr...
client/src/Components/PersonalData.js
teamcrux/EmploymentOptions
import React from 'react'; const personalData = (props) => { const AltContacts = null; /* const AltContacts = props.user.AlternateContacts.map(item => ( <div> <h3> Alternate Contacts </h3> <p> First Name: </p> <p> Last Name: </p> <p> Relationship: </p> </div> )); ...
frontend/src/Activity/Blacklist/BlacklistDetailsModal.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import DescriptionList from 'Components/DescriptionList/DescriptionList'; import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem'; import Button from 'Components/Link/Button'; import Modal from 'Components/Modal/Modal...
www/src/pages/extension.js
TaitoUnited/taito-cli
import React from 'react'; import { graphql } from 'gatsby'; import { flattenListData } from '../utils'; import Page from '../components/Page'; import SEO from '../components/SEO'; export default ({ data }) => { const [pageData] = flattenListData(data, 'md'); return ( <Page> <SEO /> <div dangerou...
front-end/src/views/AddEditPost/AddEditPost.js
mkalpana/km-react-reddit-clone
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { PostForm } from '../../components'; import { createPost, editPost, fetchPosts, fetchCategories } from '../../actions'; import uuidv1 from 'uuid/v1'; class AddEditPost extends Component { comp...
site/components/SideBar.js
jchristman/react-context-menus
import React, { Component } from 'react'; import './SideBar.less'; export default class SideBar extends Component { render() { return ( <div className="SideBar"> <div className="SideBar-content"> {this.props.groups.map(this.renderGroup, this)} </div> </div> ); } ren...
src/PaginationButton.js
chrishoage/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
tests/react/createElement_string.js
facebook/flow
// @flow import React from 'react'; class Bar extends React.Component<{}> {} class Foo extends React.Component<{}> { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); } }
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/ThrottlingPolicies/Create/CreateBusinessPlan.js
Minoli/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...
react-native/Albums/src/components/header.js
vanyaland/react-demos
import React from 'react'; import { Text, View, StyleSheet } from 'react-native'; const Header = ({ title }) => { const { textStyle, container } = styles; return ( <View style={container}> <Text style={textStyle}> {title} </Text> </View> ); }; const styles = StyleSheet.create({...
src/components/Children/Welcome.js
rspica/Sugr
import React from 'react'; const Welcome = logged => { return ( <p style={{ float: 'right', margin: '-60px 0px 0px 0px', fontSize: '30px', color: '#FF8A80', fontWeight: 'bold' }} > We...
src/neuralNetwork/bottomDescription/BottomDescription.js
csenn/nn-visualizer
import React from 'react'; import * as graphConstants from '../networkGraph/graphConstants'; export default class BottomDescription extends React.Component { render() { const h2Style = { textAlign: 'center', marginTop: '25px', marginBottom: '5px' }; return ( <div style={{ textAl...
saleor/static/js/components/categoryPage/NoResults.js
KenMutemi/saleor
import React from 'react'; import InlineSVG from 'react-inlinesvg'; import noResultsImg from '../../../images/pirate.svg'; const NoResults = () => { return ( <div className="no-results"> <div className="col-12"> <InlineSVG src={noResultsImg} /> <p>{pgettext('Epty search results', 'Sorry, n...
react/20161129/src/js/App.js
fengnovo/diary
import React from 'react' class App extends React.Component { constructor (props) { super(props) } render () { return (<div className="w18">Hello World</div>); } } export default App
src/js/components/deployment_plan/DeploymentPlanStep.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
app/javascript/mastodon/components/check.js
koba-lab/mastodon
import React from 'react'; const Check = () => ( <svg width='14' height='11' viewBox='0 0 14 11'> <path d='M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0' fill='currentColor' fillRule='evenodd' /> </svg> ); export default Check;
templates/rubix/meteor/meteor-example/imports/routes/EditTodo.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import ReactDOM from 'react-dom'; import { Meteor } from 'meteor/meteor'; import { Mongo } from 'meteor/mongo'; import { withRouter } from 'react-router'; import { createContainer } from 'meteor/react-meteor-data'; import { Row, Col, Grid, Form, Panel, Alert, Button, Checkbox...
react-router-demo/lessons/14-whats-next/modules/Repos.js
zhangjunhd/react-examples
import React from 'react' import NavLink from './NavLink' export default React.createClass({ contextTypes: { router: React.PropTypes.object }, handleSubmit(event) { event.preventDefault() const userName = event.target.elements[0].value const repo = event.target.elements[1].value const path =...
client/containers/LoginContainer.js
axax/lunuc
import React from 'react' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import PropTypes from 'prop-types' import {Link, Redirect} from '../util/route' import * as UserActions from 'client/actions/UserAction' import * as ErrorHandlerAction from 'client/actions/ErrorHandlerAction' import {...
src/appReact/components/Map/Config.js
devmessias/brasillivre
import React from 'react'; import {Action} from './../../actions/Action.js'; import InputRange from './InputRange/InputRange'; import Modal from 'react-modal'; import Center from 'react-center-component'; const _closeModal=()=>Action('CloseModal','Config'); const _filterYear=(input,val)=>{ document.body.className='...
pages/about.js
kimeva/zerofallgravity
import React, { Component } from 'react'; import isRetina from 'is-retina'; import { Page, About } from 'components'; export default class extends Component { render () { return ( <Page title='About' > <About isRetina={isRetina()} /> </Page> ); } }
src/client/router/index.js
kindlyops/despite
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import toString from './toString'; import { Promise } from 'when'; import createRoutes from './routes'; import { createStore, setAsCurrentStore } from '../store';...
RNDemo/RNComment/node_modules/react-native/Libraries/Image/Image.ios.js
995996812/Web
/** * 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/routes.js
testlnord/entity_matching_tool
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './components/App' import Home from './components/Home' import SignIn from './components/SignIn' import SignUp from './components/SignUp' import Matching from './components/Matching' function requireAuth(nextState, replace) { ...
src/index.js
dronesmith/Dronesmith-Ground-Control
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; import './index.css'; // postCSS import of CSS module import injectTapEventPlugin from 'react-tap-event-plugin'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); // Terrible, terribl...
packages/strapi-plugin-content-manager/admin/src/components/EditFormRelation/index.js
evian42/starpies
/** * * EditFormRelation * */ import React from 'react'; import Select from 'react-select'; import 'react-select/dist/react-select.css'; import _ from 'lodash'; import request from 'utils/request'; class EditFormRelation extends React.Component { // eslint-disable-line react/prefer-stateless-function construct...
ui/src/components/event/EventList.js
grfeng/conductor
/* eslint-disable react/no-unescaped-entities */ import React from 'react'; import { Popover, OverlayTrigger, Table } from 'react-bootstrap'; import { connect } from 'react-redux'; import { getEventHandlers } from '../../actions/WorkflowActions'; class Events extends React.Component { state = { events: [] }; ...
src/app/Album.js
josdejong/insight
'use strict'; import React from 'react'; import { Component } from 'react'; export default class Album extends Component { render() { return <div className="album"> <div className="album-image"> <img src={this.props.image} alt={this.props.title} /> </div> <div className="album-menu"> ...
demos/function-tree-demos/src/redux/components/App/index.js
idream3/cerebral
import React from 'react' import run from '../../run' import './styles.css' import AddAssignment from '../AddAssignment' import Assignments from '../Assignments' import appMounted from '../../events/appMounted' class App extends React.Component { componentDidMount () { run('appMounted', appMounted) } rende...
src/components/molecules/page-loader.js
raulfdm/cv
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import CirclesSvg from 'atoms/circles-svg'; import { GlobalFullHeight } from 'styles/globals'; const PageLoaderWrapper = styled.div` height: 100%; display: flex; align-items: center; justify-content: cente...
client/router/routes.js
jasonf7/memories-of-harambe
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; import App from '#app/components/app'; import Homepage from '#app/components/homepage'; import Main from '#app/components/main'; import Preview from '#app/components/preview'; import NotFound from '#app/components/not-found'; /** *...
frontend/src/app/containers/LoadingPage.js
dannycoates/testpilot
import React from 'react'; import Loading from '../components/Loading'; export default function LoadingPage() { return ( <div className="full-page-wrapper centered overflow-hidden"> <Loading /> </div> ); }
src/App.js
sunpietro/react-udw
import React, { Component } from 'react'; import UniversalDiscoveryModule from './modules/universal-discovery/universal.discovery.module'; import CreatePanelComponent from './modules/universal-discovery/components/tab-content/create.panel.component.js'; import './App.css'; import homeData from './modules/universal-di...
app/javascript/mastodon/components/status_action_bar.js
mosaxiv/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenuContainer from '../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureCompo...
src/ChartBoard.js
ba1uev/chart-board
import React, { Component } from 'react'; import Chart from './Chart/'; import {mean, sum} from 'lodash'; var indexList = ['shows', 'impressions', 'clicks', 'ctr']; var uniqKey = Math.round(Math.random()*10000); export default class App extends Component { state = { shows: null, impressions: null, click...
src/index.js
kylepotts/react-dropzone
/* eslint prefer-template: 0 */ import React from 'react' import PropTypes from 'prop-types' import accepts from 'attr-accept' import getDataTransferItems from './getDataTransferItems' const supportMultiple = typeof document !== 'undefined' && document && document.createElement ? 'multiple' in document.createElemen...
entry_types/scrolled/package/spec/support/pageObjects.js
codevise/pageflow
import React from 'react'; import {renderInEntry} from './rendering'; import {Entry} from 'frontend/Entry'; import foregroundStyles from 'frontend/Foreground.module.css'; import {loadInlineEditingComponents} from 'frontend/inlineEditing'; import {api} from 'frontend/api'; import {act, fireEvent, queryHelpers, queries...
examples/src/app.js
bezreyhan/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import Select from 'react-select'; import CustomRenderField from './components/CustomRenderField'; import MultiSelectField from './components/MultiSelectField'; import RemoteSelectField from './components/RemoteSelectField'; import SelectedValuesField from '...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Base/Header/Header.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/step-15/RecapTwo.js
gufsky/react-native-workshop
import React, { Component } from 'react'; import Note from '../Note'; class Recap extends Component { render() { return ( <div> <h1>15. Recap From Workshop 2</h1> <p>Congrats on completing workshop 2! So far we have setup our project with Exponent, created the key map component, and added a...
src/apps/Profile/ProfileBillingChart.js
Syncano/syncano-dashboard
import 'c3/c3.css'; import c3 from 'c3'; import _ from 'lodash'; import React, { Component } from 'react'; import Radium from 'radium'; import './ProfileBillingChart.css'; class ProfileBillingChart extends Component { componentDidMount() { this.drawCharts(); } componentDidUpdate() { this.drawCharts();...
src/svg-icons/image/collections.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollections = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/> ...
src/js/components/icons/base/DocumentTest.js
linde12/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...
components/Deck/SlideEditLeftPanel/SlideEditLeftPanel.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import { PhotoshopPicker } from 'react-color'; import React from 'react'; import {connectToStores} from 'fluxible-addons-react'; import {Button, Icon, Input, Popup, TextArea, Divider} from 'semantic-ui-react'; import NavigationPanel from './../NavigationPanel/NavigationPanel'; import...
techCurriculum/ui/solutions/4.8/src/components/CardForm.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/svg-icons/notification/sync.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSync = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25...
src/components/menuItems/PermissionPopup/PermissionPopup.js
macdja38/pvpsite
/** * 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'; import PropTypes...
examples/custom-routing/src/App.js
calvinrbnspiess/react-static
import React from 'react' import { Router, Route, Switch, Link } from 'react-static' // import Home from 'containers/Home' import About from 'containers/About' import Blog from 'containers/Blog' import NotFound from 'containers/404' import './app.css' export default () => ( <Router> <div> <nav> <L...
lib/ui/widgets/digitalposition.js
SignalK/instrumentpanel
import React from 'react'; import { render } from 'react-dom'; import util from 'util'; import BaseWidget, {defaultComponentDidMount, defaultComponentWillUnmount} from './basewidget'; const coordTypeLatitude = 1 const coordTypeLongitude = 2 const defaultPositionValue = {longitude: '--', latitude: '--', label: '--', f...
packages/core/src/List.js
iCHEF/gypcrete
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import './styles/List.scss'; import prefixClass from './utils/prefixClass'; import icBEM from './utils/icBEM'; import Section from './Section'; import ListSpacingContext from './contexts/listSpacing'; export const COM...
app/jsx/gradezilla/default_gradebook/components/AssignmentGroupColumnHeader.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - 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...
src/prisonBreak/PrisonBreak.js
link1900/linkin-games
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { persistStore, autoRehydrate } from 'redux-persist'; import { createStore, compose } from 'redux'; import PrisonBreakContainer from './PrisonBreakContainer'; import { createActionCommandSelected, PrisonBreakRootReducer } from './PrisonB...
src/shared/components/linkButton/linkButton.js
NestorSegura/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Link as ScrollLink, Events as ScrollEvent } from 'react-scroll'; import ReactGA from 'react-ga'; import styles from './linkButton.css'; const LinkButton = ({ link, text, theme, scrollLink, isExter...
src/icons/IosPeople.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosPeople extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M349.2,334.8C360.5,338.7,338,330.9,349.2,334.8L349.2,334.8z"></path> <path d="M349.2,334.8c-13.5-4.7-28.1-5-41.6-...
src/pages/index.js
Hurtak/finances
// @flow import React from 'react' import * as data from '../data/data.js' class Index extends React.Component { render () { return ( <section> <table> <tbody> <tr> <th>Total money spent</th> <td>{data.moneySpend} CZK</td> </tr> ...
dapp/src/shared/dao/main/components/dao.js
airalab/DAO-IPCI
import React from 'react' import Block from './block' const Dao = (props) => { const { name, address, blocks, role, onRemoveModule } = props return (<div> <p><b>{name}</b> <span className="label label-success">{address}</span></p> {blocks.map((block, index) => <Block key={index} {...block} role={rol...
elements/Text.js
msand/react-native-svg
import React from 'react'; import { requireNativeComponent } from 'react-native'; import extractText from '../lib/extract/extractText'; import extractProps, { propsAndStyles } from '../lib/extract/extractProps'; import extractTransform from '../lib/extract/extractTransform'; import { pickNotNil } from '../lib/util'; im...
app/components/EventsTable.js
georgeF105/handball-scoring
import React from 'react' import { formatTime } from '../../lib/formatNumber' class EventsTable extends React.Component { constructor (props) { super(props) this.state = { editingEvent: null } } editEvent = (key) => { this.setState({editingEvent: key}) } updateEventTime = (e) => { ...
docs/app/Examples/elements/Step/Content/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const StepContentExamples = () => ( <ExampleSection title='Content'> <ComponentExample title='Description' descriptio...
src/svg-icons/action/spellcheck.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpellcheck = (props) => ( <SvgIcon {...props}> <path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-...
node_modules/semantic-ui-react/dist/es/modules/Modal/Modal.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
client/app/scripts/components/sidebar.js
paulbellamy/scope
import React from 'react'; export default function Sidebar({children, classNames}) { const className = `sidebar ${classNames}`; return ( <div className={className}> {children} </div> ); }
app/javascript/mastodon/features/compose/components/warning.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { mes...
app/containers/UndoRedo.js
ivtpz/brancher
import React from 'react'; import { ActionCreators as UndoActionCreators } from 'redux-undo-immutable'; import { connect } from 'react-redux'; let UndoRedo = ({ canUndo, canRedo, onUndo, onRedo }) => <div> <button onClick={onUndo} disabled={!canUndo}> Undo </button> <button onClick={onRedo} disabled={!canRed...
assets/javascripts/kitten/components/form/input/text-input-with-icon/stories.js
KissKissBankBank/kitten
import React from 'react' import { TextInputWithIcon } from './index' import { Default as TextInputStory } from '../text-input/stories.js' import { SearchIcon, CheckedCircleIcon, WarningCircleIcon, Loader, COLORS, } from 'kitten' import { DocsPage } from 'storybook/docs-page' export default { component: Te...
client/src/routes.js
pram/recipesearch
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
server/boot/news.js
FreeCodeCampQuito/FreeCodeCamp
import React from 'react'; import { renderToString } from 'react-dom/server'; import { StaticRouter } from 'react-router-dom'; import { has } from 'lodash'; import debug from 'debug'; import NewsApp from '../../news/NewsApp'; const routerLog = debug('fcc:boot:news:router'); const apiLog = debug('fcc:boot:news:api'); ...
Example/components/Register.js
aksonov/react-native-router-native
import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import Button from 'react-native-button'; import { Actions } from 'react-native-router-native'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '...
docs/app/Examples/views/Statistic/Variations/Inverted.js
jcarbo/stardust
import React from 'react' import { Segment, Statistic } from 'stardust' const Inverted = () => ( <Segment inverted> <Statistic inverted value='54' label='inverted' /> <Statistic inverted color='red' value='27' label='red' /> <Statistic inverted color='orange' value='8' label='orange' /> <Statistic in...
src/svg-icons/action/rounded-corner.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRoundedCorner = (props) => ( <SvgIcon {...props}> <path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v...
src/svg-icons/notification/more.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMore = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5...