path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/index.js
ldstudio-ca/react-pdfjs-mobile
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; export default App; // let root = document.getElementById('root'); // ReactDOM.render(<App url="../how-to-setup.pdf" // onClose={ () => { // ReactDOM.unmountComponentAtNode(root); // } } />, root);
src/Parser/Hunter/Survival/Modules/Talents/SteelTrap.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import SpellIcon from 'common/SpellIcon'; import Combatants from 'Parser/Core/Modules/Combatants'; import SpellUsable from 'Parser/Core/Modules/SpellUsable'; import SpellLink from 'common/SpellLink'; import Item...
Realization/frontend/czechidm-core/src/components/advanced/Filter/FilterToogleButton.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // import AbstractContextComponent from '../../basic/AbstractContextComponent/AbstractContextComponent'; import * as Basic from '../../basic'; import * as Domain from '../../../domain'; import { DataManager, IdentityMa...
src/decorators/withViewport.js
cheshire137/cheevo-plotter
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; // eslint-disabl...
test/fixtures/builds-with-multiple-runtimes/src/index.js
mangomint/create-react-app
import React from 'react'; import dva from 'dva'; import createHistory from 'history/createHashHistory'; import ky from 'ky'; const app = dva({ history: createHistory() }); app.router(() => { ky.get('https://canihazip.com/s') .then(r => r.text()) .then(console.log, console.error) .then(() => console.log(...
site/demos/earthquake-reporter/src/index.js
appbaseio/reactivesearch
import React from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase, SelectedFilters, RangeSlider, DynamicRangeSlider, SingleList, } from '@appbaseio/reactivesearch'; import { ReactiveGoogleMap, ReactiveOpenStreetMap } from '@appbaseio/reactivemaps'; import Dropdown from '@appbaseio/reactivesearch/l...
src/components/extensions/overview/blocks/cost.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; const Cost = ({extensionCost}) => { const PriceTableRows = ({price}) => { return ( <tr> <th>{price.desc}</th> <td>{price.gold}</td> <td>{price.usd}</td> <td>{price.eur}</td> <td>{price.gbp}</td> </t...
src/RegionSelect.js
casavi/react-region-select
import React, { Component } from 'react'; import { PropTypes } from 'prop-types'; import objectAssign from 'object-assign'; import Region from './Region'; import style from './style'; class RegionSelect extends Component { constructor (props) { super(props); this.onComponentMouseTouchDown = this.onComponentMouse...
client/modules/DangTin/DangTinPages.js
tranphong001/BIGVN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Modal, Button } from 'react-bootstrap'; import { getCategories, getCities, getDistricts, getWards, getId } from '../App/AppReducer'; import { fetchDistricts, fetchWards, addDistricts, addWards, ...
src/svg-icons/image/navigate-before.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNavigateBefore = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); ImageNavigateBefore = pure(ImageNavigateBefore); ImageNavigateBefore.displayName...
src/client.js
derek-duncan/challenge
'use strict'; import Iso from 'iso'; import Router from 'react-router'; import React from 'react'; import createBrowserHistory from 'history/lib/createBrowserHistory' import reactRoutes from './routes/client'; import alt from './alt'; Iso.bootstrap((state, _, container) => { alt.bootstrap(state); let history = ...
example/src/screens/types/tabs/TabOne.js
luggit/react-native-navigation
import React from 'react'; import { StyleSheet, View, Text, Dimensions, Button } from 'react-native'; class TabOne extends React.Component { render() { return ( <View> <Text>Tab One</Text> </View> ); } } export default TabOne;
docs/src/NotFoundPage.js
Firfi/meteor-react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage='' /> <PageHeader title='404' subT...
node_modules/react-router/es6/Link.js
sharonjean/React-Netflix
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) { var target = {...
src/back-office/components/Logo.js
mihailgaberov/es6-bingo-game
import React from 'react'; class Logo extends React.Component { render() { return <div id="logo" />; } } export default Logo;
client/src/transforms/FormAction/ownerAwareUnpublish.js
open-sausages/silverstripe-asset-admin
/* global confirm */ import React from 'react'; import i18n from 'i18n'; const ownerAwareUnpublish = (FormAction) => (props) => { const originalOnclick = props.onClick; const newProps = { ...props, onClick(e, nameOrID) { const { owners } = props.data; let message = null; if (owners && par...
app/components/UGFooterSitemap/index.js
perry-ugroop/ugroop-react-dup2
import React from 'react'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import { Grid, Row, Col, FormGroup } from 'react-bootstrap'; import UGFooterSitemap from './UGFooterSitemap'; import UGFooterBtn from './UGFooterBtn'; import UGFooterH3 from './UGFooterH3'; import UGFooterULWith...
src/lib/reactors/Showcase/ItemThumbnail.js
EsriJapan/photospot-finder
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to us...
src/containers/entitysetforms/CreateEntitySet.js
kryptnostic/gallery
import React from 'react'; import Immutable, { List } from 'immutable'; import PropTypes from 'prop-types'; import Select from 'react-select'; import styled from 'styled-components'; import { FormControl, FormGroup, ControlLabel, Button, Alert } from 'react-bootstrap'; import { connect } from 'react-redux'; import { ...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
MastodonCloud/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandHashtagTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import ColumnHeader from...
client/containers/overview.js
nearform/vidi-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router' import {Panel, PageHeader, HealthList} from '../components/index' import ChartistGraph from 'react-chartist' import {subscribe, unsubscribe} from '../actions/vidi' import _ from 'lodash' export const Overview ...
Faw.Web.Client/src/routes/Achivment/Details/components/AchivmentDetails.js
Demenovich-A-J/Family-s-adventure-world
import React from 'react' import { Grid, Cell, Button } from 'react-mdl' import { Stepper, Step, SelectField, Option } from 'react-mdl-extra' import AchivmentDetailsForm from './AchivmentDetailsForm' import PropertyEditor from './PropertyEditor' import AchivmentStepperButtons from './AchivmentStepperButtons' import Ach...
client/routes.js
izolate/skeleton
import React from 'react' import { Router, Route, IndexRoute, browserHistory } from 'react-router' import DefaultLayout from './layouts/Default' import HomePage from './pages/Home' import Error404Page from './pages/404' const routes = <Router history={browserHistory}> <Route path='/' component={DefaultLayout}> <...
js/src/modals/CreateWallet/createWalletStore.js
BSDStudios/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
examples/js/selection/unselectable-table.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
local-cli/templates/HelloNavigation/views/MainNavigator.js
cpunion/react-native
'use strict'; /** * This is an example React Native app demonstrates ListViews, text input and * navigation between a few screens. * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import HomeScreenTabNavigator from './HomeS...
webpack/components/accounts/ProfileEditor.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Modal } from 'react-bootstrap'; import values from 'lodash/values'; import filter from 'lodash/filter'; import clone from 'lodash/clone'; import Errors from '../Errors.js'; import NestedSearchBar from '../NestedSearchBar'; import {...
examples/react-refetch/src/index.js
gaearon/react-hot-loader
import React from 'react'; import { render } from 'react-dom'; import App from './App'; const root = document.createElement('div'); document.body.appendChild(root); render(<App />, root);
app/m_components/Hotdot.js
kongchun/BigData-Web
import React from 'react'; import { Link } from 'react-router'; import HotdotActions from '../actions/HotdotActions'; import HotdotObjStore from '../stores/HotdotObjStore'; import MyInfoNavbar from './MyInfoNavbar'; import Weixin from './Weixin'; class Hotdot extends React.Component { constructor(props) { ...
examples/passing-props-to-children/app.js
taion/rrtr
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link } from 'rrtr' import './app.css' const App = React.createClass({ contextTypes: { router: React.PropTypes.object.isRequired }, getInitialState() { return { tacos: [ { name: 'duck confit...
src/components/docs/breadcrumbs.js
nordsoftware/react-foundation-docs
import React from 'react'; import Playground from 'component-playground'; import { Inline, Grid, Cell, Breadcrumbs, BreadcrumbItem, } from 'react-foundation'; export const BreadcrumbsDocs = () => ( <section className="breadcrumbs-docs"> <Grid> <Cell large={12}> <h2>Breadcrumbs</h2> ...
src/svg-icons/image/timer-10.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer10 = (props) => ( <SvgIcon {...props}> <path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-...
scripts/index.js
doron2402/flux-react-router-example
import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import HashHistory from 'react-router/lib/HashHistory'; import Root from './Root'; const rootEl = document.getElementById('root'); // Use hash location for Github Pages // but switch to HTML5 history locally. const history = proce...
src/parser/deathknight/blood/modules/features/BoneShield.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatDuration, formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/oth...
src/components/navigation.js
inkdropapp/docs
import { StaticQuery, graphql, Link } from 'gatsby' import { Container } from 'semantic-ui-react' import React from 'react' import { GatsbyImage } from 'gatsby-plugin-image' import './navigation.less' const Navigation = () => ( <Container className="app--navigation"> <nav className="ui grid"> <div classNam...
src/components/SitePage/index.js
narendrasoni1989/react-site
import React from 'react' class SitePage extends React.Component { render() { const post = this.props.data.post return <div dangerouslySetInnerHTML={{ __html: post.html }} /> } } export default SitePage
es/AppBar/AppBar.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; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/routes/privacy/index.js
chaudhryjunaid/chaudhryjunaid.com
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/components/components/mobile_list.js
highcoder1/ReactNews
import React from 'react'; import {Row,Col} from 'antd'; import {Link} from 'react-router-dom'; export default class MobileList extends React.Component { constructor() { super(); this.state = { news: '' }; } componentWillMount() { var myFetchOptions = { method: 'GET' }; fetch('http://newsapi.gugu...
src/components/hand-signal/hand-signal.js
greaveselliott/rock-paper-scissors
import React from 'react' import './hand-signal.scss'; import Icon from '../icon'; import PropTypes from 'prop-types'; const HandSignal = ({name, className, modifier, click_handler}) => { return ( <figure onClick={click_handler} className={`${className} m-hand-signal${modifier}`}> <div classNam...
server/sonar-web/src/main/js/components/controls/DateInput.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...
src/view/header.js
alexreardon/fullon-markdown
import React, { Component } from 'react'; import injectStyles from 'react-jss'; import ReactPlayer from 'react-player'; import Modal from 'react-modal'; import headerImage from '../img/header-image_860x391.jpg'; import logo from '../img/full-on-2020-logo.svg' import config from '../../config'; import { button, gutters,...
clientwebapp/src/index.js
jcocchi/IoTPlantWatering
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App' import registerServiceWorker from './registerServiceWorker' import './css/index.css' ReactDOM.render(<App />, document.getElementById('root')) registerServiceWorker()
docs/src/app/components/pages/components/Dialog/Page.js
frnk94/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import dialogReadmeText from './README'; import DialogExampleSimple from './Exam...
examples/Overlay.js
BespokeInsights/react-overlays
import React from 'react'; import Overlay from 'react-overlays/Overlay'; import Button from 'react-bootstrap/lib/Button'; // Styles Mostly from Bootstrap const TooltipStyle = { position: 'absolute', padding: '0 5px' }; const TooltipInnerStyle = { padding: '3px 8px', color: '#fff', textAlign: 'center', bor...
js/components/nutrientList.js
codeocelot/soylent-industries
import React from 'react' import NutrientStore from '../stores/nutrientStore' import {Cell} from 'react-pure' import {Table} from 'elemental' import Nutrient from './nutrient' import constants from '../constants/constants' export default class NutrientList extends React.Component{ constructor(props){ super(props...
example/app.js
georgeOsdDev/react-ellipsis-text
'use strict'; import React from 'react'; import ReactDom from 'react-dom'; import EllipsisText from '../lib/components/EllipsisText'; //allow react dev tools work window.React = React; const styles = { title: { marginTop: '40px' }, content: { padding: '10px' }, removed:{ marginTop: '40px', ...
src/routes.js
raulmatei/frux-table-test
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Root from './root'; import NotFound from './not-found'; import TableView from './components/table-view'; export default ( <Route path='/' component={Root}> <IndexRoute component={TableView}/> <Route path='show' com...
server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.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...
client/app.js
Eschocolat/Pinbook
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { AppContainer as HotReloader } from 'react-hot-loader'; import routes from './routes'; const appElement = document.getElementById('app'); const root = ( <Router history={browserHistory}> ...
app/pages/index.js
booee/nextfire
import React from 'react' export default class extends React.Component { render() { return ( <div>Hello, World!</div> ) } }
UI/Charts/LineChart.js
Datasilk/Dedicate
import React from 'react'; import {View, ScrollView, StyleSheet, Dimensions, TouchableWithoutFeedback, Animated} from 'react-native'; import Text from 'text/Text'; import AppStyles from 'dedicate/AppStyles'; import {Svg, Line, Polyline, Circle} from 'react-native-svg'; import IconSwipeArrow from 'icons/IconSwipeArrow';...
actor-apps/app-web/src/app/index.js
JeeLiu/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import injectTapEventPlugin from 'react-tap-event-plugin'; import Deactivated from 'components/Deactivated.react'; import Login from 'components/Login.react'; import ...
app/containers/SideBar/PermissionsNavTree.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import TreeView from 'react-treeview'; import { Link } from 'react-router'; import { capitalize } from '../../utils'; import { filterBoundaries } from './utils'; import { collapsedProgramEntity, get...
pootle/static/js/admin/components/Language/LanguageAdd.js
phlax/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import LanguageForm from './La...
test/helpers/shallowRenderHelper.js
Aleczhang1992/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
internals/templates/containers/HomePage/index.js
mhoffman/CatAppBrowser
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/index.js
wmaurer/frontend_pizza_react_redux
import 'babel-polyfill'; require('./app.css'); import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import DevTools from './containers/DevTools'; import configureStore from './store/configureStore'; const store = configureStore(); R...
ReactComponents/CauseListView.js
DoSomething/LetsDoThis-iOS
'use strict'; import React from 'react'; import { AppRegistry, ListView, StyleSheet, Text, Image, RefreshControl, TouchableHighlight, View } from 'react-native'; var Style = require('./Style.js'); var Bridge = require('react-native').NativeModules.LDTReactBridge; var NetworkErrorView = require('./Net...
src/modules/Checkbox/Checkbox.js
shengnian/shengnian-ui-react
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { AutoControlledComponent as Component, createHTMLLabel, customPropTypes, getElementType, getUnhandledProps, makeDebugger, META, partitionHTMLInputProps, useKeyOnly, } from '../../li...
app/javascript/mastodon/components/modal_root.js
rainyday/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import 'wicg-inert'; export default class ModalRoot extends React.PureComponent { static propTypes = { children: PropTypes.node, onClose: PropTypes.func.isRequired, }; state = { revealed: !!this.props.children, }; activeElement = t...
src/components/Icon/Icon-story.js
joshblack/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 React from 'react'; import { iconAdd, iconAddSolid, iconAddOutline } from 'carbon-icons'; import { storiesOf } from '@storybook/react'...
blueocean-material-icons/src/js/components/svg-icons/action/info.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionInfo = (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 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/> </SvgIcon> ); ActionInfo.displayName = 'ActionInfo'; ActionInfo.muiName = 'SvgIcon'; ...
src/components/TextInputStyledComponents/TextInputStyledComponents.js
thomashoggard/ps-react-tom
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styled from 'styled-components'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({ htmlId, name, label, type = "tex...
packages/icons/src/dv/Vue.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvVue(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M45 5.831L24 42.169 3 5.831h3.413L24 36.264 41.587 5.83H45zm-21 8.264l4.855-8.264h7.363L24 26.973 11.782 5.831h7.363L24 14.095z" /> </IconBase> ); ...
demo/index.js
JulienPradet/react-flip
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { HashRouter } from 'react-router-dom'; import Navigation from './Navigation'; import Examples from './Examples'; import './style/index.scss'; class App extends Component { render() { return ( <HashRouter> <div> ...
app/components/Menu/MenuHeader.js
cdiezmoran/playgrounds-desktop
/** * Created on Tue Nov 8 2016 * * Side-bar menu header component containing the user profile pic and username * and the search bar component. * * @flow */ import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import jwtDecode from 'jwt-decode'; // import SearchBar from '../SearchBar'; ...
src/src/components/SideBar/Nav.js
chaitanya1375/Myprojects
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router-dom'; import { Collapse } from 'react-bootstrap'; class Nav extends Component { state = {}; render() { let { location } = this.props; return ( <ul className="nav"> <li className={location.pathname === ...
src/Col.js
xsistens/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
node_modules/react-scripts/template/src/index.js
webtutorial/builder
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/performance/LineAndBarsChart.js
jmporchet/bravakin-client
import React from 'react'; import { AreaClosed, BarGroup, LinePath } from '@vx/shape'; import { Group } from '@vx/group'; import { AxisLeft, AxisBottom } from '@vx/axis'; import { scaleTime, scaleBand, scaleLinear, scaleOrdinal } from '@vx/scale'; import { curveMonotoneX } from '@vx/curve'; import { timeFormat } from '...
docs/src/app/components/pages/components/Menu/ExampleNested.js
owencm/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; const style = { display: 'inline-block', mar...
src/modules/pages/feeds/js/feedStore.js
lenxeon/react
import React from 'react'; let FeedStore = { list(cat, page, size, cb) { cat = cat || 'all'; page = page || 1; size = size || 20; $.get('/dist/data/feeds/list_' + cat + '.json', function(result) { let list = result[0].card_group; setTimeout(() => { cb({ list: list }); }, 500) ...
client/app/components/MapPage.js
BeaconCorp/beacon
import React from 'react'; import { Link } from 'react-router'; import { Map, Marker, Popup, TileLayer } from 'react-leaflet'; import { getAllBeacons } from '../utils/helpers'; var MapPage = React.createClass({ getInitialState: () => { console.log('MapPage.getInitialState()'); return { beacons: [], ...
clients/libs/slate-editor-list-plugin/src/ListButtonBar.js
nossas/bonde-client
/* eslint-disable no-undef */ import React from 'react' import { UnorderedListButton, OrderedListButton } from './' // FIXME: Needs to handle assets files to work with SSR // eslint-disable-next-line @typescript-eslint/no-var-requires if (require('exenv').canUseDOM) require('./ListButtonBar.module.css') const ListBu...
src/client/components/Note.js
ampext/graphql-notes
import React from 'react'; import PropTypes from 'prop-types'; import { createFragmentContainer } from 'react-relay'; import Button from './Button'; class Note extends React.PureComponent { onRemoveButton = () => this.props.onRemove(this.props.item.id); onEditButton = () => { const {id, content, date} = this...
packages/mineral-ui-icons/src/IconMonochromePhotos.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconMonochromePhotos(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...i...
src/scripts/views/detailView.js
sharnee/instaClone
import React from 'react' import Header from './header' import Footer from './footer' // import Likes from './likes' import CommentsHeader from './commentsHeader' import Comments from './comments' import Image from './image' var DetailView = React.createClass({ render: function() { return ( <div className="de...
src/Jumbotron.js
dongtong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Jumbotron = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { ...
packages/spust-koa/src/BodyParser.js
michalkvasnicak/spust
// @flow import koaBodyParser from 'koa-bodyparser'; import React from 'react'; import { type Context as ServerContext, serverContextType } from './Server'; export default class BodyParser extends React.Component<void, *, void> { static contextTypes = serverContextType; context: ServerContext; constructor(pr...
src/svg-icons/notification/confirmation-number.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationConfirmationNumber = (props) => ( <SvgIcon {...props}> <path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2...
custom_modules/Picture.js
hustmsc/hustmsc-app
import React, { Component } from 'react'; import { StyleSheet, Image } from 'react-native'; export default class Picture extends Component { render() { return ( <Image source={this.props.src} style={styles.images} /> ); } } const styles = StyleSheet.create({ images: { width: 193, heigh...
app/components/Form/FormField.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import FormGroup from './FormGroup'; import Input from '../Input'; import Label from '../Label'; import { ErrorMessage, WarningMessage } from '../../components/FormMessages'; const FormField = ({ input, label, type, meta: { touched, error, warning }, ...pr...
src/svg-icons/social/sentiment-dissatisfied.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentDissatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 1...
js/src/ui/ModalBox/summary.js
nipunn1313/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
admin/client/views/signin.js
Ftonso/keystone
'use strict'; import classnames from 'classnames'; import React from 'react'; import ReactDOM from 'react-dom'; import SessionStore from '../stores/SessionStore'; import { Alert, Button, Form, FormField, FormInput } from 'elemental'; import { createHistory } from 'history'; var history = createHistory(); var SigninV...
src/components/HabitPageContent.js
simplebee/everyday
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { Route, Link } from 'react-router-dom'; import { Button } from 'antd'; import Calendar from './Calendar'; import Datapoints from './Datapoints'; import Graph from './Graph'; import { dele...
examples/js/selection/select-bgcolor-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
node_modules/react-router/es6/Link.js
save-password/save-password.github.io
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) { var target = {...
generators/js-framework/modules/react/components/Footer.js
sahat/boilerplate
import React from 'react'; class Footer extends React.Component { render() { return ( <footer> <p>© 2016 Company, Inc. All Rights Reserved.</p> </footer> ); } } export default Footer;
src/MediaListItem.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; class MediaListItem extends React.Component { render() { const { className, ...props } = this.props; const [bsProps, elementProps] = splitBsProps(props); const cl...
examples/src/components/CustomRenderField.js
silppuri/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomRenderField = React.createClass({ displayName: 'CustomRenderField', propTypes: { delimiter: React.PropTypes.st...
client/index.js
Jakeyrob/chill
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; require('./styles.css'); ReactDOM.render( <App />, document.getElementById('app') );
src/components/Start.js
Babbins/fullstalker
import React from 'react'; import {Link} from 'react-router'; function myFunction() { console.log('your mom!'); } export default () => ( <div> <br /> <br /> <br /> <div className="valign-wrapper row"> <div className="valign col s7 center"> <img id="logo" className="text-align" src="/m...
fields/types/select/SelectField.js
riyadhalnur/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', valueChanged (newValue) { // TODO: This should be natively handled by the Selec...
src/react/JSONTree/JSONStringNode.js
threepointone/redux-devtools
import React from 'react'; import reactMixin from 'react-mixin'; import { SquashClickEventMixin } from './mixins'; import hexToRgb from '../../utils/hexToRgb'; const styles = { base: { paddingTop: 3, paddingBottom: 3, paddingRight: 0, marginLeft: 14 }, label: { display: 'inline-block', ma...
src/svg-icons/action/settings-input-antenna.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputAntenna = (props) => ( <SvgIcon {...props}> <path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 ...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
src/component/check.js
stevenocchipinti/react-toggle
import React from 'react' export default () => ( <svg width='14' height='11' viewBox='0 0 14 11'> <title> switch-check </title> <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='#fff' fillRule='evenodd' /> </svg> )
src/app/components/Delta.js
devgru/color
import React from 'react'; import { hcl } from 'd3-color'; import deltae from 'deltae'; import toString from '../domain/ColorToString'; import classNames from 'classnames'; import round from 'round-to-precision'; const cents = round(0.01); function Delta(props) { let delta = 0; const hcl1 = hcl(props.colors[0]); ...