path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Select/Select.js
ilyagru/react-currency-converter
import React from 'react'; import Option from '../Option'; function Select(props) { const { selectedCurrency, handleSelectChange, rates } = props; let options = rates; if (options !== undefined) { options = options.map((rate, index) => { return <Option currency={rate.currency} key={ra...
src/clincoded/static/components/score/viewer.js
ClinGen/clincoded
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import CASE_INFO_TYPES from './constants/case_info_types'; import { getAffiliationName } from '../../libs/get_affiliation_name'; var _ = require('underscore'); // Render scores viewer in Ge...
components/devices.js
gembarrett/hamara-internet-app
import React from 'react'; import { StyleSheet, ImageBackground, TouchableOpacity, Text, View, Button, ScrollView } from 'react-native'; import MenuText from './sub/menuText.js'; import { devices } from '../routes/lvl2.js'; import { prefs } from '../routes/prefs.js'; import { translatedTitle, translatedText } from '../...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
sfshine/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
src/toast/toast.js
ricsv/react-leonardo-ui
import React, { Component } from 'react'; import { createPortal } from 'react-dom'; import TOAST_STATE from '../overlay-state'; import { luiClassName } from '../util'; const FADE_DURATION = 200; let currentId = 0; const getOrCreateContainer = (parentElement) => { let element = document.getElementById('lui-toast-co...
contrib/webui/src/arxiv/row/index.js
roscopecoltran/papernet
import React from 'react'; import { List } from 'immutable'; import { Link } from 'react-router'; import moment from 'moment'; import PropTypes from 'prop-types'; import Tooltip from 'rc-tooltip'; import 'rc-tooltip/assets/bootstrap.css'; import ReadMoreMarkdown from 'components/markdown/read-more'; import TagList ...
templates/rubix/demo/src/routes/Codemirrorjs.js
jeffthemaximum/jeffline
import React from 'react'; import { Row, Col, Grid, Panel, PanelBody, PanelHeader, FormControl, PanelContainer, } from '@sketchpixy/rubix'; import codesnippet from './codesnippet.txt'; export default class Codemirrorjs extends React.Component { componentDidMount() { var editor = CodeMirror.from...
src/svg-icons/editor/insert-comment.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertComment = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); EditorInsertCom...
src/components/catalog/Catalog.js
dloret/support-hub
import React from 'react'; import './Catalog.css'; import dataSource from '../../assets/data-sources/links.json'; import {Title} from './Title'; const menus = [...new Set(dataSource.map((link) => link.context))]; export default class Catalog extends React.Component { constructor(props) { super(props); this...
example/src/components/legend-options.js
jerairrest/react-chartjs-2
import React from 'react'; import {Pie} from 'react-chartjs-2'; const data = { labels: [ 'Red', 'Green', 'Yellow' ], datasets: [{ data: [300, 50, 100], backgroundColor: [ '#FF6384', '#36A2EB', '#FFCE56' ], hoverBackgroundColor: [ '#FF6384', '#36A2EB', '#FFCE56'...
imports/client/ui/pages/WhitePaper/Why/Content.js
mordka/fl-events
// External Libraries import React from 'react' import { Container, Col } from 'reactstrap' // Internal Imports import DCSLink from '/imports/client/ui/components/DCSLink/index.js' import i18n from '/imports/both/i18n/en/' const Content = (props) => { return ( <React.Fragment> <Container className="mt-5 m...
docs/src/app/components/pages/components/Divider/ExampleMenu.js
spiermar/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import {Menu, MenuItem} from 'material-ui/Menu'; const style = { // Without this, the menu overflows the CodeExample container. float: 'left', }; const DividerExampleMenu = () => ( <Menu desktop={true} style={style}> <MenuItem primaryText...
app/containers/StatusPage/index.js
liuyanghejerry/react-westworld
/* * * StatusPage * */ import React from 'react'; import { connect } from 'react-redux'; import selectStatusPage from './selectors'; // import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; // import messages from './messages'; import { LargeProgressBar, SmallProgressBar } from '...
website/src/pages/index.js
facebook/litho
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * 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 app...
tp-3/marisol/src/components/pages/about/AboutPage.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; // Since this component is simple and static, there's no parent container for it. const AboutPage = () => { return ( <div> <h2 className="alt-header">About Me</h2> <p> About Page </p> </div> ); }; export default AboutPage;
src/app/core/atoms/icon/icons/anchor.js
blowsys/reservo
import React from 'react'; const Anchor = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M12.0361,20 C8.3661,20 4.9791,18.005 3.1971,14.794 L4.9461,13.823 C6.2061,16.094 8.4661,17.603 11.0001,17.93 L11.0001,10.013 L6.7371,8.308 C6.4801,8.205 6.3111,7.956 6.3111,7.678 C6.3111,7.304 6.6151,7 6.9891,7 L10.0...
src/svg-icons/maps/local-printshop.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPrintshop = (props) => ( <SvgIcon {...props}> <path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"...
Examples/SlideButtonExample/SlideButtonExample.js
sreejithr/react-native-slide-button
/** * Slide Button Example Component **/ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, Image } from 'react-native'; import { SlideButton, SlideDirection } from 'react-native-slide-button'; var Dimensions = require('Dimensions'); var SCREEN_WIDTH = Dimensions.get(...
docs/pages/blog/april-2019-update.js
lgollut/material-ui
import React from 'react'; import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'blog/april-2019-update'; const requireRaw = require.context('!raw-loader!./', false, /april-2019-update\.md$/); export default...
src/components_backup/Feedback/Feedback.js
justincdalton/iso-birchbox
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedb...
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/Shared/Message.js
Minoli/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
src/components/MaintainSources/MaintainSources.js
RegOpz/RegOpzWebApp
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import { bindActionCreators, dispatch } from 'redux'; import { Link } from 'react-router'; import _ from 'lodash'; import DatePicker from 'react-datepicker'; import moment from 'moment'; import { actionF...
components/TodoItem.js
lsgoulart/another-todo-list
import React, { Component } from 'react'; import actions from '../redux/actions'; export default class TodoItem extends Component { _toggleComplete(_id) { this.props.dispatch(actions.toggleCompleteTodo(_id)); } _setPriority(_id) { this.props.dispatch(actions.setPriorityTodo(_id)); } ...
src/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z"/> </SvgIcon> ); DeviceSignalCellularC...
src/InputBase.js
jamon/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import FormGroup from './FormGroup'; class InputBase extends React.Component { getInputDOMNode() { return React.findDOMNode(this.refs.input); } getValue() { if (this.props.type === 'static') { return this.props.value; } else if (t...
project/vip/frontend/src/router/routeMap.js
webLeeSun/webleesun.github.io
import React from 'react' // import { Router, Route, IndexRoute } from 'react-router' import { Switch, Route, Router, Redirect } from 'react-router' import Home from '../containers/Home' import Room from '../containers/Room/index' //import ShippingAddress from '../containers/ShippingAddress' import LivingEnd from '../...
client/src/components/NotFound.js
fraktio/teamdaily
import React from 'react'; export default () => <div> <div>404 LOSONAAMA</div> <div>Grande pagina non esiste</div> </div>;
src/svg-icons/av/forward-5.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward5 = (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.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1....
src/container/dev-tools.js
KleeGroup/focus-notifications
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; //npm i redux-devtools-dock-monitor redux-devtools-log-monitor export default createDevTools( <DockMonitor toggleVisibilit...
spec/javascripts/jsx/theme_editor/ThemeEditorSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
assets/js/src/components/Dashboard/Dashboard.js
nathandao/git.report
import React from 'react'; import _ from 'lodash'; import RepoCell from 'components/Charts/RepoCell'; import HourlyCommits from 'components/Charts/HourlyCommits'; import TodayOverview from 'components/Dashboard/TodayOverview'; import ReposOverview from 'components/Dashboard/ReposOverview'; import RepoSelector from 'co...
src/Value.js
Paveltarno/react-select
import React from 'react'; import classNames from 'classnames'; const Value = React.createClass({ displayName: 'Value', propTypes: { children: React.PropTypes.node, disabled: React.PropTypes.bool, // disabled prop passed to ReactSelect onClick: React.PropTypes.func, // method to ...
src/js/components/n-radio.js
bradwoo8621/parrot2
import React from 'react' import ReactDOM from 'react-dom' import jQuery from 'jquery' import classnames from 'classnames' let $ = jQuery; import {Envs} from '../envs' import {Model} from '../model/model' import {NComponent, NCodeTableComponent} from './n-component' class NRadio extends NCodeTableComponent(NComponent)...
src/App.js
AndreStabile/pokedex
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> ...
packages/es-components/src/components/controls/DismissButton.js
jrios/es-components
import React from 'react'; import styled from 'styled-components'; import screenReaderOnly from '../patterns/screenReaderOnly/screenReaderOnly'; import Icon from '../base/icons/Icon'; const DismissButtonBase = styled.button` background-color: transparent; border: 0; cursor: pointer; display: flex; font-weigh...
packages/react/src/components/DataTable/TableBatchAction.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import { AddFilled16 as iconAddSolid } from '@carbon/icons-react'; import Butt...
src/components/DevTools.js
pahomovda/react-redux-router-material-ui-seed
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-q" defaultIsVisible={fal...
src/svg-icons/image/photo-camera.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24...
views/components/Logo/index.js
Chibaheit/eventer
/* * Blipay Logo */ import React from 'react'; import logo from './logo.png'; class Logo extends React.Component { render() { return ( <img src={logo} {...this.props} /> ); } } export default Logo;
app/components/team/Members/user.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import User from '../../shared/User'; export default class TeamMembersUser extends React.PureComponent { static displayName = "Team.Members.User"; static propTypes = { user: PropTypes.shape({ name: PropTypes.string.isRequired, email: ...
geonode/monitoring/frontend/monitoring/src/components/cels/alerts/index.js
francbartoli/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
src/common/components/CloseButton.js
killpowa/Twickt-Launcher
import React from 'react'; import styled from 'styled-components'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faWindowClose } from '@fortawesome/free-solid-svg-icons'; const CloseButton = props => { return ( // eslint-disable-next-line <CloseIcon {...props}> <FontAwesome...
src/svg-icons/social/party-mode.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPartyMode = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 ....
app/javascript/mastodon/features/notifications/components/column_settings.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import GrantPermissionButton from './grant_permission_button'; import SettingToggle from './set...
frontend/src/components/posts-list/post/select.js
1905410/Misago
/* jshint ignore:start */ import React from 'react'; import { isVisible } from './controls'; import * as posts from 'misago/reducers/posts'; import store from 'misago/services/store'; export default class extends React.Component{ onClick = () => { if (this.props.post.isSelected) { store.dispatch(posts.dese...
src/components/SearchGiphy.js
aalselius/Test
import React, { Component } from 'react'; import Input from './Input.js'; import Image from './Image.js'; import InfoText from './InfoText.js'; import Header from './Header.js'; class SearchGiphy extends Component { constructor() { super(); this.state = { imageUrl: '', u...
src/scripts/VideoImage.js
whoisandie/yoda
'use strict'; import React from 'react'; import Join from 'react/lib/joinClasses'; import VideoDuration from './VideoDuration'; export default React.createClass({ componentDidMount() { var imgTag = React.findDOMNode(this.refs.image); var imgSrc = imgTag.getAttribute('src'); var img = new window.Image()...
client/Tasks/TaskOne.js
AnnotatedJS/meteor-react-start-app
import React from 'react'; import TaskDelete from './TaskDelete'; import TaskOpenClosed from './TaskOpenClosed'; import TaskPrivate from './TaskPrivate'; import TaskText from './TaskText'; export default class TaskOne extends React.Component { constructor(props) { super(props); } isLoggedInUser...
Examples/UIExplorer/js/ActivityIndicatorExample.js
callstack-io/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...
src/components/app.js
SupachaiChaipratum/ReduxSimpleStarter
import React, { Component } from 'react'; import CommentBox from './comment_box'; import CommentList from './comment_list'; export default class App extends Component { render() { return ( <div> <CommentBox /> <CommentList /> </div> ); } }
client/modules/User/__tests__/components/PostListItem.spec.js
Hitzk0pf/BetterBackPacking
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
src/index.js
andrit/VideoListReact
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/app'; ReactDOM.render( <App /> , document.querySelector('.container'));
frontend/src/screens/selection-viewer/selection-viewer.js
desihub/qlf
import React from 'react'; import Paper from '@material-ui/core/Paper'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import Petals from '../../components/petals/petals'; import Radio from '@material-ui/core/Radio'; import RadioGroup from '@material-ui/core/RadioGroup'; impo...
plugins-test/iscroll-react/src/main.js
fengnovo/diary
import React from 'react'; import ReactDom from 'react-dom'; // import 'react-fastclick'; import './css/app.scss'; import App from './js/App.jsx'; ReactDom.render( <App />, document.getElementById('app'));
generators/crud/templates/crud-routes/crud-route.tmpl.js
societe-generale/react-loopback-generator
import React from 'react'; import { Route } from 'react-router'; import <%= viewClassName %> from '../containers/<%= entityFileName %>'; const route = ( <Route path="<%= entityFileName %>" component={<%= viewClassName %>} /> ); export default route;
components/header.js
hillcitymnag/www.hillcitymnag.church
import React from 'react' import css from 'next/css' import { color, mediaQuery, pseudo } from '../shared/constants' export default () => ( <div className='parallax' {...parallax}> <div {...parallaxBackground}> <img alt='' className='parallax-background-image' src='static/img/background.jpg' {...par...
src/components/WeatherForecast/WeatherForecast.js
Mikosko/EimPanel
/** * @Author: Miloš Kolčák * @Date: 2017-01-04T15:32:41+01:00 * @Email: milos.kolcak@gmail.com * @Last modified by: Miloš Kolčák * @Last modified time: 2017-01-10T13:29:22+01:00 */ import React from 'react' import style from './style.scss' import Block from './WeatherForecastBlock' import ComponentWrapper from ...
src/containers/DevTools.js
ToniChaz/react-redux
import React from 'react' // Exported from redux-devtools import { createDevTools } from 'redux-devtools' // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' // createDevTools takes a monitor and pr...
src/components/TickerPrice.js
nsisodiya/DemoStockApp
/** * Created by narendrasisodiya on 06/03/17. */ import React from 'react'; import styled from 'styled-components'; function decideBackgroundColor(props) { let color; if (props.oldVal === undefined) { return 'white'; } if (props.newVal < props.oldVal) { color = 'red'; } else { color = 'green'...
src/pages/hush.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Hush' /> )
src/app/components/CurrentBill/index.js
mahimaag/react-web-boilerplate
import React from 'react'; import style from './style.scss'; export default class CurrentBill extends React.Component{ render () { return ( <div className="card"> <h3 className="title">My Current Bill</h3> <p>Your Current Bill Amount</p> <div clas...
src/views/task.js
dreitagebart/crispyScrum
import _ from 'lodash' import React from 'react' import { connect } from 'react-redux' import { boardCreate } from '../actions' import { Button, Col, Row, Form, Input } from 'antd' @connect((store, props) => { const { tasks } = store.root return { task: _.find(props.tasks, { _id: props.match.params.id }) } }...
src/svg-icons/action/swap-horiz.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapHoriz = (props) => ( <SvgIcon {...props}> <path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/> </SvgIcon> ); ActionSwapHoriz = pure(ActionSwapHoriz); ActionSwapHoriz.d...
node_modules/react-select/examples/src/components/NumericSelect.js
Alex-Shilman/Drupal8Node
import React from 'react'; import Select from 'react-select'; var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes.string }, getInitialState () { return { options: [ { value: 10, label: 'Ten' }, { value: 11, label: 'Eleven' }, { ...
docs/src/pages/premium-themes/onepirate/modules/form/RFTextField.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import TextField from '../components/TextField'; function RFTextField(props) { const { autoComplete, input, InputProps, meta: { touched, error, submitError }, ...other } = props; return ( <TextField error={Boolean(touch...
packages/web/src/components/screens/import/ImportFileDropzone.js
hwaterke/inab
import cuid from 'cuid' import Papa from 'papaparse' import PropTypes from 'prop-types' import {head} from 'ramda' import React from 'react' import Dropzone from 'react-dropzone' import FontAwesome from 'react-fontawesome' import styled from 'styled-components' import {Box} from '../../presentational/atoms/Box' import ...
scripts/components/pages/testPage/testPage.js
SwordSoul/testpage
import React from 'react'; import {branch} from 'baobab-react/decorators'; @branch({ cursors: { salesForceAdded: ['user', 1, 'salesForce', 'salesForceAdded'] } }) class
src/components/Header/Header.js
Rockyluoqi/map_realtime_render
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; import withStyle...
src/containers/DevToolsWindow.js
Anomen/universal-react-redux-starter-kit
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; export default createDevTools( <LogMonitor /> );
src/App.js
WilliamHolmes/Apollo_Client_Test
import React from 'react'; import { connect } from 'react-apollo'; export class MyName extends React.Component { constructor(props) { super(props); } render() { console.log('Props', this.props); return ( <div>Hello World</div> ); } } const mapQueriesToProps = ({ ownProps, state }) => { ...
packages/material-ui-icons/src/Motorcycle.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2 5-5c0-2.65-1.97-4.77-4.56-4.97zM7.82 15C7.4 16.1...
generators/presentation-component/templates/_Component.js
rjhilgefort/generator-react-modules
// @flow import React from 'react'; import styled from 'styled-components'; const Container = styled.div` `; const <%= componentName %> = () => ( <Container> </Container> ); export default <%= componentName %>;
examples/cra-kitchen-sink/src/stories/App.stories.js
storybooks/storybook
// FIXME: svgr issue @igor-dv import React from 'react'; import App from '../App'; export default { title: 'App', parameters: { layout: 'fullscreen', }, }; export const FullApp = () => <App />; FullApp.storyName = 'full app';
examples/index.js
chentsulin/react-scrolla
import React from 'react'; import ReactDom from 'react-dom'; import App from './app/App'; ReactDom.render( <App />, document.getElementById('react-root') );
app/components/LoaderComponent.js
tjinauyeung/customization-requests-app
import React from 'react'; class LoaderComponent extends React.Component { render() { return ( <div className="loader__container"> <div className="loader"></div> </div> ) } }; export default LoaderComponent;
fields/types/datearray/DateArrayField.js
everisARQ/keystone
import ArrayFieldMixin from '../../mixins/ArrayField'; import DateInput from '../../components/DateInput'; import Field from '../Field'; import React from 'react'; import moment from 'moment'; const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'; const DEFAULT_FORMAT_STRING = 'Do MMM YYYY'; module.exports = Field.create({ dis...
client/views/admin/apps/AppSettingsAssembler.js
VoiSmart/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import { capitalize } from '@rocket.chat/string-helpers'; import React from 'react'; import AppSetting from './AppSetting'; const AppSettingsAssembler = ({ settings, values, handlers }) => ( <Box> {Object.values(settings).map((current) => { const { id } = current; ...
packages/vx-hierarchy/src/hierarchies/Tree.js
Flaque/vx
import React from 'react'; import cx from 'classnames'; import { Group } from '@vx/group'; import { tree as d3tree } from 'd3-hierarchy'; export default function Tree({ top, left, className, root, size, nodeSize, separation, linkComponent, nodeComponent, ...restProps }) { const tree = d3tree(); ...
public/js/components/LivingHabits.js
Vabrins/CadernetaDoIdoso
import React from 'react'; import $ from 'jquery'; import { Link } from 'react-router-dom'; const initialState = { do_you_go_to_day_centers_clubs_or_social_groups_2_11:'', do_you_do_any_volunteer_work_2_11:'', do_you_have_any_leisure_activities_2_11:'', do_you_engage_type_ph_act_least_three_tm_week_2_11:'', would_yo...
app/javascript/mastodon/features/blocks/index.js
yukimochi/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import PropType...
spec/javascripts/jsx/gradebook/default_gradebook/GradebookGrid/editors/AssignmentGradeInput/CompleteIncompleteGradeInputSpec.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/renderer/components/MapFilter/ObservationDialog/DateField.js
digidem/ecuador-map-editor
// @flow import React from 'react' import { DatePicker } from '@material-ui/pickers' import { getDateString } from '../utils/helpers' type Props = { value: Date | void, onChange: (string | void) => any, placeholder?: string } const DateField = ({ value, onChange, placeholder, ...otherProps }: Props) => { retu...
docs/js/index.js
osartun/react-carousel-scroller
import React from 'react'; import ReactDOM from 'react-dom'; import Showcase from './showcase'; ReactDOM.render( <Showcase />, document.getElementById('showcase-container') )
src/svg-icons/image/looks-4.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks4 = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 14h-2v-4H9V7h2v4h2V7h2v10z"/> </SvgIcon> ); ImageLooks4 = pure(ImageLoo...
src/components/common/icons/Question.js
chejen/GoodJobShare
import React from 'react'; /* eslint-disable max-len */ const Question = props => ( <svg {...props} width="148" height="148"> <g fillRule="evenodd"> <path d="M41 0C18.392 0 0 18.392 0 41s18.392 41 41 41 41-18.392 41-41S63.608 0 41 0zm0 76.875C21.219 76.875 5.125 60.781 5.125 41S21.219 5.125 41 5.125 76.875...
src/containers/Home/Home.js
DelvarWorld/some-game
import React, { Component } from 'react'; import { Link } from 'react-router'; import config from '../../config'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { submitSplashEmail, } from 'redux/modules/users'; import gameStyles from '../G...
src/examples/Form/LanguageForm.js
steos/elmar.js
import React from 'react' const languages = ['Clojure', 'Haskell', 'Elm', 'PureScript', 'Pixie', 'Agda', 'Idris'] export const init = (langs = []) => langs export const update = (action, model) => action(model) const Toggle = lang => model => model.indexOf(lang) === -1 ? model.concat(lang) : model.fil...
example/src/index.js
salmanm/react-keydown
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; ReactDOM.render( <App />, document.getElementById( 'example' ) );
serverRender.js
jsize8/learn-fullstack-javascript
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import App from './src/components/App'; import config from './config'; import axios from 'axios'; const getApiUrl = contestId => { if (contestId) { return `${config.serverUrl}/api/contests/${contestId}`; } return `${config.serverUrl}...
app/components/candidate/CandidateApp.js
wp-wilsonperez/votos
import React from 'react'; import CandidateTable from './CandidateTable'; class CandidateApp extends React.Component { constructor(props) { super(props); this.state = {candidates: [], candidateState: false, share: false}; } componentWillMount() { if(!this.state.candidateState) { $.ge...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
jefdewitt/jekyll_portfolio
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/PhotoLayoutEditor/Container/Side/Navigation/index.js
RedgooseDev/react-photo-layout-editor
import React from 'react'; class SideNavigation extends React.Component { constructor(props) { super(props); this.comps = { inputFile: null, }; this.state = { timestamp : Date.now(), }; } /** * Upload images * * @param {Event} e */ upload(e) { this.props.onUpload(e.target.files); t...
src/client/components/FacebookLoginWidget/FacebookLoginWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' const FacebookLoginWidget = ({ name = 'FacebookLoginWidget' }) => { return ( <div> <h3>Widget</h3> {name} </div> ) } FacebookLoginWidget.displayName = 'FacebookLoginWidget' export default FacebookLoginWidget // import log from '../../log' /...
src/routes/error/ErrorPage.js
binyuace/vote
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/frontend/components/AdminDashboard.js
al3x/ground-control
import React from 'react'; import Relay from 'react-relay'; import {Styles} from 'material-ui'; import TopNav from './TopNav'; import {BernieTheme} from './styles/bernie-theme'; import {BernieColors} from './styles/bernie-css'; @Styles.ThemeDecorator(Styles.ThemeManager.getMuiTheme(BernieTheme)) class AdminDashboard e...
githubApp/js/pages/my/CustomKeyPage.js
anchoretics/ztf-work-app
/** * Created by lingfengliang on 2017/3/17. */ import React, { Component } from 'react'; import { StyleSheet, TextInput, View, ScrollView, Image, TouchableOpacity, ListView, RefreshControl } from 'react-native'; import NavigationBar from '../../Components/NavigationBar'; import { Lis...
node_modules/react-bootstrap/es/SafeAnchor.js
firdiansyah/crud-req
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 ...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
glancyea/wastepermitcontent
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'));
examples/App.js
djesmond/agileField
import React, { Component } from 'react'; import './App.css'; import { AgileTextField, PasswordField, NumberField, Checkbox } from '../src/index'; function customValidator(input) { if (input.length > 6) { return { isValid: false, message: 'Must be less than 6 characters', state: 'invalid', ...
src/svg-icons/action/euro-symbol.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEuroSymbol = (props) => ( <SvgIcon {...props}> <path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 ...