path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
blueocean-material-icons/src/js/components/svg-icons/image/photo-camera.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImagePhotoCamera = (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-5s2.24-5 5-5 5 2.24 5 5-2.24 5...
src/components/loading-indicators/loading-repository-list-item.component.js
housseindjirdeh/git-point
import React, { Component } from 'react'; import { StyleSheet, Animated, View } from 'react-native'; import { colors } from 'config'; import { loadingAnimation } from 'utils'; const styles = StyleSheet.create({ container: { paddingTop: 20, paddingRight: 20, paddingBottom: 20, height: 100, border...
app/components/DatePicker.js
matthieuh/desktop-assistant
// @flow import React, { Component } from 'react'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import classNames from 'classnames/bind'; import styles from './DatePicker.css'; const cx = classNames.bind(styles); export default class DatePicker extends Component { state: { modalVisibl...
app/components/PageItemCard/index.js
interra/data-generate
import React from 'react'; import PropTypes from 'prop-types'; import Item from './Item'; import Wrapper from './Wrapper'; import LoadingIndicator from 'components/LoadingIndicator'; import { Link } from 'react-router-dom'; import { Parser } from 'html-to-react'; import ellipsize from 'ellipsize'; function PageItemCa...
submissions/arqex/src/boot.js
okmttdhr/flux-challenge
import React from 'react'; import AppContainer from './components/AppContainer'; import State from './State'; // Subscribe reactions import './Reactions'; // Start listening to planet updates var ws = new WebSocket('ws://localhost:4000'); ws.onmessage = function (event) { State.trigger('planet:update', JSON.parse(ev...
examples/src/components/Virtualized.js
Paveltarno/react-select
import React from 'react'; import VirtualizedSelect from 'react-virtualized-select'; const DATA = require('../data/cities'); var CitiesField = React.createClass({ displayName: 'CitiesField', getInitialState () { return {}; }, updateValue (newValue) { this.setState({ selectValue: newValue }); }, render ...
templates/rubix/demo/src/routes/Cropjs.js
jeffthemaximum/jeffline
import React from 'react'; import ReactDOM from 'react-dom'; import { Row, Col, Grid, Form, Panel, Checkbox, PanelBody, PanelHeader, FormControl, ControlLabel, PanelContainer, } from '@sketchpixy/rubix'; export default class Cropjs extends React.Component { componentDidMount() { (() => { ...
test-harness/app/index.js
bugsnag/bugsnag-react-native
import React, { Component } from 'react'; import { Platform, Navigator, View } from 'react-native'; import { Client, Configuration, StandardDelivery } from "bugsnag-react-native"; import { bugsnag } from 'lib/bugsnag'; import Main from './components/scenes/main'; import Repos from './components/scenes/repos'; import Cr...
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js
Antontsyk/react_vk
import React from 'react' import load from 'absoluteLoad' export default class extends React.Component { constructor(props) { super(props); this.done = () => {}; this.props.setCallWhenDone && this.props.setCallWhenDone((done) => { this.done = done; }); this.state = { users: [] }; } a...
src/components/PlayerController.js
Greatlemer/react-gomoku-bot
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class PlayerController extends Component { constructor() { super(); this.handleGameTick = this.handleGameTick.bind(this); this.getStatus = this.getStatus.bind(this); this.nextMove = this.nextMove.bind(this); this.stat...
src/svg-icons/navigation/more-vert.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMoreVert = (props) => ( <SvgIcon {...props}> <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"...
src/svg-icons/communication/phonelink-lock.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkLock = (props) => ( <SvgIcon {...props}> <path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ...
example/razzle-ssr/src/Home.js
i18next/react-i18next
import React from 'react'; import { Trans, useTranslation } from 'react-i18next'; import logo from './react.svg'; import './Home.css'; function Home() { const [ t ] = useTranslation('translations'); return ( <div className="Home"> <div className="Home-header"> <img src={logo} className="Home-log...
MyApp/view/sectionList.js
liwei0505/react-native
/** * Created by lee on 2017/9/18. */ import React, { Component } from 'react'; import { AppRegistry, SectionList, StyleSheet, Text, View } from 'react-native'; export default class SectionListBasics extends Component { render() { return ( <View style = {styles.container...
docs/app/Examples/modules/Checkbox/States/CheckboxExampleReadOnly.js
clemensw/stardust
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleReadOnly = () => ( <Checkbox label='This checkbox is read-only' readOnly /> ) export default CheckboxExampleReadOnly
common/components/App.js
BostonGlobe/elections-2017
import React from 'react' import PropTypes from 'prop-types' const App = ({ children }) => ( <div className='App'> { children } </div> ) App.propTypes = { children: PropTypes.object.isRequired, } export default App
src/example/treemap/simple-treemap.js
jameskraus/react-vis
// Copyright (c) 2016 Uber Technologies, Inc. // // 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 use, copy, modify, merge...
examples/_dustbin-simple/index.js
prometheusresearch/react-dnd
'use strict'; import React from 'react'; import Container from './Container'; const DustbinSimple = React.createClass({ render() { return ( <div> <Container /> <hr /> <p> Drag items on a dropzone. Note that it has different neutral, active (something is being dragged) and...
src/server/express.js
fk1blow/react-presentception
/*eslint-disable no-console */ import React from 'react'; import compression from 'compression'; import config from './config'; import express from 'express'; import favicon from 'serve-favicon'; import render from './render'; export default function() { const app = express(); app.use(compression()); // TODO:...
docs/pages/templates/_template.js
tleunen/react-mdl
import React from 'react'; // import { Link } from 'react-router'; // import { prefixLink } from 'gatsby-helpers'; const Template = (props) => ( <div>{props.children}</div> ); export default Template;
assets/javascript/components/viewActivity/viewActivity.js
colinjeanne/learning-site
import ActivityLinksList from './activityLinksList'; import { activityPropType } from './../propTypes'; import React from 'react'; const viewActivity = props => { const linksSection = props.activity.activityLinks ? ( <section> <h2>Links</h2> <ActivityLinksList ...
src/components/Text/Paragraph.js
primaveraentalca/lavoragine-contentful
import React from 'react'; const Paragraph = (props) => ( <p style={{ color:'rgba(0,0,0,.8)', fontSize: '1.33em', textAlign: 'justify' }} > {props.children} </p> ); export default Paragraph;
src/components/CastTable/CastTable.js
Nanjaa/Webcomic
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './CastTable.scss'; import Firebase from 'firebase'; import Link from '../Link'; class CastTable extends React.Component { constructor(props) { super(props); this.state = { mainCharacters: [], secondar...
ui/src/boot.js
starbops/OpenADM
import React from 'react'; import ReactDOM from 'react-dom'; import { syncHistoryWithStore } from 'react-router-redux'; import { browserHistory } from 'react-router'; import Immutable from 'seamless-immutable'; import configureStore from './js/stores/configureStore'; import Root from './js/Root.js'; import injectTapEv...
src/routes.js
Anshul-HL/blitz-vihanga
import React from 'react'; import {IndexRoute, Route, Router} from 'react-router'; import { App, Home, // NotFound, PastProjectList, PastProject, WardRobes, Kitchens, WallUnits, PressCoverage, About, Contact, TermsOfUse, PrivacyPolicy, Sitemap, Whyhomelane, ...
app/javascript/mastodon/features/compose/components/character_counter.js
narabo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0) { return...
src/svg-icons/communication/speaker-phone.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationSpeakerPhone = (props) => ( <SvgIcon {...props}> <path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ...
blueocean-material-icons/src/js/components/svg-icons/action/timeline.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionTimeline = (props) => ( <SvgIcon {...props}> <path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05....
examples/src/index.js
onurhb/react-popover-portal
import { Router, Route, browserHistory, IndexRoute } from 'react-router' import ReactDOM from 'react-dom'; import React from 'react'; // - Root component import App from './components/App'; import Basic from './routes/Basic'; import Arrow from './routes/Arrow'; import Animated from './routes/Animated'; import Group fr...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store_new/source/src/app/components/Layout/Header/Header.js
lakmali/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
app/components/Navbar.js
mestern/farmers_market
import React from 'react' import { connect } from 'react-redux' import { Link, browserHistory } from 'react-router' import {logout} from '../reducers/auth' const Navbar = (props) => { console.log('navbar props', props) return ( <nav className="navbar navbar-default"> <div className="container-fluid"> ...
client/src/components/Star.js
chi-bumblebees-2017/gnomad
import React, { Component } from 'react'; import { Button, Icon, Segment } from 'semantic-ui-react'; class Star extends Component { constructor(props) { super(props); this.color = this.color.bind(this); this.userData = this.userData.bind(this); this.state = { count: props.count, } this....
packages/material-ui/src/Portal/LegacyPortal.js
cherniavskii/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import ownerDocument from 'dom-helpers/ownerDocument'; import exactProp from '../utils/exactProp'; function getContainer(container, defaultContainer) { container = typeof container === 'function' ? container() : containe...
hub-ui/src/dashboard/components/Dashboard.js
lchase/hub
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactGridLayout from 'react-grid-layout'; import ChatWidget from '../../components/chat/ChatWidget'; import AddDashboardDialog from './AddDashboardDialog'; import { DatePicker, Progress, Card } from 'antd'; const defaultWidgetWidth =...
client/src/components/Loading.js
nemish/mathbattle
import React from 'react'; import Grid from 'material-ui/Grid'; import Paper from 'material-ui/Paper'; import Spinner from 'react-spinkit'; import Dotting from '../Dotting'; const styles = { container: {height: '100%'}, spinner: {width: 100, margin: 'auto'} } export default props => <Grid container justify=...
styleguide/sections/Home.js
iest/loggins
import React from 'react'; import Markdown from 'matthewmueller-react-remarkable'; import * as m from 'globals/modifiers.css'; import styles from './Home.css'; export default class Home { render() { return ( <div> <div style={{ maxWidth: '40em', margin: '0 auto' }} className={m.alignc}> ...
src/components/sidebar-modal.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2017 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
src/Table.js
simonliubo/react-ui
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, render() { let c...
app/routes/company/ShowRoute.js
ryrudnev/dss-wm
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as Company } from '../../entities/Company'; import { Deferred } from '../../util/utils'; import { PageHeader } from 'react-bootstrap'; import CompanyProfile from '../../components/CompanyProfile'; imp...
app/javascript/mastodon/features/ui/components/zoomable_image.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ compress: { id: 'lightbox.compress', defaultMessage: 'Compress image view box' }, expand: { id: 'lightb...
src/components/exercises/HasPhoneme.stories.js
cognostics/serlo-abc
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import HasPhoneme from './HasPhoneme'; storiesOf('exercises/HasPhoneme', module).add('one letter', () => ( <HasPhoneme image={require('../../assets/images/gabel.jpg')} sound={require('../../assets/sounds/gabel_short.mp3')} w...
src/index.js
ipfs/webui
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'redux-bundler-react' import './index.css' import 'react-virtualized/styles.css' import App from './App' import getStore from './bundles' import bundleCache from './lib/bundle-cache' import { I18nextProvider } from 'react-i18next' impor...
src/parser/shared/modules/features/Checklist/PreparationRule.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Trans } from '@lingui/macro'; import Rule from './Rule'; import Requirement from './Requirement'; class PreparationRule extends React.PureComponent { static propTypes = { children: PropTypes.node, thresholds: PropTypes.object.isRequire...
src/components/app.js
cungen/www
import React, { Component } from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Header from './partials/header/'; import Loading from './loading/loading'; export default class App extends Component { render() { return ( <MuiThemeProvider> <di...
src/components/core/Breakpoint.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; import connectToStores from 'fluxible-addons-react/connectToStores'; // Flux import ResponsiveStore from '../../stores/Application/ResponsiveStore'; /** * Component */ class Breakpoint extends React.Component { static contextTypes = { getStore: React.PropTy...
src/lib/plot/xy-plot.js
jameskraus/react-vis
// Copyright (c) 2016 Uber Technologies, Inc. // // 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 use, copy, modify, merge...
example/src/index.js
bokuweb/react-animation-sprite
import React from 'react'; import { render } from 'react-dom'; import Example from './example'; render(<Example />, document.querySelector('#content'));
src/parser/monk/brewmaster/modules/spells/BlackoutCombo.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'...
imports/client/ui/pages/Admin/UserSearch/index.js
mordka/fl-events
import React, { Component } from 'react'; import {Form, FormGroup, Input, Button} from 'reactstrap' class UserSearch extends Component { constructor(props) { super(props); this.userToSearch = React.createRef(); } searchForUser = (e) => { e.preventDefault(); this.props.searchForUser(this.userToSea...
stories/components/spinner.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { Spinner } from 'components/UI' storiesOf('Components', module).addWithChapters('Spinner', { subtitle: 'For letting the user know that something is happening.', chapters: [ { sections: [ { sectionFn: () => <S...
packages/insights-web/src/scenes/explorer/connection/subset/form/models/json/index.js
mariusandra/insights
import React from 'react' import { Button, Form, Input, Modal } from 'antd' import { useActions, useValues } from 'kea' import modelsLogic from '../logic' function JSONComponent ({ visible, form: { getFieldDecorator, validateFieldsAndScroll, getFieldValue } }) { const { defaultJSON } = useValues(modelsLogic) cons...
src/components/HostsNav.js
cpsubrian/redis-explorer
import React from 'react' import autobind from 'autobind-decorator' import ImmutablePropTypes from 'react-immutable-proptypes' import hostsActions from '../actions/hostsActions' import browseActions from '../actions/browseActions' import Icon from '../components/Icon' import {LeftNav, MenuItem} from 'material-ui' @aut...
browser/app/js/components/Browse.js
luomeiqin/minio
/* * Minio Cloud Storage (C) 2016 Minio, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
sThig/jabbascrypt
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
app/javascript/mastodon/features/compose/components/upload_form.js
d6rkaiz/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import UploadProgressContainer from '../containers/upload_progress_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import UploadContainer from '../containers/upload_container'; import SensitiveButtonC...
packages/xo-web/src/xo-app/hub/templates/resource.js
vatesfr/xo-web
import _ from 'intl' import ActionButton from 'action-button' import decorate from 'apply-decorators' import defined from '@xen-orchestra/defined' import Icon from 'icon' import marked from 'marked' import React from 'react' import { alert, form } from 'modal' import { Card, CardBlock, CardHeader } from 'card' import {...
src/components/Header.js
jamigibbs/fair-split-calculator
import React from 'react'; const Header = (props) => { return ( <div className="header clearfix"> <h3>Fair Split</h3> <p className="text-muted">This calculator takes two earnings and determines the amount each should pay towards household bills. Based on the thought that two different incomes should...
project-base/src/universal/features/routing/components/NotFound/index.js
ch-apptitude/goomi
/** * * NotFound * */ import React from 'react'; import { Row, Col } from 'react-flexbox-grid'; import styled from 'styled-components'; import Theme from 'assets/theme'; import Text from 'features/common_ui/components/Text'; import messages from './messages'; const Container = styled.div` height: 100%; width: 1...
src/user/userForm.js
codyloyd/teamup
import React from 'react' import {Field, reduxForm} from 'redux-form' const UserForm = props => { const {handleSubmit} = props return ( <form onSubmit={handleSubmit}> <div> <label>First Name</label> <div> <Field name="firstName" component="input" ...
src/containers/GuessInput.js
dpickett/name-game
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import Select from 'react-select' class GuessInput extends React.Component { constructor () { super(); this.focus = this.focus.bind(this) this.onChange = this.onChange.bind(this) this.state = ...
chrome/extension/todoapp.js
altany/react-new-tab-chrome-extension
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import Root from '../../app/containers/Root'; import createStore from '../../app/store/configureStore'; import './todoapp.css'; chrome.storage.sync.get('state', (obj) => { const { state } = obj; const initialState ...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
cs011164/cs011164.github.io
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
docs/src/app/pages/components/ProgressBar/ExampleProgressBarDefault.js
GetAmbassador/react-ions
import React from 'react' import ProgressBar from 'react-ions/lib/components/ProgressBar' const ExampleProgressBarDefault = () => ( <ProgressBar /> ) export default ExampleProgressBarDefault
app/jsx/confetti/index.js
djbender/canvas-lms
/* * Copyright (C) 2020 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/app.js
chemoish/react-webpack
import React from 'react'; import Router from 'react-router'; var {DefaultRoute, Link, Route, RouteHandler} = Router; var App = React.createClass({ render() { return ( <div> <header> <ul> <li><Link to="home">Home</Link></li> ...
frontend/src/components/overview/index.js
rossnomann/playlog
import moment from 'moment'; import PropTypes from 'prop-types'; import React from 'react'; import {bindActionCreators} from 'redux' import {connect} from 'react-redux'; import {createSelector} from 'reselect'; import {actions} from '../../redux'; import {DATE_FORMAT, formatDate} from '../../utils'; import AlbumIcon ...
data/workshops.js
subvisual/2017.mirrorconf.com
import React from 'react'; import EventDescription, { Text, Title } from '../Components/EventDescription'; import atomicImage from '../images/workshops/atomic_workshop.jpg'; import productImage from '../images/workshops/product_workshop.jpg'; import saraImage from '../images/workshops/sara_workshop.jpg'; import vital...
src/ui/elements/svg/Mailing.js
gouxlord/dev-insight
import React from 'react' var Mailing = React.createClass({ render: function () { return ( <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 161.736 150" preserveAspectRatio="xMinYMin meet"> <polygon fill="#ED574E" points="81.093,103.13 21.421,145.185 152.247,146.088 "/> <polyg...
js/AppNavigator.js
crod93/googlePlacesEx-react-native
'use strict'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import _ from 'lodash/core'; import { Drawer } from 'native-base'; import { BackAndroid, Platform, StatusBar } from 'react-native'; import { closeDrawer } from './actions/drawer'; import { popRoute } from './actions/route';...
src/ButtonToolbar.js
mmartche/boilerplate-shop
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); ...
test/integration/app-aspath/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' export default class MyApp extends App { // find this static async getInitialProps({ ctx }) { const { query, pathname, asPath } = ctx return { url: { query, pathname, asPath } } } render() { const { Component, url } = this.props return <Com...
react-router/components/About.js
JonnyCheng/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; class About extends React.Component { render() { return <p>This is a description of the site.</p>; } } export default About;
src/svg-icons/action/reorder.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReorder = (props) => ( <SvgIcon {...props}> <path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"/> </SvgIcon> ); ActionReorder = pure(ActionReorder); ActionReorder.displayName = 'Action...
examples/src/components/CustomOption.js
miraks/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
pages/index.js
rpowis/pusscat.lol
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import Images from './../components/Images'; import Spinner from './../components/Spinner'; export default class extends Comp...
src/route/account/InvestorAccountManager.js
simors/yjbAdmin
/** * Created by lilu on 2017/10/16. */ import React from 'react'; import {connect} from 'react-redux'; import {Row, Col, Input, Select, Button,DatePicker, Form, message} from 'antd'; import InvestorAccountList from './InvestorAccountList'; import {stationAction, stationSelector} from '../station/redux'; import {acco...
packages/@lyra/components/src/lists/default/ListItem.js
VegaPublish/vega-studio
// @flow import React from 'react' import styles from '../styles/DefaultListItem.css' import classNames from 'classnames' export default function CoreListItem(props: any) { return ( <li {...props} className={classNames([styles.root, props.className])} /> ) }
examples/query-params/app.js
arasmussen/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/query-params' }) class User extends React.Component { render() { let { userID } = this.props.params let { query } = thi...
src/components/Layout/Layout.js
keenethics/estimateit
import React from 'react'; import PropTypes from 'prop-types'; import normalizeCss from 'normalize.css'; import { Form, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { compose } from 'react-apollo'; import { Container, Col, Card } from 'reactstrap'; import withStyles from 'isomorphic-styl...
src/components/Mail/List.js
maloun96/react-admin
import React from 'react'; import {render} from 'react-dom'; class ListControll extends React.Component { constructor(props) { super(props); } render() { return ( <div> <div className="box-footer no-padding"> <div className="mailbox-control...
src/containers/App.js
gaearon/redux-friendlist-demo
import React, { Component } from 'react'; import { combineReducers } from 'redux'; import { Provider } from 'react-redux'; import { createStore, renderDevTools } from '../store_enhancers/devTools'; import AppView from './AppView.js'; import reducer from '../reducers'; const store = createStore(reducer); export defau...
examples/with-react-multi-carousel/pages/index.js
BlancheXu/test
import React from 'react' import MobileDetect from 'mobile-detect' import { withStyles } from '@material-ui/core/styles' import Carousel from 'react-multi-carousel' import Image from '../components/image' import '../style.css' import 'react-multi-carousel/lib/styles.css' const styles = theme => ({ root: { textA...
app/javascript/mastodon/components/avatar.js
rekif/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
client/acp/src/view/display/prompt-view.js
NicolasSiver/nodebb-plugin-ns-awards
import PropTypes from 'prop-types'; import React from 'react'; // FIXME Replace with Panel Controls export default class PromptView extends React.Component { render() { return ( <div className="media"> <div className="media-body"> <p>{this.props.hint}</p> ...
src/containers/Asians/BreaksCalculator/MatchUps/RoundInstance/returnTableRow.js
westoncolemanl/tabbr-web
import React from 'react' import { TableRow, TableCell } from 'material-ui/Table' export default ( roundIndex, roundMatchUps, minBreak, sureBreak, numberOfRounds ) => { let arr = [] let currentScore = 0 let bracketRank = 0 roundMatchUps.forEach((room, index) => { bracketRank++ let team1s...
src/docs/ComponentPage.js
rajeshpillai/zs-react-pattern-lib
import React from 'react'; import PropTypes from 'prop-types'; import Example from './Example'; import Props from './Props'; const ComponentPage = ({component}) => { const {name, description, props, examples} = component; return ( <div className="componentpage"> <h2>{name}</h2> <p>{description}</p...
src/components/common/svg-icons/image/brush.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrush = (props) => ( <SvgIcon {...props}> <path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25...
src/FormGroup.js
justinanastos/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class FormGroup extends React.Component { render() { let classes = { 'form-group': !this.props.standalone, 'form-group-lg': !this.props.standalone && this.props.bsSize === 'large', 'form-group-sm': !this.props.standalone && this.pr...
modules/gui/src/app/landing/slideshow/slideshow.js
openforis/sepal
import React from 'react' import background1 from './background1.jpg' import background2 from './background2.jpg' import styles from './slideshow.module.css' const Slideshow = () => <div className={styles.slideshow}> <img src={background1} className={styles.image1} alt=''/> <img src={background2} c...
frontend/components/app-view.js
meandavejustice/min-vid
import React from 'react'; import cn from 'classnames'; import PlayerView from './player-view'; import LoadingView from './loading-view'; import ConfirmView from './confirm-view'; export default class AppView extends React.Component { render() { // if (this.props.confirm) window.AppData.set({minimized: false}); ...
src/components/ProductList/index.js
Rhymond/product-compare-react
import React from 'react' import {Product} from '../' const ProductList = ({products, compare}) => <div className="row mt-3"> {products.map(product => <Product key={product.id} product={product} compare={compare} /> )} </div>; export default ProductList
src/components/Header/Header.js
jwarshaw/redux-dashboard-app
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <Link to='/counter' activeClassName='route--activ...
src/core/components/Autocomplete.js
remy/jsconsole
import React, { Component } from 'react'; class Autocomplete extends Component { render() { return ( <div className="Autocomplete"> <span className="matching">doc</span> <span className="preview">ument</span> </div> ); } } export default Autocomplete;
src/routes/contact/index.js
murthymuddu/murthy-umg
/** * 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...
website/sections/JsLibrary.js
sahat/megaboilerplate
import React from 'react'; import cx from 'classnames'; import { VelocityComponent, VelocityTransitionGroup } from 'velocity-react'; const JS_LIBRARY_SVG = ( <svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" viewBox="0 0 50 50"> <path d="M 29.125 7.34375 L 17.125 41.34375 L 20.875 42.65625 L 32...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Breadcrumb.js
Akkuma/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 ...
src/components/DataTable/AnimTableBody.js
muidea/magicSite
import React from 'react' import PropTypes from 'prop-types' import { TweenOneGroup } from 'rc-tween-one' const enterAnim = [ { opacity: 0, x: 30, backgroundColor: '#fffeee', duration: 0, }, { height: 0, duration: 200, type: 'from', delay: 250, ease: 'easeOutQuad', onComplet...
q-a11y-training-demo/src/components/react-router-aria-live/LiveRouterAnnouncer.js
AlmeroSteyn/Q-A11y-Training
import React from 'react'; import PoliteAnnouncer from '../react-aria-live/PoliteAnnouncer'; import LiveRouterHOC from './LiveRouterHOC'; const LiveRouterAnnouncer = ({ message }) => <PoliteAnnouncer message={message} />; export default LiveRouterHOC(LiveRouterAnnouncer);
src/views/components/task-list/task-list.js
Metaburn/doocrate
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { List } from 'immutable'; import PropTypes from 'prop-types'; import TaskItem from '../task-item-row/task-item-row'; import InfiniteScroll from 'react-infinite-scroller'; import i18n from '../../../i18n'; import CompleteFilter fr...
src/components/discover/exam-detail/view/ExamDetailContent.js
phodal/growth-ng
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Text, PanResponder } from 'react-native'; import Indicator from './ExamDetailIndicator'; import AppStyle from '../../../../theme/styles'; let startX; let endX; let pressPosition; let leftslide; let diff; class ExamDetailConte...