path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
pootle/static/js/admin/components/Project/ProjectForm.js
Finntack/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import FormElement from 'compo...
src/mobile/containers/Chat.js
u-wave/web
import React from 'react'; import { useSelector } from 'react-redux'; import { isLoggedInSelector } from '../../selectors/userSelectors'; import ChatMessages from '../../containers/ChatMessages'; import ChatInput from '../../containers/ChatInput'; import LoginButtons from './LoginButtons'; function ChatContainer() { ...
packages/docs/components/Examples/linkify/CustomLinkifyEditor/index.js
draft-js-plugins/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from '@draft-js-plugins/editor'; import createLinkifyPlugin from '@draft-js-plugins/linkify'; import editorStyles from './editorStyles.module.css'; const linkifyPlugin = createLinkifyPlugin({ target: '_blank' }); const plug...
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/sidebar.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { localize } from 'i18n-calypso'; import { CheckboxControl } from '@wordpress/components'; /** * Internal dependenci...
frontend/src/lib/mui-components/ComboboxDialog/components/Button.js
jf248/scrape-the-plate
import React from 'react'; import Close from '@material-ui/icons/Close'; import { InputAdornment, ButtonBase, withStyles } from '@material-ui/core'; const style = theme => ({ icon: { color: theme.palette.text.secondary, }, }); function Button(props) { const { classes, disabled, downshift: { clea...
src/components/configuration/PortType.component.js
acateland/react-flow-designer
import PropTypes from 'prop-types'; import React from 'react'; import invariant from 'invariant'; class PortType extends React.Component { static displayName = 'PortType'; static propTypes = { type: PropTypes.string.isRequired, component: PropTypes.func.isRequired, }; render() { invariant( false, '<Po...
src/svg-icons/image/image.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageImage = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImageImage = p...
components/footer.js
kentcdodds/glamorous-website
import React from 'react' import glamorous from 'glamorous' import Separator from '../components/separator' import content from './content/footer.md' const Footer = glamorous.footer(props => ({ paddingTop: 10, paddingBottom: 10, fontSize: '0.6em', textAlign: 'center', background: props.theme.colors.white, })...
src/components/canvas/grid.js
robzsk/mm.editor
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Row from './row'; import { connect } from 'react-redux'; import { draw } from './../../actions/grid'; class Grid extends Component { getWidth() { return this.props.state.grid[0].length; } getHeight() { return this.props.st...
src/svg-icons/action/store.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionStore = (props) => ( <SvgIcon {...props}> <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/> </SvgIcon> ); ActionStore = pure(ActionStore); ActionStore.displayName = ...
packages/material-ui-icons/legacy/CastForEducationSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M23 3H1v5h2V5h18v14h-7v2h9V3zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm10 1.09v2L14.5 15l3.5-1.91v-2L14....
clients/packages/admin-client/src/mobilizations/widgets/components/tag.js
nossas/bonde-client
import PropTypes from 'prop-types' import React from 'react' var styles = require('exenv').canUseDOM ? require('./tag.scss') : {} const Tag = ({ value, onClick, onRemove }) => { const clickable = onClick && typeof onClick === 'function' const removable = onRemove && typeof onRemove === 'function' return ( ...
demo/index.js
rameshvk/j0
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import Demos from './Demos'; function main() { ReactDOM.render( React.createElement(Demos), document.getElementById('container') ); } main();
src/components/UserWelcome.js
loggur/lumbur
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { Form } from 'provide-page'; const UserWelcome = ({ classes, userId, userName, destroySession }) => { const logOut = () => destroySession(); const UserLink = ( <Link className={classes.UserLink} to={`/u...
src/containers/HomeContainer.js
orballo/orballo.github.io
import React from 'react'; import Home from '../components/Home'; const HomeContainer = () => <Home />; export default HomeContainer;
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
ivanshen/Se7en
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/js/components/Form/stories/HelpAndError.js
grommet/grommet
import React from 'react'; import { Box, Form, FormField, Text, TextInput } from 'grommet'; export const HelpAndError = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Box align="center" pad="large"> <Form> <FormField label="Label" htmlFor...
pages/api/css-baseline.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './css-baseline.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
app/js/app.js
andrewhuang/bullet-journal
import React from 'react'; import ReactDOM from 'react-dom'; import List from './components/Global/List.jsx'; import '../scss/app.scss'; // TODO: Data store singleton that keeps track of lists and tasks ReactDOM.render( <List />, document.getElementById('app') );
app/counter/containers/orient.js
littlethree/DemoProject
import React, { Component } from 'react'; import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Orientation from '../componets/RCTOrientation'; class orient extends Component { constructor() { su...
app/javascript/mastodon/components/icon_with_badge.js
rainyday/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; const formatNumber = num => num > 40 ? '40+' : num; const IconWithBadge = ({ id, count, className }) => ( <i className='icon-with-badge'> <Icon id={id} fixedWidth className={className} /> {count > 0 &...
src/server.js
telemark/portalen-web
import {Server} from 'hapi' import h2o2 from 'h2o2' import inert from 'inert' import httpProxy from 'http-proxy' import React from 'react' import ReactDOM from 'react-dom/server' import config from './config' import createStore from './redux/create' import ApiClient from './helpers/ApiClient' import Html from './helpe...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
natorojr/react-router
import React from 'react'; class Announcement extends React.Component { render () { var { courseId, announcementId } = this.props.params; var { title, body } = COURSES[courseId].announcements[announcementId]; return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } ...
src/FormSubmit.js
Lobos/react-ui
import React from 'react' import classnames from 'classnames' import PropTypes from './utils/proptypes' import { objectAssign } from './utils/objects' import Button from './Button' import FormStyles from './styles/_form.scss' export default function FormSubmit (props) { console.warn('FormSubmit is deprecated, use F...
webpack/components/pf3Table/components/TableBodyMessage.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; const TableBodyMessage = ({ colSpan, children }) => ( <tbody> <tr> <td colSpan={colSpan}>{children}</td> </tr> </tbody> ); TableBodyMessage.propTypes = { colSpan: PropTypes.number.isRequired, children: PropTypes.node.isRequired, }; ...
src/features/feed/feed-item-preview/feed-item-preview.component.js
sunstorymvp/playground
import React from 'react'; import classNames from 'classnames'; import styles from './feed-item-preview.css'; const FeedItemPreview = () => { const classList = classNames(styles.root); return ( <div className={ classList }> FeedItemPreview </div> ); }; export default FeedItemPreview;
src/views/pages/Demo/index.js
munza/react-reducks-starter
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { demoOperations } from '../../../state/ducks/demo'; import { Counter } from '../../../components'; import './styles.css'; class DemoPage extends Component { render() { return ( ...
src/components/chart.js
harunawaizumi/weather_graph
/** * Created by haruna on 9/28/17. */ import React from 'react' import _, {sum} from 'lodash' import {Sparklines, SparklinesLine, SparklinesReferenceLine} from 'react-sparklines' function average(data) { return _.round(sum(data) / data.length) } export default (props) => { return ( <div> ...
app/javascript/mastodon/features/compose/components/text_icon_button.js
mecab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.string, }; ...
auth/src/components/common/Header.js
sgcharameli/ReactNativeAndReduxCourse
//Import libraries to make a component import React from 'react'; import { Text, View } from 'react-native'; //Make a component const Header = (props) => { const { textStyle, viewStyle } = styles; return ( <View style={viewStyle}> <Text style={textStyle}>{props.headerText}</Text> <...
PageMenu.js
WholeFoodsCoop/ReactMobileApp
import React, { Component } from 'react'; import { View, Text, Image, TextInput, TouchableHighlight, ListView, StyleSheet } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import settings from './settings.json'; const styles = StyleSheet.create({ date...
node_modules/react-native/local-cli/generator/templates/index.android.js
tedsf/tiptap
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class <%= name %> extends Component { render() { return ( <View style={styles.container}> <T...
pages/blog/test-article-one.js
uraway/Markov
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 1</h1> <p>Co...
src/routes/Home/Home.js
DeloitteDigitalUK/react-redux-starter-app
import React from 'react'; import Repositories from '../../containers/RepositoriesContainer/'; import Search from '../../containers/SearchContainer/'; export const Home = () => ( <div className="row"> <div className="col-xs-12"> <Search /> <Repositories /> </div> </div> ); export default Home...
src/components/IntraCardTitle.js
carlyleec/cc-react
import React from 'react'; // eslint-disable-line import styled from 'styled-components'; const IntraCardTitle = styled.div` font-size: 4em; font-weight: 700; color: #607D8B; text-align: center; flex: 0 0 100%; `; export default IntraCardTitle;
src/components/Menu/EBIMenu/index.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import T from 'prop-types'; import MenuItem from 'components/Menu/MenuItem'; import { EBI } from 'menuConfig'; import { foundationPartial } from 'styles/foundation'; import fonts from 'EBI-Icon-fonts/fonts.css'; const iconStyle = foundationPartial(fonts); const EBIMenu = ( { c...
src/view/App.js
cleancodegame/clean-code-game
import React from 'react' import GameView from './GameView' import AppPage from './AppPage' import { connect } from 'react-redux' import ProgressBar from './components/ProgressBar' import 'bootstrap/dist/css/bootstrap.css' import './App.css' function App(props) { return ( <AppPage tallHeader={props.state === 'HO...
src/config/index.js
tallessa/tallessa-frontend
import React from 'react'; const defaultAppName = <span>Tallessa<sup style={{fontSize: '40%'}}>BETA</sup></span>; // TODO process.env probably not available in browser? const config = { app: { name: process.env.TALLESSA_APP_NAME || defaultAppName, url: process.env.TALLESSA_APP_URL || 'https://tallessa.eu'...
src/svg-icons/navigation/arrow-drop-down-circle.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDownCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/> </SvgIcon> ); NavigationArrowDropDownCircle =...
public/js/cat_source/es6/components/quality_report/QualitySummaryTableOldRevise.js
riccio82/MateCat
import React from 'react' const getTotalSeverities = (lqaNestedCategories) => { const severities = [] const severitiesNames = [] lqaNestedCategories.forEach((cat) => { if (cat.get('subcategories').size === 0) { cat.get('severities').forEach((sev) => { if (severitiesNames.indexOf(sev.get('label...
frontend/components/utilities/from-now.js
apostolidhs/wiregoose
import React from 'react'; import PropTypes from 'prop-types'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import Tooltip from 'react-bootstrap/lib/Tooltip'; import { fromNow, toText } from './dates.js'; export default class FromNow extends React.Component { static propTypes = { date: PropT...
packages/reactor-kitchensink/src/examples/TabPanel/TabPanel.js
markbrocato/extjs-reactor
import React from 'react'; import { TabPanel, Component, Container } from '@extjs/ext-react'; export default function TabPanelExample() { return ( <Container layout={{type: 'vbox', align: 'stretch'}} padding={10}> <TabPanel flex={1} shadow plain...
src/modules/mapping/components/CwpDialog/SectorPicker.js
devteamreims/4me.react
// @flow import React, { Component } from 'react'; import { sectors as envSectors } from '../../../../shared/env'; const { getClusters, prettyName, } = envSectors; import SingleGroupPicker from './SingleGroupPicker'; class SectorPicker extends Component { render() { const { boundSectors, tempS...
public/js/src/index/index.js
Lucifier129/Isomorphism-react-todomvc
import React from 'react' import { render } from 'react-dom' import Root from './containers/Root' import createStore from './store' import { SERVER_UPDATE } from './constants/SocketTypes' import { FILTER_ITEMS } from './constants/FilterTypes' const initialState = JSON.parse(document.getElementById('initialData').inner...
ignite/DevScreens/ThemeScreen.js
littletimo/beer-counter
import React from 'react' import { View, ScrollView, Text, Image, TouchableOpacity } from 'react-native' import { Colors, Fonts, Images } from './DevTheme' import R from 'ramda' // Styles import styles from './Styles/ThemeScreenStyles' // Colors const colors = R.keys(Colors) // Font Types const types = R.keys(Fonts.t...
src/entry.js
chaosdorf/labello
// @flow import './fonts.css'; import LabelForm from './LabelForm'; import React from 'react'; import ReactDOM from 'react-dom'; setTimeout(() => { ReactDOM.render(<LabelForm />, document.querySelector('#laibel')); }, 500);
examples/huge-apps/routes/Course/components/Nav.js
jwaltonmedia/react-router
import React from 'react' import { Link } from 'react-router' const styles = {} styles.nav = { borderBottom: '1px solid #aaa' } styles.link = { display: 'inline-block', padding: 10, textDecoration: 'none' } styles.activeLink = { ...styles.link, color: 'red' } class Nav extends React.Component { rende...
examples/src/components/CustomSingleValue.js
jo-asakura/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var SingleValue = React.createClass({ propTypes: { placeholder: React.PropTypes.string, value: React.PropTypes.object }, render () { var obj = this.props.value; var size = 15; var gravatarStyle = { borderRadius: 3, display: 'inline-bl...
src/js/components/app.js
mark-riley/react-starter
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> { this.props.children } </div> ); } }
webapp/src/components/Console/Console.js
OverStruck/deep-dream-maker
import React from 'react' // import withStyles from '@material-ui/core/styles/withStyles'; // import Grid from '@material-ui/core/Grid'; // const ContainerStyled = withStyles({ // root: { // backgroundColor: "#1f4068", // fontFamily: "monospace", // flexBasis: "50%", // overflow: "auto", // flexW...
docs/src/pages/component-demos/chips/Chips.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Avatar from 'material-ui/Avatar'; import Chip from 'material-ui/Chip'; import FaceIcon from 'material-ui-icons/Face'; import grey from 'material-ui/colors/grey'; import uxecoImage from '...
pages/blog/test-article-two.js
creeperyang/react-static-boilerplate
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 2</h1> <p>Co...
src/class/history-sync/TraktURLForm.js
tegon/traktflix
import PropTypes from 'prop-types'; import React from 'react'; class TraktURLForm extends React.Component { constructor(props) { super(props); this.state = {traktURL: undefined}; } _onSubmit() { this.props.onSubmit(this.props.activity, this.state.traktURL); } _onChange(event) { this.setStat...
src/svg-icons/device/brightness-low.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessLow = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
app/main.js
fyafighter/informifly
import React from 'react'; import Router from 'react-router'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import routes from './routes'; import Navbar from './components/Navbar'; let history = createBrowserHistory(); ReactDOM.render(<Router history={history}>...
YEAR 3/SEM 1/MOBILE/non-native/PhotoReact/screens/CardScreen.js
Zephyrrus/ubb
import React from 'react'; import { Platform, ScrollView, StyleSheet, Text, Image, View, TouchableWithoutFeedback, } from 'react-native'; import { WebBrowser } from 'expo'; import { Card, ListItem, Button, Icon } from 'react-native-elements' import { AsyncStorage } from "react-native"; const lessons = ...
src/components/icons/LocationIcon.js
maximgatilin/weathernow
import React from 'react'; export default function LocationIcon(props) { return ( <svg viewBox="0 0 52 52" className={props.styles}> <path fill="#fff" d="M38.853,5.324L38.853,5.324c-7.098-7.098-18.607-7.098-25.706,0h0 C6.751,11.72,6.031,23.763,11.459,31L26,52l14.541-21C45.969,23.763,45.249,11.72,38.853,5.32...
src/Glyphicon.js
aparticka/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Glyphicon = React.createClass({ propTypes: { /** * bootstrap className * @private */ bsClass: React.PropTypes.string, /** * An icon name. See e.g. http://getbootstrap.com/components/#glyphicons */ glyph: Re...
client/src/components/nav/NavAuth.js
kevinladkins/newsfeed
import React from 'react' import {NavLink} from 'react-router-dom' const NavAuth = ({logout}) => <nav className="navbar"> <NavLink className="navlink" to="/sources" >Add Channels</NavLink> <span className="navlink" onClick={(e) => {logout(e)}} >Logout</span> ...
client/containers/login.js
ckiss/vidi-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {login} from '../actions/auth' import {pushPath} from 'redux-simple-router' export const Login = React.createClass({ componentDidMount() { const {isLoggedIn, dispatch} = this.props if (isLoggedIn) { dispatch(pushPath('/...
packages/resource-step/src/status-icon.js
yldio/joyent-portal
import React from 'react'; import Flex, { FlexItem } from 'styled-flex-component'; import { Margin } from 'styled-components-spacing'; import styled from 'styled-components'; import remcalc from 'remcalc'; import is from 'styled-is'; import { H5 as BaseH5, TickIcon, CloseIcon } from 'joyent-ui-toolkit'; const H5 = st...
frontend/js/components/environments/EditUserForm.js
ttavenner/okcandidate-platform
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Card from './../atoms/Card'; import { fetchUser } from './../../redux/actions/admin-actions'; class EditUserForm extends Component { constructor(props) { super(props); ...
src/index.js
afikris6/afikris6.github.io
import React from 'react'; import { render } from 'react-dom'; import { createStore, compose, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import reducer from './reducers'; import App from './containers/App'; import persistState from './middleware/persistState'; import './style.css'; ...
src/svg-icons/image/filter-6.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter6 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-2...
node_modules/react-bootstrap/es/MediaRight.js
premcool/getmydeal
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 ...
examples/huge-apps/routes/Profile/components/Profile.js
kurayama/react-router
import React from 'react' class Profile extends React.Component { render() { return ( <div> <h2>Profile</h2> </div> ) } } export default Profile
src/components/form-inputs/textarea.js
aichbauer/redux-valid-form
import React from 'react'; import PropTypes from 'prop-types'; import Input from '../../containers/input'; const Textarea = (props) => ( <Input type={props.type} data-form-id={props['data-form-id']} className={props.className} id={props.id} max={props.max} min={props.min} placeholder={...
dist/lib/carbon-fields/assets/js/fields/components/oembed/index.js
ArtFever911/statrer-kit
/** * The external dependencies. */ import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { isEmpty, debounce } from 'lodash'; import { compose, withHandlers, setStatic, withState } from 'recompose'; /** * The internal dependencies. */ impor...
src/svg-icons/device/data-usage.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDataUsage = (props) => ( <SvgIcon {...props}> <path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53...
src/components/ContestList.js
jritterbush/fulljs
import React from 'react'; import ContestPreview from './ContestPreview'; const ContestList = ({ contests, onContestClick }) => { return ( <div className="ContestList row"> {Object.keys(contests).map(contestId => <ContestPreview onClick={onContestClick} ...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
TimurTarasenko/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
tests/react_children/view.js
mroch/flow
// @flow import React from 'react'; type ReactNodeWithoutString = | void | null | boolean | React$Element<any> | Array<ReactNodeWithoutString>; // NOTE: This is intentionally `Array<T>` and // not `Iterable<T>` because `strings` are // `I...
frontend/src/app/index.js
mozilla/testpilot
import 'babel-polyfill/browser'; import 'l20n/dist/compat/web/l20n'; import es6Promise from 'es6-promise'; import 'isomorphic-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import { createHistory } from 'history'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } f...
src/password-reset/components/PasswordResetPage/index.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import EmailIcon from '@mui/icons-material/Email'; import PasswordIcon from '@mui/icons-material/Lock'; import Paper from '@mui/material/Paper'; import Typography from '@mui/material/Typography'; import { translate } from '@u-wave/react-translate'; import F...
src/svg-icons/notification/voice-chat.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVoiceChat = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12l-4-3.2V14H6V6h8v3.2L18 6v8z"/> </SvgIcon> ); NotificationVoic...
app/views/login.js
Habi86/mimo-bac2
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableOpacity, Image, Dimensions } from 'react-native'; /* ------------ StyleSheets --------- */ import styles from 'friedensflotte/app/styles/style'; /* ------------ Selfbuilt Components --------- */ import Button from 'friedens...
react/src/base/inputs/SprkLegend/SprkLegend.js
sparkdesignsystem/spark-design-system
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const SprkLegend = (props) => { const { children, idString, analyticsString, additionalClasses, isDisabled, ...other } = props; return ( <legend className={classnames('sprk-b-Leg...
packages/bonde-admin/src/mobilizations/widgets/__plugins__/pressure/components/pressure-count.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage } from 'react-intl' import CountUp from 'react-countup' const PressureCount = ({ value, color, text, startCounting }) => { /* TODO: support all browser * -webkit-box-shadow: inset 0px 15px 18px -10px rgba(227,224,227,1); * -...
docs/app/Examples/elements/Rail/RailExamples.js
jcarbo/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RailExamples = () => ( <div> <ExampleSection title='Types'> <ComponentExample title='Rail' descriptio...
src/parser/hunter/beastmastery/modules/spells/azeritetraits/PackAlpha.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox from 'interface/others/TraitStatisticBox'; import SPELLS from 'common/SPELLS'; import { calculateAzeriteEffects } from 'common/stats'; /** * Your primary pet's Basic Attack deals more damage for each other pet you have ac...
admin/client/App/screens/Home/components/Section.js
helloworld3q3q/keystone
import React from 'react'; import getRelatedIconClass from '../utils/getRelatedIconClass'; import { FormattedMessage } from 'react-intl'; class Section extends React.Component { render () { const iconClass = this.props.icon || getRelatedIconClass(this.props.id); return ( <div className="dashboard-group" data-s...
app/render/scripts/index.js
swashcap/sample-electron-setup
import 'babel-core/polyfill'; import React from 'react'; import App from './components/App'; React.render( <App />, document.getElementById('app') );
dapp/src/shared/dao/main/components/block.js
airalab/DAO-IPCI
/* eslint jsx-a11y/no-static-element-interactions: 0 */ import React from 'react' import { Link } from 'react-router' import { translate } from 'react-i18next' const Block = (props) => { const { name, type, modules, role, onRemoveModule, t } = props return (<div className="panel panel-default"> <div className...
react-test/CheckboxWithLabel.js
jcdoig/reactjs101
import React from 'react'; class CheckboxWithLabel extends React.Component { constructor(props) { super(props); this.state = {isChecked: false}; // since auto-binding is disabled for React's class model // we can prebind methods here // http://facebook.github.io/react/blog/2015/01/27/react-v0.1...
benim/src/component/authroute/authroute.js
SentiyWhen/Ben-IM
import React from 'react' import axios from 'axios' import { withRouter } from 'react-router-dom' import { loadData } from '../../redux/user.redux' import { connect } from 'react-redux' @withRouter @connect( null, {loadData} ) class AuthRoute extends React.Component{ componentDidMount() { const publicList = ['/lo...
src/pages/Main/NightModeToggler.js
bogas04/SikhJS
import React from 'react'; import { connect } from 'react-redux'; import { Night, Day } from '../../components/Icons'; function NightModeToggler ({ nightMode }) { document.body.style.backgroundColor = nightMode ? '#212121' : ''; document.body.style.color = nightMode ? 'white' : ''; return nightMode ? <Night sty...
node_modules/react-select/src/Creatable.js
rblin081/drafting-client
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from './Select'; import defaultFilterOptions from './utils/defaultFilterOptions'; import defaultMenuRenderer from './utils/defaultMenuRenderer'; const Creatable = createClass({ displayName: 'Crea...
src/index.js
441953309/sound-by-redux
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './stores'; import App from './containers/App'; require('./styles/main.scss') const store = configureStore(); render( <Provider store={store}> <App /> </Provider>, document.getE...
frontend/app/js/components/rules_v2/edit/serviceselector.js
serverboards/serverboards
import React from 'react' import PropTypes from 'prop-types' import i18n from 'app/utils/i18n' import cache from 'app/utils/cache' import store from 'app/utils/store' import Loading from 'app/components/loading' import Icon from '../../iconicon' import Card from 'app/components/card' import {MarkdownPreview} from 'reac...
examples/huge-apps/components/GlobalNav.js
rdjpalmer/react-router
import React from 'react' import { Link } from 'react-router' const dark = 'hsl(200, 20%, 20%)' const light = '#fff' const styles = {} styles.wrapper = { padding: '10px 20px', overflow: 'hidden', background: dark, color: light } styles.link = { padding: 11, color: light, fontWeight: 200 } styles.activ...
internals/templates/homePage/homePage.js
huahuaxiong/console
/* * HomePage * * This is the first thing users see of our App, at the '/' 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 and remove * the l...
packages/material-ui-icons/src/InfoOutline.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z" /></g> , 'InfoOutline');
src/containers/thread/RoadmapThread/TodoList/PostInfo.js
mydearxym/mastani
import React from 'react' import TagsList from '@/widgets/TagsList' import DotDivider from '@/widgets/DotDivider' import { Wrapper, Head, Title, TagsWrapper, ExtraInfo, DateText, } from '../styles/todo_list/post_info' const tags = [ { color: 'yellow', title: '新功能', }, ] const PostInfo = ({ p...
generators/app/templates/src/example/index.js
enigma-io/generator-enigma
import React from 'react'; export default class Example extends React.Component { static propTypes = { title: React.PropTypes.string, description: React.PropTypes.string, } renderTitle() { if (this.props.title) { return ( <h1 ref='title' className='ui-ex...
src/svg-icons/notification/sync.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSync = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25...
src/javascript/index.js
maringerov/redux-react-router-example-app
import React from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; /* Needed for onTouchTap Can go away when react 1.0 release Check this repo: https://github.com/zilverline/react-tap-event-plugin */ injectTapEventPlugin(); import BrowserHistory from 'react-router/lib/BrowserHistory'; impor...
src/client.js
anorudes/react-redux-universal-hot-example
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import useScroll from 'scroll-behavior/lib/useStandardScroll'; imp...
redux-serial-effects/src/main/Container.js
slorber/scalable-frontend-with-elm-or-redux
import React from 'react' import counter from '../counter/Container' import button from '../button/Container' import relocatableGif from '../relocatableGif/Container' import randomGifPair from '../randomGifPair/Container' import randomGifPairOfPair from '../randomGifPairOfPair/Container' import mountPoints from './moun...
src/components/Document/components/InitialState/InitialState.js
grxy/boilerplate
import { object } from 'prop-types'; import React from 'react'; const InitialState = ({ initialState }) => ( <script dangerouslySetInnerHTML={{ __html: `window.__INITIAL_STATE__ = ${JSON.stringify(initialState)}` }} id="initial-state" /> ); InitialState.displayName = 'Initi...
assets/javascripts/sso.js
wchaoyi/sso
import 'es5-shim'; import 'whatwg-fetch'; import _ from 'lodash'; window._ = _; import StyleSheet from 'react-style'; import React from 'react'; import {Router, Route} from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory' import {createElement} from './sso/app'; import Homepage from...