path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/social/location-city.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialLocationCity = (props) => ( <SvgIcon {...props}> <path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h...
src/components/Pagination.js
a-type/redux-data-table
import React from 'react'; import PropTypes from 'prop-types'; export default class Pagination extends React.Component { static propTypes = { currentPage: PropTypes.number.isRequired, goToPage: PropTypes.func.isRequired, }; constructor(props) { super(props); this.state = { jumpPage: 0 }; } ...
src/index.js
brycedorn/react-intense
'use strict'; require("./styles.css"); import React from 'react' import { render } from 'react-dom' import ReactIntense from '../lib/ReactIntense' const ga = { initialize: () => {}, event: () => {}, pageview: () => {} }; const DemoImages = [{ caption: 'An annual month-long festival in Kyoto', className: '...
docs/src/pages/demos/selection-controls/Switches.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import green from 'material-ui/colors/green'; import Switch from 'material-ui/Switch'; const styles = { bar: {}, checked: { color: green[5...
PopUp/index.android.js
jennselby/ReactNativeExamples
import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import ModalExample from './ModalExample.js'; export default class PopUp extends Component { render() { return ( <ModalExample /> ); } } AppRegistry.registerComponent('PopUp', () => PopUp);
app/containers/RepoListItem/index.js
BartoszBazanski/react-100-pushup-challenge
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } from 'containers/App/selectors'; import...
app/scripts/components/header.js
magicae/magicae.github.io
import React from 'react'; class Header extends React.Component { render() { return ( <div className="header"> <title>Magica @ Nya</title> <h1>Magica @ Nya</h1> </div> ); } } export default Header;
src/entypo/VkAlternitive.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--VkAlternitive'; let EntypoVkAlternitive = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M19,17V3c0-1.1-0.903-2-2.005-2H3.005C1.855,1,1,1.853,1,3v14c0,1.148,0.855,2,2.005,2h13....
src/advanced_usage/custom_isomorphic_method/Controller.js
Lucifier129/react-imvc-template
import Controller from 'react-imvc/controller' import React from 'react' import Layout from '../../component/Layout' export default class extends Controller { View = View initialState = { userAgent: '' } /** * context 里包含 isServer/isClient 字段 * 标记当前是在 server 端还是 client * 可以通过条件判断...
src/js/components/_threads/filters/DoubleMultipleChoicesFilter.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ThreadSelectedFilter from './ThreadSelectedFilter'; import ThreadUnselectedFilter from './ThreadUnselectedFilter'; import TextCheckboxes from '../../ui/TextCheckboxes'; export default class DoubleMultipleChoicesFilter extends Componen...
client/src/dashboard/summary.js
brandiqa/open-lims
import React, { Component } from 'react'; import { Icon, Statistic, Divider, Segment, Progress, Grid, Feed, Header } from 'semantic-ui-react'; class DashboardSummary extends Component { render() { const statsPanel = ( <Segment inverted> <Header inverted>Annual Summary</Header> <Divider/> ...
webapp/imports/ui/components/PublicSidebar.js
clinical-meteor/meteor-on-fhir
import { List, ListItem } from 'material-ui'; import MenuItem from '/imports/ui/components/MenuItem'; import { IndexLinkContainer } from 'react-router-bootstrap'; import React from 'react'; import { ReactMeteorData } from 'meteor/react-meteor-data'; import ReactMixin from 'react-mixin'; import { get } from 'lodash'; ...
node_modules/native-base/src/smart/STabs/index.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { View, Animated, Dimensions, ScrollView, Platform, ViewPagerAndroid } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; import { TabBar } from './TabBar'; class STabs extends Compone...
components/Pagination/PaginationLink.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import noop from '../../utils/noop'; import Icon from '../Icon/Icon'; import ScreenReadable from '../ScreenReadable/ScreenReadable'; import css from './PaginationLink.css'; export const NextLink = props => ( ...
src/frontend/app/store/middleware/upcoming_alert.js
pigulla/google-calendar-dayview
import Layer from 'react-layer'; import React from 'react'; import { Provider } from 'react-redux'; import store from 'app/store/'; import AlertOverlay from 'app/component/AlertOverlay'; import { set_upcoming_handled, SET_UPCOMING, UNSET_UPCOMING, SET_UPCOMING_HANDLED } from 'app/store/action/calendars...
src/containers/Root.js
AndrewTHuang/fear-the-repo
import React from 'react'; import { Provider } from 'react-redux'; import routes from '../routes'; import { ReduxRouter } from 'redux-router'; import DevTools from './DevTools'; import { createDevToolsWindow } from '../utils'; import HTML5Backend from 'react-dnd-html5-backend'; import { DragDropContext } from 'react-dn...
packages/react-error-overlay/src/components/Footer.js
just-boris/create-preact-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. */ /* @flow */ import React from 'react'; import { darkGray } from '../styles'; const footerStyle = { fontFamily: 'sans-serif', color:...
router_tutorial/06-params/modules/App.js
Muzietto/react-playground
import React from 'react' import NavLink from './NavLink' export default React.createClass({ render() { return ( <div> <h1>React Router Tutorial</h1> <ul role="nav"> <li><NavLink to="/about">About</NavLink></li> <li><NavLink to="/repos">Repos</NavLink></li> </ul>...
src/client/wallet/Transfer.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { injectIntl, FormattedMessage } from 'react-intl'; import _ from 'lodash'; import { Form, Input, Radio, Modal } from 'antd'; import { STEEM, SBD } from '../../common/constants/cryptos'; import steemAPI from '.....
frontend/src/App.js
buildleft/donorbuddy
import React, { Component } from 'react'; import './App.css'; import User from './User'; import Orgs from './Orgs'; class App extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col-lg-12 text-center"> <h1>DonorBuddy</h1> ...
app/assets/scripts/views/projects-hub/project-card.js
openaq/openaq.org
import React from 'react'; import { PropTypes as T } from 'prop-types'; import moment from 'moment'; import { formatThousands } from '../../utils/format'; import Card, { CardDetails, FooterActions } from '../../components/card'; export default function ProjectCard({ onDownloadClick, lastUpdated, id, name, s...
src/components/videoListItem.js
gabriellisboa/reduxStudies
import React from 'react'; const VideoListItem = ({ video, onVideoClick }) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoClick(video)} className="list-group-item"> <div className="video-list media"> <div className="media-left...
src/components/Header/Header.js
fvalencia/react-vimeo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
docs/app/Examples/modules/Dimmer/Variations/DimmerExampleSimple.js
mohammed88/Semantic-UI-React
import React from 'react' import { Dimmer, Segment } from 'semantic-ui-react' const DimmerExampleSimple = () => ( <Dimmer.Dimmable as={Segment} dimmed> <Dimmer simple /> <p> <img src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> </p> <p> <img src='http://semantic-ui.co...
src/svg-icons/device/signal-wifi-1-bar-lock.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
src/containers/AdminContainer.js
jpke/elearn
import React from 'react'; import {connect} from 'react-redux'; import {updateCourse, editCourse, addUser, deleteUser, deleteUserFromCourse} from '../actions/eLearnActions'; import listUsers from '../utils/listUsers'; import AdminView from '../components/AdminView'; //container for AdminView //prevents default form su...
src/svg-icons/maps/rate-review.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRateReview = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1...
src/components/Track/ipInfo.js
StudentRND/www
import React from 'react' import axios from 'axios' /* * Provides props: * - ip * - lat * - lng * - city * - state * - country * - orgName */ export default (Component) => class extends React.Component { constructor(props) { super(props); this.state = this.getCachedIpInfo(); } ren...
classic/src/scenes/mailboxes/src/Scenes/AppScene/Welcome/Common/WelcomePanelGridVR.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' import classNames from 'classnames' import shallowCompare from 'react-addons-shallow-compare' const styles = { root: { display: 'flex', justifyContent: 'center', alignItems: 'center', zI...
docs/src/app/components/pages/components/RaisedButton/ExampleIcon.js
tan-jerene/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import {fullWhite} from 'material-ui/styles/colors'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import FontIcon from 'material-ui/FontIcon'; const style = { margin: 12, }; const RaisedButtonExampleIcon = () => ( ...
docs/dev/index.js
exelban/js-popup
import React from 'react'; import ReactDOM from 'react-dom'; import PopupClass from '../../src/js-popup'; require ('../../src/style.min.css'); let test_i = 0; function test() { test_i++; let e = document.getElementById("console"); e.innerHTML = "Clicked: "+test_i; } let Popup; const MainView = React.crea...
node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js
TrungSpy/React-Native-SampleProject
/** * 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/routes.js
pekkis/dr-kobros-2016
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import { receiveTodos } from './actions/todo-actions'; import TodoApp from './components/container/TodoAppContainer'; import IndexPage from './components/container/IndexPageContainer'; import TodoPage from './components/container/TodoPageCont...
src/modules/keywords/components/KeywordList/KeywordList.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; // components import KeywordTeaser from '../KeywordTeaser'; const KeywordList = ({ keywords }) => ( <div className="keywords-list"> {keywords.map((keyword, i) => ( <KeywordTeaser key={i} keyword={keyword} /> ))} </div> ); KeywordList....
resources/apps/frontend/src/components/Form/Select/SubscriptionStatusSelect.js
johndavedecano/PHPLaravelGymManagementSystem
import React from 'react'; import Select from 'react-select'; const options = [ {value: 'active', label: 'Active'}, {value: 'inactive', label: 'Inactive'}, {value: 'deleted', label: 'Deleted'}, {value: 'suspended', label: 'Suspended'}, {value: 'expired', label: 'Expired'}, ]; export default props => { ret...
docs/app/Examples/elements/Input/Types/InputExampleInput.js
shengnian/shengnian-ui-react
import React from 'react' import { Input } from 'shengnian-ui-react' const InputExampleInput = () => ( <Input placeholder='Search...' /> ) export default InputExampleInput
js/App/Components/Device/AddDevice/IncludeDevice.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
app/equations/ReynoldsNumber.js
stevenpan91/ChemicalEngineerHelper
import React, { Component } from 'react'; import { AppRegistry, Text, View, Button, StyleSheet, TouchableOpacity } from 'react-native'; import { StackNavigator } from 'react-navigation'; import CalculationClass from '../classes/CalculationClass' export default class ReynoldsNumber extends Component { ...
imports/ui/pages/MyAccount.js
hirdbluebird/recipe-app-react
import React from 'react'; import { Jumbotron } from 'react-bootstrap'; import { Router, Route, browserHistory } from 'react-router'; import { Link } from 'react-router'; const Index = () => ( <div className="Index"> <Jumbotron className="text-center"> <h2>Welcome to recipe-app!</h2> <p>Chose your ow...
src/svg-icons/places/smoking-rooms.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesSmokingRooms = (props) => ( <SvgIcon {...props}> <path d="M2 16h15v3H2zm18.5 0H22v3h-1.5zM18 16h1.5v3H18zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16....
addons/info/src/components/PropTable/components/Td.js
storybooks/react-storybook
import PropTypes from 'prop-types'; import React from 'react'; import '../style.css'; const Td = ({ isMonospace, children }) => ( <td className={isMonospace ? 'info-table-monospace' : null}>{children}</td> ); Td.propTypes = { children: PropTypes.oneOfType([ PropTypes.node, PropTypes.element, PropTypes...
client/src/ConvScreen.js
nux17/kryptchat
import React from 'react'; import { ListView, StyleSheet, TextInput, KeyboardAvoidingView, View, Dimensions, Text, AsyncStorage } from 'react-native'; import Bubble from "./Bubble"; import Link from "react-router-native/Link"; import { encrypt, decrypt, getKeys, getJWT, getCurrentUser, getKeyForUser } fro...
packages/material-ui-icons/src/Router.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Router = props => <SvgIcon {...props}> <path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5...
src/app/views/Contact/index.js
nhardy/web-scaffold
import React, { Component } from 'react'; import { Helmet } from 'react-helmet'; import cx from 'classnames'; import NProgress from 'nprogress'; import config from 'app/config'; import { checkStatus } from 'app/lib/fetch'; import { makeTitle } from 'app/lib/social'; import DefaultLayout from 'app/layouts/Default'; imp...
test/components/header.js
worldbank-cdrp/disaster-risk-explorer
import React from 'react' import test from 'ava' import { shallow } from 'enzyme' import Header from '../../app/assets/scripts/components/header' test('header test', t => { const component = shallow(<Header />) t.truthy(component.hasClass('header')) })
src/components/ipns-manager/remove-key-modal/RemoveKeyModal.js
ipfs/webui
import React from 'react' import PropTypes from 'prop-types' import TrashIcon from '../../../icons/StrokeTrash' import Button from '../../../components/button/Button' import { Modal, ModalActions, ModalBody } from '../../../components/modal/Modal' import { Trans } from 'react-i18next' const RemoveKeyModal = ({ t, tRea...
src/scripts/components/layout/Tab.js
arkon/ColourNTP
import React from 'react'; const Tab = ({ children }) => ( <div className='tabs__tab__content'> {children} </div> ); export default Tab;
src/components/GameGridLayout.js
pumpost/pwa-bkk
import React from 'react' const shipMapTable = [ [0,0],[1,0],[2,0],[3,0],[4,0], [0,1],[1,1],[2,1],[3,1],[4,1], [0,2],[1,2],[2,2],[3,2],[4,2], [0,3],[1,3],[2,3],[3,3],[4,3], ] const genShip = (fieldId, pos, shipImg, type) => { const widthHeight = document.getElementById(type + '-slot1').offsetWidth const s...
assets/search-view/components/NavbarComponent.js
janta-devs/nyumbani
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Actions from '../../DataStore/Actions'; //material-ui elements that are essential for the pop-up menu import Popover from 'material-ui/Popover'; imp...
src/svg-icons/device/signal-wifi-1-bar-lock.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
src/components/KeystoreUploader/CurrentWallet.js
ens-bid/ens-bid-dapp
import React from 'react'; import './CurrentWallet.css'; export const CurrentWallet = (props) => ( <div className="CurrentWallet"> <h2>Current Wallet</h2> <p> <span>Address: </span> {props.address} </p> <p> <span>Balance: </span> {props.balance} ETH </p> </div> );
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
bradparks/actor-platform___im_client_cross_platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
cfouant/katello
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { Spinner, OverlayTrigger, Tooltip } from 'patternfly-react'; const EnabledRepositoryContent = ({ loading, disableTooltipId, disableRepository }) => ( <Spinner loading={loading} inline> <OverlayTrigger overla...
app/AppRoutes.js
herereadthis/redwall
import React from 'react'; import {Route} from 'react-router'; import App from './app'; import NinetiesImage from 'views/Homepage/views/NinetiesImage.js'; import NinetiesImageIndex from 'views/Homepage/views/NinetiesImageIndex.js'; var routes, APP, NINETIES_IMG, NINETIES_IMG_INDEX; APP = 'app'; NINETIES_IMG = 'nin...
src/svg-icons/maps/hotel.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsHotel = pure(MapsHot...
src/scripts/routes.js
scyclow/fire-sale
import React from 'react'; import { IndexRoute, Route, Router } from 'react-router'; import { createHistory } from 'history'; import mobilize from './utils/mobilizeComponent'; import App from './containers/App'; import Summary from './containers/Summary'; import TimeTable from './containers/TimeTable'; import ItemNav...
docs/app/Examples/elements/Label/Groups/LabelExampleGroupCircular.js
clemensw/stardust
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleGroupCircular = () => ( <Label.Group circular> <Label as='a'>11</Label> <Label as='a'>22</Label> <Label as='a'>33</Label> <Label as='a'>44</Label> <Label as='a'>141</Label> </Label.Group> ) export default Lab...
src/components/Clip.js
DBozhinovski/beerjs.mk
import React from 'react'; // Black magic, obviously let height = 1000; if (typeof window !== 'undefined') { height = window.screen.height; } // const { height } = window ? window.screen : 1000; const factorY = 0.000002778; const Y = height * factorY; const Clip = () => ( <> <svg styles={{ height: 0, width: ...
resource/js/components/PageList/PagePath.js
crow-misia/crowi
import React from 'react'; export default class PagePath extends React.Component { getShortPath(path) { let name = path.replace(/(\/)$/, ''); // /.../hoge/YYYY/MM/DD 形式のページ if (name.match(/.+\/([^/]+\/\d{4}\/\d{2}\/\d{2})$/)) { return name.replace(/.+\/([^/]+\/\d{4}\/\d{2}\/\d{2})$/, '$1'); }...
app/lib/main.js
bwiggs/boom-beach-hq
import React from 'react' import App from 'app' React.render(<App />, document.body);
webpack/JobWizard/steps/form/WizardTitle.js
theforeman/foreman_remote_execution
import React from 'react'; import PropTypes from 'prop-types'; import { Title } from '@patternfly/react-core'; export const WizardTitle = ({ title, ...props }) => ( <Title headingLevel="h2" className="wizard-title" {...props}> {title} </Title> ); WizardTitle.propTypes = { title: PropTypes.string.isRequired,...
src/svg-icons/editor/multiline-chart.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMultilineChart = (props) => ( <SvgIcon {...props}> <path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3...
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js
prometheusresearch/create-react-app
/** * 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. */ import Rea...
src/svg-icons/image/filter-9.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter9 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM15 5h-2c-1.1 0-2 .89-2 2v...
src/views/BoxView.js
nitrog7/nl-fluid
import React from 'react'; import View from 'views/View'; import * as components from 'components'; const { Box, Code, Container } = components; export default class BoxView extends View { constructor(props) { super(props); this.state = {}; console.log('boxView', this); } render() { re...
src/parser/warrior/arms/modules/spells/azeritetraits/LordOfWar.js
ronaldpereira/WoWAnalyzer
import { calculateAzeriteEffects } from 'common/stats'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import React from 'react'; import Events from 'parser/core/Events'; impor...
src/shared/components/Media/index.js
CharlesMangwa/Chloe
/* @flow */ import React from 'react' import { TouchableWithoutFeedback, View } from 'react-native' import MediaContent from './MediaContent' import styles from './styles' type Props = { active: boolean, image: string, bookmarked?: boolean, onPress?: Function, tileNumber?: number, tileText?: string, til...
src/components/slack/plain-wordmark/SlackPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './SlackPlainWordmark.svg' /** SlackPlainWordmark */ function SlackPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'SlackPlainWor...
src/common/components/icons/features/More.js
ThinkingInReact/ThinkingInReact.xyz
/** * Icon based on ion-ios-more-outline */ import React, { Component } from 'react'; class More extends Component { render() { return ( <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 512 512"> <g> <pat...
dataprep-webapp/src/app/next/components/PreparationCopyMoveModal/PreparationCopyMoveModal.component.js
Talend/data-prep
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Immutable from 'immutable'; import { cmfConnect, Inject } from '@talend/react-cmf'; import { SelectObject, EditableText } from '@talend/react-containers'; import { translate } from 'react-i1...
addons/comments/src/index.js
enjoylife/storybook
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', }; const Button = ({ children, onClick, style = {} }) => <button style={{ ...buttonStyles, .....
modules/IndexLink.js
jdelight/react-router
import React from 'react'; import { component } from './PropTypes'; import Link from './Link'; var IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }); export default IndexLink;
src/entypo/Heart.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Heart'; let EntypoHeart = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M17.19,4.155c-1.672-1.534-4.383-1.534-6.055,0L10,5.197L8.864,4.155c-1.672-1.534-4.382-1.534-6.054,0c-1....
src/main/Root.dev.js
csenn/nn-visualizer
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import Main from './Main'; import DevTools from './DevTools'; /** * Component is exported for conditional usage in Root.js */ module.exports = class Root extends Component { render() { const { store } = this.props; return ( ...
src/routes.js
beewang/ccwang
import React from 'react' import { BrowserRouter as Router } from 'react-router-dom' import { StyleRoot } from 'radium' import NavBar from './components/NavBar' const styles = { backgroundColor: '#f7f7f7', position: 'relative', minHeight: '100vh', } export default () => ( <StyleRoot> <Router> <div ...
console-ui/src/pages/ConfigurationManagement/HistoryDetail/HistoryDetail.js
alibaba/nacos
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
js/dom_core.js
volodalexey/spachat
import React from 'react' var Dom_core = function() { }; Dom_core.prototype = { __class_name: "dom_core", /** * find parent node with predefined dataset */ traverseUpToDataset: function(startElement, datasetKey, datasetValue) { var parentNode = startElement.parentNode; if (parentNode) { if...
src/models/CBEModel.js
bshevchenko/ChronoMint
import React from 'react' import {Record as record} from 'immutable' import * as validation from '../components/forms/validate' import UserModel from './UserModel' class CBEModel extends record({ address: null, name: null, user: null }) { constructor (data = {}) { super({ ...data, user: data.us...
src/components/Navigation/Navigation.js
peeyush1234/react-nodejs-skeleton
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import cx from 'classnames';...
client/routes.js
bzswords/blackstallion
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import { NotFound } from './components/App.js'; import { App } from './components/App/index.js'; import { HomePage } from './components/HomePage/index.js'; import { Booking } from './components/Booking/index.js'; import { Travel } from './com...
src/js/components/Nav/stories/Simple.js
grommet/grommet
import React from 'react'; import { Anchor, Nav } from 'grommet'; const items = [ { label: 'Item A', href: '#' }, { label: 'Item B', href: '#' }, { label: 'Item C', href: '#' }, { label: 'Item D', href: '#' }, ]; const SimpleNav = () => ( // Uncomment <Grommet> lines when using outside of storybook // <G...
src/about.js
kwangkim/react-static-boilerplate
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; export default class { render() { return ( <div> <h1>About Us</h1> <p>Coming soon.</p> </div> ); } ...
website/Application.js
bvaughn/react-highlight-words
import React from 'react' import HighlighterExample from '../src/Highlighter.example' import styles from './Application.css' export default function Application () { return ( <div> <div className={styles.headerRow}> <img className={styles.logo} width='482' height='278'...
clients/packages/admin-client/src/components/editor-draft-js/Toolbar/FontControls/SelectFontFamily.js
nossas/bonde-client
import PropTypes from 'prop-types' import React from 'react' const fonts = [ 'Abel', 'Anton', 'Archivo Narrow', 'Asap', 'Bree Serif', 'Crimson Text', 'Cuprum', 'Exo', 'Exo 2', 'Fira Sans', 'Francois One', 'Josefin Sans', 'Karla', 'Libre Baskerville', 'Merriweather Sans', 'Pacifico', 'Poiret One', 'Quicksand', ...
src/panes/components/AboutPane.js
trezy/eidetica
// Module imports import React from 'react' /* eslint-disable import/no-extraneous-dependencies */ const { app } = require('electron').remote /* eslint-enable */ const AboutPane = () => ( <React.Fragment> <header><h1>About Eidetica</h1></header> <table> <tbody> <tr> <th>Vers...
src/svg-icons/av/volume-down.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeDown = (props) => ( <SvgIcon {...props}> <path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"/> </SvgIcon> ); AvVolumeDown = pure(AvVolumeDown); AvVolumeD...
react/src/app/App.js
JasonKDarby/listopolis
import React from 'react'; export default ({ children }) => ( <div>{children}</div> );
src/containers/Experience/index.js
carlyleec/cc-react
import React from 'react'; import { graphql } from 'react-apollo'; import styled from 'styled-components'; import renderMarkdown from '../../utils/renderMarkdown'; import Container from '../../components/Container'; import Loading from '../../components/Loading'; import Card from '../../components/Card'; import CardBo...
client/modules/core/components/.stories/postlist.js
Entropy03/jianwei
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import PostList from '../postlist'; storiesOf('core.PostList', module) .add('default view', () => { const posts = [ {_id: 'one', title: 'React is Superb'}, {_id: 'two', title: 'Meteor is Great'}, {_id: 'three', title: 'Ma...
src/components/Icon/Icon.js
GetAmbassador/react-ions
import React from 'react' import PropTypes from 'prop-types' import { paths } from '../../assets/icons/generated-list' const Icon = props => { const { name, width, height, fill, className, onClick } = props const obj = paths.find(item => item.name === name) const createMarkup = data => ({ __html: data })...
src/admin/client/modules/customers/editHead/components/buttons.js
cezerin/cezerin
import React from 'react'; import { Link } from 'react-router-dom'; import messages from 'lib/text'; import DeleteConfirmation from 'modules/shared/deleteConfirmation'; import FontIcon from 'material-ui/FontIcon'; import IconButton from 'material-ui/IconButton'; import FlatButton from 'material-ui/FlatButton'; const Fr...
.history/src/components/InstaCelebs/index_20171001004537.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' const InstaCelebs = ({instaCeleb}) => { console.log('instaCeleb', instaCeleb) const stats = _.map(instaCeleb.stats, (x,y) => <div>{y} - {x.likes}</div>) return ( <div className="stats"> <h1>Stats</h1> {stat...
information/blendle-frontend-react-source/app/modules/premiumSignup/containers/AffiliateBanner.js
BramscoChill/BlendleParser
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { STATUS_PENDING, STATUS_OK, STATUS_ERROR, AUTH_REQUIRED } from 'app-constants'; import { get } from 'lodash'; import AltContainer from 'alt-container'; import AuthActions from 'actions/AuthActions'; import AuthStore from 'stores/AuthS...
src/components/Events.js
OSWeekends/EventPoints
import React, { Component } from 'react'; import Event from './Event'; import './Events.scss'; class Events extends Component { constructor() { super(); this.state = { load: 'loading', events: [] }; this.requestEvents = this.requestEvents.bind(this); this.requestEvents(); } async requestEvents...
app/containers/App.js
sirgalleto/gearmanUI
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; export default class App extends Component { props: { children: Children }; render() { return ( <div> {this.props.children} </div> ); } }
assets/src/index.js
arshmakker/ReduxBase
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}> <App /> </Provider>, document.getEleme...
test/helpers.js
collinwu/react-bootstrap
import React from 'react'; import { cloneElement } from 'react'; export function shouldWarn(about) { console.warn.called.should.be.true; console.warn.calledWithMatch(about).should.be.true; console.warn.reset(); } /** * Helper for rendering and updating props for plain class Components * since `setProps` is de...
src/components/common/icons/ExploreIcon.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; const ExploreIcon = props => ( <div className="app-icon app-icon-explore" style={{ backgroundColor: props.backgroundColor }}> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px"...
frontend/app/js/components/futurelabel.js
serverboards/serverboards
import React from 'react' import i18n from 'app/utils/i18n' class FutureLabel extends React.Component{ constructor(props){ super(props) this.state = { data: i18n("...loading..."), className: props.className } } componentDidMount(){ this.props.promise() .then( data => { ...
src/containers/Bean/attributes/beanBluetooth.js
thingswesaid/seed
import React from 'react'; import styles from '../Bean.scss'; export default () => { return ( <ul> <li> <p className={styles.titleAttribute}>Bluetooth connected</p> <p>bool - true/false</p> </li> </ul> ); };