path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/Breadcrumbs.js
jhernandezme/react-materialize
import React from 'react'; import Breadcrumb from '../src/Breadcrumb'; import MenuItem from '../src/MenuItem'; export default <Breadcrumb> <MenuItem>first</MenuItem> <MenuItem>second</MenuItem> <MenuItem>third</MenuItem> </Breadcrumb>;
src/App.js
racmariano/skidom
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { constructor(props) { super(props); this.state = {}; } componentWillMount() { fetch('skidom-api.herokuapp.com/api/resorts') .then(response => { var contentType = re...
src/components/Html.js
sk-iv/iva-app
import React from 'react'; // import PropTypes from 'prop-types'; import HeadTag from 'react-head'; const Html = () =>{ return( <React.Fragment> <HeadTag tag="meta" name='viewport' content='width=device-width, initial-scale=1' /> <HeadTag tag="meta" name="MobileOptimized" content="320" /> <Head...
components/TableHead.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; const propTypes = { children: PropTypes.node, className: PropTypes.string, }; const TableHead = props => { const { children, className, ...other } = props; const tableHeadClasses = classNames(className, 'bx--t...
src/svg-icons/communication/message.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationMessage = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Commun...
src/routes/List/components/List.js
nnti3n/pc-checker-client
/* @flow */ import React from 'react' import Price from '../../../components/Price' class List extends React.Component { constructor () { super() console.log('hello') } componentDidMount () { console.log('mounted', this.props) this.props.fetchList(this.props.id) } render () { if (!this.pr...
source-frontend/src/ManageSongList.js
Everstar/MusicRadio
/** * Created by tsengkasing on 12/12/2016. */ import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; import TextField from 'material-ui/TextField'; import Dialog from ...
examples/advanced/src/App.js
trashgenerator/reduceless
import React from 'react'; import {connectSlicedState} from '../../../src'; import User from './User'; /** * You can use decorators to simplify you code even more. * You can override prop names with `connectSlicedState(path, stateName, setStateName, replaceStateName)` * You can send `null` instead of any prop name ...
server/sonar-web/src/main/js/apps/account/components/Tokens.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...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/MediaListItem.js
JamieMason/npm-cache-benchmark
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
test/setup-app.js
heutagogy/heutagogy-chrome-extension
/* eslint-disable fp/no-mutation */ import { jsdom } from 'jsdom'; import React from 'react'; import chrome from 'sinon-chrome'; require.extensions['.less'] = () => {}; global.document = jsdom('<!doctype html><html><body></body></html>'); //eslint-disable-line global.window = document.defaultView; //eslint-disable-l...
frontend/src/components/guild_config_history.js
aliasfalse/rowboat
import React, { Component } from 'react'; import {diff as DiffEditor} from 'react-ace'; import moment from 'moment'; import {globalState} from '../state'; import SavePrompt from './save_prompt'; import 'brace/mode/yaml' import 'brace/theme/monokai' import 'brace/ext/searchbox' const defaultValue = [``,``] export de...
src/frontend/components/PlivoDialer.js
Bernie-2016/ground-control
import React from 'react' import {BernieText, BernieColors} from './styles/bernie-css' import {FloatingActionButton, FontIcon} from 'material-ui' export default class PlivoDialer extends React.Component { static propTypes = { endpointUsername: React.PropTypes.string, endpointPassword: React.PropTypes.string,...
app/components/Recorder.js
pyreta/songrider
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Recorder.css'; const WebMidi = require('../utils/webmidi.min.js'); export default class Recorder extends Component { constructor() { super(); this.state = { instrument: 'spanish', input:...
src/components/PreviousButtonEnhancer.js
ttrentham/Griddle
import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import mapProps from 'recompose/mapProps'; import getContext from 'recompose/getContext'; import { combineHandlers } from '../utils/compositionUtils'; const enhance = OriginalComponent => compose( getContext({ ...
src/demos/building-a-geospatial-app/1-starting-with-map/src/index.js
uber-common/vis-academy
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; ReactDOM.render(<App />, document.getElementById('app')); module.hot.accept();
react-backend/client/src/components/Home/index.js
JonasJan89/JSChallenge
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import './index.css'; export default class Home extends Component { render() { return( <div className="home"> <div className="container"> <div className="home__wrapper white-box"> ...
examples/with-react-loadable/src/Logo.js
jaredpalmer/react-production-starter
import React from 'react'; import logo from './react.svg'; const Logo = () => <img src={logo} className="Home-logo" alt="logo" />; export default Logo;
node_modules/react-router/es6/Link.js
cylcharles/webpack
'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) {...
src/components/common/editor/GeoJson.js
Gisto/Gisto
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import L from 'leaflet'; import 'leaflet/dist/leaflet.css'; import { setNotification } from 'utils/notifications'; const Map = styled.div` width: 100%; height: 70vh; z-index: 1; `; class GeoJson...
src/templates/project.js
elliotschultz/gatsby-portfolio-test
import React from 'react' import Link from 'gatsby-link' import styled from 'styled-components' import * as theme from '../theme' import { Grid, Row, Col } from 'zooper-grid' export default ({ data }) => { const post = data.markdownRemark console.log(post) const featuredImage = post.frontmatter.featuredImage.chi...
public/assets/js/node_modules/react-router/es6/Link.js
ngocson8b/6jar
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 = {...
ui-lib/Context/Hint.js
nikgraf/future-react-ui
import React from 'react'; const Hint = ({ children, isOpen = false, theme }, context) => { const currentTheme = theme ? theme : context.theme.hint; return ( <div className={currentTheme.base}> <div className={currentTheme.questionMark}>?</div> <div className={isOpen ? currentTheme.visibleContent :...
client/mobile/app/components/pr/StatusText.js
mgwidmann/slack_coder
import React from 'react'; import { View, Text, TouchableHighlight, StyleSheet, Linking, Alert } from 'react-native'; const StatusText = ({ link, status, children }) => { const openLink = () => { if (link) { Linking.openURL(link); } else { Alert.alert('No build URL for this pull request yet.'); ...
src/components/Dataset/GroupFilter.js
giux78/daf-dataportal
import React from 'react'; import { Link } from 'react-router-dom'; import formats from '../../data/formats' export default class GroupFilter extends React.Component { constructor(props) { super(props) this.state = props; let group_filter = []; if (props.group_filter) ...
src/app/index.js
RShackleton/pathfinder
/* eslint no-shadow: ["error", { "allow": ["store"] }] */ import 'babel-polyfill'; import { AppContainer } from 'react-hot-loader'; import React from 'react'; import { render } from 'react-dom'; import { browserHistory, IndexRoute, Route, Router } from 'react-router'; import { syncHistoryWithStore } from 'react-route...
docs/pages/customization/density.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'customization/density'; const requireDemo = require.context('docs/src/pages/customization/density', false, /\.(js|tsx)$/); const ...
src/app/components/team/SmoochBot/SmoochBotSetting.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import FormControl from '@material-ui/core/FormControl'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormHelperText fro...
node_modules/semantic-ui-react/src/collections/Form/FormInput.js
jessicaappelbaum/cljs-update
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Input from '../../elements/Input' import FormField from './FormField' /** * Sugar for <Form.Field control={Input} /> * @see Form * @see Input */ function FormInput(props) { const { con...
packages/icon-builder/tpl/SvgIcon.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '{{{ muiRequireStmt }}}'; let {{className}} = (props) => ( <SvgIcon {...props}> {{{paths}}} </SvgIcon> ); {{className}} = pure({{className}}); {{className}}.displayName = '{{className}}'; export default {{className}};
src/main/frontend/src/script/mainApp/views/common/Main/index.js
m544498510/may-swim-app
/** * * @author : Mei XinLin * @version : 1.0 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Breadcrumb from 'widgets/Breadcrumb'; export default class Main extends Component { static propTypes = { title: PropTypes.string.isRequired, breadcrumb: PropTypes.a...
js/jqwidgets/demos/react/app/listbox/categories/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js'; class App extends React.Component { render() { let source = [ // Business & Investing { html: '<div><div>Title: Do the Work</div><...
examples/counter/containers/Root.js
kwangkim/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import configureStore from '../store/configureStore'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> ...
docs/app/Examples/modules/Dropdown/Content/DropdownExampleMessage.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Dropdown, Message } from 'semantic-ui-react' const DropdownExampleMessage = () => ( <Dropdown text='Login' floating labeled button className='icon'> {/* <i class="filter icon"></i> */} <Dropdown.Menu> <Message error header='Error' content='You must log-in to see all c...
src/Alert.js
nickuraltsev/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel: React.PropTypes.string }, getD...
docs/src/app/components/pages/discover-more/Community.js
owencm/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import communityText from './community.md'; const Community = () => ( <div> <Title render={(previousTitle) => `Community - ${previousTitle}`} /> <MarkdownElement text={communityText} />...
fields/components/columns/InvalidColumn.js
efernandesng/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var InvalidColumn = React.createClass({ displayName: 'InvalidColumn', propTypes: { col: React.PropTypes.object, }, renderValue (...
examples/with-redux/src/common/components/Counter.js
jaredpalmer/razzle
import React from 'react'; import PropTypes from 'prop-types'; const Counter = ({ increment, incrementIfOdd, incrementAsync, decrement, counter, }) => ( <p> Clicked: {counter} times {' '} <button onClick={increment}>+</button> {' '} <button onClick={decrement}>-</button> {' '} <...
src/components/waste-water/index.js
impact-initiatives/reach-jor-zaatari-webmap
import React from 'react'; import styles from '../../styles/index.js'; import Header from '../common/header/index.js'; import Footer from '../common/footer/index.js'; import SidebarHome from '../common/home/index.js'; import MapboxGL from '../common/mapbox-gl/index.js'; import SidebarLayers from './sidebar-layers/index...
examples/Portal.js
glortho/react-overlays
import React from 'react'; import Button from 'react-bootstrap/lib/Button'; import Portal from 'react-overlays/Portal'; class PortalExample extends React.Component { constructor(...args){ super(...args); this.state = { show: false }; this.show = ()=> this.setState({ show: true }); } render() { ...
src/utils/defaultArrowRenderer.js
foxbroadcasting/react-select
import React from 'react'; import PropTypes from 'prop-types'; export default function arrowRenderer ({ onMouseDown, isUnique }) { if (isUnique) { return ( <span onMouseDown={onMouseDown} > <svg viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet"> <g><path d="M7.41 8.84L12 13.42l4.59-4.58L18 ...
client/src/components/UIComponents/Table.js
demisto/alfred
import './Table.less'; import React from 'react'; import { fieldToTitle } from '../../utils/utils'; export default function({ title, headers, data, keys, style }) { if (!data || data.length === 0) { return null; } const readyHeaders = headers || keys.map(fieldToTitle); return ( <div className="custom-...
packages/icons/src/md/image/Looks5.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLooks5(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h28zm-8 12v-4H18v12h8v4h-8v4h8c2.21 0 4-1.79 4-4v-4c0-2.21-1.79...
src/shared/components/TextManifest.js
sashafklein/ballot-marker
import React from 'react'; import { View, Text } from 'react-native'; import { wrap } from '../wrap'; export const TextManifest = props => { const { textArray, gbs, paragraphSpacing, textStyles, styles } = props; const pSpacing = paragraphSpacing || gbs.w.mv7_5; const lineStyles = { h3: gbs.t.h3, p: gb...
demo/loading/loading.js
koorchik/react-mdl
import React from 'react'; import ProgressBar from '../../src/ProgressBar'; import Spinner from '../../src/Spinner'; class Demo extends React.Component { render() { return ( <div> <p>Simple MDL Progress Bar</p> <ProgressBar progress={44} /> <p>MD...
ui/js/pages/user/SignUp.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { postSignUp } from '../../actions'; import PageHeader from '../../components/PageHeader'; import FormField from '../../components/FormField'; import FormError from '../../components/FormError'; import Button from '../../components/But...
src/parser/priest/holy/modules/talents/15/EnduringRenewal.js
FaideWW/WoWAnalyzer
import React from 'react'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import SPELLS from 'common/SPELLS/index'; import Analyzer from 'parser/core/Analyzer'; import ItemHealingDone from 'interface/others/ItemHealingDone'; import { ABILITIES_THAT_TRIGGER_ENDURING_RENEWAL ...
src/parser/priest/holy/modules/core/HolyWordWastedAmounts.js
fyruna/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS/index'; import Analyzer from 'parser/core/Analyzer'; // dependencies imp...
app/javascript/mastodon/features/ui/components/focal_point_modal.js
blackle/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import ImageLoader from './image_loader'; import classNames from 'classnames'; import { changeUploadCompose } from '../../../...
src/containers/Root.dev.js
xxd3vin/bgy-portalbillquery
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, Route, Link, IndexRoute } from 'react-router'; import App from './App'; //import DevTools from './DevTools'; import NoMatch from '../components/NoMatch'; import Welcome from './Welcome'; // Demo import BaoZhangRenPage f...
src/demo/index.js
smikhalevski/react-declarative-table
import 'classlist-polyfill'; import 'core-js/client/shim'; import React from 'react'; import ReactDOM from 'react-dom'; import {Table} from '../main/Table'; import './index.less'; let rows = []; for (let i = 0; i < 100000; ++i) { rows.push({index: i, bbb: 1, ccc: 2, ddd: 3, fff: 4, eee: 5}); } class App extends Re...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInline.js
JonathanUsername/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps: {a: number, b: number, c: number} = {a: 1, b: 2, c: 3}; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extend...
client/components/PostApp/PostApp.js
Moises404/rapbot
import React from 'react' import Toolbar from '../Toolbar/Toolbar' import PostList from '../PostList/PostList' class PostApp extends React.Component { static displayName = 'PostApp' render() { return ( <div className="PostApp"> <Toolbar {...this.props} /> <PostList {...this.props}/> </div> ) } } ...
app/src/index.js
NinBro/CSSAnimationFactory
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js
Technaesthetic/ua-tools
import React, { Component } from 'react'; class Foo extends Component { render() {} }
src/components/referrals/referral-link.js
dylanlott/bridge-gui
import React, { Component } from 'react'; import CopyToClipboard from 'react-copy-to-clipboard'; export default class ReferralLink extends Component { constructor(props) { super(props); } render() { return ( <div className="col-xs-12 col-md-6"> <h2>Share your link</h2> <div classNa...
src/components/sections/About.js
kaifn/kaifn-page
import React, { Component } from 'react'; class About extends Component { render() { return ( <section className="bg-light" id="about"> <div className="container"> <div className="row"> <div className="col-lg-8 mx-auto text-center"> <h2 className="section-headin...
app/components/VideoList.js
MomentoApp/momento
import React, { Component } from 'react'; import { Text, View, ListView, StyleSheet, RecyclerViewBackedScrollView, } from 'react-native'; import VideoEntry from './VideoEntry'; import { getVideoDistanceInKm } from '../utils/orientation'; const styles = StyleSheet.create({ list: { alignSelf: 'stretch'...
src/lib/componentStack.js
auth0/webtask-widget
import React from 'react'; import ReactDOM from 'react-dom'; import 'styles/componentStack.less'; export default class ComponentStack { constructor(element) { this.element = element; this.stack = []; this.element.classList.add('a0-component-stack'); Object.define...
src/components/video_list.js
faraazm/ReactApp2
import React from 'react'; import VideoListItem from './video_list_item'; const VideoList = (props) => { const videoItems = props.videos.map((video) => { return ( <VideoListItem onVideoSelect={props.onVideoSelect} key={video.etag} video={video} /> ) }); return ( <ul className="col-md-4 list-group...
examples/todomvc/containers/App.js
muffinresearch/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={...
addons/themes/forty/includes/FooterWidgets.js
rendact/rendact
import React from 'react'; class FooterWidgets extends React.Component { render(){ let { footerWidgets } = this.props; return( <section> <div className="inner"> <div className="row"> {footerWidgets.map((fw, i) => ( <div className="4u 12u$(medium)" k...
examples/cats/app.js
fritz-c/react-image-lightbox
import React, { Component } from 'react'; import Lightbox from '../../src'; // import Lightbox from 'react-image-lightbox'; // In your own app, you would need to use import styles once in the app // import 'react-image-lightbox/styles.css'; import './stylesheets/vendor/stylesheet.css'; import './stylesheets/vendor/gith...
loc8-react-redux-front-end/src/components/Editor.js
uberslackin/django-redux-loc8-ARweb
'use strict'; import ListErrors from './ListErrors'; import React from 'react'; import agent from '../agent'; import { connect } from 'react-redux'; const mapStateToProps = state => ({ ...state.editor }); const mapDispatchToProps = dispatch => ({ onAddTag: () => dispatch({ type: 'ADD_TAG' }), onLoad: paylo...
src/components/Dialog/Dialog.js
hahoocn/hahoo-admin
import React from 'react'; import styles from './Dialog.css'; import Dialog from '../hahoo/Dialog/Dialog'; class MainDialog extends React.Component { static defaultProps = { type: undefined } static propTypes = { type: React.PropTypes.string } render() { const { type } = this.props; return ...
level3/client/containers/List.js
vulcan-estudios/react-examples
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter, Link } from 'react-router'; function mapStateToProps (state) { return { movies: state.movies }; } class ListContainer extends Component { constructor () { super(...arguments); } render () { co...
src/helpers/universalRouter.js
redux-china/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from '../routes'; import {Provider} from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export function createTr...
react-conf-recap/index.js
danielma/talks
import React from 'react' import theme from './theme' import reactLogo from "./assets/reactconf-logo.png" import { Appear, Deck, Heading, Slide, Spectacle, Text, S, List, ListItem, Layout, Fit, Fill, Code, Image, CodePane, Link, } from "spectacle"; const titleDefaults = { size: 3, ...
app/javascript/mastodon/features/ui/components/navigation_panel.js
yi0713/mastodon
import React from 'react'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; import { profile_directory, showTrends } from 'mastodon/initial_state'; import NotificationsCounterIcon from './notifications_counter_icon'; impo...
src/components/trends/common/TargetRangeLines.js
tidepool-org/viz
/* * == BSD2 LICENSE == * Copyright (c) 2016, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
plain-routes/src/app.js
knowbody/react-router-playground
import React from 'react' import { render } from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory' import { Router } from 'react-router' const Home = () => <h3>Home</h3> const App = (props) => <div> <h1>App</h1> {props.children} </div> const routes = [{ path: '/', com...
packages/ringcentral-widgets-docs/src/app/pages/Components/MessageTabButton/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
examples/src/components/CustomSingleValue.js
cazacugmihai/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var SingleValue = React.createClass({ propTypes: { placeholder: React.PropTypes.string, value: React.PropTypes.object }, render () { var obj = this.props.value; var size = 15; var gravatarStyle = { borderRadius: 3, display: 'inline-bl...
admin/client/App/screens/Item/components/EditForm.js
dvdcastro/keystone
import React from 'react'; import moment from 'moment'; import assign from 'object-assign'; import { Col, Form, FormField, FormInput, ResponsiveText, Row, } from 'elemental'; // import { css, StyleSheet } from 'aphrodite/no-important'; import { Fields } from 'FieldTypes'; import { fade } from '../../../../utils/c...
src/components/Widgets/Markdown/MarkdownControl/Toolbar/ToolbarPluginFormControl.js
dopry/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import { resolveWidget } from '../../../../Widgets'; import styles from './ToolbarPluginFormControl.css'; const ToolbarPluginFormControl = ({ field, value, pluginData, onAddAsset, onRemoveAsset, getAsset, onChange, }) => { const widget = re...
src/interface/icons/Skull.js
FaideWW/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=skull&i=1062204 // Created by Royyan Razka from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="10 10 80 80" {...other}> <path d="M49.97 10C31.72 10 17 24.577 17 42.656 17 53.46 22.305 63.056 30....
src/svg-icons/av/forward-30.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward30 = (props) => ( <SvgIcon {...props}> <path d="M9.6 13.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.1-.2-.1h-.5s-.1.1-.2.1-.1.1-.1.2v.2h-1c0-.2 0-.3.1-.5s.2-.3.3-.4.3-.2.4-.2.4-.1.5-.1c.2 0 .4...
src/ModalDialog.js
adampickeral/react-bootstrap
/*eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ModalDialog = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * A Callback fired when the header closeButton or non-static backdrop is c...
artificial-intelligence/lab1/src/components/WelcomePage.js
Drapegnik/bsu
import React from 'react'; export default () => ( <div className="container has-text-centered"> <h1 className="title is-1"> Inference-engine </h1> <h4 className="subtitle is-4"> Knowledge base about <a href="https://www.premierleague.com/"><strong>EPL</strong></a> clubs! </h4> <h6...
src/components/Spinner/Spinner.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; import { Icon } from '../Icon'; function Spinner({ large, muted }) { if (large) { return ( <div className={classnames('ui-spinner', 'ui-spinner-large')}> <div className="spinner"> <div className="bounce1" /> <div cl...
src/components/Award.js
salemdes/tinglado
import React from 'react'; export const Award = props => ( <li className="award"> <span className={`symbol`}> <img alt={`Ganador`} src={`/img/award.png`} /> </span> <span className="category">{props.category}</span> </li> ); export default Award;
examples/todos/components/Footer.js
naoishii/ohk2016C
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_COMPLETED">...
Code/V1/src/src/Final.js
neurotechuoft/MindType
import React, { Component } from 'react'; class Final extends React.Component { render(){ return ( <div> <h3 className="final">Congratulations! You're now ready to use MindType!</h3> <button className="goToMindType" onClick={this.props.finalHandler}>Go to MindType</button> ...
components/input-number/inputNumber.js
TDFE/td-ui
/** * @Author: ginalu <ljq> * @Date: 2017-05-24 15:04:30 * @Last modified by: ljq * @Last modified time: 2017-06-01 15:04:33 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import omit from 'lodash/omit'; import assign from 'object-assign'; import ...
client/app/bundles/PartyMode/parties/containers/partyItems/ItemLabel.js
lrosskamp/makealist-public
import React from 'react' import { connect } from 'react-redux' import ItemLabel from '../../components/partyItems/ItemLabel' import ui from '../../../ui' import members from '../../../members' import * as globalSelectors from '../../../selectors' const mapStateToProps = (state, ownProps) =>({ withCount: ui.listEnt...
client/components/Main.js
G100g/standuptodo
import React, { Component } from 'react'; // import FlatButton from 'material-ui/FlatButton'; // import TextField from 'material-ui/TextField'; import { Link, browserHistory } from 'react-router'; import { Router, Route, IndexRoute } from 'react-router'; import { AppBar, Checkbox, IconButton } from 'react-toolbox'; imp...
src/svg-icons/maps/local-see.js
owencm/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...
src/components/common/Feedback.js
WendellLiu/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import { P, Heading } from 'common/base'; import Warning from 'common/icons/Warning'; import Button from 'common/button/Button'; import styles from './Feedback.module.css'; const Feedback = ({ buttonClick, heading, info, buttonText, Icon }) => ( <div s...
src/routes/home/index.js
transitlinks/web-app
import { getLog } from '../../core/log'; const log = getLog('routes/home'); import React from 'react'; import Home from './Home'; import ErrorPage from '../../components/common/ErrorPage'; import {getClientId, createParamString} from "../../core/utils"; import { getActiveTripQuery, getFeedItemsQuery, getTripEntity } f...
client/src/javascript/components/modals/Modal.js
stephdewit/flood
import classnames from 'classnames'; import React from 'react'; import ModalActions from './ModalActions'; import ModalTabs from './ModalTabs'; const METHODS_TO_BIND = ['handleTabChange']; export default class Modal extends React.Component { constructor() { super(); this.domRefs = {}; this.state = { ...
frontend/src/Components/Menu/ViewMenu.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Menu from 'Components/Menu/Menu'; import ToolbarMenuButton from 'Components/Menu/ToolbarMenuButton'; import { icons } from 'Helpers/Props'; function ViewMenu(props) { const { children, isDisabled, ...otherProps } = props; return (...
src/editable.js
hexsprite/focuster-react-typeahead
import _ from 'lodash' import React from 'react' import Autocomplete from './typeahead.js' class Editable extends React.Component { constructor(props) { super(props) this.state = { value: this.props.value, editing: this.props.editing } } // shouldComponentUpdate(nextProps, nextState) {...
src/routes.js
lgordey/library
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
src/components/Search/common/components/ResultsInfo.js
TalentedEurope/te-app
import React from 'react'; import { StyleSheet } from 'react-native'; import Toast from 'react-native-easy-toast'; import COMMON_STYLES from '../../../../styles/common'; export const ResultsInfo = (props) => { const { refFn } = props; return ( <Toast style={styles.toast} textStyle={styles.text} ...
app/src/main/js/containers/Main.js
evan01/tranasaurus
import { connect } from 'react-redux'; import React, { Component } from 'react'; import { loginFail, loginSuccess } from '../actions/actions'; import MainScreen from '../components/MainScreen/MainScreen'; class Main extends Component { render() { return ( <div className="list_items"> <MainScreen />...
src/containers/App.js
nagucc/jkef-web-react
import React from 'react'; import { Provider } from 'react-redux' import {store} from '../redux/store' import RawApp from '../components/App'; export default class App extends React.Component { render() { return ( <Provider store={store}> <RawApp>{this.props.children}</RawApp> </Provider> ...
admin/client/App/components/Navigation/Mobile/SectionItem.js
giovanniRodighiero/cms
/** * A mobile section */ import React from 'react'; import MobileListItem from './ListItem'; import { Link } from 'react-router'; const MobileSectionItem = React.createClass({ displayName: 'MobileSectionItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, curren...
src/components/DataTable/TableBatchActions.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 cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { settings } from 'carbon-components'; imp...
blueprints/container/files/src/components/__name__/__name__.js
KyperTech/devshare-site
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export class <%= pascalEntityName %> extends Component { render() { return ( <div className={classes['<%= pascalEntityName %>']}> <h1><%= pascalEntityName %></h1> </div> ) } } export default <%= pascalEntit...
src/components/Navbar/UserMenu.js
zksailor534/react-adminlte
/* eslint-disable react/jsx-filename-extension */ import React from 'react'; import styled from 'styled-components'; import DropdownMenu from './DropdownMenu'; import { fontFamilyBase, fontSizeBase, lineHeightBase, fontWeightBase, navbarHeight, navbarPaddingHorizontal, navbarPaddingVertical, screenXsMi...