path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
source/components/InfoZone.js
sandcha/cout-embauche
import React from 'react' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' export default ({ showAdvanced, toggleAdvancedSection, inputTouched, inputChanged, themeColours: {textColourOnWhite} }) => <section className="info-zone"> { !showAdvanced && <ReactCSSTransitionGroup id="user-next...
client/modules/Auth/pages/SignupPage/SignupPage.js
mhmtztmr/losed
import React, { Component } from 'react'; import { connect } from 'react-redux'; import SignupForm from '../../components/SignupForm'; import authActions from '../../AuthActions'; class SignupPage extends Component { /** * Class constructor. */ constructor(props) { super(props); // set t...
src/components/TagField.js
nitrog7/nl-fluid
import React from 'react'; import _ from 'lodash'; import Icon from 'components/Icon'; // Constants const Keys = { ENTER: 13, TAB: 9, BACKSPACE: 8, UP_ARROW: 38, DOWN_ARROW: 40, ESCAPE: 27 }; export default class TagField extends React.Component { static get propTypes() { return { allowDeleteF...
src/shared/components/socialLogin/facebook.js
sethbergman/operationcode_frontend
import React from 'react'; import config from 'config/environment'; import FacebookLogin from 'react-facebook-login'; import SocialLogin from './socialLogin'; import styles from './socialMediaButtons.css'; const Facebook = (props) => { const responseFacebook = (response) => { const login = new SocialLogin(props)...
lib/components/header.js
tombenke/react-ui-archetype
import React from 'react'; import { Nav, Link, Navbar, NavItem, NavDropdown, MenuItem, NavItemLink } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; class Header extends React.Component{ render() { return ( <header role="banner"> <Navbar inverse> ...
electron/app/containers/EditorRenderer.js
zindlerb/static
import React from 'react'; import { connect } from 'react-redux'; import { createImmutableJSSelector } from '../utils'; import { renderTreeSelector } from '../selectors'; import StaticRenderer from '../components/StaticRenderer'; const EditorRenderer = React.createClass({ render() { const { renderTree, ...
docs/app/Examples/modules/Progress/Content/ProgressExampleProgress.js
koenvg/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleProgress = () => ( <Progress percent={44} progress /> ) export default ProgressExampleProgress
building-react-applications-with-idiomatic-redux/todoApp/src/components/App.js
Remexllee/randr-practice
import React from 'react'; import Footer from './Footer'; import VisibleTodoList from '../containers/VisibileTodoList'; import AddTodo from '../containers/AddTodo' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ); export default App;
test/regressions/index.js
lgollut/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import vrtest from 'vrtest-mui/client'; import webfontloader from 'webfontloader'; import TestViewer from './TestViewer'; // Get all the tests specifically written for preventing regressions. const requireRegression = require.context('./tests', true, /js$/);...
docs/src/app/components/pages/components/Drawer/ExampleOpenSecondary.js
pradel/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import AppBar from 'material-ui/AppBar'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerOpenRightExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } handle...
demo/components/checkbox/CheckBoxOptions.js
f0zze/rosemary-ui
import React from 'react'; import {CheckBox} from '../../../src'; import OptionsTable from '../../helper/OptionsTable'; export default () => { let propDescription = { onChange: { values: 'function', description: 'function Is called when checkbox is changed' }, value:...
examples/Login/index.js
cat-react/form
import React from 'react'; import {Form} from '@cat-react/form'; import BasicInput from '../components/BasicInput'; import autoBind from 'react-autobind'; export default class extends React.Component { constructor(props) { super(props); autoBind(this); this.state = { canSubmit...
examples/1-multi/src/signup/components/App.js
chikara-chan/react-power
import React from 'react' import styles from './App.scss' function App() { return ( <div> <h1 className={styles.title}>Signup</h1> </div> ) } export default App
src/containers/Wallet/Card.js
ChluNetwork/chlu-demo
import React from 'react' import { withStyles, Card } from '@material-ui/core'; const style = { root: { margin: '30px' } } function WalletCard ({ children, ...props }) { return <Card {...props}>{children}</Card> } export default withStyles(style)(WalletCard)
src/utils.js
react-auth/react-auth
import url from 'url'; import React from 'react'; class Utils { nopElement = <span />; uuid() { var s4 = () => Math.floor((1 + Math.random()) * 0x10000) .toString(16).substring(1); return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); } translateProviderId...
src/public/js/repositoryListItem.js
TooAngel/democratic-collaboration
import React from 'react'; import PropTypes from 'prop-types'; import styles from '../../../static/css/repositoryListItem.module.css'; /** * RepositoryListItem class **/ export class RepositoryListItem extends React.Component { // eslint-disable-line no-unused-vars /** * contructor - The constructor * * @...
node_modules/enzyme/src/ShallowTraversal.js
vallihe/wizarddemo
import React from 'react'; import isEmpty from 'lodash/isEmpty'; import isSubset from 'is-subset'; import functionName from 'function.prototype.name'; import { propsOfNode, splitSelector, isCompoundSelector, selectorType, AND, SELECTOR, nodeHasType, nodeHasProperty, } from './Utils'; export function c...
src/framework/common/kernel.js
foobarhq/reworkjs
// @flow import React from 'react'; import { Switch } from 'react-router-dom'; import MainComponent from './app-main-component'; import createRoutes from './router/create-routes'; import debug from './debug'; // Set up the router, wrapping all Routes in the App component const topLevelRoutes = createRoutes(); debug...
src/components/Stream/presenter.js
vladovidiu/soundcloud
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { CLIENT_ID } from '../../constants/auth'; class Stream extends Component { componentDidUpdate() { const audioElement = ReactDOM.findDOMNode(this.refs.audio); if (!audioElement) { return; } const { activeTrack } = this....
docs/src/app/components/pages/components/Stepper/HorizontalTransition.js
pradel/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import ExpandTransition from 'material-ui/internal/ExpandTransition'; import TextField from 'material-ui/TextField'; /*...
client/src/components/NotFound.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import { Link } from 'react-router'; import logo from '../logo.png'; const NotFound = ({ t }) => ( <div className="not-found text-center"> <h1>404</h1> <h2>{t('Page introuvable !')}</h2> <img src={l...
src/svg-icons/communication/phonelink-ring.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkRing = (props) => ( <SvgIcon {...props}> <path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2...
src/mobservable/components/App.js
raymondsze/react-example
/* * @Author: Sze Ka Wai Raymond (FakeC) * @Date: 2016-01-18 22:51:06 * @Last Modified by: Sze Ka Wai Raymond (FakeC) * @Last Modified time: 2016-01-19 04:09:31 */ import React from 'react'; import _ from 'lodash'; import Checkbox from './Checkbox'; import {observer} from 'mobservable-react'; @observer class App ...
docs/src/app/components/pages/components/Avatar/ExampleSimple.js
lawrence-yu/material-ui
import React from 'react'; import Avatar from 'material-ui/Avatar'; import FileFolder from 'material-ui/svg-icons/file/folder'; import FontIcon from 'material-ui/FontIcon'; import List from 'material-ui/List/List'; import ListItem from 'material-ui/List/ListItem'; import { blue300, indigo900, orange200, deepOr...
app/javascript/mastodon/features/directory/components/account_card.js
lynlynlynx/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from 'mastodon/selectors'; import Avatar from 'mastodon/compone...
app/components/Forecast.js
jcarva/get_weather
import React from 'react' import Day from '../components/Day' import Loading from '../components/Loading' import { WeatherTimeParser, UpperCaseFirst } from '../utils/weatherDataParser' import { WeatherIconsMaterial } from '../utils/weatherIcons' const ForecastCard = (props) => { return ( <div className="containe...
components/fields/forked-react-dates/src/components/CalendarMonthGrid.js
Mudano/m-dash-ui
import React from 'react'; import PropTypes from 'prop-types'; import shallowCompare from 'react-addons-shallow-compare'; import momentPropTypes from 'react-moment-proptypes'; import { forbidExtraProps, nonNegativeInteger } from 'airbnb-prop-types'; import moment from 'moment'; import cx from 'classnames'; import { add...
app/javascript/containers/OpenContentPage.js
Vizzuality/forest-atlas-landscape-cms
import React from 'react'; import AdminContainer from 'containers/shared/AdminContainer'; import OpenContent from 'pages/admin/open-content'; const OpenContentPage = props => ( <AdminContainer {...props}> <OpenContent /> </AdminContainer> ); export default OpenContentPage;
.history/src/components/InstaCelebs/index_20171001010918.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' import '../../styles/insta-stats.scss' const imgMap = { d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg', e: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885...
src/js/components/Checkoutbutton.js
kRITZCREEK/squirrelzon
import React from 'react'; import actions from 'babel!../actions/ShoppingCartActions' import store from 'babel!../stores/ShoppingCartStore' import {product1} from 'Squirrelzon.Dummy' var Checkoutbutton = React.createClass({ render() { return ( <button className="btn waves-effect waves-light"> Checko...
src/parser/paladin/holy/modules/FillerLightOfTheMartyrs.js
fyruna/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { TooltipElement } from 'common/Tooltip'; import Analyzer from 'parser/core/Analyzer'; import SpellUsable from 'parser/shared/modules/SpellUsable'; /** @type {number} ...
src/components/Forms/FormThirdPage.js
vallihe/wizarddemo
import React from 'react' import { Field, reduxForm } from 'redux-form' import validate from '../../routes/Form/components/validate' import renderField from '../../routes/Form/components/renderField' import renderSelect from '../../routes/Form/components/renderSelect' const colors = [ 'Red', 'Orange', 'Yellow', 'Gree...
webpack/scenes/Dashboard/index.js
stbenjam/katello
import React from 'react'; export default () => <h1>Dashboard Page</h1>;
frontend/src/components/dialog/dialog.js
linea-it/qlf
import React from 'react'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core/DialogContentText'; import D...
src/details/index.js
jamesrf/weddingwebsite
import React from 'react'; import Layout from '../../components/Layout'; import GMap from '../../components/GMap'; import s from './styles.css'; class DetailsPage extends React.Component { render() { return ( <Layout className={s.content}> <div className="mdl-grid center-items"> <div c...
src/components/stateless/TextField.js
thomas-p-wilson/react-form
import React from 'react'; // eslint-disable-line no-unused-var import BasicField from '../BasicField'; /** * Produces an HTML input field with the type set to `text` and which performs * just like its pure HTML counterpart in all respects. */ export default class TextField extends BasicField { static displayNa...
docs/app/Examples/elements/Button/GroupVariations/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ShorthandExample from 'docs/app/Components/ComponentDoc/ShorthandExample' const ButtonGroupVariationsExamples = () => ( <Exam...
frontend/src/Artist/Delete/DeleteArtistModalContentConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { deleteArtist } from 'Store/Actions/artistActions'; import createArtistSelector from 'Store/Selectors/createArtistSelector'; import DeleteArtistModalCon...
src/Toolbar/ToolbarTitle.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const ROOT = 'mdc-toolbar__title'; const propTypes = { className: PropTypes.string, children: PropTypes.node, }; const ToolbarTitle = ({ className, children, ...otherProps }) => ( <span className={clas...
client/scripts/controllers/season1Ctrl.js
IHarryIJumper/trials-fusion-stats-cptsparkles
import React from 'react'; import { render } from 'react-dom'; import { SeasonOnePageComponent } from '../components/seasonsPages/season1Component.jsx'; export const renderSeason1Page = render(<SeasonOnePageComponent />, document.getElementById('season1-page-target'));
webapp/app/components/Logs/Results/index.js
EIP-SAM/SAM-Solution-Node-js
// // LogResult : block that shows the logs once a query // has been executed // import React from 'react'; import moment from 'moment'; import Spinner from 'components/Spinner'; import { Table, Label, Glyphicon, Alert } from 'react-bootstrap'; import styles from './styles.css'; import levels from './levels.json'; /*...
src/client/app/header.react.js
sljuka/portfulio
import Component from '../components/component.react' import React from 'react' import {msg} from '../intl/store' import Menu from '../menu/menu.react' class Header extends Component { render() { return ( <header> <Menu {...this.props} /> </header> ); } } export default Header;
components/CodeEditor.js
gmaliandi/metavrse-toolbar
import React from 'react'; import AceEditor from 'react-ace'; import 'brace'; import 'brace/mode/javascript'; import 'brace/theme/chaos'; import 'brace/ext/language_tools'; import classNames from 'classnames'; export default class CodeEditor extends React.Component { constructor(props) { super(props); thi...
js/Queries/ViewerQueries.js
maplechori/feathers-relay
import React from 'react' import Relay from 'react-relay' const ViewerQueries = { respondent: (Component) => Relay.QL` query { respondent { ${Component.getFragment('respondent')} } } `, } export defau...
src/components/views/dialogs/SetPasswordDialog.js
aperezdc/matrix-react-sdk
/* Copyright 2017 Vector Creations Ltd Copyright 2018 New Vector Ltd 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 la...
src/svg-icons/action/settings-voice.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsVoice = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3...
src/assets/js/react/components/Template/TemplateDeleteButton.js
blueliquiddesigns/gravity-forms-pdf-extended
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { addTemplate, deleteTemplate, templateProcessing, clearTemplateProcessing } from '../../actions/templates' import { withRouter } from 'react-router-dom' /** * Renders a delete button which then queries our serve...
src/prop_types.js
byronmwong/react-flexbox-layout
import PropTypes from 'prop-types'; import React from 'react'; import keys from 'lodash/keys'; import assign from 'lodash/assign'; import omit from 'lodash/omit'; function layoutItemChildrenChecker(props, propName, componentName) { if (React.Children.count(props[propName]) > 1) { return new Error(`Can't provide ...
app/javascript/mastodon/features/home_timeline/index.js
unarist/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
src/components/form/FormTextInputMultiline.js
timLoewel/sites
/** * Created by tim on 13/03/17. */ import React from 'react'; import {TextInput, View, Text} from 'react-native'; import FormFieldTitle from './FormFieldTitle'; import theme from '../../assets/themes/sites-theme'; import {AutoGrowingTextInput} from 'react-native-autogrow-textinput'; /** * to be wrapped with redux...
examples/ssr-caching/pages/blog.js
nelak/next.js
import React from 'react' export default class extends React.Component { static getInitialProps ({ query: { id } }) { return { id } } render () { return <div> <h1>My {this.props.id} blog post</h1> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tem...
packages/mineral-ui-icons/src/IconFeedback.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFeedback(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps...
packages/mineral-ui-icons/src/IconKeyboardArrowUp.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconKeyboardArrowUp(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...ic...
modules/gui/src/app/home/map/visParams/histogram.js
openforis/sepal
import {ElementResizeDetector} from 'widget/elementResizeDetector' import {Graph} from 'widget/graph' import {animationFrameScheduler, distinctUntilChanged, filter, fromEvent, interval, map, mapTo, merge, scan, switchMap} from 'rxjs' import {compose} from 'compose' import Hammer from 'hammerjs' import Icon from 'widget...
src/@ui/ContentView/Media/VideoHeader.js
NewSpring/Apollos
import React from 'react'; import { compose, pure, setPropTypes } from 'recompose'; import { View, Platform, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import EmbeddedVideoPlayer from '@ui/EmbeddedVideoPlayer'; import styled from '@ui/styled'; const enhance = compose( pure, setPropTypes...
client/src/components/profile/components/SocialIcons.js
BhaveshSGupta/FreeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col } from '@freecodecamp/react-bootstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faLinkedin, faGithub, faTwitter } from '@fortawesome/free-brands-svg-icons'; import { faLink } from '@fortawesome/free...
information/blendle-frontend-react-source/app/modules/sectionsPage/components/SectionTile/ColorBackground/index.js
BramscoChill/BlendleParser
import React from 'react'; import { string, oneOf, bool } from 'prop-types'; import { Backdrop } from '@blendle/lego'; import CSS from './style.scss'; const positions = new Map([ ['topRight', CSS.brandingTopRight], ['bottomCenter', CSS.brandingBottomCenter], ['centerLeft', CSS.brandingCenterLeft], ['topLeft', ...
src/components/Field/index.js
pyxis0810/onepy
import React, { Component } from 'react'; class Field extends Component { render() { return( <div className="fields align-items-center"> <div className="container-fluid full-width"> <div className="row justify-content-center"> <div className="col-12 col-md-9 col-lg-10"> ...
src/svg-icons/hardware/desktop-windows.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDesktopWindows = (props) => ( <SvgIcon {...props}> <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"/> </SvgIcon> ); HardwareDesk...
js/components/options/index.js
amandamfielding/Coffee-Shop-Mobile
import React, { Component } from 'react'; import { TouchableHighlight, View, ScrollView, ListView, Image } from 'react-native'; import { Font } from 'exponent'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, List, ListItem, Title, Cont...
kitchensink/ios/index.js
junewinds/jmui
import { hashHistory } from 'react-router' import getRoutes from './routes' import Root from './Root' import React from 'react' import ReactDOM from 'react-dom' const routes = getRoutes() ReactDOM.render( <Root history={hashHistory} routes={routes} />, document.getElementById('root') )
src/client/components/work/Review/ReviewRating.component.js
DBCDK/content-first
import React from 'react'; /** * This class displays a list of reviews */ class ReviewRating extends React.Component { render() { const rating = this.props.rating; const maxRating = this.props.maxRating; const filledShape = this.props.type; const emptyShape = this.props.type + '_border'; let r...
src/svg-icons/action/perm-data-setting.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermDataSetting = (props) => ( <SvgIcon {...props}> <path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0...
fmi-2022-05-react-todos/src/Back.js
iproduct/course-node-express-react
import React from 'react' import { useNavigate } from 'react-router-dom'; export const Back = () => { let navigate = useNavigate(); function goBack() { navigate(-1); } return ( <button onClick={goBack}>Back</button> ) }
app/javascript/mastodon/components/avatar.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import PropTypes from 'prop-types'; class Avatar extends React.PureComponent { static propTypes = { src: PropTypes.string.isRequired, staticSrc: PropTypes.string, size: PropTypes.number.isRequired, style: PropTypes.object, animate: PropTypes.bool, inline: PropTypes...
src/client/src/App.js
severnsc/brewing-app
import React from 'react'; import { BrowserRouter } from 'react-router-dom'; import Wrapper from './Components/Wrapper.js'; const App = (props) => { return( <Wrapper /> ) } const Body = (props) => { return( <BrowserRouter> <App /> </BrowserRouter> ) } export default Body;
src/components/antd/mention/index.js
hyd378008136/olymComponents
import React from 'react'; import RcMention, { Nav, toString, toEditorState, getMentions } from 'rc-editor-mention'; import classNames from 'classnames'; import shallowequal from 'shallowequal'; import Icon from '../icon'; export default class Mention extends React.Component { constructor(props) { super(pro...
client/engines/eventUtils.js
Cellarise/cell-cycle
import React from 'react'; import R from 'ramda'; import Card from '../page/card.jsx'; import {formattedDateTimeAMPM} from '../utils'; import {TimelineTypeIcon} from './engineUtils'; export function RenderEvents({events, partnerConsent, workflowRecords}) { const eventsSorted = R.pipe( R.reverse )(R.defaultTo(...
src/Popup/Popup.js
ctco/rosemary-ui
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import _noop from 'lodash/noop'; import ReactCSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import TetherComponent from '../react-tether/TetherComponent.js'...
public/js/components/profile/BlockList.react.js
MadushikaPerera/Coupley
import React from 'react'; import BlockItem from './BlockItem.react'; import List from 'material-ui/lib/lists/list'; import ActivityFeedStore from '../../stores/ActivityFeedStore'; import ActivityFeedActions from '../../actions/profile/ActivityFeedActions'; const BlockList = React.createClass({ getInitialState: fu...
fields/types/select/SelectColumn.js
stunjiturner/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object, data: React.PropTy...
src/components/Footer.js
danieljwest/ExamGenerator
import React from 'react' import { Link } from 'react-router' export default class Footer extends React.Component { render () { const toDate = new Date().getFullYear() > 2015 && '-' + new Date().getFullYear() return ( <div> <hr /> <div className='text-center'> &copy; 2016{toDa...
src/views/HomeView.js
seespace/dota2assistant
import React from 'react' import { connect } from 'react-redux' import { actions as counterActions } from '../redux/modules/counter' // import { Grid } from 'react-semantify' import Header from 'layouts/Header' // We define mapStateToProps where we'd normally use // the @connect decorator so the data requirements are ...
src/js/admin/category-refact/category-tree/article-item-li/article-item-li.js
ucev/blog
import React from 'react' import { connect } from 'react-redux' import { getRefactDetail } from '$actions/category-refact' import './article-item-li.style.scss' class ArticleItemLi extends React.Component { constructor (props) { super(props) this.onItemClicked = this.onItemClicked.bind(this) } onItemCl...
src/pages/tags/index.js
ArturJS/ArturJS.github.io
import React from 'react' import { kebabCase } from 'lodash' import Helmet from 'react-helmet' import { Link, graphql } from 'gatsby' import Layout from '../../components/Layout' const TagsPage = ({ data: { allMarkdownRemark: { group }, site: { siteMetadata: { title }, }, }, }) => ( <Layout> ...
src/NavBar.js
LHoin/react-native-router-redux-plus
import React, { Component } from 'react'; import NavigationBar from 'react-native-navbar'; import { StyleSheet } from 'react-native'; const leftButton = (props = {}, transitioning) => { if (props.navLeft && React.isValidElement(props.navLeft)) { return props.navLeft; } let handler = () => {}; let title = ...
web/src/js/components/Authentication/SignInIframeMessage.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import Paper from '@material-ui/core/Paper' import Typography from '@material-ui/core/Typography' import Button from '@material-ui/core/Button' import Link from 'js/components/General/Link' import { constructUrl, loginURL } from 'js/navigation/navigation' imp...
docs/src/app/components/pages/components/Popover/ExampleConfigurable.js
lawrence-yu/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import RadioButton from 'material-ui/RadioButton'; import Popover from 'material-ui/Popover/Popover'; import {Menu, MenuItem} from 'material-ui/Menu'; const styles = { h3: { marginTop: 20, fontWeight: 400, }, block: { dis...
Week02-Jest-Create-React-App/client/src/index.js
bmeansjd/ISIT320_means2017
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
lib/creators/createRouteGroupV4/getIndexContent.js
orionsoft/atom
'use babel' const forRN = function(name) { return `import React from 'react' import {Text, View} from 'react-native' import styles from './styles' import {Route, Switch} from 'react-router-dom' export default class ${name} extends React.Component { static propTypes = {} render() { return ( <View styl...
node_modules/react-native/local-cli/templates/HelloWorld/index.android.js
aksharora/ReactNativeDemoBasic
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
packages/react-devtools-shell/src/app/InspectableElements/NestedProps.js
TheBlasfem/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; const object = { string: 'abc', longString: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKJLMN...
src/components/NotFoundPage.js
jongamble/wedding-site
import React from 'react'; import { Link } from 'react-router'; export default class NotFoundPage extends React.Component { render() { return ( <div className="not-found"> <h1>404</h1> <h2>Page not found!</h2> <p> <Link to="/">Go back to the main page</Link> </p> ...
src/svg-icons/av/forward-10.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward10 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0...
src/components/atoms/Container/Container.js
mdapper/marcelodapper
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const Container = ({ children }) => <Wrapper>{children}</Wrapper>; const Wrapper = styled.div` margin-left: auto; margin-right: auto; @media (min-width: 768px) { max-width: 720px; } @media (min-width:...
src/icons/TimerIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class TimerIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M30 2H18v4h12V2zm-8 26h4V16h-4v12zm16.05-13.23l2.85-2.85c-.86-1.03-1.8-1.97-2.83-2.83l-2.85 2.85C32.15 9.48 ...
app/components/controls/SelectDialog.js
weerakkodylr/react-native-login
import React from 'react' import { View, Text, TouchableOpacity, StyleSheet, TouchableHighlight,ListView, } from 'react-native' export default class SelectDialog extends React.Component{ constructor(props){ super(props); const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); this.listDataSo...
src/client/pages/project/MemberList.js
callmeJozo/MKRN
import React from 'react'; import { Link } from 'react-router'; import { Button, Icon, Menu, Dropdown, Modal, message } from 'antd'; import ProjectStore from '../../stores/project'; class ProjectDetailApi extends React.Component { constructor(props) { super(props); this.state = { projec...
config/componentData.js
ibenavides/ps-react-ibenavides
module.exports = /* eslint-disable */ [{"name":"Button","description":"","props":{"disabled":{"type":{"name":"bool"},"required":false,"description":"","defaultValue":{"value":"false","computed":false}},"onClick":{"type":{"name":"func"},"required":false,"description":""},"children":{"type":{"name":"node"},"required":tru...
pages/api/input-label.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './input-label.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
packages/material-ui-icons/src/Receipt.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Receipt = props => <SvgIcon {...props}> <path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 ...
src/Container.js
zillding/react-console
import React from 'react' import Styles from './Styles' import Console from './Console' const containerStyle = { fontFamily: 'monospace', fontSize: 'small', overflow: 'auto', padding: 2, position: 'absolute', top: 0, bottom: 0, left: 0, right: 0 } const Container = ({ noFontawesome, style }) => ( ...
examples/main.js
vesparny/react-tabs
import { Tabs, Tab } from '@vesparny/react-tabs'; import React from 'react'; class App extends React.Component { render() { return ( <div> <Tabs alignLeft> <Tab heading="Tab 1"> <div>tab 1 content</div> </Tab> <Tab heading="Tab 2"> <div>tab 2 ...
src/components/Feedback/Feedback.js
AndrewKishino/react-playground
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Feedback.scss'; class Feedback extends Component { render() { return ( <div className={s.root}> <div className={s.container}> <a className={s.link} href="https://gi...
src/routes/ItemShop/components/ItemShopView.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import ContentContainer from 'components/ContentContainer' import ItemCard from 'components/ItemCard' import { getMsg } from 'utils/commonUtil' class ItemShopView extends React.Component { constru...
src/components/Header.js
MartinP-C/my-site
import React from 'react'; import NavLink from './NavLink'; import bookImage from '../assets/images/book.svg'; /* TODO: Array of links and loop. Array from cms? */ const Header = () => ( <nav className="navbar navbar-light fixed-top"> <div className="container-fluid"> <div className="navbar-header"> ...
app/javascript/flavours/glitch/components/column_header.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; import Icon from 'flavours/glitch/components/icon'; const messages = defineMessages({ show: { id: 'c...
packages/cf-component-card/src/CardToolbar.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; class CardToolbar extends React.Component { render() { return ( <div className="cf-card__toolbar"> <div className="cf-card__toolbar_controls"> {this.props.controls} </div> <div className="cf-card__toolbar_link...
docs/src/pages/index.js
kmagiera/react-native-gesture-handler
import React from 'react'; import classnames from 'classnames'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const heroImageUrl = '...
src/elements/Header/HeaderSubheader.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, } from '../../lib' /** * Headers may contain subheaders. */ function HeaderSubheader(props) { const { children, className...