path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/views/Card/Content/CardExampleHeaderCard.js
mohammed88/Semantic-UI-React
import React from 'react' import { Card } from 'semantic-ui-react' const CardExampleHeaderCard = () => ( <Card.Group> <Card> <Card.Content> <Card.Header>Matthew Harris</Card.Header> <Card.Meta>Co-Worker</Card.Meta> <Card.Description>Matthew is a pianist living in Nashville.</Card.De...
app/components/UploadInvestorFiles/index.js
medevelopment/UMA
import React from 'react'; import Dropzone from 'react-dropzone'; import request from 'superagent'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; import LoadingIndicator from '../LoadingIndicator'; const styles = ...
packages/material-ui-icons/src/TimerOff.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let TimerOff = props => <SvgIcon {...props}> <path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1.45 ...
modules/Navbar.js
PaulsBecks/BasicReact
import React from 'react' export default React.createClass({ render : function render() { const { main, navbar} = this.props; return ( <nav className="teal"> <span className="brand-logo"> Hello World App </span> </nav> ); } })
src/components/app.js
pmahida/react-components
import React, { Component } from 'react'; import Typeahead from './typeahead/Typeahead'; export default class App extends Component { render() { return ( <div> <div>::React Components Demo Application::</div> <Typeahead /> </div> ); } }
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleAutoHeight.js
vageeshb/Semantic-UI-React
import React from 'react' import { Form, TextArea } from 'semantic-ui-react' const TextAreaExampleAutoHeight = () => ( <Form> <TextArea placeholder='Try adding multiple lines' autoHeight /> </Form> ) export default TextAreaExampleAutoHeight
src/js/pages/OtherUser/AboutMePage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './AboutMePage.scss'; import translate from '../../i18n/Translate'; import TopNavBar from '../../components/TopNavBar/TopNavBar.js'; import '../../../scss/pages/other-user/proposals.scss'; import MatchingBars from "../../co...
src/components/ui/Button.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import Loader from 'react-loader'; import classnames from 'classnames'; export default @observer class Button extends Component { static propTypes = { className: PropTypes.string, label: PropT...
src/routes.js
leifdalan/vega-june
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; // export default (store) => { export default store => { function checkAuth(logged, replace, cb) { const { auth: { user }, routin...
src/boilerplate/containers/Root.js
jonnyohjonnyo/TDD_LunchAndLearn_HDQC_April_2017
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from '../../scaffolding/routes'; // import DevTools from './DevTools'; export default class Root extends Component { render() { const { store } = this.pro...
app/javascript/mastodon/features/favourites/index.js
Ryanaka/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourit...
app/javascript/mastodon/features/ui/components/column_header.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, ...
src/components/tooltips/demos/Right.js
isogon/material-components
import React from 'react' import { Tooltip, Button, Icon } from '../../../' export default () => ( <Tooltip message="Follow" position="right"> <Button icon> <Icon name="add" /> </Button> </Tooltip> )
metube/js/components/VideoItem.js
RafikFarhad/MeTubeReact
import React, { Component } from 'react'; class VideoItem extends Component { constructor(props) { super(props); this.video = this.props.video.snippet; } onSelectClick = function (event) { // console.log(this.props.id); this.props.onSelectClick(this.props.id); } ...
ReduxBasedNavigation/js/routes/Route1.js
agenthunt/react-native-scratchpad
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center' } }); export default class Route1 extends Component { render(){ return ( ...
admin/client/App/shared/Popout/index.js
snowkeeper/keystone
/** * A Popout component. * One can also add a Header (Popout/Header), a Footer * (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane). */ import React from 'react'; import Portal from '../Portal'; import Transition from 'react-addons-css-transition-group'; const SIZES = { arrowHeight: 12, arrowWidth: ...
js/jqwidgets/demos/react/app/rangeselector/numericscale/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js'; class App extends React.Component { render() { return ( <JqxRangeSelector ref='myRangeSelector' width={750} height={10...
examples/normalization/src/components/Layout.js
lore/lore
/** * This component is intended to reflect the high level structure of your application, * and render any components that are common across all views, such as the header or * top-level navigation. All other components should be rendered by route handlers. **/ import React from 'react'; import PropTypes from 'prop...
src/timeTravel.js
broucz/mvu-devtools
import React from 'react'; import { timeTravelContainer as containerStyle, timeTravelUndoButton as undoButtonStyle, timeTravelRedoButton as redoButtonStyle, timeTravelUndoButtonDisabled as undoButtonStyleDisabled, timeTravelRedoButtonDisabled as redoButtonStyleDisabled } from './style'; // -- Action export ...
src/main/app/components/flux/Flux.js
reactor/reactor-pylon
/* * Copyright (c) 2011-2016 Pivotal Software Inc, All Rights Reserved. * * 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 * * Unles...
src/components/WeatherIcons/Mist.js
Cirych/WeatherApp
import React from 'react'; export const Mist = ({ color = 'black' }) => <g id="mist" fill="none" stroke={color} strokeWidth="20000" > <path id="mist4" d="M53256 249415c132292,-46302 264583,0 264583,0 132292,-46302 264583,0 264583,0" /> <path id="mist3" d="M53256 302332c132292,-46302 264583,0 264583,0 13...
src/js/components/input/datefilter/input_datefilter_select.js
working-minds/realizejs
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from '../../../prop_types'; import { uuid } from '../../../utils'; import { mixin, autobind } from '../../../utils/decorators'; import InputBase from '../input_base'; import InputText from '../input_text'; import { Label } from '../../label'...
src/components/wallet/WalletDump.js
whphhg/vcash-ui
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { dataPath } from '../../utilities/common.js' /** Ant Design */ import Button from 'antd/lib/button' import Input from 'antd/lib/input' import message from 'antd/lib/message' @translate(['common'])...
src/ReactBaseSetup/src/index.js
tbrockhouse/BIT_TechDev
import React from 'react'; import ReactDOM from 'react-dom'; import {SampleComp} from './sample_component'; ReactDOM.render( <div> <h1>Base ReactJS Template</h1> <SampleComp /> </div> ,document.getElementById('root') );
src/interface/contributor/Portal.js
FaideWW/WoWAnalyzer
import React from 'react'; import { createPortal } from 'react-dom'; /* Wraps child and appends it to DOMs #portal-div necessary to avoid css inheritance */ // TODO: Refactor this into a common component and folder when this gets used a second time const Portal = ({ children, onClose }) => { return createPortal...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Form.js
JamieMason/npm-cache-benchmark
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 ...
src/TimePicker/TimePicker.js
rscnt/material-ui
import React from 'react'; import warning from 'warning'; import TimePickerDialog from './TimePickerDialog'; import TextField from '../TextField'; import {formatTime} from './timeUtils'; const emptyTime = new Date(); emptyTime.setHours(0); emptyTime.setMinutes(0); emptyTime.setSeconds(0); emptyTime.setMilliseconds(0);...
fields/types/Field.js
matthewstyers/keystone
import classnames from 'classnames'; import evalDependsOn from '../utils/evalDependsOn.js'; import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormNote } from '../../admin/client/App/elemental'; import blacklist from 'blacklist'; import CollapsedFieldLabel from '../compon...
src/Interpolate.js
andrew-d/react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
src/containers/show_categories.js
jorisknulst/Swapi
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchCategories } from '../actions/index'; class ShowCategories extends Component { constructor(props) { // constructor initializes state super(props); this.state = ...
bdocker/bnodejs/gatsby/web/html.js
waterbolik/prestudy
import React from 'react' import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ propTypes () { return {...
app/components/steps/EnterPIN.js
rolandaugusto/react-atm-simulator
import React from 'react'; import styles from './../../App.css'; import classnames from 'classnames'; import {steps as STEPS} from './../../steps'; let shakeTimeout; export default class EnterPIN extends React.Component { constructor(props) { super(props); this.state = { inputValue: ''...
.storybook/components/TimePickerStory.js
hellobrian/carbon-components-react
import React from 'react'; import { action, storiesOf } from '@storybook/react'; import TimePicker from '../../components/TimePicker'; import TimePickerSelect from '../../components/TimePickerSelect'; import SelectItem from '../../components/SelectItem'; storiesOf('TimePicker', module).addWithInfo( 'Default', ` ...
src/index.js
rokka-io/rokka-dashboard
import React from 'react' import { render } from 'react-dom' import App from './components/App' render(<App />, document.getElementById('root'))
src/components/redhat/plain/RedhatPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './RedhatPlain.svg' /** RedhatPlain */ function RedhatPlain({ width, height, className }) { return ( <SVGDeviconInline className={'RedhatPlain' + ' ' + className} ...
src/RadioButton/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Icon from '../Icon'; import classNames from 'classnames'; import styles from './styles.css'; import Typography from '../Typography'; function RadioButton(props) { return ( <div className={classNames(styles.default, ...
app/javascript/mastodon/features/ui/components/mute_modal.js
pinfort/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import Button from '../../../components/button'; import { closeModal } from '../../../actions/modal'; import...
src/containers/Redux.js
rldona/ReactNativeCourseBeeva
import React, { Component } from 'react'; import { StyleSheet, Text, View, Dimensions } from 'react-native'; import { connect } from 'react-redux'; import { activateState, deactivateState } from '../redux/actions'; import { ComponentA, ComponentB } from '../features'; const { width, height } = Dimensions.ge...
lib/index.js
letakeane/db-lk-weathrly
// require('./style.scss') import React from 'react'; import reactDOM from 'react-dom'; import Main from './components/Main.js'; reactDOM.render(<Main/>, document.getElementById('application'));
src/example/App.js
halhenke/component-router
import React from 'react'; import {ComponentRouter, LocationHtml5, getDefault, Url} from '..'; import styles from './App.css'; import FooBar from './FooBar/FooBar'; import Quickstart from './Quickstart/Quickstart'; import Links from './Links/Links'; import Blocks from './Blocks/Blocks'; import DynamicList from './Dyn...
src/main/internal/adaption/react/ElementUtils.js
js-works/js-surface
import React from 'react' export default { typeOf(elem) { let ret if (React.isValidElement(elem)) { ret = elem.type } return ret }, propsOf(elem) { let ret if (React.isValidElement(elem)) { ret = elem.props } return ret } }
client/components/Todo.js
homanbromand/node-react-bootstrap
import React from 'react' import { update, destroy } from 'client/actions/todoActions' export default class TodoItem extends React.Component { toggleTodo() { const { todo } = this.props const updatedTodo = {...todo, is_completed: !Boolean(todo.is_completed)} update(updatedTodo) } render() { const { id...
src/shared/components/form/formEmail/formEmail.js
OperationCode/operationcode_frontend
import React, { Component } from 'react'; import FormInput from '../formInput/formInput'; class FormEmail extends Component { render() { const validEmailRegex = /(^[^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})/; return ( <FormInput {...this.props} validationRegex={validEmailRegex} vali...
react/index.web.js
jitsi/jitsi-meet
/* global APP */ import React from 'react'; import ReactDOM from 'react-dom'; import { App } from './features/app/components'; import { getLogger } from './features/base/logging/functions'; import { Platform } from './features/base/react'; import { getJitsiMeetGlobalNS } from './features/base/util'; import PrejoinApp...
src/components/Progress/index.js
alickzhang/react-responsive-music-player
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './index.scss'; export default class Progress extends Component { static propTypes = { percent: PropTypes.number, strokeColor: PropTypes.string, strokeWidth: PropTypes.number }; static defaultProps = { percent: ...
Example/components/Home.js
mcabs3/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; var styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgrou...
fields/types/select/SelectField.js
jstockwin/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValue) { // TODO: This shoul...
src/examples/index.js
SiDChik/redux-regexp-router
/** * Created by sidchik on 28.03.17. */ import React from 'react'; import ReactDom from 'react-dom'; import { combineReducers, createStore } from 'redux' import { Switch, Route, Link, routeReducers, createHistory, addRoutingContext } from '../index.js'; import { connect, Provider } from 'react-redux'; console.log...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
LJ-Solutions/lj-tools2
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/components/shared/Card/Card.js
Jotakuun/github-charts
import React from 'react'; import styles from './Card.css'; export default ({ children }) => { return ( <div className={styles.CardComponent}> {children} </div> ); }
stories/Alignment/SimpleAlignmentEditor/colorBlockPlugin.js
dagopert/draft-js-plugins
import React from 'react'; const ColorBlock = ({ block, // eslint-disable-line no-unused-vars blockProps, // eslint-disable-line no-unused-vars customStyleMap, // eslint-disable-line no-unused-vars customStyleFn, // eslint-disable-line no-unused-vars decorator, // eslint-disable-line no-unused-vars forceSe...
src/svg-icons/action/date-range.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDateRange = (props) => ( <SvgIcon {...props}> <path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0...
client/src/containers/SignInFormContainer.js
fmoliveira/rexql-boilerplate
import React from 'react' import { withRouter } from 'react-router' import { graphql } from 'react-apollo' import gql from 'graphql-tag' import { connect } from 'react-redux' import SignInForm from '../components/SignInForm' import { signIn } from '../actions' class SignInFormContainer extends React.Component { con...
.history/src/components/GKM/EtsyProduct_20170624112129.js
oded-soffrin/gkm_viewer
import React from 'react' import '../../styles/gkm-item.scss'; import ProductItem from './ProductItem' import Input from '../Common/Input' import SearchBar from '../SearchBar'; import _ from 'lodash' class EtsyProduct extends React.Component { constructor(props, context) { super(props, context); this.edit...
src/svg-icons/image/control-point-duplicate.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageControlPointDuplicate = (props) => ( <SvgIcon {...props}> <path d="M16 8h-2v3h-3v2h3v3h2v-3h3v-2h-3zM2 12c0-2.79 1.64-5.2 4.01-6.32V3.52C2.52 4.76 0 8.09 0 12s2.52 7.24 6.01 8.48v-2.16C3.64 17.2 2 14.79 2 ...
motion-test/src/app.js
wandarkaf/React-Bible
import React from 'react'; import ReactDOM from 'react-dom'; import MotionSimple from './motionSimple'; import MotionCustom from './motionCustom'; import StaggeredExample from './staggeredExample'; import TransitionExample from './transitionExample'; // ReactDOM.render(<MotionSimple/>, document.getElementById('root'))...
src/components/Sidebar.js
zksailor534/react-adminlte-dash
/* eslint-disable react/jsx-filename-extension */ import React from 'react'; import styled from 'styled-components'; import UserPanel from './Sidebar/UserPanel'; import Search from './Sidebar/Search'; import Menu from './Sidebar/Menu'; import { screenXsMax, screenSmMin, sidebarWidth, sidebarMiniWidth, trans...
src/components/RealStructure/landing.js
DawnOfHammers/TrendR
import React from 'react'; import { Link } from 'react-router'; import Card from 'material-ui/Card'; import Background from '../background.js'; export default class Landing extends React.Component{ render(){ const temp = { position: "fixed", height: "50px", width: "50px", left: "50%", top: "50%", b...
src/index.js
garvankeeley/lockbox-experiments
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import './index.css'; import App from './app/App'; import { appReducer } from './redux/reducer'; import { initialData } from './app/initialData'; const persistedState = localStorag...
app/containers/DeckBuilderPage.js
BryanIams/foil-client
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import Flexbox from 'flexbox-react'; import RaisedButton from 'material-ui/RaisedButton'; import { Dropdown } from 'se...
app/components/game/Game.js
BryanIams/foil-client
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import Flexbox from 'flexbox-react'; import SiteLayout from './SiteLayout'; class Game extends Component { render() { return ( <div> <Flexbox flexDirection="column" minHeight="100vh"> <Flexbox element="head...
Activities/WebApp/src/app/title.js
swcraftlyon/meetup
import React, { Component } from 'react'; const styles = { title: { display: 'flex', flexDirection: 'column', alignItems: 'center', padding: '1rem', backgroundColor: '#cf4646', color: 'white' }, h1: { fontWeight: 300, fontSize: '4rem', margin: '1rem' } }; export class Title...
ajax/libs/react-instantsearch/4.1.0/Connectors.js
froala/cdnjs
/*! ReactInstantSearch 4.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
internals/templates/containers/NotFoundPage/index.js
darrellesh/redux-react-boilerplate
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/application/App/PlayerControls/Previous.js
AoDev/kaiku-music-player
import PropTypes from 'prop-types' import React from 'react' const previousIcon = <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path className="icon-path" d="M27.9 0c-.5 0-1.2-.1-1.7.3L11.8 12.4V2.8C11.8 1.2 10.6 0 9 0H4.9C3.3 0 2.1 1.2 2.1 2.8v26.4c0 1.5 1.2 2.8 2.8 2.8H9c1.5 0 2...
app/Root.js
browniefed/redux-blog-example
/* eslint-env browser */ /* global process */ import React from 'react'; import { Router } from 'react-router'; import { Provider } from 'react-redux'; import cookie from './utils/cookie'; import routes from './routes'; import { routerStateChange } from './actions/router'; import { createRedux } from './utils/redux'; ...
RNApp/app/routes/Home/AthleteMap.js
reyvera/raceDay
import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import MapView from 'react-native-maps'; class AthleteMap extends Component { constructor(props) { super(props); this.state = { position: { coords: {} }, region: { latitude: 37.78825, ...
src/index.js
weixing2014/react-hot-boilerplate
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
src/containers/Root.js
tylergraf/react-twitter
import React from 'react'; import HomeTimelinePage from './HomeTimelinePage'; // import Cart from './cart/app-cart'; // import CatalogDetail from './product/app-catalogdetail'; import Template from './Template'; import { Router, Route, IndexRoute } from 'react-router'; export default () => { // <Route path="item/:it...
techCurriculum/ui/solutions/4.6/src/components/User.js
AnxChow/EngineeringEssentials-group
/** * 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/components/Blockquote/Blockquote.stories.js
wfp/ui
import React from 'react'; import Blockquote from '.'; import Icon from '../Icon'; import Button from '../Button'; import { iconAddOutline } from '@wfp/icons'; import markdown from './README.mdx'; import blockquoteTwig from './Blockquote.twig'; const props = { children: `Lorem ipsum dolor sit amet, consetetur sadips...
node_modules/react-scripts/template/src/App.js
vitorgomateus/NotifyMe
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
app/containers/NavbarContainer/UserContainer/index.js
josueorozco/parlay
import React from 'react'; import { connect } from 'react-redux'; import selectUserContainer from './selectors'; import User from '../../../components/Navbar/User'; /* |-------------------------------------------------------------------------- | UserContainer |----------------------------------------------------------...
native/components/backpack/Backpack.js
miukimiu/react-kawaii
import React from 'react'; import PropTypes from 'prop-types'; import Svg, { G, Path, Use, Defs, Mask } from 'react-native-svg'; import paths from './paths'; import getUniqueId from '../../utils/getUniqueId'; import Face from '../common/face/Face'; import Wrapper from '../common/wrapper/Wrapper'; const Backpack = ({ s...
src/ModalTitle.js
tannewt/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.pr...
packages/react-query-builder/src/components/Query.js
fubhy/react-query-builder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { map } from 'ramda'; import defaultRoot from '../utils/defaultRoot'; import reducer from '../reducer'; import * as actionCreators from '../actions'; export class Query extends Component { state = (props => { return { tree...
src/FadeMixin.js
omerts/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import deprecationWarning from './utils/deprecationWarning'; // TODO: listen for onTransitionEnd to remove el function getElementsAndSelf (root, classes){ let els = root.querySelectorAll('.' + classes.join('.')); els = [].map.call(els, function(e...
app/javascript/mastodon/features/generic_not_found/index.js
ebihara99999/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator /> </Column> ); export default GenericNotFound;
lib/panels/MultiSlice/index.js
Kitware/light-viz
import clone from 'mout/src/lang/clone'; import equals from 'mout/src/array/equals'; import DoubleSliderElement from 'paraviewweb/src/React/Widgets/DoubleSliderWidget'; import React from 'react'; import PropTypes from 'prop-types'; import style from 'LightVizStyle/MultiSlicePanel.mcss'; import AbstractPanel from '../...
components/Footer/Footer.js
mksarge/react-static-template
import React from 'react'; import s from './Footer.css'; function Footer() { return ( <footer className={s.footer}> <div className={s.bar} /> <p>© Michael Sargent 2016.&nbsp;<a href="https://github.com/mksarge/react-static-template">Source</a></p> </footer> ); } export default Footer;
public/js/components/updateLists.js
MelanistOnca/bookList
import React from 'react'; import { render } from 'react-dom'; import $ from 'jquery'; import Selector from './selector'; import Selected from './selected'; export default class UpdateList extends React.Component { componentWillMount(){ // let listKeyLabel = window.location.pathname.split("/")[1] // con...
src/browser/main.js
TheoMer/Gyms-Of-The-World
// @flow import type { Action } from '../common/types'; import React from 'react'; import ReactDOM from 'react-dom'; import Root from './app/Root'; import configureFound from './configureFound'; import configureReporting from '../common/configureReporting'; import configureStorage from '../common/configureStorage'; imp...
frontend/src/components/shared/heart/index.js
Kilte/scrobbler
import React from 'react'; class Heart extends React.Component { render() { return <span className={`heart heart__${this.props.enabled ? 'on' : 'off'}`}></span>; } } Heart.propTypes = { enabled: React.PropTypes.bool.isRequired }; export default Heart;
src/routes/bar_decor/index.js
ChrisWC/MaterL
import React from 'react'; import BarDecorRoute from './BarDecor'; import fetch from '../../core/fetch'; export default { path: '/bar_decor', async action() { return <BarDecorRoute />; }, };
app/static/src/diagnostic/EquipmentForm_modules/NewNormForm.js
SnowBeaver/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import Button from 'react-bootstrap/lib/Button'; import Panel from 'react-bootstrap/lib/Panel'; import {findDOMNode} f...
index.android.js
dalmago/thatThing
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React from 'react'; import { AppRegistry, } from 'react-native'; import { InitialScene } from './app/InitialScene'; AppRegistry.registerComponent('ThatThing', () => InitialScene);
app/jsx/context_cards/SubmissionProgressBars.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...
app/components/SmallHeaderBlock/index.js
BeautifulTrouble/beautifulrising-client
/** * * SmallHeaderBlock * */ import React from 'react'; import styled from 'styled-components'; export default styled.h4` font-size: 19px; line-height: 22px; text-align: ${ p=>p.theme.isArabic ? 'right' : 'left'}; font-family: Avenir, Kaff, sans-serif; font-weight: 800; text-transform: uppercase; lette...
web-server/v0.4/src/pages/ComparisonSelect/index.js
gurbirkalsi/pbench
import React from 'react'; import { connect } from 'dva'; import { routerRedux } from 'dva/router'; import { Card, Spin, notification, Tag } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import { filterIterations } from '../../utils/parse'; import TableFilterSelection from '@/components/T...
common/locales/fr/landing/firstRow.js
florianherrengt/react-redux-test
import React from 'react'; const headerLeft = <p>Premiere ligne gauche</p>; const contentLeft = ( <p> premier contenu gauche </p> ); const headerRight = (<p>Premiere ligne droite</p>); const contentRight = ( <p> Premier contenu droite </p> ); export default { headerLeft, conten...
src/Affix.js
bvasko/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import AffixMixin from './AffixMixin'; const Affix = React.createClass({ mixins: [AffixMixin], render() { let holderStyle = { top: this.state.affixPositionTop, // we don't want to expose the `style` property ...this.props.style...
Examples/UIExplorer/js/ActivityIndicatorExample.js
alin23/react-native
/** * Copyright (c) 2013-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. * * The examp...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleDivider.js
aabustamante/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleDivider = () => ( <Breadcrumb> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider>/</Breadcrumb.Divider> <Breadcrumb.Section link>Registration</Breadcrumb.Section> <Breadcrumb.Divider>/...
jekyll-strapi-tutorial/api/plugins/content-type-builder/admin/src/containers/HomePage/index.js
strapi/strapi-examples
/* * * HomePage * */ import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import { size } from 'lodash'; import Helmet from 'react-helmet'; import PropTypes from 'prop-types'; import { router } fr...
app/components/Footer/index.js
nguyenduong127/kong-dashboard
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js
cr101/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...
ReactNativeApp/react-native-starter-app/src/containers/ui/NavbarMenuButton/NavbarMenuButtonView.js
jjhyu/hackthe6ix2017
/** * Navbar Menu Button * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import PropTypes from 'prop-types'; import { TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; /* Component =======================...
frontend/src/components/terms-preview-widget.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { processor } from '@seafile/seafile-editor/dist/utils/seafile-markdown2html'; import Loading from './loading'; const propTypes = { content: PropTypes.string, onContentClick: PropTypes.func, }; class TermsPreviewWidget extends React.Component {...
src/User/actions/userActionCreators.js
jirkae/hobby_hub
import React from 'react'; import * as API from './../../Base/services/restApi'; import * as C from './userActionTypes'; import { openModal, closeModal } from './../../Base/actions/modalActionCreators'; import ConfirmationDialog from '../../Base/components/ConfirmationDialog'; export function loginUserSuccess(payload)...
assets/javascript/components/app/tabbedNavigation.js
colinjeanne/learning-site
import TabbedNavigationButton from './tabbedNavigationButton'; import React from 'react'; const tabbedNavigation = props => { const children = Object.keys(props.tabs).map( tab => ( <TabbedNavigationButton id={tab} key={tab} onSelect={props.onSelec...