path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/js/components/router.js
kukua/dashboard
import React from 'react' import { Router, useRouterHistory, Route, IndexRedirect } from 'react-router' import createBrowserHistory from 'history/lib/createBrowserHistory' import { current as user } from '../models/User' import notify from '../helpers/notify' import Layout from './layout/master' import NoMatch from '....
src/parser/shaman/restoration/modules/talents/HighTide.js
FaideWW/WoWAnalyzer
import React from 'react'; import HIT_TYPES from 'game/HIT_TYPES'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import calculateEffectiveHealing from 'parser/core/calculateEffectiveHealing'...
docs/app/Examples/modules/Popup/Types/PopupExampleTitled.js
shengnian/shengnian-ui-react
import React from 'react' import { Image, Popup } from 'shengnian-ui-react' const users = [ { name: 'Elliot Fu', bio: 'Elliot has been a member since July 2012', avatar: '/assets/images/avatar/small/elliot.jpg', }, { name: 'Stevie Feliciano', bio: 'Stevie has been a member since August 2013',...
soft64-quantum/es6/Main.js
bryanperris/Soft64-Bryan
// jshint esversion:6 import Remote from 'remote'; import React from 'react'; import ReactDOM from 'react-dom'; import {Tabs, Tab} from 'material-ui/Tabs'; import RaisedButton from 'material-ui/RaisedButton'; import Slider from 'material-ui/Slider'; import MainStyle from './Style.js'; const mainWindow = Remote.getCurr...
docs/src/app/components/pages/components/Slider/Page.js
barakmitz/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 sliderReadmeText from './README'; import SliderExampleSimple from './Exam...
blueocean-material-icons/src/js/components/svg-icons/social/notifications-none.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialNotificationsNone = (props) => ( <SvgIcon {...props}> <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2....
src/components/ColorInfo.js
selrond/coloreact
import React, { Component } from 'react'; import styled from 'styled-components'; const InfoLayout = styled.div` padding: 2.5em; background: #fff; `; const ColorName = styled.div` width: 100%; margin-bottom: 1.25em; & > * { font-size: 2em; font-family: 'Raleway'; font-weight: 900; text-transform: upperc...
src/svg-icons/av/mic-none.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMicNone = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ...
src/js/components/IconLink.js
bcongdon/sgdq-stats
import React from 'react' import Glyphicon from 'react-bootstrap/lib/Glyphicon' import { PropTypes } from 'prop-types' import { LIGHT_FILL_COLOR, DARK_FILL_COLOR } from '../constants' const IconLink = ({ icon, active, ...props }) => { const color = active ? DARK_FILL_COLOR : LIGHT_FILL_COLOR return ( <a ...
src/interface/icons/Cancel.js
ronaldpereira/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=circled%20cross&i=1144421 // Created by johartcamp from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}> <path d="M 50 5 C 25.18272 5 5 25.1827 5 50 C 5 7...
app/client/index.js
Kharatsa/SampleTransportTracking
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './containers/Root.jsx'; import store from './store.js'; ReactDOM.render( <Root store={store} />, document.getElementById('root') );
src/Options/index.js
CrashHere/react-frontend
import React, { Component } from 'react'; import './options.css'; import GpsOrManual from "./components/GpsOrManual" import LocationInput from "./components/LocationInput" class Options extends Component { state = { component: "gpsOrManual" } toggleComponent = (component) => () => { this.setState({ ...
src/js/components/icons/LinkedIn.js
samogami/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; export default class LinkedIn extends Component { componentDidMount () { console.warn('This icon has been deprecated. Please check http://www.grommet.io/docs/develop/icon for the new set of icons.'); ...
js/components/settings/navigationbuttonrow.js
stage88/react-weather
/** * @flow */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, View, Text, StatusBar, TouchableHighlight } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; type Props = { text: string; navigator: any; component: any; style: any; }; class N...
packages/material-ui-icons/src/Brightness5.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><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 2.69 6 6-2.69 6-6 6z" /></g> , 'Brightness5');
ui/src/components/EndBarHeader.js
gimite/personfinder
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
frontend/app_v2/src/common/icons/Login.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' /** * @summary Login * @component * * @param {object} props * * @returns {node} jsx markup */ function Login({ styling }) { return ( <svg xmlns="http://www.w3.org/2000/svg" enableBackground="new 0 0 24 24" viewBox="0 0 24 24" className={styling}>...
docs/src/app/components/pages/components/FlatButton/ExampleIcon.js
barakmitz/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import {fullWhite} from 'material-ui/styles/colors'; const style = { margin: 12, }; const FlatButtonExampleIcon = () => ( <div>...
src/svg-icons/image/exposure-neg-2.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureNeg2 = (props) => ( <SvgIcon {...props}> <path d="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81...
app/javascript/mastodon/features/public_timeline/index.js
masarakki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/svg-icons/image/filter-4.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter4 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-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 16H7V3h14...
src/components/HeatMap.js
fullstackreact/google-maps-react
import React from 'react' import PropTypes from 'prop-types' import { camelize } from '../lib/String' const evtNames = ['click', 'mouseover', 'recenter']; const wrappedPromise = function() { var wrappedPromise = {}, promise = new Promise(function (resolve, reject) { wrappedPromise.resolve = re...
src-client/modules/workspace/containers/SelectionControls/index.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...
node_modules/react-bootstrap/es/NavbarBrand.js
xuan6/admin_dashboard_local_dev
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/placeholderStyle.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import { Style } from 'radium'; function generateUniqueId() { return Math.floor((Math.random() * 10000) + 1) + '-' + +Math.floor((Math.random() * 10000) + 1) + '-' + +Math.floor((Math.random() * 10000) + 1) + '-' + +Math.floor((Math.random() * 10000) + 1) + '-' + +Math.floor...
client/components/entry/LoginPage.js
andela-tisrael/checkpoint-document-management
import React from 'react'; class LoginPage extends React.Component { render() { return ( <div className="jumbotron text-center"> <main> <center> <img className="responsive-img" src="http://i.imgur.com/ax0NCsK.gif" /> <div className="section"></div> <h5 className="white-text">...
lib/components/notification.js
bekher/hyperterm
import React from 'react'; import Component from '../component'; export default class Notification extends Component { constructor () { super(); this.state = { dismissing: false }; this.dismiss = this.dismiss.bind(this); this.onElement = this.onElement.bind(this); } componentDidMount ...
admin/client/Signin/components/Brand.js
webteckie/keystone
/** * Renders a logo, defaulting to the Keystone logo if no brand is specified in * the configuration */ import React from 'react'; const Brand = function (props) { // Default to the KeystoneJS logo let logo = { src: `${Keystone.adminPath}/images/logo.png`, width: 205, height: 68 }; if (props.logo) { // If th...
frontend/containers/form/ChildrenDisplay.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import BasicFieldComponent from './BasicFieldComponent'; const ChildrenDisplay = ({children}) => <div>{children}</div>; ChildrenDisplay.propTypes = { children: PropTypes.node.isRequired, }; export default BasicFieldComponent()(ChildrenDisplay);
src/svg-icons/maps/place.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPlace = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"...
src/app/component/icon/icon.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import Icon from '.' import icon from '../../../asset/icon/placeholder.svg' storiesOf('Icon', module) .add('default', () => <Icon source={icon} />) .add('block', () => <Icon source={icon} block />)
client/modules/core/components/.stories/post.js
TheAncientGoat/mantra-sample-blog-coffee
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; const Post = require('../post.coffee'); storiesOf('core.Post', module) .add('default view', () => { const post = { title: 'React storybook is great', content: ` Lorem ipsum dolor sit amet, consectetur adipisicin...
actor-apps/app-web/src/app/components/Main.react.js
hardikamal/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
src/downloader.js
matthewbadeau/OSHW-Logo-Autogen
import React, { Component } from 'react'; import { Row, Col, Input, Button } from 'react-materialize'; export default class Downloader extends Component{ constructor(){ super(); this.state = { filename: 'oshw-logo', filetype: 'png', width: 400, height: 400 } this.handleImageSi...
test/integration/client-navigation/pages/fragment-syntax.js
azukaru/next.js
/* eslint-disable */ import React from 'react' export default () => <>My component!</>
src/pages/PlayerDetail/components/Player.js
iGameLab/teleport-client
import React from 'react' import { Link } from 'react-router' import config from '../../../config' export default class Player extends React.Component{ static defaultProps={ player: null } handleSignOut(){ this.props.onSignOut() } render(){ if(this.props.player){ ...
src/components/icons/GroupAddIcon.js
austinknight/ui-components
import React from 'react'; const GroupAddIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none" /> <path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S...
app/components/Presentation/index.js
juanda99/arasaac-frontend
/** * * Welcome * */ import React from 'react' import PropTypes from 'prop-types' import { FormattedMessage } from 'react-intl' import muiThemeable from 'material-ui/styles/muiThemeable' import withWidth, { SMALL } from 'material-ui/utils/withWidth' import LocaleToggle from 'containers/LocaleToggle' import FullWid...
react-dev/pages/social_media_static.js
InsidiousMind/code.LiquidThink
import React from 'react'; import IconButton from 'material-ui/IconButton'; import { green900 } from 'material-ui/styles/colors'; const iconStyles = { icon: { marginRight: 8, iconHoverColor: green900, }, hoveredStyle: { color: green900, }, linkStyle: { padding: 0, width: 28, } }; //it...
src/js/views/resignButtonview/resignButtonview.js
lacker/cardkit
import React, { Component } from 'react'; import Button from '../buttonview/buttonview'; import GameState from "../../gamestate" import Client from "../../client" export default class ResignButton extends Button { resign() { window.client.makeLocalMove({"op":"resign"}) clearInterval(window.game.localTimeLoop...
client/src/Components/NewClient.js
teamcrux/EmploymentOptions
import React from 'react'; import { Field, FieldArray, reduxForm } from 'redux-form'; import { Redirect } from 'react-router-dom'; import validate from './validate'; import UserHeader from './UserHeader'; import UserNavBar from './UserNavBar'; const renderErrField = ({ input, label, type, meta: { touched, error } }) =...
app/javascript/mastodon/features/getting_started/index.js
primenumber/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/components/link-repo.js
ReactJS-BA/meetup-2016-04-05
import React from 'react'; import {Link} from 'react-router'; class LinkRepo extends React.Component { render() { let url = this.props.repo.owner.login + '/' + this.props.repo.name; return ( <Link to={url} className="repo-link"> <h2>{url}</h2> <p>{this.p...
src/components/Submitform/Submitform.js
pavlosvos/krifominima
/** * 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 withStyles from 'isomorp...
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js
fengshao0907/actor-platform
import _ from 'lodash'; import Immutable from 'immutable'; import keymirror from 'keymirror'; import React from 'react'; import { Styles, TextField, FlatButton } from 'material-ui'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import ContactStore from 'stores/ContactStore'; import Cont...
react/src/pages/logs/logs.js
motiko/sfdc-debug-logs
import React from 'react' import Snackbar from 'material-ui/Snackbar' import ChatIcon from 'material-ui-icons/Chat' import HomeIcon from 'material-ui-icons/Home' import Button from 'material-ui/Button' import { Link, Route, Switch } from 'react-router-dom' import Toolbar from 'material-ui/Toolbar' import AppBar from 'm...
src/svg-icons/communication/swap-calls.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationSwapCalls = (props) => ( <SvgIcon {...props}> <path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8...
admin/client/App/shared/Popout/PopoutPane.js
frontyard/keystone
/** * Render a popout pane, calls props.onLayout when the component mounts */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: Re...
tests/format/flow-repo/react_modules/es6class-types-callsite.js
prettier/prettier
/* @flow */ import React from 'react'; import Hello from './es6class-types-module'; type Props = {name: string}; class HelloLocal extends React.Component<void, Props, void> { props: Props; render(): React.Element<*> { return <div>{this.props.name}</div>; } } class Callsite extends React.Component<void, Pr...
src/components/Main.js
jshqhxm/gallery-by-react
require('normalize.css/normalize.css'); // require('styles/App.css'); require('../styles/main.scss'); import React from 'react'; import ReactDOM from 'react-dom'; // var React = require('react/addons'); let path = require('path'); let yeomanImage = require('../images/yeoman.png'); // let yeomanImage = require('../i...
node_modules/react-native-htmlview/AutoSizedImage.js
tausifmuzaffar/bisApp
import React from 'react'; import { Image, Dimensions, } from 'react-native'; const {width} = Dimensions.get('window'); const baseStyle = { backgroundColor: 'transparent', }; export default class AutoSizedImage extends React.Component { constructor(props) { super(props); this.state = { // set w...
packages/icons/src/md/file/Cloud.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdCloud(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38.71 20.07C37.35 13.19 31.28 8 24 8c-5.78 0-10.79 3.28-13.3 8.07C4.69 16.72 0 21.81 0 28c0 6.63 5.37 12 12 12h26c5.52 0 10-4.48 10-10 0-5.28-4.11-9.5...
src/presentation/Posts.js
shek8034/react-webpack-setup
import React from 'react'; import Post from './Post'; export default function Posts(props) { return ( <div> { props.posts.map((post, idx) => <Post key={idx} post={post} />)} </div> ) }
src/utils/childrenValueInputValidation.js
johanneshilden/react-bootstrap
import React from 'react'; import { singlePropFrom } from './CustomPropTypes'; const propList = ['children', 'value']; const typeList = [React.PropTypes.number, React.PropTypes.string]; export default function valueValidation(props, propName, componentName) { let error = singlePropFrom(propList)(props, propName, co...
src/containers/VisibleHeader.js
LiveTyping/android-colors
import React, { Component } from 'react'; import { PropTypes } from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Header from '../components/Header/Header'; import { setHelpBlockHidden, setHelpBlockVisible, setInitialHelpBlockVisiblity } from '../actions/header'...
react-router-demo/lessons/10-clean-urls/modules/NavLink.js
zhangjunhd/react-examples
// modules/NavLink.js import React from 'react' import { Link } from 'react-router' export default React.createClass({ render() { return <Link {...this.props} activeClassName="active"/> } })
app/src/components/About.js
tom-s/3d-ears
import React from 'react' const About = (props) => { return ( <div> about </div> ) } export default About
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/insert-drive-file.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorInsertDriveFile = (props) => ( <SvgIcon {...props}> <path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/> </SvgIcon> ); EditorInsertDriveFile.displayName = 'EditorInsertDriveFile'; ...
developers.diem.com/src/components/docs/MarketingModule/index.js
libra/libra
import React from 'react'; import PropTypes from 'prop-types'; import Link from "@docusaurus/Link"; import styles from './styles.module.css'; import Arrow from 'img/marketing-arrow.svg'; const MarketingModule = ({copy, cta, ctaLink, img, imgAlt, title}) => ( <Link className={styles.cta} href={ctaLink}> <div cl...
src/svg-icons/image/photo-library.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoLibrary = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>...
dashboard-ui/app/components/dashboardproject/projectscontainer.js
CloudBoost/cloudboost
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import Project from './project.js'; import { manageApp, exitApp, updateBeacon, fetchAppSettings, upsertAppSettingsFile, showAlert } from '../../actions'; import { connect } from 'react-redux'; import { Grid, Row, Col } from 'react...
react-client/src/index.js
wfwalker/freesound-experiment
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
week3/react/my-first-app/src/bootstrap/Jumbo.js
jfhinchcliffe/Coderfactory_Term3_Notes
import React from 'react' export default function Jumbo({ heading, text }){ return ( <div className="jumbotron"> <h1>{ heading }</h1> <p>{ text }</p> </div> ) }
src/containers/DevToolsWindow.js
gramulos/noteapp
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' export default createDevTools( <LogMonitor /> )
pootle/static/js/editor/components/EditorPluralFormHeader.js
phlax/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 { t } from 'utils/i18n'...
frontend/app/common/conf/routes.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import selectn from 'selectn' import ProviderHelpers from 'common/ProviderHelpers' import NavigationHelpers from 'common/NavigationHelpers' import IntlService from 'common/services/IntlService' import * as Pages from 'common/conf/pagesIndex' import { ServiceShortURL } from 'common/services' i...
packages/envision-docs/src/pages/404.js
sitevision/envision
import React from 'react'; const FourOFour = () => { return ( <div className="env-p-around--large"> <h1 className="env-text">404 - Page not found</h1> <p className="env-text"> Oops! That page does not exist. <a href="/">Home</a> </p> </div> ); }; export default...
app/components/InputRow.js
RoadToGlobal/ClientDistro
import React from 'react'; import MagicInput from './MagicInput'; class InputRow extends React.Component { render() { return ( <div> <MagicInput /> </div> ); } } export default InputRow;
ReactNativeCameraTest/index.ios.js
agenthunt/react-native-scratchpad
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import App from './App'; AppRegistry.registerComponent('ReactNativeCameraTest', () => App);
src/Home.js
rdwrcode/myreact-demo
import React from 'react' //import Todo from './todo/Todo' //import Visual from './Visual' import TodoApp from './react-todo/TodoApp'; //import PieChart from './PieChart' const Home = () => ( <div> <h2>Home</h2> <TodoApp /> </div> ) export default Home
src/svg-icons/communication/call.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCall = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-...
components/projectList.js
caryfuk/architektka
import React from 'react' import access from 'safe-access' import sortBy from 'lodash/sortBy' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' class ProjectList extends React.Component { render () { const { route, category, featured } = this.props const pageLinks = [] funct...
docs/app/Examples/collections/Grid/Types/GridExampleGrid.js
Rohanhacker/Semantic-UI-React
import _ from 'lodash' import React from 'react' import { Grid, Image } from 'semantic-ui-react' const columns = _.times(16, (i) => ( <Grid.Column key={i}> <Image src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.Column> )) const GridExampleGrid = () => ( <Grid>{columns}</Grid> ) export def...
.storybook/includes/docs-page.js
KissKissBankBank/kitten
import React from 'react' import { Title, Subtitle, Description, Primary, ArgsTable, Stories, Heading, PRIMARY_STORY, } from '@storybook/addon-docs' import { FileUrl } from 'storybook/file-url' import { FileImport } from 'storybook/file-import' export const DocsPage = ({ filepath, filenames, importStri...
src/charts/series-chart.js
WaldoJeffers/react-dc
import React from 'react' import dc from 'dc' import CompositeChart from './composite-chart' import seriesMixin from '../mixins/series-mixin' @seriesMixin export default class SeriesChart extends CompositeChart{ static displayName = 'SeriesChart' componentDidMount(){ this.chart = dc.seriesChart(this.chart) ...
front/src/components/Story.js
dherault/Aquest
import React from 'react'; import moment from 'moment'; import { createFragmentContainer, graphql } from 'react-relay'; import DiskImage from './DiskImage'; const sLayout = { backgroundColor: 'white', width: '40vw', // maxWidth: '100vw', padding: '1rem', boxShadow: '0px 3px 10px 0px rgba(0,0,0,0.50)', }; c...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Tabs.js
Akkuma/npm-cache-benchmark
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 ...
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js
manchesergit/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleSimple = () => ( <div style={style.container}> <RefreshIn...
blueprints/component/files/src/components/__name__/__name__.js
ptim/react-redux-starter-kit
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h1><%= pascalEntityName %></h1> </div> ) export default <%= pascalEntityName %>
docs/app/Examples/modules/Sidebar/Uncover/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const SidebarVariationsExamples = () => ( <ExampleSection title='Uncover'> <ComponentExample title='Left Uncover' de...
examples/huge-apps/components/App.js
wmyers/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { static loadProps (params, cb) { console.log('App', 'loadProps'); cb(null, { courses: COURSES }); } render () { var { courses, loading } = this.props; return (...
src/app/management/Schools/Edit/Edit.js
drivesense/server
import React from 'react'; import { Dialog, FlatButton } from 'material-ui'; export default class Edit extends React.Component { render() { const actions = [ <FlatButton label="Cancel" secondary={true} onTouchTap={this.props.dismiss}/>, <FlatButton label="Save" ...
src/components/post-listing/item-post-grid.js
Clip-sub/CSClient-RN
/** * @flow */ 'use strict'; import React from 'react'; import { View, TouchableOpacity, Image, Platform, Share } from 'react-native'; import { Text, Icon } from 'native-base'; import HTMLParser from 'fast-html-parser'; import he from 'he'; import { I18n } from 'csclient-common'; const ItemPostGrid = props => { co...
src/svg-icons/action/shop-two.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShopTwo = (props) => ( <SvgIcon {...props}> <path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4...
public/js/cat_source/es6/components/segments/SegmentTarget.js
Ostico/MateCat
/** * React Component . */ import React from 'react' import EditArea from './Editarea' import TagUtils from '../../utils/tagUtils' import CursorUtils from '../../utils/cursorUtils' import Customizations from '../../utils/customizations' import SegmentConstants from '../../constants/SegmentConstants' import SegmentSt...
src/containers/Search.js
Hylozoic/hylo-redux
import React from 'react' import { prefetch } from 'react-fetcher' import { connect } from 'react-redux' import { connectedListProps, fetchWithCache, refetch } from '../util/caching' import { makeUrl } from '../util/navigation' import { navigate, search } from '../actions' import { debounce, isEmpty } from 'lodash' imp...
src/Shapetastic.js
borisyankov/shapetastic
import React from 'react'; export default class Shapetastic { render() { return ( <svg {...this.props}> {this.props.children} </svg> ); } }
client/main.js
hr-memories/greenfield
import Exponent from 'exponent'; import React from 'react'; import Login from './login'; import Homescreen from './homescreen'; import Memory from './memory'; import Memories from './memories'; import { Navigator } from 'react-native'; class App extends React.Component { renderScene(route, navigator) { if (rou...
src/main/javascript/src/Components/Player-List/Player-List.js
themoderngeek/sonos-web-controller
import React from 'react'; import Player from '../Player/Player'; import './player-list.css'; export default ({players}) => <div className="Player-List"> <h1>Rooms</h1> <ul> {players.map(player => <li key={player.displayName}> <Player name={player.displayName} /> ...
web/src/Components/Input.js
Dinoshauer/random-wod
import React from 'react'; const Input = ({ onChange }) => ( <div className='row'> <form> <div className='form-group'> <input autoFocus type='text' placeholder='Enter your name!' className='form-control' onChange={ onChange } /> </div> </f...
docs/src/app/components/pages/discover-more/Community.js
w01fgang/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import communityText from './community.md'; const Community = () => ( <div> <Title render={(previousTitle) => `Community - ${previousTitle}`} /> <MarkdownElement text={communityText} /> ...
javascript/AddOn/SearchBar.js
AppStateESS/stories
'use strict' import React from 'react' import PropTypes from 'prop-types' const SearchBar = ({search, handleChange, clearSearch}) => { return ( <li> <form className="navbar-form search" role="search" onSubmit={function (e) { e.preventDefault() }}> <div clas...
node_modules/react-native-form-generator/examples/FormView.js
paulunits/tiptap
/* This is a view i use in a test app, very useful to list all the use cases */ import React from 'react'; import { AppRegistry, StyleSheet, Text, View,ScrollView,TouchableHighlight, Modal } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { Form, Separator,InputField, Lin...
templates/rubix/rails/rails-seed/src/common/footer.js
jeffthemaximum/jeffline
import React from 'react'; import { Row, Col, Grid, } from '@sketchpixy/rubix'; export default class Footer extends React.Component { state = { version: 0 }; componentDidMount() { this.setState({ version: document.body.getAttribute('data-version') }); } render() { var year = ne...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/FlowNone.js
ylu1317/flow
import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props, State> { static defaultProps: DefaultProps = {}; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Compon...
src/svg-icons/action/settings-input-hdmi.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputHdmi = (props) => ( <SvgIcon {...props}> <path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/> </SvgIcon> ); ActionSettingsInputHd...
docs/src/app/components/pages/components/List/ExampleNested.js
xmityaz/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import ContentInbox from 'material-ui/svg-icons/content/inbox'; import ContentDrafts from 'material-ui/svg-icons/content/draft...
react/features/filmstrip/components/web/StatusIndicators.js
bgrozev/jitsi-meet
/* @flow */ import React, { Component } from 'react'; import { getLocalParticipant, getParticipantById, PARTICIPANT_ROLE } from '../../../base/participants'; import { connect } from '../../../base/redux'; import { getCurrentLayout, LAYOUTS } from '../../../video-layout'; import AudioMutedIndicator from './AudioMuted...
techCurriculum/ui/solutions/3.1/src/components/Message.js
jennybkim/engineeringessentials
/** * 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...
app/templates/src/components/Loader/Loader.js
KarolAltamirano/generator-react-web
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import styles from './styles.scss'; const Loader = ({ progress }: Object) => ( <div className={styles.wrapper}> <FormattedMessage {...messages.loading} value...