path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/todo/js/app.js
Aweary/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
client/src/components/dashboard/Mentorship.js
no-stack-dub-sack/alumni-network
import { addFlashMessage } from '../../actions/flashMessages'; import { connect } from 'react-redux'; import { defaultState } from '../../reducers/search'; import DropDown from '../dashboard/common/DropdownMulti'; import filterOptions from '../../assets/helpers/filterOptions'; import Filters from './Mentorship/SearchFi...
src/dataTypes/Function.js
mrose/react-dump
import React from 'react'; import { Row, Table } from '../format'; import { escapeHtml } from './escapeHtml' export const Function = ( props ) => { const opts = props.opts || { expand:true , format:'html' , label:'Function' } ...
src/tests/foo.js
vyorkin-play/react-toolbox-playground
import React from 'react'; import List from 'react-toolbox/lib/list/list'; import ListItem from 'react-toolbox/lib/list/item'; import ListSubHeader from 'react-toolbox/lib/list/subheader'; import ListDivider from 'react-toolbox/lib/list/divider'; import ListCheckbox from 'react-toolbox/lib/list/checkbox'; export defa...
node_modules/semantic-ui-react/src/elements/List/ListHeader.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, } from '../../lib' /** * A list item can contain a header. */ function ListHeader(props) { const { ch...
src/components/faveImage/faveImage.js
warrenwchan/tango-tropical-grill
import React, { Component } from 'react'; import styles from './styles.scss'; class faveImage extends Component { render() { const faveBg = { backgroundImage: 'linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 67%,rgba(0,0,0,0.65) 100%), url('+ this.props.image + ')', backgroundPosition: 'ce...
examples/counter/index.js
dsimmons/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
src/utils/defaultClearRenderer.js
jacycode/react-select-plus-2
import React from 'react'; export default function clearRenderer () { return ( <span className="Select-clear" dangerouslySetInnerHTML={{ __html: '&times;' }} /> ); };
src/PopoverMenuAnchor4/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; import Icon from '../Icon'; import Typography from '../Typography'; function PopoverMenuAnchor4(props) { return ( <div className={classNames(styles.wrapper, {[...
tests/site6/src/nav/section.js
dominikwilkowski/cuttlebelle
import PropTypes from 'prop-types'; import Slugify from 'slugify'; import React from 'react'; import { InpageNavSection } from '../../scripts/uikit/inpage-nav'; /** * The section component */ const Section = ( page ) => { const HeadingTag = `h${ page.level ? page.level : 2 }`; return ( <div className="uikit-...
source/HistoryContext.js
jamesknelson/react-junctions
import React from 'react' import PropTypes from 'prop-types' export default class HistoryContext extends React.Component { getChildContext() { return { history: this.props.history } } render() { return this.props.children } } HistoryContext.propTypes = { history: PropTypes.object.isRequi...
app/javascript/mastodon/features/ui/components/report_modal.js
kirakiratter/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports'; import { expandAccountTimeline } from '../../../actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-pro...
src/js/components/icons/base/Tip.js
odedre/grommet-final
/** * @description Tip SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @proper...
src/public/js/app.js
chuckharmston/tantive
import { Provider } from 'react-redux'; import React from 'react'; import Router, { HistoryLocation } from 'react-router'; import createStore from './store'; import routes from './routes' // Client render if (typeof document !== 'undefined') { const store = createStore(window.__redux_data__); Router.run(routes, ...
src/components/pages/user/Add.js
yiweimatou/yishenghoutai
import React from 'react' import { Field } from 'redux-form' class Add extends React.Component { render(){ return ( ) } } export default Add
client/src/components/streamsList/listOfStreams.js
kat09kat09/GigRTC
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getActivePerformances } from '../../actions'; import { Link } from 'react-router'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divide...
examples/simple-map/src/index.js
sushantparkhi/react-google-maps
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
docs/src/app/components/pages/get-started/ServerRendering.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import serverRenderingText from './server-rendering.md'; const ServerRendering = () => ( <div> <Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} /> <MarkdownElemen...
app/components/Dialer.js
leesander1/hearmenow-electron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { FloatingActionButton, red500, green500 } from 'material-ui'; import NumberInputText from './DialerComponents/NumberInputText'; import LogBox from './DialerComponents/LogBox'; import CallButton f...
src/svg-icons/image/navigate-next.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNavigateNext = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); ImageNavigateNext = pure(ImageNavigateNext); ImageNavigateNext.displayName = 'Ima...
src/docs/Props.js
kenfly51/ps-react
import React from 'react' import PropTypes from 'prop-types'; const Props = ({props}) => { return ( <table className="props"> <thead> <tr> <th>Name</th> <th>Description</th> <th>Type</th> <th>Default</th> <th>Required</th> </tr> </thea...
src/views/molecules/top-nav/top-nav.js
Metaburn/doocrate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { I18n } from 'react-i18next'; import './top-nav.css'; import Button from '../../components/button/button'; import SearchBar from '../search-bar/search-bar'; import SelectedFiltersLabels from '../selected-filters-labels/selected-filte...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
clworld/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
lib/helpers/getUsers.js
dylanavery720/shoot-the-breeze
import { values } from 'lodash'; import React from 'react'; import User from '../components/User'; export default (messages, currentUser, filterUsers) => { let userList = messages.reduce((users, m) => { users[m.user.uid] = { name: m.user.displayName, email: m.user.email, uid: m.user.uid }; ...
src/js/components/ui/MessagesToolBarDisabled/MessagesToolBarDisabled.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../../../i18n/Translate'; import Framework7Service from '../../../services/Framework7Service'; import styles from './MessagesToolBarDisabled.scss'; import RoundedImage from "../RoundedImage/RoundedImage"; @translate('...
app/entry.js
thomasboyt/earthling
import 'babel-polyfill'; const init = require(__PROJECT__ + '/entry').default; import React from 'react'; import ReactDOM from 'react-dom'; // Set up store import createStore from './store'; const store = createStore(); // Set up router const routes = require(__PROJECT__ + '/config/routes').default; const history =...
src/js/components/CurrencyApp.react.js
edloidas/itsp-task
import React, { Component } from 'react'; import CurrencyStore from '../stores/CurrencyStore'; import Graph from './Graph.react'; import DateInput from './DateInput.react'; import SelectInput from './SelectInput.react'; import FloatingActiveButton from './FloatingActiveButton.react'; import AppActions from '../actions/...
client/components/duplicates/item.js
ZeHiro/kresus
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { get, actions } from '../../store'; import { translate as $t, formatDate, displayLabel } from '../../helpers'; import { MODAL_SLUG } from './confirm-merge'; const ConfirmMergeButton = connect( null, ...
app/components/App.js
Sporks/Doc-tor
import React from 'react'; import ReactDOM from 'react-dom'; import RightBodySection from './RightBodySection'; import LeftNavSection from './LeftNavSection'; import ListItem from 'material-ui/lib/lists/list-item'; // needed for button clicks to work functionally // https://github.com/callemall/material-ui/issues/10...
static/src/components/Layout.js
hammerandchisel/airhornbot
// @flow import React from 'react'; import ReactDOM from 'react-dom'; import AirhornStatsStore from '../stores/AirhornStatsStore'; import Cloud from './Cloud'; import IslandPond from './islands/IslandPond'; import IslandTree from './islands/IslandTree'; import IslandTrees from './islands/IslandTrees'; import IslandTen...
modules/gob-web/modules/area-of-study/expression--course.js
hawkrives/gobbldygook
// @flow import React from 'react' import cx from 'classnames' import {semesterName} from '@gob/school-st-olaf-college' import './expression--course.scss' type Props = { _result?: boolean, _taken?: boolean, department: string, international?: boolean, lab?: boolean, level?: number, number?: number, section?:...
frontend/src/MovieFile/Extras/ExtraFileRow.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import IconButton from 'Components/Link/IconButton'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import TableRow from 'Components/Table/TableRow'; import { icons } from 'Helpers/Props'; import titleCase from 'Utilities/Str...
app/components/OverviewSummary.js
7kfpun/AudienceNetworkReactNative
import React from 'react'; import { Dimensions, StyleSheet, Text, TouchableHighlight, View, ScrollView, } from 'react-native'; import { connect } from 'react-redux'; const { width } = Dimensions.get('window'); const styles = StyleSheet.create({ container: { marginBottom: 5, width: (width / 3) *...
components/Pagination/Pagination.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import css from './Pagination.css'; import { PreviousLink, NextLink } from './PaginationLink'; export default class Pagination extends Component { static propTypes = { currentPage: PropTypes.number.isRequi...
src/__tests__/utils/TestReact.js
HsuTing/cat-components
'use strict'; import React from 'react'; import radium from 'radium'; import Wrapper from 'cat-components/lib/wrapper'; @radium class TestReact extends React.Component { render() { return ( <div>test react</div> ); } } /* eslint-disable */ export default () => ( <Wrapper> <TestReact /> </Wr...
src/views/Card/CardHeader.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, SUI, useTextAlignProp, } from '../../lib' /** * A card can contain a header. */ function CardHeader(props) { const { chi...
server/sonar-web/src/main/js/apps/coding-rules/components/CodingRulesAppContainer.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
examples/BadgeCollections.js
mattBlackDesign/react-materialize
import React from 'react'; import Badge from '../src/Badge'; import Collection from '../src/Collection'; import CollectionItem from '../src/CollectionItem'; export default <Collection> <CollectionItem href="#!"> Alan <Badge>1</Badge> </CollectionItem> <CollectionItem href="#!"> Alan <Badge newIcon>4</Bad...
examples/dynamic-segments/app.js
migolo/react-router
import React from 'react' import { Router, Route, Link, Redirect } from 'react-router' import { createHistory, useBasename } from 'history' const history = useBasename(createHistory)({ basename: '/dynamic-segments' }) class App extends React.Component { render() { return ( <div> <ul> <...
examples/custom-server/pages/index.js
kevmannn/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
demo/src/header.js
kaishui/pwfe-server
import React from 'react' const Header = props => <div>Header</div> export default Header
imports/ui/components/results/components/specificActivities.js
AdmitHub/ScholarFisher
import React, { Component } from 'react'; export default class SpecificActivities extends Component { renderSpecificActivities(specificActivities, selectedSpecificActivities, dispatchSpecificActivities) { return specificActivities.map((currentEl, index) => ( <div className={'pill ' + (selectedSpec...
node_modules/react-router/es6/Router.js
nolanelena/MyProjectSite-
'use strict'; 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 _objectWithoutProperties(obj, keys) {...
examples/auth/src/components/Todo.js
lore/lore
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import EditTodoLink from './EditTodoLink'; import DeleteTodoLink from './DeleteTodoLink'; export default createReactClass({ displayName: 'Todo', getStyles: function(isCompleted) { return { p...
dist/frontend/users/components/CreateUser.js
angeloocana/freecomclub
import React from 'react'; import Relay from 'react-relay'; import { User } from 'ptz-user-domain'; import SaveUserMutation from "../mutations/SaveUserMutation"; class CreateUser extends React.Component { constructor() { super(...arguments); this.handleSubmit = (e) => { e.preventDefault(...
app/javascript/mastodon/features/account_timeline/index.js
robotstart/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount, fetchAccountTimeline, expandAccountTimeline } from '../../actions/accounts'; import StatusList from '../../components/status_list...
src/svg-icons/editor/format-indent-increase.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatIndentIncrease = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/> </SvgIcon> ); EditorFormatIndentIncrease...
src/components/Layout/SearchDrawer/AdvancedSearch/AdvancedSearchField/SearchInput/presenter.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' const SearchInput = (props) => { return (<input type='search' id={props.id} onBlur={props.onBlur} onKeyDown={props.onKeyDown} autoComplete='off' data-lpignore />) } SearchInput.propTypes = { id: PropTypes.string.isRequired, onBlur: PropTypes.func, o...
src/components/Front.js
glennwedin/Progressive-Web-App
import React from 'react'; export default class Front extends React.Component{ constructor (props) { super(props); } componentDidMount() {} add() { this.props.store.addItem('tufsing'); } render() { return ( <div className="row"> <div className="column"> <h1>Welcome</h1> <p>This is a uni...
scripts/main.js
alexknipfer/shares
import { Router, browserHistory } from 'react-router' import React from 'react'; import ReactDOM from 'react-dom'; import Main from '../src/index.js'; import routes from '../src/routes/routes' window.onload = function(){ <div> <Router history={browserHistory} routes={routes} /> </div>, ReactDOM.render(<Mai...
node_modules/react-router/es6/Lifecycle.js
GregSantulli/react-drum-sequencer
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
docs/src/Routes.js
albertojacini/react-bootstrap
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import SupportPage from './SupportPage'; import NotFoundPage from './NotFound...
WasteApp/js/components/newitem/index.js
airien/workbits
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button , View, Text, List, ListItem, Image, Icon} from 'native-base'; //import Icon from 'react-native-vector-icons/FontAwesome'; ...
server/sonar-web/src/main/js/apps/system/routes.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/parser/monk/mistweaver/modules/features/Checklist/Module.js
fyruna/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import ManaValues from 'parser/shared/modules/ManaValues'; import PreparationRuleAnalyzer...
src/svg-icons/maps/local-see.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalSee = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5...
examples/es5/src/components/RemoveLoadingScreen.js
lore/lore
/** * This component removes the loading screen. It does so by adding a class to hide it, * and then removes it from the DOM by setting the display property to 'none'. **/ import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; export default createReactCla...
src/js/components/BarVisualization.js
ngokevin/audioworld
import {utils} from 'aframe'; import {Entity} from 'aframe-react'; import React from 'react'; import {LIGHTSABER_RED, LIGHTSABER_BLUE} from '../colors'; export default class BarVisualization extends React.Component { static propTypes = { num: React.PropTypes.number, radius: React.PropTypes.number, endSp...
src/js/components/blog/tagcard.js
axuebin/react-blog
import React from 'react'; import PropTypes from 'prop-types'; import { Icon } from 'antd'; import { Link } from 'react-router-dom'; import { COLOR_BLOG_CATEGORY, COLOR_LABEL_CATEGORY } from '../../constants/config'; import '../../../css/blog/tagcard.css'; export default class TagCard extends React.Component { rende...
src/components/Management/ipfs/index.js
dloa/alexandria-librarian
import React from 'react'; import path from 'path'; import _ from 'lodash'; import IPFSDash from '../../Dashboard/components/ipfs'; import IPFSPins from './pins'; export default React.createClass({ getInitialState() { return { }; }, componentDidMount() { }, componentWillUnmount(...
packages/rn-tester/js/RNTesterApp.ios.js
pandiaraj44/react-native
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ import {AppRegistry} from 'react-native'; import React from 'react'; import SnapshotViewIOS from './exampl...
src/components/LatestStats.js
glennwedin/statisfy
import React from 'react'; import { connect } from 'react-redux'; import moment from 'moment'; import { browserHistory } from 'react-router'; import ReactListScroll from 'reactlistscroll'; //import ReactListScroll from './scrolltest'; class LatestStats extends React.Component { constructor(props) { super(props) }...
src/auth/screens/login.screen.js
gitpoint/git-point
/* eslint-disable no-shadow */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ActivityIndicator, Linking, Platform } from 'react-native'; import { WebView } from 'react-native-webview'; import { Button, Icon } from 'react-native-elem...
src/components/app.js
modern-translator/client
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Circul...
src/svg-icons/action/done-all.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDoneAll = (props) => ( <SvgIcon {...props}> <path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4...
app/share/BasePanel.js
Jawnkuin/electron-618-im
import React, { Component } from 'react'; import type { Children } from 'react'; import styles from './BasePanel.less'; class BasePanel extends Component { props: { children: Children }; render () { return ( <div className={styles.panel}> <div className={styles.filter} /> {this.pro...
fields/types/number/NumberColumn.js
qwales1/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: ...
src/components/projects/show/Section.js
tehfailsafe/portfolio2015
import React from 'react'; const Section = React.createClass({ render(){ return( <div className="section" style={{backgroundColor: this.props.bg}}> { this.props.title && <div className="copy"> <h4>{this.props.title}</h4> </div> } {this.props....
frontend/src/components/panel-loader.js
1905410/Misago
import React from 'react'; import Loader from 'misago/components/loader'; // jshint ignore:line export default class extends React.Component { render() { /* jshint ignore:start */ return <div className="panel-body panel-body-loading"> <Loader className="loader loader-spaced" /> </div>; /* jshin...
examples/todomvc/containers/App.js
Dindaleon/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider redux={...
IntensiveFullStackJS/LectureOne/Demos/hapi-demo-01/app/index.js
nexusstar/SoftUni
import React from 'react'; import { Button } from './button'; import { Clock } from './clock'; import { WikiService } from './wiki.service'; import { FlickrComponent } from './flickr.component'; import { WikiComponent } from './wiki.component'; // ES6 Clock Demo let container = document.createElement('div'); containe...
src/components/BlackButton/BlackButton.js
MarynaHapon/Data-root-react
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './BlackButton.css'; class BlackButton extends React.Component { static propTypes = { children: PropTypes.string.isRequired, btnType: PropTypes.string, }; static ...
web/src/components/countrydisclaimer.js
corradio/electricitymap
import React from 'react'; import styled from 'styled-components'; import { noop } from 'lodash'; import Tooltip from './tooltip'; const MATERIAL_ICON_NAME = 'error'; const DisclaimerIcon = styled.span` font-size: 20px; cursor: help; height: 20px; color: rgba(0, 0, 0, 0.35); margin-top: 4px; `; const Tool...
src/MenuItem.js
kiloe/ui
import React from 'react'; import Button from './Button'; import CSS from './utils/css'; import Icon from './Icon'; import CheckIcon from './icons/CheckIcon'; import Menu from './Menu'; CSS.register({ '.button.menuitem': { textTransform: 'none', height: '4rem', // XXX: trying to sort height in Firefox }, ...
payment-ui/src/billing.js
CloudBoost/cloudboost
import React from 'react'; import planList from './plans'; import {paymentCountries} from './config'; class Billing extends React.Component { constructor(props) { super(props); this.state = { selectedPlan: planList[0] }; } billingChangeHandler(which, e) { this.pr...
src/ui/auth/components/RegisterForm.js
exponentjs/xde
/** * @flow */ import React from 'react'; import { Link } from 'react-router'; import { StyleSheet, css } from 'aphrodite/no-important'; import Button from 'xde/ui/components/Button'; import TextInput from 'xde/ui/components/TextInput'; import StyleConstants from 'xde/ui/StyleConstants'; import * as IdentifierRu...
docs/src/pages/system/basics/Emotion.js
lgollut/material-ui
import React from 'react'; import styled from '@emotion/styled'; import { palette, spacing } from '@material-ui/system'; import NoSsr from '@material-ui/core/NoSsr'; const Box = styled.div` ${palette} ${spacing} `; export default function Emotion() { return ( <NoSsr> <Box color="white" bgcolor="palevi...
examples/04 Sortable/Simple/Container.js
globexdesigns/react-dnd
import React, { Component } from 'react'; import update from 'react/lib/update'; import Card from './Card'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; const style = { width: 400 }; @DragDropContext(HTML5Backend) export default class Container extends Component {...
client/router.js
conveyal/commute
import React from 'react' import {IndexRoute, Router, Route} from 'react-router' import AddCommuters from './containers/add-commuters' import Application from './containers/application' import EditCommuter from './containers/edit-commuter' import EditMultiSite from './containers/edit-multi-site' import EditSite from '...
src/components/fields/FieldErrors.js
streamr-app/streamr-web
import React from 'react' export default ({ errors }) => ( <ul className='field-errors'> {errors.map((error) => <li className='field-error' key={error}>{error}</li> )} </ul> )
Paths/React/06.Styling React Components/5-react-styling-components-m5-exercise-files/Before/src/frame.js
phiratio/Pluralsight-materials
import React from 'react' export default function Frame({ children }) { return <div>{children}</div> }
src/client/routes.js
Zycon42/este-chat
import App from './app/app.react'; import NotFound from './pages/notfound.react'; import Chat from './pages/chat.react'; import ChatThread from './pages/chatthread.react'; import ChatHome from './pages/chathome.react'; import Public from './pages/public.react'; import Login from './pages/login.react'; import SignUp fro...
src/main/js/players/components/PlayerDataPanel.js
Bernardo-MG/dreadball-toolkit-webpage
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import Box from 'grommet/components/Box'; import Heading from 'grommet/components/Heading'; import Label from 'grommet/components/Label'; import PlayerAbilities from 'players/components/PlayerAbili...
server/dashboard/js/components/BenchScenario.react.js
moigagoo/mzbench
import React from 'react'; import Highlight from './Highlight.react'; import MZBenchRouter from '../utils/MZBenchRouter'; class BenchScenario extends React.Component { render() { let env = this.props.bench.env; let editable = this.props.bench.status == "running"; var envForm = Object.keys(e...
src/Main Pages/HomePage/Homepage.js
millerman86/CouponProject
/** * Created by amrenmiller on 4/6/17. */ import React from 'react'; import CouponHomePageDataContainer from './CouponHomePageDataContainer/CouponHomePageDataContainer.js'; import '../../App.css'; import CouponCard from './CouponPresentationalComponents/CouponCard'; import Coupons from './CouponPresentational...
app/javascript/mastodon/features/ui/components/column_loading.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Column from '../../../components/column'; import ColumnHeader from '../../../components/column_header'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class ColumnLoading extends ImmutablePureComponent { stat...
src/server/server.js
chengjianhua/templated-operating-system
import path from 'path'; import chalk from 'chalk'; import express from 'express'; // import socketIO from 'socket.io'; import cookieParser from 'cookie-parser'; import bodyParser from 'body-parser'; import expressJwt from 'express-jwt'; // import jwt from 'jsonwebtoken'; import React from 'react'; import ReactDOM from...
frontend/src/Components/Table/VirtualTableSelectAllHeaderCell.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import CheckInput from 'Components/Form/CheckInput'; import VirtualTableHeaderCell from './VirtualTableHeaderCell'; import styles from './VirtualTableSelectAllHeaderCell.css'; function getValue(allSelected, allUnselected) { if (allSelected) { return ...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
tsdl2013/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstant...
eventkit_cloud/ui/static/ui/app/components/Notification/NotificationsDropdown.js
venicegeo/eventkit-cloud
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { withTheme } from '@material-ui/core/styles'; import withWidth, { isWidthUp } from '@material-ui/core/withWidth'; import CircularProgress from '@material-ui/core/CircularProgress'; import ClickAwayListener from...
src/jsx/components/Navbar.js
luckychain/lucky
import React from 'react'; import {Link, withRouter} from 'react-router'; class Navbar extends React.Component { render() { return ( <div className='navbar navbar-default navbar-fixed-top'> <div className='navbar-header'> <Link to='/' className='navbar-brand'> Luckychain ({thi...
src/packages/@ncigdc/theme/icons/GdcData.js
NCI-GDC/portal-ui
// @flow import React from 'react'; export default ({ className = '', ...props }) => ( <i className={`${className} icon-gdc-data`} {...props} /> );
docs-ui/components/linkWithConfirmation.stories.js
gencer/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import LinkWithConfirmation from 'sentry-ui/linkWithConfirmation'; storiesOf('Links/LinkWithConfirmation', module).add( 'default', withInfo('A lin...
web/react/src/redux/utils/createDevToolsWindow.js
Croissong/nussnougat
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
src/main.js
mpusinhol/react-stepzilla
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Promise from 'promise'; export default class StepZilla extends Component { constructor(props) { super(props); this.state = { ...this.getPrevNextBtnState(this.props.startAtStep), compState: this.props.startAtStep...
examples/create-react-app/src/pages/index.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Button from 'material-ui/Button'; import Dialog, { DialogTitle, DialogContent, DialogContentText, DialogActions, } from 'material-ui/Dialog'; import Typography from '...
src/components/Quiz.js
shankspt/React-Playground
require('normalize.css'); import React from 'react'; import Book from './Book' class QuizComponent extends React.Component { constructor(props){ super(props); this.state = {books: props.books}; } update(){ this.setState({ books : this.state.books.push('b99') }); } render() { return ( <div...
src/list-item.js
EurekaLabsCompany/eureka-rn-components
import React from 'react'; import PropTypes from 'prop-types' import { StyleSheet, View, Text, TouchableOpacity } from 'react-native'; export default function ListItem({title, description, titleStyle, leftItem, leftItemStyle, style, onPress, onLongPress, rightStyle}) { let titleElement = title; ...
docs/src/app/pages/components/Icons/Page.js
GetAmbassador/react-ions
import React from 'react' import PropsList from 'private/modules/PropsList' import docs from '!!docgen!react-ions/lib/components/Icon/Icon' import CodeExample from 'private/modules/CodeExample' import ExampleIconDefault from './ExampleIconDefault' import exampleIconDefaultCode from '!raw!./ExampleIconDefault' import Ex...
app/javascript/flavours/glitch/containers/video_container.js
vahnj/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from 'mastodon/locales'; import Video from 'flavours/glitch/features/video'; const { localeData, messages } = getLocale(); addLocaleData(localeData); export default class Video...