path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/pages/index.js
bkuzma/bkuzma.github.io
import React from 'react'; import { createGlobalStyle } from 'styled-components'; import { Helmet } from 'react-helmet'; import LandingTile from '../components/LandingTile'; const GlobalStyle = createGlobalStyle` body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", R...
src/svg-icons/navigation/subdirectory-arrow-right.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationSubdirectoryArrowRight = (props) => ( <SvgIcon {...props}> <path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/> </SvgIcon> ); NavigationSubdirectoryArrowRight = pure(Navigat...
client/routes.js
denistakeda/botboard
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './modules/App/App'; // require.ensure polyfill for node if (typeof require.ensure !== 'function') { require.ensure = function requireModule(deps, callback) { callback(require); }; }...
client2/src/components/common/navheader.js
frolicking-ampersand/Board
import React from 'react' import { Navbar } from 'react-bootstrap'; export default (props) => { return ( <Navbar.Header> <Navbar.Brand className="animated slideInRight"> {props.title} </Navbar.Brand> </Navbar.Header> ) }
src/workflows/nwchem/nwchem-simput/components/steps/Input.js
Kitware/HPCCloud
import React from 'react'; import SimputReact from '../../../../generic/components/steps/SimputReact'; // ---------------------------------------------------------------------------- function simputModelDecorator(model, props) { // Add external data from project mesh if (!model.external) { model.external = {}...
src/svg-icons/device/signal-wifi-0-bar.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/> </SvgIcon> ); DeviceSignalWifi...
src/components/RequestBitcoin.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import withIntl from '../lib/withIntl'; import { FormattedMessage } from 'react-intl'; import SmallButton from './SmallButton'; import QRCode from 'qrcode.react'; import { isValidEmail } from '../lib/utils'; class RequestBitcoin extends React.Component { ...
imports/routes.js
tampham47/nau-jukebox
/* © 2017 NauStud.io * @author Eric Tran */ import React from 'react'; import { Router, Route, Redirect, Switch } from 'react-router'; import createBrowserHistory from 'history/createBrowserHistory'; import ReactGA from 'react-ga'; import withTracker from './withTracker'; // route components import App from './App'...
docs/src/app/components/pages/components/DropDownMenu/ExampleOpenImmediate.js
matthewoates/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuOpenImmediateExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value)...
src/common/components/PageNotFound.js
vassar-cogscilab/turing-machine
import React from 'react'; class PageNotFound extends React.Component { render() { return ( <div className="page-not-found-image"> </div> ); } } export default PageNotFound;
src/shared/routes.js
stephan281094/react-blog
import { Route, IndexRoute } from 'react-router' import React from 'react' import App from './containers/App' import PostContainer from './containers/PostContainer' import PostDetailView from './containers/PostDetailView' const routes = ( <Route path='/' component={App} > <IndexRoute component={PostContainer} /...
client/src/components/Draftail/index.js
wagtail/wagtail
import React from 'react'; import ReactDOM from 'react-dom'; import { DraftailEditor } from 'draftail'; import { Provider } from 'react-redux'; import { gettext } from '../../utils/gettext'; import Icon from '../Icon/Icon'; export { default as Link } from './decorators/Link'; export { default as Document } from './de...
src/svg-icons/editor/space-bar.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; EditorSpaceBar.muiName ...
packages/react-error-overlay/src/components/Header.js
CodingZeal/create-react-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 { red } from '../styles'; const headerStyle = { fontSize: '2em', fontFamily: 'sans-se...
client/src/components/basicScreenTemplate.js
TeamAusDigital/apec-connect
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AppBarMain from '../components/AppBarMain'; import Paper from 'material-ui/Paper'; import StarRating from '../components/starRating'; import RaisedButton from 'material-ui/RaisedButton'; import {indigo,white} from './apecConnectTheme';...
examples/01 Dustbin/Stress Test/index.js
arnif/react-dnd
import React from 'react'; import Container from './Container'; export default class DustbinStressTest { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Stress%20Test'>Browse the Source</a></b> </p> <p> ...
src/Parser/Paladin/Retribution/Modules/Items/LiadrinsFuryUnleashed.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { formatNumber, formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import HolyPowerTracker from '../HolyPower/HolyPowerTrac...
src/components/app.js
lamjwe/book-list-redux
import React, { Component } from 'react'; import Booklist from '../containers/book-list'; import BookDetail from '../containers/book-detail'; export default class App extends Component { render() { return ( <div> <Booklist /> <BookDetail /> </div> ); } }
src/components/Piano/index.js
KNETIC-KRPF/KNETIC-CLIENT
import React from 'react'; import './Piano.css'; const Piano = props => { return( <div id="p-wrapper"> <ul id="piano"> <li> <div onMouseDown={() => props.handleKeyboardClick(65.40639132514966)} className="anchor"> </div> </li> <li> <div onMouseDown={() => props.handl...
packages/components/src/DateTimePickers/Date/Context.js
Talend/ui
/* eslint-disable import/prefer-default-export */ import React from 'react'; export const DateContext = React.createContext();
test/regressions/tests/List/PrimaryActionCheckboxListItem.js
cherniavskii/material-ui
// @flow import React from 'react'; import List, { ListItem, ListItemText, ListItemSecondaryAction } from 'material-ui/List'; import Checkbox from 'material-ui/Checkbox'; import IconButton from 'material-ui/IconButton'; import Icon from 'material-ui/Icon'; export default function PrimaryActionCheckboxListItem() { r...
app/containers/App/index.js
jdelatorreitrs/react-boilerplate
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'components/Header'; import F...
ui/src/components/Branding.js
LastCallMedia/Mannequin
import React from 'react'; import logo from '../svg/manny_wave.svg'; import './Branding.css'; /** * Homepage branding block. */ const Branding = () => ( <div className="Branding"> <div className="top"> <img src={logo} className="logo" alt="Mannequin Logo" /> <h1>Mannequin</h1> </div> <h3> ...
src/svg-icons/maps/my-location.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMyLocation = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1...
src/containers/DevTools/DevTools.js
vidaaudrey/mindr
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="Q"> <LogMonitor /> </Dock...
www/frontend/src/components/Example.js
lokiiart/upali-mobile
import React from 'react'; const Example = () => { return ( <div className="example sub-section section"> <img src="dist/images/anli1.jpg" /> <ul> <li> <h3>12年的手淫史,优波粒还我健康人生</h3> <img src="dist/images/wap_al2.jpg" /> <p>从14岁开始手淫,一直...
App/Client/Component/nav.js
qianyuchang/React-Chat
import React from 'react' import { Router, Route, Link, browserHistory } from 'react-router' const TitleBar=React.createClass({ render:function(){ return ( <div className="titleBar"> <span className="backButton"><Link to='/chat'>&lt;Chat</Link></span> <span className="title">Chat</span> <span classNa...
app/components/base/spinner/component.js
mic-fadeev/postglass
import React, { Component } from 'react'; const propTypes = { isShow: React.PropTypes.bool.isRequired, msg: React.PropTypes.string }; const defaultProps = { isShow: false }; class SpinnerComponent extends Component { render() { if (this.props.isShow) { return ( <div className="fetching-cont...
src/app/components/media/MediaStatus.js
meedan/check-web
import React from 'react'; import MediaVerificationStatus from './MediaVerificationStatus'; const MediaStatus = props => <MediaVerificationStatus {...props} />; export default MediaStatus;
src/svg-icons/file/cloud-download.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudDownload = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-...
src/Parser/GuardianDruid/Modules/Features/FrenziedRegenGoEProcs.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SPELLS from 'common/SPELLS'; import Module from 'Parser/Core/Module'; class FrenziedRegenGoEProcs extends Module { on_initia...
src/js/components/Quote.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Box from './Box'; import Paragraph from './Paragraph'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = C...
static/src/components/Home/index.js
dternyak/React-Redux-Flask
import React from 'react'; export const Home = () => <section> <div className="container text-center"> <h1>Hello</h1> </div> </section>;
docs/app/Examples/views/Feed/Content/FeedExampleExtraTextShorthand.js
mohammed88/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const image = 'http://semantic-ui.com/images/avatar/small/laura.jpg' const date = '3 days ago' const summary = 'Laura Faucet created a post' const extraText = "Have you seen what's going on in Israel? Can you believe it." const FeedExampleExtraTextSho...
examples/with-antd-mobile/pages/_app.js
BlancheXu/test
import React from 'react' import App from 'next/app' import Head from 'next/head' export default class CustomApp extends App { render () { const { Component, pageProps } = this.props return ( <> <Head> <meta name='viewport' content='width=device-width, initial-...
src/ModalBody.js
leozdgao/react-bootstrap
import React from 'react'; import classnames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classnames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.propTypes = { /** ...
client2/src/components/NotFound.js
mehrandabi/graphql-tutorial
import React from 'react'; const NotFound = ({ match }) => { return ( <div className="NotFound">404 Not Found</div> ); }; export default NotFound;
actor-apps/app-web/src/app/components/modals/AddContact.react.js
winiceo/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
src/app/components/imageableCarousel.js
nazar/soapee-ui
import _ from 'lodash'; import React from 'react'; import { Carousel, CarouselItem } from 'react-bootstrap'; import {imageableUrl} from 'resources/imageable'; export default React.createClass( { getInitialState() { return { index: 0, direction: null }; }, handleSe...
examples/auth-with-shared-root/app.js
rubengrill/react-router
import React from 'react' import { render } from 'react-dom' import { Router } from 'react-router' import routes from './config/routes' import { createHistory, useBasename } from 'history' const history = useBasename(createHistory)({ basename: '/auth-with-shared-root' }) render(<Router history={history} routes={rou...
client/src/components/Navigation/Navbar.js
wolnewitz/raptor-ads
import React from 'react'; import { Link } from 'react-router'; import { Menu, Segment } from 'semantic-ui-react'; import DynamicLinks from './DynamicLinks'; const Navbar = ({ id, location, logout }) => <Segment inverted> <Menu inverted borderless> <Menu.Item as={Link} to="landing" ...
Example/ScrollableTabsExample.js
skv-headless/react-native-scrollable-tab-view
import React from 'react'; import { Text, View, } from 'react-native'; import ScrollableTabView, { ScrollableTabBar } from 'react-native-scrollable-tab-view'; export default () => { return <ScrollableTabView style={{ marginTop: 20 }} initialPage={0} renderTabBar={() => <ScrollableTabBar />} > ...
src/js/main.js
prodec/trail-blazer
import React from 'react'; // Styles import 'leaflet/dist/leaflet.css'; import 'purecss'; import 'material-design-lite/material.min.css'; import '../css/lib/buttons.css'; import '../css/lib/glyphicons.css'; import '../css/lib/style.css'; import '../css/app.scss'; // JS import 'material-design-lite/material.min.js'; i...
client/components/charts/balance-chart.js
jankeromnes/kresus
import React from 'react'; import Dygraph from 'dygraphs'; import { debug, round2 } from '../../helpers'; import ChartComponent from './chart-base'; function createChartBalance(chartId, account, operations) { if (account === null) { debug('ChartComponent: no account'); return; } let ops...
stories/components/daily.js
wcastand/okami
import React from 'react' import {Div} from 'glamorous' import DailyCalendar from '../../src/components/daily' import Navigation from '../../src/components/navigation' import HoursLabels from '../../src/components/hoursLabels' import { Container, HourLabel, CalendarContainer, Cell, DayLabel, Event, Date...
src/App.js
rixrix/nzey
import './App.css'; import React, { Component } from 'react'; import { Header, Footer } from './Home'; import { FeedList } from './FeedList'; class App extends Component { render() { return ( <div className="mdl-layout mdl-js-layout mdl-layout--fixed-header"> <Header /> ...
journal/src/index.js
TylerDixon/dailyjournal
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
src/containers/DevTools.js
abachuk/quotes
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </Dock...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
KevinKhieu/PeaceDashboard
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
app/jsx/grading/PostAssignmentGradesTray/Layout.js
djbender/canvas-lms
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
app/containers/Dashboard/utils.js
acebusters/ab-web
import React from 'react'; import { FormattedDate, FormattedTime } from 'react-intl'; export function formatDate(timestamp) { if (!timestamp) { return ''; } const date = new Date(timestamp * 1000); return ( <span> <FormattedDate value={date} year="numeric" month="numeric...
client/js/index.js
sincerefly/EasyHexo
import React from 'react'; import { Datepicker, message } from 'antd'; var App = React.createClass({ getInitialState() { return { date: '' }; }, handleChange(value) { message.info('您选择的日期是: ' + value.toString()); this.setState({ date: value }); }, render() { return <div st...
src/components/Feedback/Feedback.js
tmsh/number-sequence-experimentor
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedb...
packages/react/src/components/Tile/Tile-story.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import './tile-story.scss'; import { withKnobs, boolean, number, select, text, } from '@storybook/addon...
actor-apps/app-web/src/app/components/JoinGroup.react.js
it33/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
docs/src/examples/elements/Button/Types/ButtonExampleLabeled.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Icon, Label } from 'semantic-ui-react' const ButtonExampleLabeled = () => ( <div> <Button as='div' labelPosition='right'> <Button icon> <Icon name='heart' /> Like </Button> <Label as='a' basic pointing='left'> 2,048 </Labe...
src/parser/monk/windwalker/modules/spells/TouchOfKarma.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import HealingDone from 'parser/shared/modules/HealingDone'; import StatisticB...
app/jsx/account_course_user_search/index.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/index.js
iamraphson/mernmap
/** * Created by Raphson on 9/22/16. */ 'use strict'; import React, { Component } from 'react'; import { render } from 'react-dom'; import Main from './components/landing/Main'; import Landing from './components/landing/Index'; import SignUp from './components/SignUp/Index'; import Login from './components/Login/In...
packages/material-ui-icons/src/AlarmOff.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AlarmOff = props => <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6 12 ...
ChatsUP/src/components/main.js
michelmarcondes/ReactNativeStudies
import React, { Component } from 'react'; import { View, StyleSheet } from 'react-native'; import { TabViewAnimated, SceneMap } from 'react-native-tab-view'; import TabBarMenu from './tabBarMenu'; import Chats from './chats'; import Contacts from './contacts'; export default class Main extends Component { state = {...
BaseComponent.js
gourie/ParkingPlaza
import React, { Component } from 'react'; export default class BaseComponent extends Component { _bind(...methods) { methods.forEach( (method) => this[method] = this[method].bind(this) ); } }
packages/react/components/swiper.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7Swiper extends React.Component { constr...
frontend/node_modules/recharts/es6/component/Legend.js
justdotJS/rowboat
import _isFunction from 'lodash/isFunction'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClas...
packages/bonde-admin/src/community/components/force-download-via-ajax.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import classnames from 'classnames' const ForceDownloadViaAjax = ({ onClick, title, className, icon }) => ( <div className='DownloadItem' style={{ cursor: 'pointer' }}> <p> <a href='/download' className={classnames('table align-middle', className...
src/autocomplete/CommunityProvider.js
aperezdc/matrix-react-sdk
/* Copyright 2018 New Vector Ltd Copyright 2018 Michael Telatynski <7t3chguy@gmail.com> 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 requir...
src/anthe/container.js
kamito/anthe
import React from 'react'; import Immutable from 'immutable'; import _ from 'lodash'; import { getCore } from './core'; import logger from './logger'; /** * Anthe.Container * @class * @extends {React.Component} */ class Container extends React.Component { /** * @constructor * @param {object} props Initia...
src/index.js
epilande/yaris
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { BrowserRouter } from 'react-router-dom'; import { ThemeProvider } from 'styled-components'; import 'sanitize.css/sanitize.css'; import theme from './styles/theme'; import './styles/global'; import configureSt...
examples/official-storybook/stories/addon-docs/csf-with-mdx-docs.stories.js
storybooks/react-storybook
import React from 'react'; import { Button } from '@storybook/react/demo'; export default { title: 'Addons/Docs/csf-with-mdx-docs', component: Button, includeStories: [], // or don't load this file at all }; // eslint-disable-next-line react/prop-types export const basic = ({ parameters }) => <Button>Basic</But...
docs/src/examples/modules/Accordion/Advanced/AccordionExampleShorthand.js
Semantic-Org/Semantic-UI-React
import faker from 'faker' import _ from 'lodash' import React from 'react' import { Accordion, Label, Message } from 'semantic-ui-react' const panels = _.times(3, (i) => ({ key: `panel-${i}`, title: { content: <Label color='blue' content={faker.lorem.sentence()} />, }, content: { content: ( <Mess...
blueocean-material-icons/src/js/components/svg-icons/image/blur-circular.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageBlurCircular = (props) => ( <SvgIcon {...props}> <path d="M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3 7c-.28 0-.5.2...
examples/counter/index.js
darkxeno/redux-devtools-gentest-plugin
import React from 'react'; import {default as App} from './containers/App'; let rootComponent = React.render( <App />, document.getElementById('root') ); export default rootComponent;
src/app.js
lukin-deema/FileSystem
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import injectTapEventPlugin from 'react-tap-event-plugin'; import React from 'react'; import {render} from 'react-dom'; import {createStore} from 'redux'; import {Provider} from 'react-redux'; import Routes from './containers/Routes'; import reducers ...
packages/giu/src/components/modals.js
guigrpa/giu
// @flow /* eslint-disable no-plusplus */ import React from 'react'; import { createStore } from 'redux'; import type { Reducer } from 'redux'; import { addLast, removeAt, addDefaults } from 'timm'; import type { Action } from '../gral/types'; import Modal from './modal'; import type { ModalPars } from './modalTypes'...
src/svg-icons/editor/title.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorTitle = (props) => ( <SvgIcon {...props}> <path d="M5 4v3h5.5v12h3V7H19V4z"/> </SvgIcon> ); EditorTitle = pure(EditorTitle); EditorTitle.displayName = 'EditorTitle'; EditorTitle.muiName = 'SvgIcon'; ex...
docs/app/Examples/elements/Header/Types/HeaderExampleContent.js
ben174/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExampleContent = () => ( <div> <Header size='huge'>Huge Header</Header> <Header size='large'>Large Header</Header> <Header size='medium'>Medium Header</Header> <Header size='small'>Small Header</Header> <Header size=...
docs/src/app/components/Master.js
skarnecki/material-ui
import React from 'react'; import Title from 'react-title-component'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import spacing from 'material-ui/styles/spacing'; import styleResizable from 'material-ui/utils/styleResizable'; import getMuiTheme from 'material-ui/styles/get...
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchInMenu.js
clemensw/stardust
import React from 'react' import { Dropdown, Input } from 'semantic-ui-react' import { tagOptions } from '../common' // tagOptions = [ // { // text: 'Important', // value: 'Important', // label: { color: 'red', empty: true, circular: true }, // }, // ... // ] const DropdownExampleMultipleSearchInMe...
admin/client/Signin/components/Brand.js
andrewlinfoot/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...
app/utils/routing.js
zmora-agh/zmora-ui
/** * Created by maxmati on 3/30/17. */ import React from 'react'; import { gql, graphql } from 'react-apollo'; import { loadable } from './render'; export function exactOnly(Component) { const parent = (props) => { if (props.children) return props.children; return (<Component {...props} />); }; pare...
app/index.js
nikgraf/future-react-ui
import React from 'react'; import ReactDOM from 'react-dom'; import HintExample from './components/HintExample'; import HintJssExample from './components/HintJssExample'; import HintCssModulesExample from './components/HintCssModulesExample'; /* In this version each porperty of the importet theme can be overwritten. ...
src/components/video_list_item.js
fahadqazi/react-redux
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imgUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div className="media-left">...
app/jsx/shared/CourseNicknameEdit.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
blueocean-material-icons/src/js/components/svg-icons/action/alarm-add.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionAlarmAdd = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7...
assets/js/views/users/leaderboard.js
CandN/eliscore
import React from 'react' import axios from 'axios' import { buildHeaders } from '../../utils' class Leaderboard extends React.Component { constructor (props) { super(props) this.state = { leaderboard: [] } } componentDidMount () { axios.get('/api/v1/leaderboard', { headers: buildHeaders()...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
ksullivan96/case-challenge
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
wrappers/yaml.js
mongus/mongus.com
import React from 'react' import yaml from 'js-yaml' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
client/components/__tests__/Home.spec.js
bjoberg/social-pulse
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Home } from '../Home/Home'; test('renders home properly', t => { const wrapper = shallow( <Home /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('h1').length, 1); });
dispatch/static/manager/src/js/components/EventEditor/EventForm.js
ubyssey/dispatch
import React from 'react' import Dropzone from 'react-dropzone' import { Button } from '@blueprintjs/core' import { TextInput, TextAreaInput, DateTimeInput, SelectInput } from '../inputs' import * as Form from '../Form' const CATEGORY_CHOICES = [ ['sports', 'Sports'], ['music', 'Music'], ['academic', '...
docs/app/Examples/elements/Reveal/Types/RevealExampleMoveRight.js
vageeshb/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleMoveRight = () => ( <Reveal animated='move right'> <Reveal.Content visible> <Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> ...
src/controllers/lyricPage.js
lmcjt37/lyricify
import React, { Component } from 'react'; import { Image, ScrollView, StatusBar, Text, View } from 'react-native'; import Styles from '../styles/style'; import Colours from '../configs/colours'; import { searchLyrics } from '../utils/api'; export default class LyricPage extends Component { con...
src/svg-icons/maps/local-car-wash.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCarWash = (props) => ( <SvgIcon {...props}> <path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2...
admin/client/App/shared/InvalidFieldType.js
webteckie/keystone
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: Reac...
entry_types/scrolled/package/src/frontend/ScrollToSectionContext.js
codevise/pageflow
import React from 'react'; export default React.createContext(() => {});
test/utils.js
davidjoy/react-et-al-boilerplate
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { createStore } from 'redux'; import { Provider } from 'react-redux' import rootReducer from '../client/reducers/RootReducer' const store = createStore(rootReducer); export function shallowlyRenderedOutput(Component) { const shallow...
src/components/ParallaxBackground/index.js
r1cebank/EventCore
/* eslint-disable import/no-unresolved */ import React from 'react'; import { Animated, View, Image, Dimensions } from 'react-native'; import Styles from './resources/styles'; import resolveAssetSource from 'resolveAssetSource'; const HEIGHT = Dimensions.get('window').height > 600 ? 200 : 150; const SCREEN_WIDTH = ...
src/components/page-elements/nav.js
sunpietro/LeagueManager
import React, { Component } from 'react'; import { Link, IndexLink } from 'react-router'; import HomeIcon from 'react-icons/lib/fa/home'; import CompetitionIcon from 'react-icons/lib/fa/trophy'; import SeasonsIcon from 'react-icons/lib/fa/calendar'; import ListIcon from 'react-icons/lib/fa/futbol-o'; import PlayersIcon...
frontend/js/routes.js
wbprice/okcandidate-platform
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Frame from './components/Frame'; import Home from './components/environments/Home'; import Admin from './components/environments/Admin'; import SurveySelector from './components/environments/SurveySelector'; import Category from './com...
examples/universal/client/index.js
neighborhood999/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from '../common/store/configureStore' import App from '../common/containers/App' const initialState = window.__INITIAL_STATE__ const store = configureStore(initialState) con...
src/main.js
atomdmac/roc-game-dev-gallery
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const init...