path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/editor/border-color.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderColor = (props) => ( <SvgIcon {...props}> <path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp...
src/svg-icons/av/fiber-new.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberNew = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v...
src/routes/recentwins/index.js
zsu13579/whatsgoinontonight
/** * 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 Layout from '../../co...
src/components/WeatherIcons/MoonSmall.js
Cirych/WeatherApp
import React from 'react'; export const MoonSmall = ({ color = 'lightgreen' }) => <g id="moonSmall" fill={color} stroke="black" strokeWidth="10000" > <path id="coreMoonSmall" d="M497127 32545c2678,0 5332,102 7959,299 -22799,16480 -37639,43291 -37639,73572 0,50104 40617,90722 90721,90722 9673,0 18989,-1520 ...
src/components/TextArea/Textarea-story.js
wfp/ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, boolean, number, text } from '@storybook/addon-knobs'; import TextArea from '../TextArea'; import TextAreaSkeleton from '../TextArea/TextArea.Skeleton'; const TextAreaProps = ...
app/config/routes.js
charlesjandulio/c-j
import React from 'react' import { Router, Route, hashHistory, IndexRoute } from 'react-router' import Main from '../components/Main' const routes = ( <Router history={hashHistory}> <Route path='/' component={Main}> </Route> </Router> ); export default routes
node_modules/react-transition-group/esm/CSSTransition.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import * as PropTypes from 'prop-types'; import addOneClass from 'dom-helpers/class/addCl...
fields/types/textarray/TextArrayFilter.js
webteckie/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import { FormField, FormInput, FormSelect } from 'elemental'; const MODE_OPTIONS = [ { label: 'Contains', value: 'contains' }, { label: 'Exactly', value: 'exactly' }, { label: 'Begins with', value: 'beginsWith' }, { label: 'Ends with', value: 'endsWith'...
examples/counter/index.js
chrisclarke1977/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
packages/veritone-react-common/src/components/DataPicker/index.js
veritone/veritone-sdk
import React from 'react'; import { func, string, bool, arrayOf, shape, number, object, oneOfType, any } from 'prop-types'; import { isArray, isUndefined } from 'lodash'; import Paper from '@material-ui/core/Paper'; import { withStyles } from '@material-ui/styles'; import LeftNavigationPanel from './L...
ui/src/components/onboarding/Step4PhotoImporting.js
damianmoore/photo-manager
import React from 'react' import { useForm } from 'react-hook-form' import { useStateMachine } from 'little-state-machine' import { Stack } from '@chakra-ui/core' import updateAction from './updateAction' import Modal from './../Modal' import ModalForm from '../ModalForm' import ModalField from '../ModalField' const ...
src/svg-icons/maps/rate-review.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRateReview = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1...
src/Label.js
apkiernan/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, bsStyles, getClassSet, splitBsProps } from './utils/bootstrapUtils'; import { State, Style } from './utils/StyleConfig'; class Label extends React.Component { hasContent(children) { let result = false; React.Children.forEac...
src/common/components/FormulaeRender.js
jjt/react-multiplatform
'use strict'; import React from 'react'; export default function (props, state) { return ( <div className='formulae'> {state.displayFormulae.map(function(formula) { return <span key={formula.id} onClick={this.handleClick.bind(this, formula)} className={this.dynamicClass(formula.operator)}>{formula...
src/originReduxCombineReducer/entries/reduxcombinereducer.js
JackZhangXL/react-redux
import React, { Component } from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Demo from '../originReduxCombineReducer'; render( <AppContainer> <Demo /> </AppContainer>, document.getElementById('app'), ); if (module.hot) { module.hot.accep...
app/javascript/mastodon/components/attachment_list.js
kirakiratter/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Icon from 'mastodon/components/icon'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/LifecycleMethodsPropsAndState.js
MichaelDeBoey/flow
// @flow import React from 'react'; class MyComponent1 extends React.Component { componentWillReceiveProps(nextProps: Props) {} } class MyComponent2 extends React.Component { shouldComponentUpdate(prevProps: Props, prevState: State) {} } class MyComponent3 extends React.Component { componentWillUpdate(prevPro...
js/components/Skills.js
fractal-mind/portfolio
import React from 'react'; import Skillcard from './Skillcard'; import SkillHeader from './SkillHeader' class Skills extends React.Component { render(){ return( <div className="skillContainer container"> <SkillHeader soft={this.props.soft} /> { this.props.list.map(skill => <Skillcard key={...
example/examples/DraggableMarkers.js
amitv87/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; import PriceMarker from './PriceMarker'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4...
packages/material-ui-icons/src/KeyboardArrowLeft.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let KeyboardArrowLeft = props => <SvgIcon {...props}> <path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z" /> </SvgIcon>; KeyboardArrowLeft = pure(KeyboardArrowLeft); KeyboardArrowLeft.muiName = 'S...
fields/types/boolean/BooleanColumn.js
ligson/keystone
import React from 'react'; import classnames from 'classnames'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var BooleanColumn = React.createClass({ displayName: 'BooleanColumn', propTypes: { col: React.PropT...
app/screens/menu/categoryMenu.js
it-surya/hack-jeninvest
import React from 'react'; import PropTypes from 'prop-types' import { TouchableHighlight, View, FlatList, StyleSheet } from 'react-native'; import { RkStyleSheet, RkTheme, RkText } from 'react-native-ui-kitten'; export class CategoryMenu extends React.Component { constructor(props) { super(props)...
shared/containers/DevTools/DevTools.js
kizzlebot/music_dev
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-w" > <LogMonitor /> ...
src/encoded/static/components/StickyHeader.js
T2DREAM/t2dream-portal
import React from 'react'; import PropTypes from 'prop-types'; import offset from '../libs/offset'; // Render the collection table header that sticks to the top of the browser window, or below the // navigation bar of that’s position fixed (as it is if the browser window is wide enough). Note // that this method make...
src/components/ProviderDataForm/ProviderDataForm.js
OR13/car2go
import React from 'react' import { PropTypes } from 'prop-types'; import { List, ListItem } from 'material-ui/List' import classes from './ProviderDataForm.scss' import AccountCircle from 'material-ui/svg-icons/action/account-circle' export const ProviderData = ({ providerData }) => ( <div className={classes.contai...
classic/src/scenes/wbfa/generated/FARInfoCircle.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faInfoCircle } from '@fortawesome/pro-regular-svg-icons/faInfoCircle' export default class FARInfoCircle extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faInfoCircle} />) } }
pootle/static/js/shared/components/Dialog.js
Finntack/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import Modal, { ModalFooter } ...
src/components/DataTable/AnimTableBody.js
tigaly/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { TweenOneGroup } from 'rc-tween-one' const enterAnim = [ { opacity: 0, x: 30, backgroundColor: '#fffeee', duration: 0, }, { height: 0, duration: 200, type: 'from', delay: 250, ease: 'easeOutQuad', onComplet...
examples/slorber-scalable-frontend/src/app/App.js
mpeyper/redux-subspace
import React from 'react' import { SubspaceProvider } from 'react-redux-subspace' import { RandomGif } from '../randomGif' import { RandomGifPair } from '../randomGifPair' import { RandomGifPairPair } from '../randomGifPairPair' import { Button } from '../button' import { Counter } from '../counter' const App = () => ...
src/pages/ste.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Ste' /> )
fields/types/url/UrlField.js
brianjd/keystone
import React from 'react'; import Field from '../Field'; import { GlyphButton, FormInput } from '../../../admin/client/App/elemental'; module.exports = Field.create({ displayName: 'URLField', statics: { type: 'Url', }, openValue () { var href = this.props.value; if (!href) return; if (!/^(mailto\:)|(\w+\:\...
main/static/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
xn1990/B10
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
src/index.js
spencerHT/gallery-react-IMOOC
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/parser/shared/modules/spells/bfa/azeritetraits/OverwhelmingPower.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import { formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; const MAX...
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js
igorbt/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuLabeledExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value) => th...
Libraries/Components/WebView/WebView.ios.js
disparu86/react-native
/** * 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/parser/monk/mistweaver/modules/talents/SpiritOfTheCrane.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; import { STATISTIC_ORDER } from 'interface/others/S...
packages/stockflux-news/src/index.js
ScottLogic/bitflux-openfin
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
modules/react-router-2.5.2/examples/auth-with-shared-root/components/Dashboard.js
nanyou-environment/enBackEnd
import React from 'react' import auth from '../utils/auth' const Dashboard = React.createClass({ render() { const token = auth.getToken() return ( <div> <h1>Dashboard</h1> <p>You made it!</p> <p>{token}</p> {this.props.children} </div> ) } }) export default...
src/components/Calendar/index.js
Tgy31/react-page
import React from 'react'; var Calendar = React.createClass({ render: function () { return ( <div> <p>Calendar</p> </div> ); } }); module.exports = Calendar
src/components/location/Add.js
VasylHryha/hotspot
import React from 'react'; import {findDOMNode} from 'react-dom'; import {Map as IMap} from 'immutable'; import { FormGroup, FormControl, ControlLabel, ButtonToolbar, Button, Col } from 'react-bootstrap' import './location.css'; const NewCity = React.createClass({ getInitialState(){ ...
src/icons/IosFlowerOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosFlowerOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M395.057,284.252c55.929,0,84.943-11.62,84.943-28.002s-29.016-28.003-84.943-28.003c-28.732,0-64.708,7.391-92...
react/src/components/footer/SprkFooter.js
sparkdesignsystem/spark-design-system
import React, { Component } from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; import uniqueId from 'lodash/uniqueId'; import SprkIcon from '../icons/SprkIcon'; import SprkFooterGlobalSection from './components/SprkFooterGlobalSection/SprkFooterGlobalSection'; import SprkFooterConnec...
example/examples/Overlays.js
amitv87/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DELTA = 0.092...
pootle/static/js/admin/components/Search.js
pavels/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import cx from 'classnames'; import React from 'react'; i...
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleRadio.js
vageeshb/Semantic-UI-React
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleRadio = () => ( <Checkbox radio label='Radio choice' /> ) export default CheckboxExampleRadio
node_modules/react-bootstrap/es/FormControlStatic.js
Technaesthetic/ua-tools
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
app/components/PlaylistHeader/index.js
zillding/hangouts
/** * * PlaylistHeader * */ import React from 'react'; import Avatar from 'material-ui/Avatar'; import ListItem from 'material-ui/List/ListItem'; import ListIcon from 'material-ui/svg-icons/action/list'; const style = { padding: '15px 62px', }; const PlaylistHeader = () => ( <ListItem disabled leftAvata...
example/index.js
artsy/react-redux-controller
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './controllers/App' import configureStore from './store/configureStore' const store = configureStore() render( <Provider store={store}> <App /> </Provider>, document.ge...
src/RIESelect.js
kaivi/riek
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import RIEStatefulBase from './RIEStatefulBase'; export default class RIESelect extends RIEStatefulBase { static propTypes = { options: PropTypes.array.isRequired }; finishEditing = () => { // ...
stories/components/stateless/SelectFieldStory.js
thomas-p-wilson/react-form
import React from 'react'; // eslint-disable-line no-unused-vars import { storiesOf, action } from '@kadira/storybook'; import SelectField from '../../../src/components/stateless/SelectField'; // eslint-disable-line no-unused-vars const options = { 'opt1': 'Option 1', 'opt2': 'Option 2', 'opt3': 'Option 3'...
src/containers/Billing/Bill.js
zerkedev/zerke-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, intlShape } from 'react-intl'; import muiThemeable from 'material-ui/styles/muiThemeable'; import { Activity } from '../../containers/Activity'; import { ResponsiveMenu } from 'mater...
src-ui/fixit/maplink.js
cdaniel/atlas2
/*jshint esversion: 6 */ import React from 'react'; import PropTypes from 'prop-types'; import $ from 'jquery'; import {LinkContainer} from 'react-router-bootstrap'; export default class MapLink extends React.Component { //we do expect mapID constructor(props) { super(props); this.state = {name:"Loading.....
app/containers/AddItem/AddItemContent.js
ethanve/bakesale
'use strict'; import React from 'react'; import { Field } from 'redux-form/immutable'; import Section from '../../components/Section'; import InputField from '../../components/InputField'; import File from './components/File'; import Hero from '../../components/Hero'; export default class AddItemContent extends Reac...
website/main.js
sahat/megaboilerplate
import React from 'react'; import { Router, browserHistory } from 'react-router'; import ReactDOM from 'react-dom'; import routes from './routes'; ReactDOM.render( <Router history={browserHistory}>{routes}</Router>, document.getElementById('root') );
apps/app/src/containers/Router.js
argos-ci/argos
import React from 'react' import { __RouterContext } from 'react-router-dom' export function useRouter() { return React.useContext(__RouterContext) } export function ScrollToTop({ children }) { const { location: { pathname }, } = useRouter() React.useEffect(() => { window.scrollTo(0, 0) }, [pathname...
examples/todomvc/index.js
rt2zz/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
src/App.js
wudizhuo/kindle_web_react
import React, { Component } from 'react'; import Header from './Header'; import Main from './Main'; import AppNav from './AppNav'; class App extends Component { render() { return ( <div className="home"> <AppNav ref="leftNav" /> <Header onTouchTap={this._onLeftIconButtonTouchTap.bind(this)...
src/main/resources/static/components/account.js
dempey/pioneer
import React from 'react'; export default class Account extends React.Component { render() { return ( <div> <p>This is your account information</p> </div> ) } }
src/client.js
sjackson212/A6DotCom
/** * 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...
src/components/soporte/soporte.js
bombe-software/demos
import React, { Component } from 'react'; import { connect } from "react-redux"; import NeedLogin from "./../generics/need_login"; import Chat from "./chat"; import ChatServidor from "./chat_servidor"; class Soporte extends Component { constructor(props) { super(props); } /** * Es una forma de captu...
components/StoryBody/StoryBody.js
cobbweb/golittle.red
import React from 'react'; import DelayedAppear from '../Transition/DelayedAppear'; import './StoryBody.scss'; function StoryBody({ children }) { return ( <DelayedAppear> <div className="StoryBody"> {children} </div> </DelayedAppear> ); } export default StoryBody;
client/src/components/App.js
jimleeisme/file-tree-viewer
import React from 'react'; import TreeNode from './TreeNode'; import dir from '../input/dir'; class App extends React.Component { render() { return ( <ul> <li> <TreeNode node={dir[0]} url=""/> </li> </ul> ) } } export default App;
docs/src/app/components/Carbon.js
igorbt/material-ui
import React from 'react'; require('./Carbon.css'); class Carbon extends React.Component { componentDidMount() { if (process.env.NODE_ENV !== 'production') { return; } const script = document.createElement('script'); script.setAttribute('async', ''); script.src = '//cdn.carbonads.co...
examples/todos-flow/src/components/TodoList.js
roth1002/redux
// @flow import React from 'react'; import Todo from './Todo'; import type { Todos, Id } from '../types/todos'; export type Props = { todos: Todos, onTodoClick: (id: Id) => void }; const TodoList = ({ todos, onTodoClick }: Props) => ( <ul> {todos.map(todo => ( <Todo key={todo.id} {...todo} onClick=...
redux-form/simple/jsx/BikeForm.js
Muzietto/react-playground
import React from 'react'; import {Field, FieldArray, reduxForm} from 'redux-form'; import {connect} from 'react-redux'; const mapStateToProps = state => { return { // mandatory key name initialValues: state.submitted.bike, // pull initial values from submitted reducer }; }; const renderSpec =...
src/ModalHeader.js
adampickeral/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
examples/react-todomvc/index.js
Mavrin/component-inspector
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; import 'todomvc-app-css/index.css'; ReactDOM.render( <App />, document.getElementById('root') );
blueocean-material-icons/src/js/components/svg-icons/action/bug-report.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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.26 7.22 6.81 8H4v2h2.09c-.05.33-...
node_modules/react-bootstrap/es/DropdownButton.js
geng890518/editor-ui
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/components/views/rooms/RoomTile.js
aperezdc/matrix-react-sdk
/* Copyright 2015, 2016 OpenMarket Ltd Copyright 2017 New Vector Ltd Copyright 2018 Michael Telatynski <7t3chguy@gmail.com> 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...
assets/jqwidgets/demos/react/app/chart/dashboard/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let data1 = [ { text: 'Used', value: 55 }, { text: 'Available', value: 9 } ...
src/svg-icons/editor/insert-photo.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertPhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); EditorI...
client/src/components/GameSelector/index.js
googleinterns/Pictophone
import React, { Component } from 'react'; import { Card } from 'react-bootstrap'; import { Link } from "react-router-dom"; import { withFirebase } from '../Firebase'; import { getUsername } from '../Helpers'; import 'bootstrap/dist/css/bootstrap.css'; import './GameSelector.css'; class GameSelector extends Component...
Project/node_modules/grommet-cli/templates/full/src/js/components/TodoAppDashboard.js
IhtishamShah/GamifiedLearningApp
import React, { Component } from 'react'; import Box from 'grommet/components/Box'; import Heading from 'grommet/components/Heading'; import List from 'grommet/components/List'; import ListItem from 'grommet/components/ListItem'; import Meter from 'grommet/components/Meter'; import Value from 'grommet/components/Value'...
app/components/ToggleOption/index.js
Ratholien/JobReact
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequir...
src/svg-icons/image/transform.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTransform = (props) => ( <SvgIcon {...props}> <path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/> </SvgIcon> ); ImageTransform = pure(I...
fields/types/email/EmailColumn.js
jstockwin/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
app/javascript/mastodon/components/status_list.js
rainyday/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...
client/service-calculator/src/components/eligibility-calculator/ServiceCard.js
google-org/services-eligibility-calculator
/** * Copyright 2020 Google LLC * * 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...
client/screens/Users/UserProfile/index.js
francixcoag/trace_packages
import React from 'react'; import UsersNavBar from '../components/UsersNavBar'; import FormContainer from './FormContainer'; export default () => ( <div> <UsersNavBar label="User Profile" screen="user/profile" /> <FormContainer /> </div> );
src/svg-icons/image/filter-vintage.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterVintage = (props) => ( <SvgIcon {...props}> <path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9...
components/Shared/ItemLayout.js
itssumitrai/git-issue-viewer
/** * Copyright 2016, Sumit Rai * Copyrights licensed under the New MIT License. See the accompanying LICENSE file for terms. */ 'use strict'; import React from 'react'; class ItemLayout extends React.Component { render() { const { props } = this; return ( <div className="item"> ...
V2-Node/esquenta.v2/UI/src/views/Dashboard/Dashboard.js
leandrocristovao/esquenta
import React, { Component } from 'react'; import { Col, Row } from 'reactstrap'; import Dinheiro from './Dinheiro.js'; import Header from './Header.js'; import Lista from './Lista.js'; import Mensagens from './Mensagens.js'; class Dashboard extends Component { constructor(props) { super(props); this.state...
3-Redux-weather/test/test_helper.js
OscarDeDios/cursoUdemyReact
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...
packages/react-static/src/static/__mocks__/pages/index.js
nozzle/react-static
import React from 'react' // export default () => ( <div> <h1 style={{ textAlign: 'center' }}>Welcome to React-Static</h1> <img src="" alt="" style={{ display: 'block', margin: '0 auto' }} /> </div> )
src/lib/reactors/Legend/ColorRamp.js
ynunokawa/react-webmap
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to us...
AdminUI/src/routes/manageNode/modifyNode/index.js
Jsharkc/TechTree
/* * Revision History: * Initial: 2017/10/22 Wang RiYu */ import React from 'react'; import { Card, Select, Col, Button } from 'antd'; const Option = Select.Option; const options = [ { id: '0', label: 'Go' }, { id: '1', label: '语法' }, { id: '2', label: '框...
src/components/StoneQuest/StoneQuest.js
mattschwartz/mattschwartz
import React from 'react' import Prologue from './Prologue' import January2012 from './January2012' import July2012 from './July2012' import May2013 from './May2013' import Summer2013 from './Summer2013' import Remnants from './Remnants' import '../../styles/stoneQuest.css' export default () => ( <div className="...
src/index.js
Xclo/cf-dashboard
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './components/App'; import reducers from './reducers'; import store from "./middleware/store" import 'bootstrap/dist/css/bootstrap.css'; import injectTapEventPlugin from 'react-tap-event-plugin' inject...
test/test_helper.js
deinde/React-Express-Backend
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...
node_modules/react-bootstrap/es/Jumbotron.js
ivanhristov92/bookingCalendar
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/src/components/Docs/Props/CustomizingToolbarProp/CustomizeToolbarOption/index.js
jpuri/react-draft-wysiwyg
import React from 'react'; import Codemirror from 'react-codemirror'; export default () => ( <div> <div className="docs-desc top-margined"> <b>Using custom react component for pre-built toolbar options</b> <div className="docs-desc top-margined"> Custom react components can be used for exitin...
docs/src/examples/elements/Header/Content/HeaderExampleImage.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Header, Image } from 'semantic-ui-react' const HeaderExampleImage = () => ( <Header as='h2'> <Image circular src='/images/avatar/large/patrick.png' /> Patrick </Header> ) export default HeaderExampleImage
src/index.js
baruinho/cashier
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import './index.css'; import Root from './containers/Root'; import configureStore from './redux/configureStore'; const store = configureStore(); ReactDOM.render( ...
Native/Learn_NavigationBox/index.ios.js
renxlWin/React-Native_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'; export default class Learn_NavigationBox extends Component { render() { return ( <View sty...
source/client/components/visitor/rsvp/form-pieces/plus-guests.js
lawshe/boda
import React from 'react'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import FormControl from 'react-bootstrap/lib/FormControl'; /** * * For within RSVP form, plus guests * * @param {Object} rsvp * * @return {ReactComponent} */ export default (props) => { let...
src/index.js
camposa03/FormDemo
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import 'bootstrap/dist/css/bootstrap-reboot.css'; import 'bootstrap/dist/css/bootstrap.css'; import './index.css'; //import pdfMake from '../node_modules/pdfmake/build/pdfm...
src/helpers/connectData.js
huangc28/palestine-2
import React, { Component } from 'react'; /* Note: When this decorator is used, it MUST be the first (outermost) decorator. Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods. */ export default function connectData(fetchData, fetchDataDeferred) { return function wrapWithFetchDa...
js/components/loaders/ProgressBar.android.js
bsusta/NativeBase-KitchenSink
import React, { Component } from 'react'; import ProgressBar from 'ProgressBarAndroid'; export default class SpinnerNB extends Component { prepareRootProps() { const type = { height: 40, }; const defaultProps = { style: type, }; return computeProps(this.props, defaultProps); } ...