path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/LoginModal.js
DmitryIvanovIAMM/react-redux-form-login-test
import React, { Component } from 'react'; import { FormGroup, Row, Col, Button, ControlLabel, Alert } from 'react-bootstrap'; import ReactModal from 'react-modal'; import { Control, Errors, actions } from 'react-redux-form'; import { loginActionPost } from '../user/loginHelpers.jsx'; import { TiWarningOutline, TiMail, ...
src/components/FoodResult/foodinfo.js
Skymeow/guiltypleasure-frontend
import React from 'react'; function FoodInfo(props) { return( <div> <h2>{`${props.name}`}</h2> <div className="food-info"> <ul> <div className="img-map"> <li><img className="img-item" src={`${props.picture}`} /></li> </div> <li>calories: {`${props.calori...
src/TabBar/TabBarItem.web.js
taobaofed/react-web
/** * Copyright (c) 2015-present, Alibaba Group Holding Limited. * All rights reserved. * */ 'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import {View, Text, Image, StyleSheet} from 'react-native-web'; class TabBarItem extends Component { static propTypes = { /...
examples/basic/src/components/PushButton/PushButton.js
styleguidist/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import './PushButton.css'; /** * An example-less button with custom display name. * @visibleName Push Button 🎉 */ export default function PushButton({ color, size, children }) { const styles = { color, fontSize: PushButton.sizes[size], }; retu...
frontend/src/components/partners/profile/modals/updateObservationEscalated/updateEscalatedObservationModal.js
unicef/un-partner-portal
import R from 'ramda'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import { submit } from 'redux-form'; import ControlledModal from '../../../../common/modals/controlledModal'; import { updatePartnerFlags...
examples/server-side-rendering/src/server.js
algolia/react-instantsearch
import { join } from 'path'; import express from 'express'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { findResultsState } from 'react-instantsearch-dom/server'; import { createApp } from './createApp'; import template from './template'; const server = express(); server.use(...
source/client/containers/todos/TodoList.js
soccio/Horizon_Hapi_Redux
import React from 'react'; //import { subscribe } from 'horizon-react'; import { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchPosts } from '../../actions/index'; import TodoItem from './TodoItem'; import styles from './styles'; c...
src/server.js
OlegVitiuk/Majsternia
/** * 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 path from 'path'; import Promise from 'bluebird'...
src/@ui/Icon/icons/Repeat.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { Svg } from '../../Svg'; import makeIcon from './makeIcon'; const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => ( <Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}> <Svg.Path d="M6.22 16.55h11.45l-.3.04c...
example/examples/DisplayLatLng.js
parkling/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView, { MAP_TYPES } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122...
src/components/svg/Bear.js
JoeTheDave/onitama
import PropTypes from 'prop-types'; import React from 'react'; export const Bear = ({ fillColor }) => ( <svg width="190px" height="130px" viewBox="0 0 190 130" preserveAspectRatio="xMidYMid meet"> <g transform="translate(0, 130) scale(0.1, -0.1)" fill={fillColor} stroke="none"> <path d="M1046 1263 c-3 -4 -...
src/containers/ProfilePage.js
mick842/rental-cars-client
import React, { Component } from 'react'; import { Link } from "react-router-dom"; import { Card, RaisedButton } from "material-ui"; import User from '../modules/User'; import defaultAvatar from '../images/avatar.png'; class ProfilePage extends Component { render() { const user = User.get(); ret...
app-routing/App.js
singun/kanban-app
import React, { Component } from 'react'; import { render } from 'react-dom'; // import ReactDOM from 'react-dom'; import { Router, Route, Link, IndexRoute } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import About from './About'; import Home from './Home'; import Repos fr...
src/index.js
prashanth-cpaul/ReactReduxSample
// Libs import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import reduxPromise from 'redux-promise'; const createStoreWithMiddleware = applyMiddleware(reduxPromise)(createStore); import reducers from './...
src/components/coreComponents/FormInputGroupWithLabel/FormGroupInputWithLabel.js
mjchamoures/personalPortfolio
import React from 'react'; import classes from './FormGroupInputWithLabel.scss'; import { FormControl } from 'react-bootstrap'; import { FormGroup } from 'react-bootstrap'; import { ControlLabel } from 'react-bootstrap'; import { Col } from 'react-bootstrap'; class FormGroupInputWithLabel extends React.Component { ...
app/jsx/context_cards/Avatar.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
client/sidebar/Sidebar.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import { SettingsContext } from '../contexts/SettingsContext'; import { UserContext } from '../contexts/UserContext'; import RoomList from './RoomList/index'; import Header from './header'; export default { title: 'Sidebar', component: '', }; const subscriptions = [ { _id: '3Bysd8Grmk...
src/routes/notFound/index.js
fechy/retropie-web-gui
/** * 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 from 'react'; import NotFound from './NotFoun...
docs/src/app/components/pages/components/SelectField/Page.js
verdan/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import selectFieldReadmeText from './README'; import SelectFieldExampleSimple fr...
packages/icons/src/md/action/VerifiedUser.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdVerifiedUser(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 2l18 8v12c0 11.11-7.67 21.47-18 24C13.67 43.47 6 33.11 6 22V10l18-8zm-4 32l16-16-2.83-2.83L20 28.34l-5.17-5.17L12 26l8 8z" /> </IconBase...
src/svg-icons/action/thumb-down.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbDown = (props) => ( <SvgIcon {...props}> <path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.5...
src/client/components/nav-bar/NavBar.js
developersdo/opensource
import React from 'react' import { withRouter } from 'react-router-dom' import NavBarItem from '~/components/nav-bar/navbar-item/NavBarItem' import '../../images/logo.svg' const style = { menu: { cursor: 'pointer' }, dev_do_logo: { color: '#fff', fill: 'currentColor', width: '1.3em', height...
wip/click/app/click/js/tile.js
urbit/examples
import React, { Component } from 'react'; import classnames from 'classnames'; import _ from 'lodash'; export default class clickTile extends Component { constructor(props) { super(props); let ship = window.ship; let api = window.api; } pokeShip() { api.action('click', 'json', {click...
src/components/ContainerDetailsSubheader.react.js
daaru00/kitematic
import _ from 'underscore'; import React from 'react'; import shell from 'shell'; import metrics from '../utils/MetricsUtil'; import ContainerUtil from '../utils/ContainerUtil'; import classNames from 'classnames'; import containerActions from '../actions/ContainerActions'; import dockerMachineUtil from '../utils/Docke...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/delete-forever.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5...
src/components/Account/account.js
ChronoBank/ChronoWAVES
import React from 'react'; import {connect} from 'react-redux'; import {Card, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import {browserHistory} from 'react-router'; import {Grid, Row, Col} from 'react-flexbox-grid-aphrodite'; import Paper from 'material-ui/Paper'; i...
client/app/components/Signup.js
ParadeTo/dataguru-nodejs
import React from 'react'; import $ from 'jquery'; import {signup} from '../lib/client'; import {redirectURL} from '../lib/utils'; export default class Signup extends React.Component { constructor(props) { super(props); this.state = {}; } handleChange(name, e) { let newState = {}; newState[name...
node_modules/react-mdl/src/utils/cloneChildren.js
yomolify/cc-server
import React from 'react'; export default function(children, props) { return React.Children.map(children, child => { var p = typeof props === 'function' ? props(child) : props; return React.cloneElement(child, p); }); }
src/components/onboarding/steps/Step2.js
golemfactory/golem-electron
import React from 'react'; import Lottie from 'react-lottie'; import animData from './../../../assets/anims/onboarding/provider.json'; const defaultOptions = { loop: false, autoplay: true, animationData: animData, rendererSettings: { preserveAspectRatio: 'xMidYMid slice' } }; export defau...
client/src/routes.js
atkien/demo-react
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import PostIndex from './post/Index'; import PostDetailShow from './post/PostDetailShow'; import PostFormShow from './post/PostFormShow'; export default ( <Route path="/" component={App}> <IndexRoute component=...
fields/types/email/EmailColumn.js
giovanniRodighiero/cms
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
app/javascript/mastodon/features/favourites/index.js
musashino205/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourit...
js/main.js
nico1000/chord-trainer
require('../scss/main.scss'); require('../node_modules/font-awesome/scss/font-awesome.scss'); require('../node_modules/blissfuljs/bliss.js'); import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; var WebFont = require('webfontloader'); WebFont.load({ google: { families: ['Ra...
examples/huge-apps/routes/Messages/components/Messages.js
hgezim/react-router
import React from 'react'; class Messages extends React.Component { render () { return ( <div> <h2>Messages</h2> </div> ); } } export default Messages;
force_dir/node_modules/react-bootstrap/es/CarouselCaption.js
wolfiex/VisACC
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 ...
client/modules/App/components/DevTools.js
Trulsabe/reactLinuxMern
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
src/esm/components/structure/cards/backer-card/index.js
KissKissBankBank/kitten
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["title", "subtitle", "imgProps", "description"]; import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { pxToRem } from '../../../../helpers/utils/typ...
app/javascript/mastodon/features/ui/components/modal_root.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { getScrollbarWidth } from 'mastodon/utils/scrollbar'; import Base from 'mastodon/components/modal_root'; import BundleContainer from '../containers/bundle_container'; import BundleModalError from './bundle_modal_error'; import ModalLoading from './m...
examples/passing-props-to-children/app.js
jamiehill/react-router
import React from 'react'; import { Router, Route, Link, History } from 'react-router'; var App = React.createClass({ mixins: [ History ], getInitialState() { return { tacos: [ { name: 'duck confit' }, { name: 'carne asada' }, { name: 'shrimp' } ] }; }, addTaco() {...
pootle/static/js/shared/components/FormValueInput.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 autosize from 'autosize'; import React from 'react'...
node_modules/@material-ui/core/es/Select/Select.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import { mergeClasses } from '@material-ui/styles'; import SelectInput from './SelectInput'; import formC...
docs/src/Root.js
yickli/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
packages/koot/ReactApp/client/index.js
websage-team/super-project
import * as fullConfig from '__KOOT_PROJECT_CONFIG_PORTION_OTHER_CLIENT_PATHNAME__'; import React from 'react'; import { hydrate } from 'react-dom'; // import { syncHistoryWithStore } from 'react-router-redux' import routerMatch from 'react-router/lib/match'; // -------------------------------------------------------...
src/svg-icons/action/toll.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToll = (props) => ( <SvgIcon {...props}> <path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.5...
src/components/LoadingScreen/LoadingIndicator.js
u-wave/web
import React from 'react'; import CircularProgress from '@mui/material/CircularProgress'; import WarningIcon from '@mui/icons-material/Warning'; function LoadingIndicator() { return ( <div className="LoadingIndicator"> <CircularProgress className="LoadingIndicator-loader" /> <div className="LoadingIn...
src/components/App.js
janimattiellonen/discgolfresults
import React from 'react'; import Router, {RouteHandler} from 'react-router'; import { connect } from 'react-redux'; export default class App extends React.Component { constructor(props) { super(props); } render() { return ( <div id="page-inner"> {this.props.ch...
src/svg-icons/action/fingerprint.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFingerprint = (props) => ( <SvgIcon {...props}> <path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12...
src/components/svg/HeartIcon.js
jslauthor/react-audio-component
import React from 'react'; import get from 'lodash/get'; const HeartIcon = props => ( <svg width="19px" height="16.36px" viewBox="0 0 19 16.36" {...props}> <path fill-rule="evenodd" clip-rule="evenodd" fill="#CCCCCC" className={get(props, 'className', '')} d="M9.5,2.87C9.5,2.87,8.41,0,5.18,0C1.95,0,0,3.08,0,5.62 c...
docs/components/home/HomeFeature.js
casesandberg/react-color
'use strict' /* eslint import/no-unresolved: 0 */ import React from 'react' import reactCSS from 'reactcss' import { ChromePicker, CompactPicker, MaterialPicker, PhotoshopPicker, SketchPicker, SliderPicker, SwatchesPicker, BlockPicker, GithubPicker, TwitterPicker, HuePicker, AlphaPicker, CirclePicke...
stories/Button/index.js
nirhart/wix-style-react
import React from 'react'; import {storiesOf} from '@kadira/storybook'; import Markdown from '../utils/Components/Markdown'; import CodeExample from '../utils/Components/CodeExample'; import Readme from '../../src/Button/README.md'; import ExampleControlled from './ExampleControlled'; import ExampleControlledRaw from ...
src/utils/createRenderTextField.js
karmapa17/garchen-panel
import React from 'react'; import TextField from 'material-ui/TextField'; export default function createRenderTextField(f) { return function renderTextField({input, label, meta: {touched, error}, ...custom}) { let errorText = touched && error; // handle i18n if (touched && error && ('string' !== typeof...
Example/blog/src/pages/404.js
EvKylin/Kylin
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
src/svg-icons/maps/add-location.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
tools/template/list/root/Root.hot.js
SteamerTeam/steamer-react
import { AppContainer } from 'react-hot-loader'; import React from 'react'; import { render } from 'react-dom'; import App from './Root.dev'; const rootEl = document.getElementById('pages'); render( <AppContainer> <App /> </AppContainer>, rootEl ); if (module.hot) { module.hot.accept('./Root.dev', () => ...
examples/react-redux/src/components/ui/FormLabel.js
rangle/redux-segment
import React from 'react'; const FormLabel = ({ children, style = {} }) => { return ( <label style={{ ...styles.base, ...style }}> { children } </label> ); }; const styles = { base: {}, }; export default FormLabel;
App.js
lautapercuspain/jest-presentation
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class App extends React.Component { render() { return ( <View style={styles.container}> <Text>Open up App.js to start working on your app!</Text> <Text>Changes you make will automatically reload...
src/components/FoodList.js
chrnobyl/react-fridge-frontend
import React from 'react' import { Link } from 'react-router-dom' import '../index.css' export default function FoodList(props){ return ( <div className="container-fluid"> <div className="foodlist"> <div className="btn-group"> <div className="row"> <h1>Foods:</h1> {p...
assets/js/pages/App.js
chocoelho/twitter-activities-monitor
import React from 'react'; import ReactDOM from 'react-dom'; import TweetTimelineContainer from '../containers/TweetTimelineContainer' export default class App extends React.Component { constructor(props) { super(props); this.twitterApiUrl = '/timeline/'; } render() { const twitterApiUrl = this.twit...
docs/src/app/components/pages/components/Table/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import tableReadmeText from './README'; import TableExampleSimple from './Exampl...
client/verification-portal/components/service-fields.js
HelpAssistHer/help-assist-her
import React from 'react' import _ from 'lodash' import { Field } from 'redux-form' import ServicesCheckbox from './services-checkbox' const ServiceFields = ({ listOfServices }) => ( <div> {_.map(listOfServices, (service) => { return ( <div key={service.id}> <Field label={service.name} name...
Libraries/Modal/Modal.js
htc2u/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
app/components/StarVoteList.js
ufv-js/ru-now
import React, { Component } from 'react'; import Avatar from 'material-ui/Avatar'; import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import ActionGrade from 'material-ui/svg-icons/action/grade'; export default ({userVotes}) => { return ( <div> <List> <S...
src/components/appfooter.js
rajatsharma305/eldritch
import React from 'react' import Footer from 'grommet/components/Footer' import Title from 'grommet/components/Title' import Box from 'grommet/components/Box' import Paragraph from 'grommet/components/Paragraph' import Anchor from 'grommet/components/Anchor' import { Link } from 'react-router' export default props => ...
src/scotch-night/app/events/screens/EventDetail.js
SeattleScotchSociety/ScotchNight
// @flow import React, { Component } from 'react'; import { ScrollView, View, Text, StyleSheet } from 'react-native'; import { List, ListItem, Button } from 'react-native-elements'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { SimpleLineIcons } from '@expo/vector-icons'; i...
src/components/NotFoundPage/NotFoundPage.js
sulibautista/live-poll
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ //import './NotFoundPage.less'; import React from 'react'; // eslint-disable-line no-unus...
website/src/components/markdown.js
netlify/netlify-cms
import React from 'react'; import styled from '@emotion/styled'; import theme from '../theme'; const StyledMarkdown = styled.div` > :first-of-type { margin-top: 0; } > :last-child { margin-bottom: 0; } h1, h2, h3, h4, h5, h6 { line-height: ${theme.lineHeight[1]}; margin-top: 2em; ...
techCurriculum/ui/solutions/3.3/src/index.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
src/svg-icons/editor/border-style.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderStyle = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/> </SvgIcon> ); E...
src/components/RegisterForm/RegisterForm.js
TackleboxBeta/betabox-seed
import React, { Component } from 'react'; import { reduxForm, Field, propTypes } from 'redux-form'; import registerValidation from './registerValidation'; // eslint-disable-next-line react/prop-types const Input = ({ input, label, type, meta: { touched, error } }) => ( <div className={`form-group ${error && touched ...
src/svg-icons/device/gps-not-fixed.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsNotFixed = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7...
site/src/components/MyApps.js
ishanthukral/ishan.me
import React, { Component } from 'react'; import MyApp from './MyApp'; import { Col } from 'react-bootstrap'; var request = require('request') class MyApps extends Component { constructor() { super(); this.state = { apps: [] }; } componentDidMount() { var that = this; request.get('https://api.i...
src/components/CountDown/CountDown.js
febobo/react-redux-start
import React from 'react' type Props = { }; export class CountDown extends React.Component { props: Props; state = {} render () { const { time } = this.props.geetest; // console.log(time) return ( <span> { time && time.time ? time.time : null }...
src/client.js
jxzly229190/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 BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
src/app.js
mikeharty/react-redux-webpack
require('./stylesheets/import.scss'); import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import todoApp from './reducers'; import App from './components/App'; let store = createStore(todoApp); render( <Provider store={store}> ...
public/client/routes/changePassword/containers/changePassword.js
nearform/concorda-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {reduxForm} from 'redux-form' import {forceChangePassword} from '../../../modules/user/actions/index' import {validateSetNewPassword} from '../../../lib/validations' export let ChangePassword = React.createClass({ propTypes: { ha...
components/Dropdown.js
hamzasurti/git-started
import React, { Component } from 'react'; export default class Dropdown extends Component { buildLessonList(lessonInfo, clickFunction) { const styles = {}; styles.li = { padding: '15px 15px 15px 15px', border: '1px solid #F9F9F9', backgroundColor: 'white', fontFamily: 'sans-serif', ...
app/components/sidebar.js
sigle-io/sigle
import React from 'react'; import styled from 'styled-components'; import { Menu } from 'semantic-ui-react'; import Router from 'next/router'; const StyledSidebar = styled(Menu)` position: fixed; top: 0px; bottom: 0px; left: 0px; width: 200px !important; background-color: #F0F0F0 !important; overflow-y: ...
src/lib/gui/app/configureApp.js
xclix/chan
import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import configureRoutes from './routing/configureRoutes'; export default store => { const history = syncHistoryWithStore(browserHistory, ...
example/DummyNetworkContext.js
rauliyohmc/react-native-offline-utils
import React from 'react'; const DummyNetworkContext = React.createContext(); export default DummyNetworkContext;
src/components/pagination/pagination.js
bokuweb/re-bulma
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from '../../../build/styles'; import { getCallbacks } from '../../helper/helper'; export default class Pagination extends Component { static propTypes = { style: PropTypes.object, children: PropTypes.any, classNam...
examples/with-dynamic-import/components/Counter.js
callumlocke/next.js
import React from 'react' let count = 0 export default class Counter extends React.Component { add () { count += 1 this.forceUpdate() } render () { return ( <div> <p>Count is: {count}</p> <button onClick={() => this.add()}>Add</button> </div> ) } }
src/client/components/ConsoleLoggerView.js
IUnknown68/karma-live-reporter
//============================================================================== import React, { Component } from 'react'; import attachListener from 'attachListener'; import autoScroll from 'autoScroll'; import { BROWSER_LOG, BROWSER_START } from 'app-constants'; //====================================================...
docs/src/pages/examples/BsEditorPage.js
gocreating/redux-draft
import React, { Component } from 'react'; import { Helmet } from 'react-helmet'; import Tabs from 'react-bootstrap/lib/Tabs'; import Tab from 'react-bootstrap/lib/Tab'; import { reduxDraft } from '../../../../lib'; import PageLayout from '../../utils/PageLayout'; import Preview from '../../editors/utils/Preview'; impor...
client/components/widgets/side-nav.js
zhenyulin/ultimate-hot-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import BasicButton from 'components/elements/basic-button'; export class SideNav extends React.PureComponent { static propTypes = { className: PropTypes.string, func: PropTypes.func, list: PropTypes.ar...
server/sonar-web/src/main/js/apps/web-api/components/Domain.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
app/javascript/mastodon/containers/domain_container.js
kazh98/social.arnip.org
import React from 'react'; import { connect } from 'react-redux'; import { blockDomain, unblockDomain } from '../actions/domain_blocks'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Domain from '../components/domain'; import { openModal } from '../actions/modal'; const messages = d...
docs/app/Examples/elements/Step/Variations/StepExampleSizeTiny.js
shengnian/shengnian-ui-react
import React from 'react' import { Icon, Step } from 'shengnian-ui-react' const StepExampleSizeTiny = () => ( <Step.Group size='tiny'> <Step> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> ...
src/svg-icons/action/dns.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDns = (props) => ( <SvgIcon {...props}> <path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v...
client/reactapp/components/IndexPage.js
TribeMedia/loopback-example-react
import React from 'react'; export default class IndexPage extends React.Component { static contextTypes = { router: React.PropTypes.func } constructor ( props, context ) { super( props, context ); this.props = props; this.state = { }; this.context = context; } componentWillReceiveProps ( nextProps ...
react-app/src/components/Legends.js
tanykim/swimmers-history
import React, { Component } from 'react'; class LegendsComponent extends Component { render() { const { type } = this.props; return (<div className="legends"> <div className="legend-wrapper"> <span className="cursor-icon" /> <span className="legend"> <div className="legend-ite...
app/src/server.js
orYoffe/myFullstackJsNetwork
import express from 'express' import path from 'path' import helmet from 'helmet' import morgan from 'morgan' import cookieParser from 'cookie-parser' import bodyParser from 'body-parser' import hbs from 'express-handlebars' import config from './config' import {renderFullPage, normalizePort, onError} from './config/in...
docs/src/app/components/pages/components/Popover/ExampleConfigurable.js
nathanmarks/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...
src/components/svg/Dog.js
JoeTheDave/onitama
import PropTypes from 'prop-types'; import React from 'react'; export const Dog = ({ fillColor }) => ( <svg width="130px" height="130px" viewBox="0 0 499 500" preserveAspectRatio="xMidYMid meet"> <g transform="translate(0, 500) scale(0.1, -0.1)" fill={fillColor} stroke="none"> <path d="M3005 4833 c-86 -21 ...
reactjs/basic/src/app.js
joaolourenco/lab-nodejs
import React from 'react'; import ReactDOM from 'react-dom'; class Hello extends React.Component { render() { var place = "World"; return ( <h1>Hello {place}</h1> ); } } //Composing Components //A key factor to make components reusable and composable //is the ability to con...
modules/tribes/client/components/TribesList.js
Trustroots/trustroots
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Tribe from './Tribe'; import SuggestTribe from './SuggestTribe'; const List = styled.ul.attrs({ className: 'list-unstyled tribes-grid' })` margin: -5px -5px 15px -5px; `; const Item = styled.li` padding...
src/components/Header.js
dhruv-kumar-jha/react-static-complete-website
'use strict'; import React from 'react'; import { Link } from 'react-router'; const Header = (props) => { return ( <header className="main"> <div className="container"> <div className="logo"> <Link to="/">Productivity Application</Link> </div> <nav> <Link to="/" activeClassName="active">Home...
client/src/lib-app/stats-utils.js
opensupports/opensupports
import React from 'react'; import API from 'lib-app/api-call'; import i18n from 'lib-app/i18n'; import StatCard from 'app-components/stat-card'; import { Bar, HorizontalBar } from 'react-chartjs-2'; import date from 'lib-app/date'; export default { renderStatistics({showStatCards, showStatsByHours, showStatsByDays...
lib/index.js
bebraw/react-ellipsify
/* eslint-disable jsx-a11y/no-static-element-interactions, react/no-unused-prop-types */ import React from 'react'; const ellipsify = ({ visible, visibleItems, separator, more = '…', moreClass, atFront, onShow, children }) => { if (visible) { return <div>{children}</div>; } const moreElement =...
src/index.js
Syut/gallery
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('content'));
screens/Top250Screen.js
flyerq/movie-list
import React from 'react'; import { View, Text, StyleSheet, Platform, } from 'react-native'; // import Expo, { Constants } from 'expo'; import Colors from '../constants/Colors'; import MovieList from '../components/MovieList'; import OfflineMessage from '../components/OfflineMessage'; const API_URL = 'https://a...