path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
techCurriculum/ui/solutions/2.3/src/components/Title.js
tadas412/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...
components/Cards/EditorialCard/EditorialCard.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import { applyContainerQuery } from 'react-container-query'; import FittedImage from '../../FittedImage/FittedImage'; import Card from '../Card/Card'; import css from './EditorialCard.css'; const query = { [c...
src/components/TopicTypes.js
cyqkeygen/ruby-china-react-redux-demo
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom'; import styles from '../styles/modules/TopicTypes.scss'; class TopicTypes extends React.Component { render(){ return ( <div className={styles.links}> <NavLink className={styles.link} ...
docs/src/App.js
InsidersByte/react-markdown-editor
import React, { Component } from 'react'; import MarkdownEditor from '@insidersbyte/react-markdown-editor'; import './App.css'; class App extends Component { state = { markdown: '# This is a H1 \n## This is a H2 \n###### This is a H6', }; handleChange = event => { this.setState({ markdown: event.targe...
src/mui/field/UrlField.js
RestUI/rest-ui
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import pure from 'recompose/pure'; const UrlField = ({ source, record = {}, elStyle }) => ( <a href={get(record, source)} style={elStyle}> {get(record, source)} </a> ); UrlField.propTypes = { addLabel: Pro...
examples/react-router/src/shared/containers/TopLevelPageContainer.js
jasonblanchard/react-announce-doc-title
import React from 'react'; import { PropTypes } from 'react'; import { Link } from 'react-router'; import { AnnounceDocTitle } from 'react-announce-doc-title'; const propTypes = { children: PropTypes.any, }; export default class TopLevelPageContainer extends React.Component { render() { return ( <Announ...
acceptance/src/components/ThemeTitle.js
Autodesk/hig
import React from 'react'; import ThemeContext from '@hig/theme-context'; function ThemeTitle({ children }) { return ( <ThemeContext.Consumer>{({ metadata, resolvedRoles }) => { return ( <p style={{color: resolvedRoles["colorScheme.textColor"]}}>{metadata.name}</p> ) }}</ThemeContext.Cons...
app/entries/notFound.js
mariopeixoto/isomorphic-react-webpack-boilerplate
'use strict'; /*global document, window */ import React from 'react'; window.React = React; import Client from '../client'; import buildRoutes from '../routes'; import Website from 'react-proxy!../views/website/Website'; import NotFound from '../views/notFound/NotFound'; const routes = buildRoutes(Website, NotFound...
src/ex5.js
bouzuya/exercise-in-react
import React from 'react'; var MessageInput = React.createClass({ displayName: 'MessageInput', onChange: function(e) { this.props.onChange(e.target.value); }, onKeyDown: function(e) { if (e.keyCode === 13) { this.props.onSubmit(e.target.value); e.target.value = ''; } }, render: func...
powerpiapp/elements/menu.js
Knapsacks/power-pi-v2
import React, { Component } from 'react'; import { View, Text } from 'react-native'; import { Header, Spinner } from './common'; export default class Menu extends Component { constructor(props) { super(props); this.state = { energy: '', money_saved: '', charging_status: '', days: '' }; } c...
docs/src/GridPage.js
jsbranco/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import store from './store'; import Samples from './Samples'; import grid from '../../examples/Grid'; class GridPage extends React.Component...
src/js/components/Toast.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import classnames from 'classnames'; import Button from './Button'; import Status from './icons/Status'; import CloseIcon from './icons/ba...
webclient/src/account/StoryItem.js
jadiego/bloom
import React, { Component } from 'react'; import { Button, Icon, Label, Checkbox, Segment, Header, Container, Popup } from 'semantic-ui-react' import moment from "moment"; import { Link } from 'react-router-dom'; import DeleteStoryModal from './DeleteStoryModal'; import { bindActionCreators } from 'redux'; import { co...
src/ui/Error.js
tannercollin/Notica
'use strict'; import React from 'react'; export default class Error extends React.Component { render(){ return ( <div className="container"> <div className="row"> <div className="twelve columns"> <h4>Error</h4> <p> Something went wrong so we stopped everything and went fishing. ...
21/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
bdSpring/zhou-task02
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'));
src/svg-icons/action/bug-report.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBugReport = (props) => ( <SvgIcon {...props}> <path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7...
src/routes/Home/components/HomeView.js
trixyrabbit/Exile
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' import { Row } from 'react-flexbox-grid/lib/index' export const HomeView = () => ( <div > <Row center='xs'> <h4>Welcome!</h4> </Row> <img alt='This is a duck, because Redux!' clas...
demo/index.js
111StudioKK/react-plan
import React from 'react'; import ReactDOM from 'react-dom'; import Responsive from '../src/Responsive.jsx'; import Viewport from '../src/Viewport.jsx'; import App from './App.jsx'; new Responsive(); ReactDOM.render(<Viewport><App /></Viewport>, document.getElementById('root'));
app/javascript/mastodon/components/load_gap.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); export default @injectIntl class LoadGap extends React.PureComponent { static propTypes...
src-admin/src/Tabs/Options.js
ioBroker/ioBroker.admin
import React, { Component } from 'react'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import Security from '@material-ui/icons/Security'; import Logo from '@iobroker/adapter-react/Components/Logo'; import I18n from '@iobroker/adapter-react/i18n'; import CustomSelect fro...
src/index.js
cesarandreu/react-redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, connect } = createAll(React);
html/material-ui/demo/src/App.js
fishjar/gabe-study-notes
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Button from 'material-ui/Button'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" />...
src/ButtonInput.js
Terminux/react-bootstrap
import React from 'react'; import Button from './Button'; import FormGroup from './FormGroup'; import InputBase from './InputBase'; import childrenValueValidation from './utils/childrenValueInputValidation'; class ButtonInput extends InputBase { renderFormGroup(children) { let {bsStyle, value, ...other} = this.p...
src/explore/Pager.js
petertrotman/critrolemoments
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { adjustHue, desaturate } from 'polished'; const Container = styled.div` width: 100%; margin: 0.5em 1em; display: flex; flex-direction: row; align-items: center; justify-content: space-between; ...
client/index.js
dimitri-a/wp2_budget
import { Provider } from 'react-redux'; import ReactDOM from 'react-dom'; import React from 'react'; import App from 'containers/App'; import store from 'store'; import 'index.html'; // Load SCSS import './scss/app.scss'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementBy...
src/parser/deathknight/unholy/modules/features/ScourgeStrikeEfficiency.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import StatisticBox, { ...
new-lamassu-admin/src/components/editableTable/Context.js
naconner/lamassu-server
import React from 'react' export default React.createContext()
src/svg-icons/communication/forum.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationForum = (props) => ( <SvgIcon {...props}> <path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/> </SvgIcon> ); Co...
client/src/components/Signup/Signup.js
Velocies/raptor-ads
import React, { Component } from 'react'; import { Button, Grid } from 'semantic-ui-react'; import { connect } from 'react-redux'; import { toggleSignupLink } from '../../actions'; import CustomerSignup from '../Signup/CustomerSignup'; import ProSignup from '../Signup/ProSignup'; class Signup extends Component { con...
src/layouts/CoreLayout/CoreLayout.js
mje0002/originReact
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) Co...
src/containers/RouteSelection.js
kyledavid/rock-genius
import React from 'react' import { BrowserRouter, Link, Route } from 'react-router-dom' class RouteSelection extends React.Component { render() { return ( <div className="shelf-outer-wrapper"> <aside id="detail-shelf"> <div className="shelf-inner-wrapper"> <h1>Choose a Route</...
src/Input.js
simonliubo/react-ui
import React from 'react'; import InputBase from './InputBase'; import * as FormControls from './FormControls'; import deprecationWarning from './utils/deprecationWarning'; class Input extends InputBase { render() { if (this.props.type === 'static') { deprecationWarning('Input type=static', 'StaticText'); ...
pages/api/list-item.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 './list-item.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
tests/site7/code2/components/sections.js
dominikwilkowski/cuttlebelle
import PropTypes from 'prop-types'; import React from 'react'; /** * The Sections component for section text */ const Sections = ({ _parseMD, headline }) => ( <div> { _parseMD( headline ) } </div> ); Sections.propTypes = { /** * headline: | * ## Intro * * **Welcome to my site** * * Also che...
app/components/IssueIcon/index.js
KarandikarMihir/react-boilerplate
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
src/components/Weui/panel/panel_footer.js
ynu/ecard-wxe
/** * Created by n7best */ import React from 'react'; import classNames from 'classnames'; export default class PanelFooter extends React.Component { render() { const {children, ...others} = this.props; const Component = this.props.href ? 'a' : 'div'; const className = classNames({ ...
2-alpha/src/components/HelperEnds.js
saturninoharris/primer-design
import React from 'react' import styled from 'styled-components' const HangingEnd = styled.span` position: relative; z-index: -9; font-family: monospace; color: ${p => p.theme.textDefault}; letter-spacing: -3px; opacity: 0.7; > span { position: absolute; min-width: 25px; } ` const HangingOffLe...
packages/material-ui-icons/src/LocalGroceryStore.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1....
demo/tabs/tabs.js
eferte/react-mdl-1
import React from 'react'; import Tabs, { Tab } from '../../src/tabs/Tabs'; class Demo extends React.Component { constructor(props) { super(props); this.state = { activeTab: 0 }; this._handleChange = this._handleChange.bind(this); } _handleChange(tabId) { ...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
ui/src/js/common/footer/pages/Social.js
Dica-Developer/weplantaforest
import counterpart from 'counterpart'; import React, { Component } from 'react'; require('./social.less'); export default class Social extends Component { render() { var that = this; return ( <div className="container paddingTopBottom15 social"> <div className="row"> <div className="...
src/components/Error/index.js
jiangxy/react-antd-admin
import React from 'react'; import {Icon} from 'antd'; import './index.less'; /** * 显示错误信息 * 可以当404页来用 */ class Error extends React.PureComponent { render() { return ( <div className="not-found"> <div style={{ fontSize:32 }}><Icon type="frown-o"/></div> <h1>{this.props.errorMsg || '404 N...
src/svg-icons/action/trending-up.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingUp = (props) => ( <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/> </SvgIcon> ); ActionTrendingUp = pure(ActionTrendingUp); ActionTrending...
docs/app/Examples/modules/Transition/Types/index.js
shengnian/shengnian-ui-react
import React from 'react' import { Message } from 'shengnian-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const TransitionTypesExamples = () => ( <ExampleSection title='Types'> <ComponentEx...
src/graphs/FutureSnowFallGraph.js
ehaughee/snocon
import React, { Component } from 'react'; import { Line } from 'react-chartjs-2'; let convert = require('convert-units'); let moment = require('moment'); class FutureSnowFallGraph extends Component { constructor(props) { super(props); const dates = this.props.snowfallAmounts.map(({validTime, value}) => { ...
src/scenes/Dummy/Dummy.js
constelation/native-starter
// @flow // Imports {{{ import { StatusBar } from 'react-native' import { bind } from 'decko' import Event_ from 'constelation-event_' import React from 'react' import Style_ from 'constelation-style_' import Text from 'constelation-text' import View from 'constelation-view' // }}} type Props = { navigation: { ...
src/components/Footer/Footer.js
Zubergoff/project
/** * 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 s from '....
app/javascript/mastodon/components/status_list.js
glitch-soc/mastodon
import { debounce } from 'lodash'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import LoadGap from './load_gap...
src/js/Components/Common/ColorPicker/ColorPicker.js
mattgordils/DropSplash
import React, { Component } from 'react'; import SketchPicker from 'react-color'; import 'sass/components/common/color-picker'; export default class App extends Component { render () { return ( <div className="color-picker"> <SketchPicker /> </div> ); } }
client/Terminal.js
CGamesPlay/hterminal
import React from 'react'; import ReactDOM from 'react-dom'; import BottomScroller from './BottomScroller'; import debounce from './util/debounce'; import { inputFromEvent } from './KeyEvent'; import { SectionGroup, Section } from './SectionGroup'; import './Terminal.css'; export default class Terminal extends React....
src/containers/Dashboard/Dashboard.js
nbuechler/ample-affect-exhibit
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Table, Button, Panel, Row, Col } from 'react-bootstrap'; import NLPDashboardList from '../../components/lists/NLPDashboardList'; class Dashboard extends Component { constructor(props) { ...
src/components/programs/inshelter/PrimaryTabs/ArtsCrafts.js
KidsFirstProject/KidsFirstProject.github.io
import React from 'react'; const ArtsCrafts = () => { return ( <React.Fragment> <h3>Arts and Crafts</h3> <p> To spark creativity and passion is to create a whole new perspective for a child. With our arts and crafts activities, children will be able to explore the world of col...
analysis/demonhunterhavoc/src/modules/talents/CycleOfHatred.js
anom0ly/WoWAnalyzer
import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellIcon } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import STATISTIC_ORDER from 'pa...
src/index.js
dassaptorshi/ReactStarter
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
examples/counter/index.js
dherault/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
frontend/app/js/utils/event.js
serverboards/serverboards
import React from 'react' import rpc from 'app/rpc' import { connect } from 'react-redux' import { object_is_equal } from 'app/utils' import serverboards_connect from 'app/containers/connect' // Count of subscribers to one event, to subscribe again or desuscribe, or do nothing let subscription_count={} // Functions to...
ReactLab01/Public/js/main.js
knivek91/ReactLab01
import React from 'react'; import { render } from 'react-dom'; import Home from './src/smart/home'; class Layout extends React.Component { constructor(props) { super(props); this.state = { message: '' }; this.onChange = this.onChange.bind(this); this.setDate ...
src/svg-icons/device/battery-charging-60.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1...
example/App/index.js
nkbt/react-height
import React from 'react'; import {VariableText} from './VariableText'; import {Nested} from './Nested'; export default () => ( <div className="app"> <h1>react-height</h1> <section className="section"> <h2>Example 1. Variable text</h2> <VariableText /> </section> <section className="se...
examples/simple/index.js
shaunstanislaus/library-boilerplate
import React from 'react'; import App from './components/App'; React.render( <App />, document.getElementById('root') );
src/main/resources/code/react/Apps/ManageRadars/components/Errors/WarningList.js
artieac/technologyradar
import React from 'react'; import ReactDOM from 'react-dom'; import createReactClass from 'create-react-class'; import { connect } from "react-redux"; import WarningListItem from './ErrorListItem'; class WarningList extends React.Component{ constructor(props){ super(props); this.state = { ...
src/svg-icons/communication/call-merge.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMerge = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); CommunicationCallMerge...
src/components/Forms/Elements/AddToCart.js
CoreyDH/product-finder
import React from 'react'; import {Col, Row, Button, FormControl, FormGroup} from 'react-bootstrap'; export default class AddToCart extends React.Component { constructor() { super(); this.state = { qty: '', error: null, loading: '' } // this.checkValidation = this.checkValidation...
frontend/hocs/confirmDirty.js
SkyPicker/Skywall
import React from 'react' import {pull} from 'lodash' import {withRouter} from 'react-router' import getDisplayName from 'react-display-name' import PropTypes from 'prop-types' const confirmDirty = (WrappedComponent) => { class ConfirmDirty extends React.Component { static displayName = `ConfirmDirty(${getDispl...
fields/types/text/TextFilter.js
qwales1/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; const MODE_OPTIONS = [ { label: 'Contains', value: 'contains' }, ...
examples/esp-chat-react-es6/js/components/ThreadSection.react.js
raybooysen/esp-js
import React from 'react'; import ThreadListItem from './ThreadListItem.react'; export default class ThreadSection extends React.Component { constructor() { super(); this._subscription = null; } componentWillMount() { this._subscription = this.props.router .getModelObser...
src/components/dress/DressLabel.js
BinaryCool/LaceShop
import React from 'react'; let Utils = require('../../utils/Utils'); require('styles/dress/DressLabel.scss'); export default class DressModel extends React.Component { render() { return( <div className="Dsy_switchTab"> <div className="Dsy_position"> <p className="Dsy_label_tit">选择标签位置:</p> <div...
src/DropdownButton.js
jontewks/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Dropdown from './Dropdown'; import NavDropdown from './NavDropdown'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import omit from 'lodash/object/omit'; class Dropdown...
examples/src/components/CustomRenderField.js
jaakerisalu/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 CustomRenderField = React.createClass({ displayName: 'CustomRenderField', propTypes: { delimiter: React.PropTypes.st...
server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js
scyankai/create-react-app
/** * 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. */ import Rea...
ui/src/components/Html/index.js
LearningLocker/learninglocker
/* eslint-disable react/no-danger */ import React from 'react'; import PropTypes from 'prop-types'; import serialize from 'serialize-javascript'; import Helmet from 'react-helmet'; import config from 'ui/config'; const html = ({ protocol, // http or https style, // raw styles to be embedded directly into the docum...
src/DatePicker/CalendarMonth.js
pradel/material-ui
import React from 'react'; import {isBetweenDates, isEqualDate, getWeekArray} from './dateUtils'; import DayButton from './DayButton'; import ClearFix from '../internal/ClearFix'; class CalendarMonth extends React.Component { static propTypes = { autoOk: React.PropTypes.bool, displayDate: React.PropTypes.obj...
frontend/src/RecordsTable.js
paulobichara/customers
import React, { Component } from 'react'; import Griddle from 'griddle-react'; export default class RecordsTable extends Component { constructor(props) { super(props); this.state = { "results": [], "filter" : "", "currentPage": 0, "maxPages": 0, "externalResultsPerPage": ...
src/components/project.js
pritchardtw/ReactPersonalSite
import React, { Component } from 'react'; import HomeTab from './hometab'; import PictureViewer from './pictureviewer'; export default class Project extends Component { render() { const { title, description, images } = this.props; const style = (images.length > 1 ? "rowofthree" : ''); return( ...
src/icons/CreateNewFolderIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class CreateNewFolderIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 12H24l-4-4H8c-2.21 0-3.98 1.79-3.98 4L4 36c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V16c0-2.21-1....
docs/src/app/app.js
lawrence-yu/material-ui
import React from 'react'; import {render} from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; // Helpers for debugging window.React = React; window.Perf = req...
sandbox/src/components/ScanIcon.js
coreaps/public
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ActionScanBarcode = (props) => ( <SvgIcon {...props}> <path transform="translate(2, -3)" d="M0 4h4v20h-4zM6 4h2v20h-2zM10 4h2v20h-2zM16 4h2v20h-2zM24 4h2v20h-2zM30 4h2v20h-2zM20 4h1v20h-1zM14 4h1v20h-1zM2...
containers/AddTodo.js
FlorianEdelmaier/SimpleReduxDemo
import React from 'react'; class AddTodo extends React.Component { render() { return ( <div> <input type='text' ref={(node) => this.input = node} /> <button onClick={() => this.handleClick()}> Add </button> </div> ...
views/prompt.js
kaze13/black-screen
import _ from 'lodash'; import React from 'react'; import Autocomplete from './autocomplete'; import DecorationToggle from './decoration_toggle'; // TODO: Make sure we only update the view when the model changes. export default React.createClass({ getInitialState() { return { suggestions: [], ...
app/containers/TravelPage/index.js
olivia-leach/jaylivia-react
import React from 'react'; import { Link } from 'react-router' const Scroll = require('react-scroll'); const ScrollLink = Scroll.Link; export default class HotelsPage extends React.PureComponent { render() { return ( <article id="travel"> <h1 className="section-header">Travel & Transportation</h1>...
containers/live/CommonCitys.js
DemocraciaEnRed/democraciaenred.github.io
import React from 'react'; function CommonCitys () { return( <React.Fragment> <div className="common-citys"> <div className="container-bulma"> <h1>Incubadora de Ciudades Comunes</h1> <div className="after-playback"> <div className="videoWrapper"> <ifram...
src/client/pages/popular-languages/PopularLanguages.js
developersdo/opensource
import React from 'react' import { map } from 'lodash' import store from '~/store/store' import Loading from '~/components/loading/Loading' const style = { position: { width: 40, display: 'inline-block', fontSize: 18, }, name: { fontSize: 22, marginRight: 10, }, progress: { height: 10...
src/scripts/components/status/Status.component.js
ModuloM/kodokojo-ui
/** * Kodo Kojo - Software factory done right * Copyright © 2016 Kodo Kojo (infos@kodokojo.io) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at ...
frontend/app_v2/src/common/categoryIcons/BearPaw.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' /** * @summary BearPaw * @component * * @param {object} props * * @returns {node} jsx markup */ function BearPaw({ styling }) { return ( <svg className={styling} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 100 100" stroke="current...
src/svg-icons/content/remove-circle-outline.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemoveCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M7 11v2h10v-2H7zm5-9C6.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.59 8 8-3.59 8-8 8...
src/components/dumb/Base/Input/index.js
apedyashev/reactjs-jobs-aggregator
// libs import React from 'react'; // components import TextField from 'material-ui/TextField'; export default function Input(props) { return <TextField {...props} />; }
src/svg-icons/image/photo-library.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoLibrary = (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"/>...
app/javascript/mastodon/features/ui/components/report_modal.js
glitch-soc/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { submitReport } from 'mastodon/actions/reports'; import { expandAccountTimeline } from 'mastodon/actions/timelines'; import { fetchRules } from 'mastodon/actions/rules'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-im...
src/components/feed/actions.js
alexcurtis/react-fbpage
'use strict'; import React from 'react'; import Radium from 'radium'; @Radium class Actions extends React.Component { constructor(props){ super(props); } render(){ return ( <div style={this.props.style.base}/> ); } } Actions.propTypes = { style: React.PropTypes...
src/entypo/StarOutlined.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--StarOutlined'; let EntypoStarOutlined = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M18.8,8.022h-6.413L10,1.3L7.611,8.022H1.199l5.232,3.947L4.56,18.898L10,14.744l5.438,4.154...
src/svg-icons/device/bluetooth.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetooth = (props) => ( <SvgIcon {...props}> <path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46...
demo/Generator.js
xadn/react-jumbo-list
import React from 'react'; import Chance from 'chance'; const chance = new Chance(); const Generator = { items(count) { var list = []; for (let i = 0; i < count; i++) { const key = `i-${i}`; const style = {border: '1px solid black'}; const text = chance.sentence({words: chance.natural({mi...
packages/material-ui-icons/src/MarkunreadMailbox.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let MarkunreadMailbox = props => <SvgIcon {...props}> <path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z" /> </SvgIcon>; MarkunreadMailbox = pure(Markunr...
blueocean-material-icons/src/js/components/svg-icons/action/stars.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionStars = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"/> ...
app/src/app/components/App.js
leonardiwagner/minibook
import React from 'react'; import Header from './Header.jsx'; import Timeline from '../container/Timeline'; import EventWriter from '../container/EventWriter'; const App = () => ( <div> <Header /> <EventWriter /> <Timeline /> </div> ) export default App
docs/src/app/pages/components/Toggle/Page.js
GetAmbassador/react-ions
import React from 'react' import PropsList from 'private/modules/PropsList' import docs from '!!docgen!react-ions/lib/components/Toggle/Toggle' import CodeExample from 'private/modules/CodeExample' import ExampleToggleDefault from './ExampleToggleDefault' import exampleToggleDefaultCode from '!raw!./ExampleToggleDefaul...
src/Input/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; import WrapperStyles from '../Wrapper/styles.css'; import TypographyStyles from '../Typography/styles.css'; import Typography from '../Typography'; function Input(props) { const cap...
app/javascript/mastodon/features/compose/components/warning.js
pinfort/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...
src/main/js/app.react.js
adw1n/hub-traffic
import React from 'react'; import ReactDOM from 'react-dom'; // import Plotly from 'plotly.js/dist/plotly.js'; function getNthDayDate(date, nthDay){ return new Date(new Date(date).setDate(date.getDate()+nthDay)) } function getNextDayDate(date){ return getNthDayDate(date, 1) } function differenceInDays(date1...