path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/wix-style-react/src/SidebarHeader/SidebarHeader.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { st, classes } from './SidebarHeader.st.css'; import { dataHooks } from './constants'; import Text from '../Text'; import { SidebarContext } from '../Sidebar/SidebarAPI'; import { sidebarSkins } from '../Sidebar/constants'; import Box from '../Box'...
src/client/components/containers/RegisterFormComponent.js
annesofie/microtasking-react
/** * Created by AnneSofie on 02.03.2017. */ import React, { Component } from 'react'; import * as taskApi from '../../../client/api/task-api'; import * as resultApi from '../../../client/api/result-api'; //View import RegisterFormView from '../views/registerFormView'; import AfterEachTaskView from '../views/after...
src/home/Music.js
crosslandwa/chippanfire-site
import React from 'react' import SectionHeader from './SectionHeader' import ExternalLink from '../external-link' const Music = props => ( <> <SectionHeader id="music" label="Music" /> <h2 className="cpf-header--small">Dry Stone Will</h2> <p>Dark pop, an English folk lilt and lush guitar-led backing</p>...
app/javascript/mastodon/features/home_timeline/index.js
rainyday/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
presentation/examples/blog-example/client/components/About.js
iansinnott/react-static-presentation
import React from 'react'; import s from './About.styl'; export const About = React.createClass({ render() { return ( <div className={s.page}> <div className={s.siteTitle}> <h1>About</h1> </div> <p>Welcome, to about us.</p> </div> ); }, });
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/SelectOne/index.js
strapi/strapi-examples
/** * * SelectOne * */ import React from 'react'; import Select from 'react-select'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import 'react-select/dist/react-select.css'; import { cloneDeep, map, includes, isArray, isNull, isUndefined, isFunction, get, findIndex } from 'lo...
ios/versioned-react-native/ABI11_0_0/Libraries/Text/Text.js
jolicloud/exponent
/** * 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...
src/containers/CounterList.js
jshack3r/ws-redux-counters-router
import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { incrementCounter, removeCounter } from '../actions' import Counter from '../components/counter/Counter' let CounterList = ({isFetching, counterList, boldButtons, incrementCounter, removeCounter}) => <d...
src/app/components/Header.js
MarcusKolman/www
import React, { Component } from 'react'; import Menu from './Menu'; import Svg from '../../../public/assets/sigfox.svg'; class Header extends Component { render() { return ( <Menu> </Menu> ); } } export default Header;
frontend-new/src/js/util/helper.js
leapfrogtechnology/vyaguta-resource
import React from 'react'; /* These functions build the start and end date for the timeline for a given date */ export function setStartDate(date) { return `${date} 00:00:00`; } export function setEndDate(date) { return `${date} 23:50:00`; } /* This function builds the content inside the item of Timeline */...
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
gilesvangruisen/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
src/js/components/icons/base/SocialSnapchat.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/containers/home/react-native-zss-rich-text-editor/src/RichTextToolbar.js
airingursb/two-life
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import {ListView, View, TouchableOpacity, Image} from 'react-native'; import {actions} from './const'; const defaultActions = [ actions.insertImage, actions.setBold, actions.setItalic, actions.insertBulletsList, actions.insertOrder...
src/svg-icons/notification/sync-disabled.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncDisabled = (props) => ( <SvgIcon {...props}> <path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20...
admin/client/App/screens/Item/components/EditFormHeader.js
alobodig/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import EditFormHeaderSearch from './EditFormHeaderSearch'; import { Link } from 'react-router'; import Drilldown from './Dr...
src/js/SecondPage.js
merlox/dapp-transactions
import React from 'react' import Header from './Header' import { Link } from 'react-router-dom' import './../stylus/index.styl' import './../stylus/secondpage.styl' import LINKS from './utils.js' class SecondPage extends React.Component { constructor(props){ super(props) this.state = { dialog1...
src/svg-icons/KeyboardArrowRight.js
AndriusBil/material-ui
// @flow import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; /** * @ignore - internal component. */ let KeyboardArrowRight = props => ( <SvgIcon {...props}> <path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" /> </SvgIcon> ); KeyboardArrowRight = pure(Keybo...
node_modules/react-bootstrap/es/ButtonToolbar.js
superKaigon/TheCave
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/about/AboutPage.js
Keaws/react-redux-pl
import React from 'react'; class AboutPage extends React.Component { render() { return( <div> <h1>About</h1> <p>This app uses react and other stuff</p> </div> ); } } export default AboutPage;
Ethereum-based-Roll4Win/node_modules/react-overlays/es/DropdownToggle.js
brett-harvey/Smart-Contracts
import PropTypes from 'prop-types'; import React from 'react'; import DropdownContext from './DropdownContext'; var propTypes = { /** * A render prop that returns a Toggle element. The `props` * argument should spread through to **a component that can accept a ref**. Use * the `onToggle` argument to toggle t...
js/components/createPet/index.js
phamngoclinh/PetOnline_vs2
import React, { Component } from 'react'; import { MapView, Image, TextInput, UselessTextInput, Alert, AsyncStorage } from 'react-native'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Text, Button, Icon, Fab, View, T...
public/src/components/main/main.js
white87332/react-redux-sample
import React from 'react'; import './main.scss'; class Main extends React.Component { constructor(props) { super(props); } render() { return ( <div> {this.props.children} </div> ); } } export default Main;
src/events/event-channel.js
FederationOfFathers/ui
import React, { Component } from 'react'; import Event from './event' // props = channel, state class EventChannel extends Component { constructor(props) { super(props) this.state={ expanded: false, } } clickHandler = () => { this.setState({expanded: !this.state.expanded}) } channelEvents = () => {...
src/pages/Login.js
alex-cory/sf-hacks-react-starter
import React from 'react' import { Paper, RaisedButton, TextField } from 'material-ui' const styles = { container: { maxWidth: 300, margin: 'auto', marginTop: 10, padding: 20 }, header: { margin: '5px 0', fontSize: 20 } } const LoginPage = ({ setUserName }) => { let input = null ...
src/components/EyeIcon/EyeIcon.js
ibenavides/ps-react-ibenavides
import React from 'react'; /** SVG Eye Icon */ function EyeIcon() { // Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg return ( <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"> <g transform="matrix(.02146 0 0 .02146 1 1)" fill...
src/Accounts/AccountsMenu/AccountsMenu.js
DarthVictor/bank-chat
import React from 'react' import { Link } from 'react-router' import {TextConstants} from '../../resources' import './AccountsMenu.scss' export default function AccountsMenu() { return ( <div role="nav" className="accounts__tab-selector"> <Link className="accounts__tab-button" activeClassName...
src/js/ui.js
tsuckow/sunxi-fel-chrome-extension
require('styles/ui.less'); import React from 'react'; import ReactDOM from 'react-dom'; import Searching from 'views/searching.jsx'; import usb from 'services/usb.js'; class App extends React.Component { componentDidMount() { chrome.usb.onDeviceAdded.addListener(() => usb.checkForDevices()); chrome.usb.on...
src/Cards.js
qiubit/wason-selection-parallel
import _ from 'lodash'; import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; class Cards extends Component { constructor(props) { super(props); this.state = { Pactive: false, nPactive: false, Qactive: false, nQactive: false, cardsOrder: _.shuffle(_...
src/style/styles.js
vasi1796/food_ordering
'use strict'; import React from 'react'; import {StyleSheet} from 'react-native'; module.exports = StyleSheet.create({ text: { color: 'white', fontWeight: 'bold' }, mainPage_generalView: { flex: 1, flexDirection: 'column', justifyContent: 'center', alignItems:...
src/App/ItemsPage.js
haroldSanchezb/ml-react
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import ItemsSearch from './ItemsSearch'; import ItemsList from './ItemsList'; import ItemsDetail from './ItemsDetail'; import styles from './ItemsPage.scss'; const ItemsPage = props => ( <div className={styles.container}> <ItemsSearch {...
src/components/ContactLink.js
jonatanramhoj/single-page
import React from 'react'; import ReactDOM from 'react-dom'; class ContactLink extends React.Component { constructor () { super(); this.focus = this.focus.bind(this); this.blur = this.blur.bind(this); } focus () { const body = document.querySelector('body'); body.classList.add('focus'); }...
test/fixtures/webpack-message-formatting/src/AppAliasUnknownExport.js
mangomint/create-react-app
import React, { Component } from 'react'; import { bar as bar2 } from './AppUnknownExport'; class App extends Component { componentDidMount() { bar2(); } render() { return <div />; } } export default App;
app/ui/src/pages/Home.js
pequalsnp/eve-isk-tracker
import React, { Component } from 'react'; class Home extends Component { render() { return ( <div> Home </div> ); } } export default Home;
docs/src/app/components/pages/components/IconMenu/ExampleNested.js
matthewoates/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import Divider from 'material-ui/Divider'; import Download from 'material-ui/svg-icons/file/file-download'; import ArrowDropRight from 'material-ui/svg-ic...
src/js/app_1.js
pfb3cn/react_bootcamp_exercise
import React from 'react'; import ReactDOM from 'react-dom'; const oldBlue = { id: 0, make: "Oldsmobile", model: "Cutlass Ciera", year: 1993, color: "Blue", price: 1 } const mercy = { id: 1, make: "Mitsubishi", model: "Lancer", year: 2005, color: "Silver", price: 13000 }...
docs/app/Examples/collections/Form/States/FormExampleLoading.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button, Form, Input } from 'semantic-ui-react' const FormExampleLoading = () => ( <Form loading> <Form.Input label='Email' placeholder='joe@schmoe.com' /> <Button>Submit</Button> </Form> ) export default FormExampleLoading
src/ToggleInput.js
curious-containers/cc-ui
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import { checkJSON } from './utils'; export default createReactClass({ propTypes: { onChange: PropTypes.func.isRequired, heading: PropTypes.string, value: PropTypes.string, className: P...
scripts/alertSettings.js
diakov2100/YaStreamDesktop
import React from 'react'; import ReactDOM from 'react-dom'; import AlertSettingsMain from '../views/alertSettings/alertSettingsMain.jsx' const $ = require('./jquery.js') const remote = require('electron').remote const BrowserWindow = remote.BrowserWindow let previewWindow = null window.onload = function(){ Reac...
node_modules/react-bootstrap/es/HelpBlock.js
NickingMeSpace/questionnaire
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/svg-icons/image/looks.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks = (props) => ( <SvgIcon {...props}> <path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1...
public/assets/scripts/components/apps/common/single.js
luisfbmelo/reda
import React from 'react'; import { Component, PropTypes } from 'react'; import Link from 'react-router/lib/Link' // Boostrap import { Tooltip, OverlayTrigger } from 'react-bootstrap'; // Components import SvgComponent from '@/components/common/svg'; import { truncate, setUrl } from '@/utils'; import AppPopup from '...
src/components/Navigation/index.js
on3iro/Gloomhaven-scenario-creator
/** * Renders a Navigation with react-router Links * * @namespace Navigation */ import React from 'react'; import NavBar from './NavBar'; import NavLink from './NavLink'; const Navigation = () => { return ( <NavBar> <NavLink to="/"> Home </NavLink> </NavBar> ); }; export defa...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
princesadie/SnapDrop-react
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/entypo/Briefcase.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Briefcase'; let EntypoBriefcase = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M9,10h2v2h9c0,0-0.149-4.459-0.2-5.854C19.75,4.82,19.275,4,17.8,4h-3.208c-0.497-0.938-1.032-1.94...
src/svg-icons/action/swap-vertical-circle.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVerticalCircle = (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 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"/> ...
app/screens/social/notifications.js
andry-baka/dapur-ngebul-app
import React from 'react'; import { ListView, View, Image } from 'react-native'; import {RkStyleSheet, RkText} from 'react-native-ui-kitten'; import {Avatar} from '../../components'; import {data} from '../../data'; let moment = require('moment'); export class Notifications extends React.Component { static nav...
src/containers/shopping/ItemBrowser.js
eventures-io/ldn-retail-demo
import React, { Component } from 'react'; import { View, Image, Modal, Text, Alert, ListView, FlatList, ScrollView, StyleSheet, TouchableOpacity, TouchableHighlight, } from 'react-native'; import { Actions } from 'react-native-router-flux'; import { connect } from 'react-redu...
lib/cli/generators/REACT_SCRIPTS/template/src/stories/Button.js
nfl/react-storybook
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ import PropTypes from 'prop-types'; import React from 'react'; const buttonStyles = { border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3px 10px',...
src/svg-icons/image/tag-faces.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTagFaces = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c....
packages/ui/src/components/widget/table/WidgetTableHeadCell.js
plouc/mozaik
import React from 'react' import styled from 'styled-components' import PropTypes from 'prop-types' const HeadCell = styled.th` padding: 1vmin 2vmin; text-align: left; font-weight: normal; ` const WidgetTableHeadCell = ({ children }) => <HeadCell>{children}</HeadCell> WidgetTableHeadCell.propTypes = { ...
src/svg-icons/maps/zoom-out-map.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsZoomOutMap = (props) => ( <SvgIcon {...props}> <path d="M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6zm1...
webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsTableSchema.js
tstrachota/katello
import React from 'react'; import { FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap'; import helpers from '../../../move_to_foreman/common/helpers'; import { headerFormatter, cellFormatter, selectionHeaderCellFormatter, selectionCellFormatter, } from '../../../move_to_foreman/components/...
src/components/compat/toolbar-buttons.js
ambrinchaudhary/alloy-editor
/** * SPDX-FileCopyrightText: © 2014 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: LGPL-3.0-or-later */ import React from 'react'; import Lang from '../../oop/lang'; /** * ToolbarButtons is a mixin which provides a list of buttons which have * to be displayed on the current toolbar depending on...
app/containers/ProcessViewPage/components/Tile/index.js
BrewPi/brewpi-ui
/** * * Tile * */ import React from 'react'; import styles from './styles.css'; const classNames = require('classnames'); const Tile = (props) => { const x = props.x; const y = props.y; let coordinates; let gridStyle; if (props.showCoordinates) { coordinates = <span className={styles.coordinates}>{x},{y...
src/components/MorphDisplay.js
jcuenod/react-lafwebpy-client
import React from 'react' import {toast} from 'react-toastify'; import EventPropagator from 'events/EventPropagator' import { term_to_english, category_weights } from 'data/MorphCodes' class MorphDisplay extends React.Component { constructor(props) { super(props) this.state = {"data": [], "selected": {}} } comp...
src/utils/highlight.js
jasonslyvia/react-redux-async-example
/** * @file 在字符串中高亮指定的文本 * @author shuangyang.ys */ /* eslint new-cap:0 */ import React from 'react'; /** * 在 sentence 中匹配并高亮 keyword * @param {string} sentence 被搜索文本 * @param {string} keyword 需要高亮的文本 * @param {number} maxLength 最多匹配多少个字符的文本,默认无限大 * @param {string} highligh...
ui/src/index.js
oyiptong/splice
import 'babel-core/polyfill'; import React from 'react'; import ReactDOM from 'react-dom' import { Provider } from 'react-redux'; import Routes from './containers/Routes'; import configureStore from './store/configureStore'; const store = configureStore({}); ReactDOM.render( <Provider store={store}> <Routes />...
app/javascript/mastodon/features/ui/index.js
mstdn-jp/mastodon
import classNames from 'classnames'; import React from 'react'; import NotificationsContainer from './containers/notifications_container'; import PropTypes from 'prop-types'; import LoadingBarContainer from './containers/loading_bar_container'; import TabsBar from './components/tabs_bar'; import ModalContainer from './...
src/linkClass.js
fanhc019/react-css-modules
import React from 'react'; import makeConfiguration from './makeConfiguration'; import _ from 'lodash'; let linkClass; /** * @param {ReactElement} element * @param {Object} styles CSS modules class map. * @param {CSSModules~Options} userConfiguration * @return {ReactElement} */ linkClass = (element, styles = {},...
2021/src/pages/Home/Contact/index.js
sjamcsclub/jamhacks.ca
import React, { Component } from 'react'; import Newsletter from '../../../components/Newsletter'; import './Contact.css'; import Header from '../../../components/Typography/Header'; import Text from '../../../components/Typography/Text'; class Contact extends Component { constructor(props) { super(props); ...
ui/src/main/js/components/Layout.js
medallia/aurora
import React from 'react'; import Icon from 'components/Icon'; import { addClass } from 'utils/Common'; export function ContentPanel({ children }) { return <div className='content-panel'>{children}</div>; } export function StandardPanelTitle({ title }) { return <div className='content-panel-title'>{title}</div>...
src/interface/others/CastEfficiency.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SpellLink from 'common/SpellLink'; import Abilities from 'parser/core/modules/Abilities'; import { TooltipElement } from 'common/Tooltip'; const CastEfficiency = ({ categories, abilities }) => { if (!abilities) { return <div>Loading...</div>...
console/src/app/tasks/tasks.js
alfredking12/hp-scheduler
import React from 'react'; import {Table, TableBody, TableFooter, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import BaseComponent from '../libs/BaseComponent'; import IconButton from 'mater...
blueocean-material-icons/src/js/components/svg-icons/maps/transfer-within-a-station.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsTransferWithinAStation = (props) => ( <SvgIcon {...props}> <path d="M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5.75 8.9L3 23h2.1l1.75-8L9 1...
src/routes.js
luigiplr/udormio-react
import React from 'react'; import { Router } from 'react-routing'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import LoginPage from './components/LoginPage'; import NotFoundPage from './components/NotFoundPage'; import ErrorPage from './...
resources/assets/javascript/components/summaryList.js
colinjeanne/garden
import React from 'react'; import SummaryItem from './summaryItem'; const sum = items => items.reduce((current, item) => current + item, 0); const aggregateEvents = (events, plants) => events.reduce((aggregated, event) => { const aggregatedEvent = aggregated.find(element => element.plantNa...
client/components/Dashbord/recipeForm.js
kenware/more-recipes
import React, { Component } from 'react'; import { BrowserRouter, Route, Switch, Redirect, Link } from 'react-router-dom'; import { PropTypes } from 'react'; import * as actions from '../../redux/Action/action.js'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import RichTextEditor...
src/index.js
ibujs/decaffeinater
// @flow // Import React. import React from 'react' import { render } from 'react-dom' // Import components from material-ui :D import AppBar from 'material-ui/AppBar' import Toolbar from 'material-ui/Toolbar' import Typography from 'material-ui/Typography' import Paper from 'material-ui/Paper' // Import main ...
src/forms/form.js
ikanedo/react-redux-simple-validate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import * as FormActions from './formActions'; import FormGroup from './formGroup'; class FormDefault extends Component { /* istanbul ignore next */ constructor() { super(); this.onSubmit = t...
src/components/Footer/VkIcon.js
Galernaya20/galernaya20.com
//@flow import React from 'react' import {Svg} from '../Svg/Svg' export const VkIcon = (props: Object) => ( <Svg {...props}> <path d="M41,4H9C6.24,4,4,6.24,4,9v32c0,2.76,2.24,5,5,5h32c2.76,0,5-2.24,5-5V9C46,6.24,43.76,4,41,4z M37.72,33l-3.73-0.01 c0,0-0.08,0.01-0.21,0.01c-0.3,0-0.92-0.08-1.65-0.58c-1.31-0.91-2....
App/Components/GoogleMap.js
OUCHUNYU/Ralli
import React, { Component } from 'react'; import Button from './Common/button' import GroupsPage from './GroupsPage' import UserProfilePage from './UserProfilePage' import GroupsInvitePage from './GroupsInvitePage' import EventFeed from './EventFeed' import CreateMarker ...
Rosa_Madeira/Revendedor/src/components/notificacoes/NotificacoesDetalhes.js
victorditadi/IQApp
import React, { Component } from 'react'; import { View, Text, Image, Linking } from 'react-native'; import { Icon, Button } from 'native-base'; import { Card, CardSection, ButtonForm } from '../common'; import { Actions } from 'react-native-router-flux'; import axios from 'axios'; class NotificacoesDetalhes extends C...
src/styles/theme-decorator.js
Zadielerick/material-ui
import React from 'react'; export default (customTheme) => { return function(Component) { return React.createClass({ childContextTypes: { muiTheme: React.PropTypes.object, }, getChildContext() { return { muiTheme: customTheme, }; }, render() { ...
src/components/WelcomeNote.js
jpkbeddu/keep-app
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { margin: 20, padding: '40px 20px', textAlign: 'center' }; const WelcomeNote = () => ( <div> <Paper style={style} zDepth={1} rounded={false}> <h2>Welcome to Keep App</h2> <p> This is a Google Keep clone app...
ee/client/omnichannel/BusinessHoursTable.stories.js
iiet/iiet-chat
import React from 'react'; import { Box } from '@rocket.chat/fuselage'; import { BusinessHoursTable } from './BusinessHoursTable'; export default { title: 'omnichannel/businessHours/ee/BusinessHoursTable', component: BusinessHoursTable, }; const businessHours = [ { name: '', timezone: { name: 'America/Sao_Pau...
docs/src/pages/demos/tabs/IconLabelTabs.js
cherniavskii/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Tabs, { Tab } from 'material-ui/Tabs'; import PhoneIcon from '@material-ui/icons/Phone'; import FavoriteIcon from '@material-ui/icons/Favorite'; import PersonPinIcon from '@material-ui/icons/PersonPin'; export default class IconLabelTabs extends ...
public/js/components/profile/visitor/MockChat.react.js
MadushikaPerera/Coupley
import React from 'react'; import Avatar from 'material-ui/lib/avatar'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import CommunicationChatBubble from 'material-ui/lib/svg-icons/communication/chat-bubble'; const ...
packages/@lyra/state-router/demo-server/entry.js
VegaPublish/vega-studio
// @flow import React from 'react' import ReactDOM from 'react-dom' import Main from './components/Main' import route from '../src/route' import RouterProvider from '../src/components/RouterProvider' import createHistory from 'history/createBrowserHistory' import NotFound from './components/NotFound' import type {Route...
src/index.js
eduarmreyes/ReactWeatherApp
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from "redux-promise"; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
internals/templates/containers/NotFoundPage/index.js
mattmanske/nnsb-admin
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/index.js
adithengky/react2602
import _ from 'lodash'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import SearchBar from './components/search_bar'; import YTSearch from 'youtube-api-search'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; const API_KEY = 'AIzaSyDi...
app/javascript/mastodon/features/directory/index.js
imas/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from 'mastodon/components/column'; import ColumnHeader from 'mastodon/components/column...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
ConnectedHomes/create-react-web-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id, ...rest } = { id: 0, user: { id: 42, ...
src/components/BookingForm/Name.js
humancatfood/bat-fe-test
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import MenuItem from '@material-ui/core/MenuItem'; const useStyles = makeStyles(theme => ({ select: { marginLeft: 0, minWidth: 60, }...
src/component/Header.js
chengfh11/react
import React, { Component } from 'react'; import logo from '../logo.svg'; export default class Header extends React.Component { render() { return <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to Cappuccino</h2> </div>; } }
client/components/ui/external-link.js
ZeHiro/kresus
import React from 'react'; export default props => ( <a href={props.href} rel="noopener noreferrer" target="_blank"> {props.children} </a> );
entry_types/scrolled/package/src/frontend/Widget.js
tf/pageflow
import React from 'react'; import {api} from './api'; import {useWidget} from '../entryState'; export function Widget({role}) { const widget = useWidget({role}); if (!widget) { return null; } const Component = api.widgetTypes.getComponent(widget.typeName); return ( <Component configuration={widge...
app/components/Counter.js
aaronjameslang/nhshd17
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Counter.css'; import {ipcRenderer} from 'electron'; class Counter extends Component { props: { increment: () => void, incrementIfOdd: () => void, incrementAsync: () => void, decrement: () => ...
app/ShotList.js
future-challenger/react-native-dribbble-app
//@flow import React from 'react'; import { ActivityIndicatorIOS, ListView, StyleSheet, Text, TextInput, View, } from 'react-native'; import * as api from "./helpers/api"; import ShotCell from "./ShotCell"; import ShotDetails from "./ShotDetails"; import Loading from "./Loading"; // Results...
client/src/components/nav/NavNoAuth.js
kevinladkins/newsfeed
import React from 'react' import {NavLink} from 'react-router-dom' const NavNoAuth = () => <nav className="navbar"> <NavLink className="navlink" to="/" >Login</NavLink> <NavLink className="navlink" to="/signup" >Sign Up</NavLink> </nav> export default NavN...
app/containers/AcquisitionPage/form.cc.js
rvsiqueira/client
import React from 'react'; import { reduxForm, Field } from 'redux-form/immutable'; import RenderField from 'components/RenderField'; import validate from './validate'; import FormFooter from 'components/FormFooter'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import P from 'compon...
gatsby-strapi-tutorial/cms/plugins/users-permissions/admin/src/components/Policies/index.js
strapi/strapi-examples
/** * * Policies * */ import React from 'react'; import cn from 'classnames'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { get, isEmpty, map, takeRight, toLower, without } from 'lodash'; import Input from 'components/InputsIndex'; import BoundRoute from '../BoundRoute'; ...
webapp-src/src/Login/scheme/MockSchemeForm.js
babelouest/glewlwyd
import React, { Component } from 'react'; import i18next from 'i18next'; import apiManager from '../../lib/APIManager'; import messageDispatcher from '../../lib/MessageDispatcher'; class MockSchemeForm extends Component { constructor(props) { super(props); this.state = { config: props.config, s...
examples/js/manipulation/default-search-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries' ];...
src/svg-icons/image/crop-7-5.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop75 = (props) => ( <SvgIcon {...props}> <path d="M19 7H5c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 8H5V9h14v6z"/> </SvgIcon> ); ImageCrop75 = pure(ImageCrop75); ImageCrop75...
app/containers/MarkerOverlay/index.js
thebakeryio/openmic
/* * * MarkerOverlay * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import markersSelector from 'markersSelector'; import projectSelector from 'projectSelector'; import { addMarker, clickOutsideOfMarkerOverlay } from './actions'; import Marker from...
src-client/components/NamespaceCard.js
ipselon/structor
/* * Copyright 2017 Alexander Pustovalov * * 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 a...
src/components/TraitList.js
hunt-genes/fasttrack
import React from 'react'; import Relay from 'react-relay'; import ExternalLink from './ExternalLink'; import Link from './Link'; class TraitList extends React.Component { static propTypes = { introduction: React.PropTypes.string, viewer: React.PropTypes.object, } static contextTypes = { ...
src/js/components/icons/base/Manual.js
odedre/grommet-final
/** * @description Manual SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @pro...
src/native/main.js
xiankai/triple-triad-solver
/* @flow */ import FBSDK from 'react-native-fbsdk'; import React from 'react'; import ReactNativeI18n from 'react-native-i18n'; import Root from './app/Root'; import configureStore from '../common/configureStore'; import initialState from './initialState'; import uuid from 'react-native-uuid'; import { AppRegistry, Asy...