path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
components/Canvas/ProjectCanvasManager.js
priley86/labs-console
import React from 'react' import { DragDropContext } from 'react-dnd' import MouseBackEnd from 'react-dnd-mouse-backend' import update from 'immutability-helper' import cx from 'classnames' import Tabs from '../Tabs/Tabs' import Tab from '../Tabs/Tab' import {projectTabs} from './ProjectTabs' import ApplicationPanel fr...
src/client/main.js
gaurav-/este
import React from 'react'; import Router from 'react-router'; import routes from './routes'; const app = document.getElementById('app'); const appState = window._appState; Router.run(routes, Router.HistoryLocation, (Handler) => { React.render(<Handler initialState={appState} />, app); });
src/components/dresscode.js
yvanbister/WeddingSite
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Icon from './icon'; class Dresscode extends Component { render() { return ( <div className="section-container" id="dresscode"> <div className="dresscode-container"> <div className="dresscode-header"> ...
webapp/app/components/EditGroup/Form/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component edit group form // import React from 'react'; import GroupName from 'containers/EditGroup/Form/GroupName'; import GroupRights from 'containers/EditGroup/Form/GroupRights'; import Users from 'containers/EditGroup/Form/Users'; import Buttons from 'containers/EditGroup/Form/Buttons'; /* eslint-disable re...
docs/app/Examples/elements/Label/Types/LabelExampleCorner.js
clemensw/stardust
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const LabelExampleCorner = () => ( <Grid columns={2}> <Grid.Column> <Image fluid label={{ as: 'a', corner: 'left', icon: 'heart' }} src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.C...
es6/RouteContext.js
fis-components/react-router
'use strict'; import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin t...
src/routes/myBooks/index.js
AntonyKwok/bookshelf
import React from 'react'; import MyBooks from './MyBooks'; import Layout from '../../components/Layout'; export default { path: '/mybooks/:filter(read|toread|)', async action({ store, params }) { if (!store.getState().auth.isAuthenticated) { return { redirect: '/signin', }; } re...
web/src/components/charts/prometheus-chart.js
squaremo/ambergreen
import React from 'react'; import ReactDOM from 'react-dom'; import d3 from 'd3'; import SimpleChart from './simple-chart'; import { INTERVAL_SECS } from '../../constants/timer'; import { now, requestRange, processValues } from '../../utils/prometheus-utils'; const color = d3.scale.category10(); // set colors for htt...
app/javascript/mastodon/main.js
cybrespace/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = require('./performance'); function main() { perf.start('main()'); i...
client/src/components/profile/profile-menu.js
commoncode/ontap
import React from 'react'; import * as propTypes from '../../proptypes/'; export default class ProfileMenu extends React.Component { static propTypes: propTypes.profile constructor() { super(); this.state = { showMenu: false, }; this.toggle = this.toggle.bind(this); } toggle() { t...
src/components/Charts/StackBar/index.js
wu-sheng/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
js/jqwidgets/jqwidgets-react/react_jqxcombobox.js
luissancheza/sice
/* jQWidgets v5.3.2 (2017-Sep) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxComboBox extends React.Component { componentDidMount() { let options = this.manageA...
test/components/Value-test.js
primozs/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import {test} from 'tape'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Value from '../../src/js/components/Value'; import CSSClassnames from '../../src/js/utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames...
application/views/ObjectModel.js
anxolerd/PlannerVR
import React from 'react'; import { VrButton, Model } from 'react-vr'; export default class ObjectModel extends React.Component { constructor(props) { super(props); this.state = { isHovered: false }; } render = () => ( <VrButton onEnter={ () => { ...
pages/_document.js
grraft/next-boilerplate
import React from 'react' import Document, { Head, Main, NextScript } from 'next/document' import stylesheet from '../styles/global.scss' export default class MyDocument extends Document { static getInitialProps ({ renderPage }) { const {html, head} = renderPage() return { html, head } } render () { ...
src/DatePicker/DatePicker.js
skarnecki/material-ui
import React from 'react'; import {formatIso, isEqualDate} from './dateUtils'; import DatePickerDialog from './DatePickerDialog'; import TextField from '../TextField'; import deprecated from '../utils/deprecatedPropType'; class DatePicker extends React.Component { static propTypes = { /** * Constructor for ...
js/app/signup/store.js
monetario/web
'use strict'; import React from 'react'; import Reflux from 'reflux'; import API from '../../api'; import Actions from './actions'; var Store = Reflux.createStore({ listenables: [ Actions ], init() { this.validationErrors = []; }, getDefaultData() { return { validationErrors: this.val...
src/spicy-datatable/components/DatatableSearchBar.js
filipdanic/spicy-datatable
/** * @fileoverview DatatableSearchBar.js * Pure component that renders a search field for the table. */ import React from 'react'; import { DatatableSearchBarPropTypes } from '../PropTypes.js'; const DatatableSearchBar = ({ label, onChange, value, placeholder }) => <div className="spicy-datatableoptions-search"...
src/svg-icons/maps/directions-boat.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBoat = (props) => ( <SvgIcon {...props}> <path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99...
src/svg-icons/content/font-download.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFontDownload = (props) => ( <SvgIcon {...props}> <path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
fengshao0907/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; import { MessageContentTypes } from 'constants/ActorAppConstants'; let _delayed ...
examples/todos-flow/src/components/Footer.js
jhwgnu/redux
// @flow import React from 'react' import FilterLink from '../containers/FilterLink' const Footer = () => ( <p> Show: {" "} <FilterLink filter="SHOW_ALL"> All </FilterLink> {", "} <FilterLink filter="SHOW_ACTIVE"> Active </FilterLink> {", "} <FilterLink filter="SHOW_CO...
client/index.js
pebie/react-universally-node-config
/* eslint-disable global-require */ import React from 'react'; import { render } from 'react-dom'; import BrowserRouter from 'react-router-dom/BrowserRouter'; import asyncBootstrapper from 'react-async-bootstrapper'; import { AsyncComponentProvider } from 'react-async-component'; // eslint-disable-next-line import Ren...
app/javascript/mastodon/components/check.js
MitarashiDango/mastodon
import React from 'react'; const Check = () => ( <svg width='14' height='11' viewBox='0 0 14 11'> <path d='M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0' fill='currentColor' fillRule='evenodd' /> </svg> ); export default Check;
frontend/src/components/posts-list/post/attachments/attachment.js
1905410/Misago
/* jshint ignore:start */ import React from 'react'; import misago from 'misago'; import escapeHtml from 'misago/utils/escape-html'; import formatFilesize from 'misago/utils/file-size'; const DATE_ABBR = '<abbr title="%(absolute)s">%(relative)s</abbr>'; const USER_SPAN = '<span class="item-title">%(user)s</span>'; con...
packages/stockflux-launcher/src/free-text-search/SearchInputField.js
ScottLogic/StockFlux
import React from 'react'; export default ({ query, inputRef, handleOnInputChange }) => ( <input onChange={handleOnInputChange} placeholder="Search stock name or ticker" value={query} ref={inputRef} /> );
native/components/creditCard/CreditCard.js
miukimiu/react-kawaii
import React from 'react'; import PropTypes from 'prop-types'; import Svg, { G, Path } from 'react-native-svg'; import paths from './paths'; import Face from '../common/face/Face'; import getUniqueId from '../../utils/getUniqueId'; import Wrapper from '../common/wrapper/Wrapper'; const CreditCard = ({ size, color, moo...
src/routes/Home/components/TopicForm/TopicForm.js
spbsamuel/digg-clone
import React from 'react' import classes from './TopicForm.scss' import cx from 'classnames' class TopicForm extends React.Component { state = { enterDown: false }; handleTopicChange = ({target:{value}}) => { const {editTopic} = this.props; editTopic(value) }; handleKeyPress = event => { if ...
modules/Lifecycle.js
chf2/react-router
import React from 'react' import invariant from 'invariant' const { object } = React.PropTypes function getRoute(element) { const route = element.props.route || element.context.route invariant( route, 'The Lifecycle mixin needs to be used either on 1) a <Route component> or ' + '2) a descendant of a ...
app/javascript/mastodon/components/autosuggest_emoji.js
summoners-riftodon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; const assetHost = process.env.CDN_HOST || ''; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequired, ...
src/scripts/containers/admin/dashboard/index.js
jie/microgate
import React from 'react'; import BaseReactComponent from '../../../components/base' export default class DashboardApp extends BaseReactComponent { render() { return ( <div> </div> ); } }
lib/cli/generators/REACT_SCRIPTS/template-csf/src/stories/0-Welcome.stories.js
storybooks/react-storybook
import React from 'react'; import { linkTo } from '@storybook/addon-links'; import { Welcome } from '@storybook/react/demo'; export default { title: 'Welcome', component: Welcome, }; export const ToStorybook = () => <Welcome showApp={linkTo('Button')} />; ToStorybook.story = { name: 'to Storybook', };
docs/src/app/components/pages/components/IconButton/ExampleTouch.js
mmrtnz/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionGrade from 'material-ui/svg-icons/action/grade'; const IconButtonExampleTouch = () => ( <div> <IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right"> <ActionGrade /> </IconButton> <IconB...
src/internal/InnerClickListener.js
carbon-design-system/carbon-components-react
/** * 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 PropTypes from 'prop-types'; import React from 'react'; /** * Generic component used for reacting to a click event happening outside...
src/index.js
IhostVlad/react-todomvc-with-functional-tests
import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './containers/App' import reducer from './reducers' import 'todomvc-app-css/index.css' const store = createStore(reducer); render( <Provider store={store}> ...
client/src/components/UserMain.js
commandzpdx/habit-calendar
import React from 'react'; import PropTypes from 'prop-types'; import SpiralCal from './SpiralCal'; export default function UserMain(props) { const nameArray = props.name.split(' '); const firstName = nameArray[0]; const months = [0, 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', ...
app/assets/scripts/components/team-list.js
openaq/openaq.github.io
import React, { Component } from 'react'; import { PropTypes as T } from 'prop-types'; import { environment } from '../config'; class TeamList extends Component { renderListItem (person) { const { image, name, role, affiliation } = person; const details = [ role, aff...
src/browser/components/Home.js
meatwallace/strap
import React from 'react'; const Home = () => ( <div> <p> A boilerplate project for MVP style development, with a focus on integrating modern tooling for maximum productivity. </p> </div> ); Home.propTypes = {}; export default Home;
WasteAppMini/js/components/quiz/index.js
airien/workbits
import React, { Component } from 'react'; import {Image} from 'react-native'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, H3, Button, Icon, Card, CardItem, CheckBox, View } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import myTheme from '../../the...
src/svg-icons/social/mood-bad.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialMoodBad = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c....
pootle/static/js/admin/general/components/ContentPreview.js
evernote/zing
/* * 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'; const ContentPreview = React.c...
js/redux/learn-redux/node_modules/react-element-to-jsx-string/AnonymousStatelessComponent.js
austinjalexander/sandbox
import React from 'react'; export default function(props) { let {children} = props; // eslint-disable-line react/prop-types return <div>{children}</div>; }
src/components/matches/MatchRow/MatchRow.js
rlesniak/tind3r.com
// @flow import React from 'react'; import cx from 'classnames'; import moment from 'moment'; import { withHandlers } from 'recompose'; import { observer } from 'mobx-react'; import Avatar from 'components/Avatar'; import Match from 'models/Match'; import './MatchRow.scss'; type PropsType = { onClick: (matchId: ...
app/components/Main.js
natac13/vegan-recipe-app
import React, { Component } from 'react'; export default class Main extends Component { render() { return ( <div className="col span_8_of_8"> <header> <h1>Vegan Recipes</h1> </header> <div className="col span_8_of_8"> ...
wegas-app/src/main/node/wegas-react-form/src/Script/modules/Variable.js
Heigvd/Wegas
import { types } from 'recast'; import PropTypes from 'prop-types'; import React from 'react'; import Form from 'jsoninput'; import isMatch from 'lodash-es/isMatch'; import { getY } from '../../index'; const { builders: b, visit } = types; export const isVariable = node => isMatch(node, { type: 'CallExpres...
packages/wix-style-react/src/TagList/ToggleMoreButton/ToggleMoreButton.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import TagListAction from '../TagListAction'; import Tooltip from '../../Tooltip'; import { classes } from '../TagList.st.css'; const ToggleMoreButton = ({ toggleMoreButton, onClick, amountOfHiddenTags, isExpanded, dataHook, }) => { const { lab...
utils/typography.js
umbchackers/club-site-2016
import ReactDOM from 'react-dom/server' import React from 'react' import Typography from 'typography' import { GoogleFont } from 'react-typography' import CodePlugin from 'typography-plugin-code' const options = { googleFonts: [ { name: 'Montserrat', styles: [ '700', ], }, { ...
app/scripts/components/downloadList/downloadList.js
bluedaniel/Kakapo-app
import React from 'react'; import { pipe, propEq, reject, values } from 'ramda'; import { DownloadItem } from 'components/'; import './downloadList.css'; export default ({ sounds }) => { const downloads = pipe( values, reject(propEq('progress', 1)) )(sounds); if (!downloads.length) return <div />; retu...
src/components/App/index.js
andywillis/uws
// Dependencies import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Switch, Route, withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; // React import Header from '../Header'; import JournalContainer from '../../containers/Journal'; import Footer from '../Foo...
src/packages/@ncigdc/components/Charts/BarChart.js
NCI-GDC/portal-ui
// @flow // Vender import React from 'react'; import * as d3 from 'd3'; import ReactFauxDOM from 'react-faux-dom'; import { compose, withState, pure, } from 'recompose'; // Custom import { withTheme } from '@ncigdc/theme'; import { withTooltip } from '@ncigdc/uikit/Tooltip'; import withSize from '@ncigdc/utils/...
static/src/containers/App/index.js
dom-o/hangboard-helper
import React from 'react'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; /* application components */ import { Header } from '../../components/Header'; import { Footer } from '../../components/Footer'; /* global styles for app */ import ...
src/modules/home/components/Time.js
nordsoftware/outdoors-sports-map
// @flow import React from 'react'; import moment from 'moment'; import {translate} from 'react-i18next'; moment.locale('fi'); export const formatTime = (time: Date, t: Function) => { const endOfToday = moment().endOf('day'); let lookup = 'TIME.'; let options = {}; if(endOfToday.diff(time, 'days') === 0) { ...
client/index.js
Hitzk0pf/BetterBackPacking
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; //import 'grommet/scss/vanilla/index.scss'; we're going to compile this manually, no need for webpack to do tha...
app/container/Notes/index.js
JuHwon/goldencrux
import React from 'react'; import { connect } from 'react-redux'; import { addNote, updateNote, deleteNote } from './actions'; import Notes from 'components/Note/Notes.jsx'; import selectNotes from './selectors'; let NoteWidget = ({ notes, onAddNoteClick, editNote, deleteNote }) => { return ( <div> <h3>No...
src/svg-icons/image/filter-hdr.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterHdr = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageFilterHdr = pure(ImageFilterHdr); ImageFilterHdr.displayName...
src/components/base/LeftDrawer.js
GHImplementationTeam/FrontEnd
import Avatar from 'material-ui/Avatar'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import { spacing, typography } from 'material-ui/styles'; import { blue600, white } from 'material-ui/styles/colors'; import React from 'react'; import { Link } from 'react-router'; import Auth...
l08/src-index.js
supertiny99/redux-egghead
import { createStore } from 'redux'; import React from 'react'; import ReactDOM from 'react-dom' const counter = (state = 0, action) => { switch (action.type) { case 'INCREMENT': return state + 1; case 'DECREMENT': return state - 1; default: return state; } }; const Counter = ({ va...
client/app/components/EstimationArea/Card.js
Zuehlke/poinz
import React from 'react'; import {connect} from 'react-redux'; import PropTypes from 'prop-types'; import {isThisCardWaiting} from '../../state/commandTracking/commandTrackingSelectors'; import {StyledCard, StyledCardInner} from './_styled'; /** * One estimation card on the board. */ const Card = ({isWaiting, isS...
app/utils.js
stanfordv/curriculum1
import React from 'react'; import request from 'superagent'; class ExportJSON extends React.Component { render() { var diagramData = {}; diagramData.nodes = this.props.nodes; diagramData.links = this.props.links; var data = "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(diagramD...
es/Dialog/withMobileDialog.js
uplevel-technology/material-ui-next
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; }; import React from 'react'; import wrapDisplayName from 'reco...
node_modules/semantic-ui-react/src/elements/Icon/Icon.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey, } from '../../lib' import IconGroup from './IconGroup' /** * An i...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
zhebe/zhebe.github.io
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/screens/table/index.js
mattermost/mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React from 'react'; import {Platform, ScrollView} from 'react-native'; import {SafeAreaView} from 'react-native-safe-area-context'; import {makeStyleSheetFromTheme...
src/components/FlexTable/FlexTable.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import styled, { css } from 'styled-components'; import TableItem, { TableItemText, TableItemTextButton, TableItemIconButton } from './TableItem'; import { colors, typography, renderThemeIfPresentOrDefault, renderThemeKeyOrDefaultValue, } from '../styles'; export const TR = styled....
app/containers/SplashPage.js
lazyperson/react_native_redux_proj
import React, { Component } from 'react'; import { StyleSheet, Image, View, Dimensions, Text, Animated } from 'react-native'; class SplashPage extends Component { constructor(props) { super(props); this.state = { fadeAnimContainer: new Animated.Value(1), bounceValue: new ...
examples/huge-apps/components/Dashboard.js
keathley/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { var { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of y...
src/components/Feedback/Feedback.js
Agies/ads-report
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
src/js/components/ui/SelectCollapsible/SelectCollapsible.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './SelectCollapsible.scss'; import translate from "../../../i18n/Translate"; import AvailabilityEdit from "../../Availability/AvailabilityEdit/AvailabilityEdit"; @translate('SelectCollapsible') export default class SelectC...
src/components/organisms/Header/index.stories.js
DimensionLab/narc
import React from 'react' import { storiesOf } from '@storybook/react' import { Header } from 'components' storiesOf('Header', module) .add('default', () => ( <Header /> ))
pages/contact.js
caryfuk/architektka
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from 'react-helmet' import { config } from 'config' import ContactForm from '../components/contactForm' class CategoryIndex extends React.Component { render () { return ( <div className='...
src/PageNotFound.js
gufsky/react-native-workshop
import React, { Component } from 'react'; import { Link } from 'react-router'; class PageNotFound extends Component { render() { return ( <div className="page__notfound"> <h1>404 Page Not Found.</h1> <p>Go to <Link to="/">Home Page</Link></p> </div> ) } } export default PageNot...
react/SkillsIcon/SkillsIcon.iconSketch.js
seekinternational/seek-asia-style-guide
import React from 'react'; import SkillsIcon from './SkillsIcon'; export const symbols = { 'SkillsIcon': <SkillsIcon /> };
js/jqwidgets/demos/react/app/chart/splineseries/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let source = { datatype: "tab", datafields: [ { name: 'Year' }, ...
node_modules/react-router-dom/node_modules/react-router/es/Route.js
Starnes81/ReduxBlogTut
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; }; function _classCallCheck(instance, Constructor) { if (!(insta...
node_modules/enzyme/src/ShallowTraversal.js
pavlosvos/krifominima
import React from 'react'; import isEmpty from 'lodash/isEmpty'; import isSubset from 'is-subset'; import functionName from 'function.prototype.name'; import { propsOfNode, splitSelector, isCompoundSelector, selectorType, AND, SELECTOR, nodeHasType, nodeHasProperty, } from './Utils'; export function c...
plugins/react/frontend/components/controls/base/ObjectControl/ConstraintsForm/renderConstraintForm.js
pure-ui/styleguide
import React from 'react'; import getControl from '../../../../../utils/getControl'; import has from 'lodash/has'; import set from 'lodash/set'; const renderConstraintForm = ( propKey, controlType, updateConstraints, constraints, parsedMetadata, nestedLevel ) => { // retrieving the ConstraintsForm based ...
fields/types/markdown/MarkdownColumn.js
Tangcuyu/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var MarkdownColumn = React.createClass({ displayName: 'MarkdownColumn', propTypes: { col: React.PropTypes.ob...
react-flux-mui/js/material-ui/src/svg-icons/av/play-circle-filled.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlayCircleFilled = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"/> </SvgIcon> ); AvPlayCircleFilled = pure(AvPlayCirc...
packages/wix-style-react/src/Input/Affix/testkit/Affix.js
wix/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; import Custom from '../Affix'; import { InputContext } from '../../InputContext'; const customDriverFactory = ({ element }) => { return { isEmpty: () => element.children.length === 0, hasChild: style => !!element.querySelector(style), getValue...
public/components/MainPage.js
supportivesantas/project-ipsum
import React from 'react'; import actions from '../actions/ipsumActions.js'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import maps from '../mappingFunctions.js'; import restHandler from '../util/restHelpers.js'; import MainPageAppView from './MainPageAppView.js'; import { Gri...
src/DropdownMenu.js
xuorig/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
src/Parser/Shaman/Restoration/Modules/Items/T21_2Set.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Analyzer from 'Parser/Core/Analyzer'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Combatants from 'Parser/Core/Modules/Combatants'; impor...
src/components/app.js
ericaporter/trending-hashtags
import React from 'react'; import Header from './header'; import Footer from './footer'; class App extends React.Component { render(){ return ( <div className="container"> <Header /> {this.props.children} <Footer /> </div> ); } } export default App;
src/Grid.js
xiaoking/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Grid = React.createClass({ propTypes: { /** * Turn any fixed-width grid layout into a full-width layout by this property. * * Adds `container-fluid` class. */ fluid...
src/containers/views/DraftNew.js
ashmaroli/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory, withRouter } from 'react-router'; import { HotKeys } from 'react-hotkeys'; import DocumentTit...
ajax/libs/react-instantsearch/4.1.0-beta.4/Connectors.js
joeyparrish/cdnjs
/*! ReactInstantSearch 4.1.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && ...
examples/counter/index.js
radnor/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
client/components/Translated.js
robinmoussu/kresus
import React from 'react'; import {translate as t} from '../Helpers'; export default class Translated extends React.Component { render() { let cx= this.props.cx || {}; let translation = t(this.props.k, cx); if (!translation) { translation = this.props.children; } ...
src/svg-icons/maps/local-cafe.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCafe = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/> </SvgIcon> ); MapsLocalCa...
src/App/Component/overlay.js
cemiltokatli/ClearNotes
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import TransitionGroup from 'react-transition-group/TransitionGroup'; import $ from 'jquery'; import { addCategory, editCategory, deleteCategory, deleteNote } from '../action'; import {connect} from 'react-redux'; class OverlayCompo...
example/src/Button/Button.js
lokiuz/redraft
import React from 'react'; import PropTypes from 'prop-types'; import './Button.css'; const Button = ({ label, handleClick }) => ( <button className="Button" type="button" onClick={handleClick}> {label} </button> ); Button.propTypes = { label: PropTypes.string.isRequired, handleClick: PropTypes.func.isRe...
app/javascript/mastodon/features/compose/components/text_icon_button.js
PlantsNetwork/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.s...
src/svg-icons/social/group-add.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialGroupAdd = (props) => ( <SvgIcon {...props}> <path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91....
examples/websockets/src/components/Todo.js
lore/lore
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import PayloadStates from '../constants/PayloadStates'; export default createReactClass({ displayName: 'Todo', getStyles: function(isCompleted) { return { priority: { marginRight: '8...
src/components/Resume/Experience/Job.js
ishwarsawale/ishwarsawale.github.io
import React from 'react'; import PropTypes from 'prop-types'; const Job = ({ data }) => ( <article className="jobs-container"> <header> <h4><a href={data.link}>{data.company}</a> - {data.position}</h4> <p className="daterange"> {data.daterange}</p> </header> <ul className="points"> {da...
packages/icons/src/md/hardware/Toys.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdToys(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 24c0-6.1 4.9-11 11-11s11 4.9 11 11H24zm0 0c0 6.1-4.9 11-11 11S2 30.1 2 24h22zm0 0c-6.1 0-11-4.9-11-11S17.9 2 24 2v22zm0 0c6.1 0 11 4.9 11 11s-4.9 11...
fields/components/CollapsedFieldLabel.js
w01fgang/keystone
import React from 'react'; import { Button } from '../../admin/client/App/elemental'; // NOTE marginBottom of 1px stops things jumping around // TODO find out why this is necessary function CollapsedFieldLabel ({ style, ...props }) { const __style__ = { marginBottom: 1, paddingLeft: 0, paddingRight: 0, ...st...
src/core/server/base.js
muffinresearch/addons-frontend
import fs from 'fs'; import path from 'path'; import 'babel-polyfill'; import config from 'config'; import Express from 'express'; import helmet from 'helmet'; import Jed from 'jed'; import cookie from 'react-cookie'; import React from 'react'; import ReactDOM from 'react-dom/server'; import { Provider } from 'react-r...
examples/counter/index.js
Creamov/redux
import React from 'react'; import App from './containers/App'; React.render( <App />, document.getElementById('root') );
stories/core/Drawer.js
rentpath/react-ui
import React from 'react' import { Drawer } from 'react-ui-core/src' const DefaultDrawer = ( <div style={ { width: '300px', height: '500px', border: 'solid 1px black', display: 'flex', alignItems: 'flex-end', overflowY: 'hidden', } } > <Drawer...